@supernova-studio/client 0.58.9 → 0.58.10
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 +1659 -196
- package/dist/index.d.ts +1659 -196
- package/dist/index.js +258 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +685 -568
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/index.ts +0 -1
- package/src/api/dto/elements/components/figma-component-group.ts +19 -0
- package/src/api/dto/elements/components/index.ts +1 -0
- package/src/api/dto/elements/frame-node-structures/frame-node-structure.ts +17 -0
- package/src/api/dto/elements/frame-node-structures/index.ts +1 -0
- package/src/api/dto/elements/index.ts +1 -0
- package/src/api/dto/export/exporter-property.ts +95 -0
- package/src/api/dto/export/exporter.ts +2 -0
- package/src/api/dto/export/index.ts +1 -0
- package/src/api/dto/export/job.ts +3 -0
- package/src/api/dto/export/pipeline.ts +3 -0
- package/src/api/endpoints/codegen/exporters.ts +2 -7
- package/src/api/endpoints/design-system/versions/elements-action.ts +16 -59
- package/src/api/endpoints/design-system/versions/elements.ts +13 -0
- package/src/api/endpoints/design-system/versions/figma-component-groups.ts +13 -0
- package/src/api/endpoints/design-system/versions/figma-components.ts +13 -0
- package/src/api/endpoints/design-system/versions/figma-frame-structures.ts +13 -0
- package/src/api/endpoints/design-system/versions/index.ts +5 -1
- package/src/api/endpoints/design-system/versions/versions.ts +13 -1
- package/src/api/payloads/export/pipeline.ts +3 -0
- package/src/api/transport/request-executor.ts +2 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/query.ts +18 -0
- package/src/api/dto/design-systems/exporter-property.ts +0 -8
- /package/src/api/endpoints/design-system/versions/{components.ts → ds-components.ts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -572,7 +572,7 @@ var FigmaFileDownloadScope = z22.object({
|
|
|
572
572
|
});
|
|
573
573
|
var FigmaFileAccessData = z22.object({
|
|
574
574
|
accessToken: z22.string(),
|
|
575
|
-
accessTokenType: z22.enum(["OAuth2", "PAT"])
|
|
575
|
+
accessTokenType: z22.enum(["OAuth2", "PAT"]).default("OAuth2")
|
|
576
576
|
});
|
|
577
577
|
var ImportWarningType = z23.enum([
|
|
578
578
|
"NoVersionFound",
|
|
@@ -5444,14 +5444,9 @@ var DTODesignElementsDataDiffResponse = z190.object({
|
|
|
5444
5444
|
assets: DTODiffCountBase
|
|
5445
5445
|
});
|
|
5446
5446
|
|
|
5447
|
-
// src/api/dto/design-systems/exporter-property.ts
|
|
5448
|
-
import { z as z191 } from "zod";
|
|
5449
|
-
var DTOExporterProperty = z191.any({});
|
|
5450
|
-
var DTOExporterPropertyListResponse = z191.object({ items: z191.array(DTOExporterProperty) });
|
|
5451
|
-
|
|
5452
5447
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5453
|
-
import { z as
|
|
5454
|
-
var DimensionsVariableScopeSchema =
|
|
5448
|
+
import { z as z191 } from "zod";
|
|
5449
|
+
var DimensionsVariableScopeSchema = z191.enum([
|
|
5455
5450
|
"CORNER_RADIUS",
|
|
5456
5451
|
"WIDTH_HEIGHT",
|
|
5457
5452
|
"GAP",
|
|
@@ -5465,130 +5460,130 @@ var DimensionsVariableScopeSchema = z192.enum([
|
|
|
5465
5460
|
"PARAGRAPH_INDENT",
|
|
5466
5461
|
"FONT_WEIGHT"
|
|
5467
5462
|
]);
|
|
5468
|
-
var StringVariableScopeSchema =
|
|
5463
|
+
var StringVariableScopeSchema = z191.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5469
5464
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5470
5465
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5471
|
-
var VariableScope =
|
|
5472
|
-
var ReferencedVariableOrigin =
|
|
5473
|
-
name:
|
|
5474
|
-
remote:
|
|
5466
|
+
var VariableScope = z191.string();
|
|
5467
|
+
var ReferencedVariableOrigin = z191.object({
|
|
5468
|
+
name: z191.string(),
|
|
5469
|
+
remote: z191.boolean()
|
|
5475
5470
|
});
|
|
5476
|
-
var RGB =
|
|
5477
|
-
r:
|
|
5478
|
-
g:
|
|
5479
|
-
b:
|
|
5471
|
+
var RGB = z191.object({
|
|
5472
|
+
r: z191.number(),
|
|
5473
|
+
g: z191.number(),
|
|
5474
|
+
b: z191.number()
|
|
5480
5475
|
});
|
|
5481
5476
|
var RGBA = RGB.extend({
|
|
5482
|
-
a:
|
|
5483
|
-
});
|
|
5484
|
-
var VariableAlias =
|
|
5485
|
-
type:
|
|
5486
|
-
id:
|
|
5487
|
-
resolvedValue:
|
|
5488
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5489
|
-
});
|
|
5490
|
-
var VariableValue =
|
|
5491
|
-
var ResolvedVariableType =
|
|
5492
|
-
var Variable =
|
|
5493
|
-
id:
|
|
5494
|
-
name:
|
|
5495
|
-
key:
|
|
5496
|
-
variableCollectionId:
|
|
5477
|
+
a: z191.number()
|
|
5478
|
+
});
|
|
5479
|
+
var VariableAlias = z191.object({
|
|
5480
|
+
type: z191.literal("VARIABLE_ALIAS"),
|
|
5481
|
+
id: z191.string(),
|
|
5482
|
+
resolvedValue: z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).optional(),
|
|
5483
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z191.null())
|
|
5484
|
+
});
|
|
5485
|
+
var VariableValue = z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5486
|
+
var ResolvedVariableType = z191.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5487
|
+
var Variable = z191.object({
|
|
5488
|
+
id: z191.string(),
|
|
5489
|
+
name: z191.string(),
|
|
5490
|
+
key: z191.string(),
|
|
5491
|
+
variableCollectionId: z191.string(),
|
|
5497
5492
|
resolvedType: ResolvedVariableType,
|
|
5498
|
-
valuesByMode:
|
|
5499
|
-
remote:
|
|
5500
|
-
description:
|
|
5501
|
-
hiddenFromPublishing:
|
|
5502
|
-
scopes:
|
|
5503
|
-
codeSyntax:
|
|
5504
|
-
});
|
|
5505
|
-
var VariableMode =
|
|
5506
|
-
modeId:
|
|
5507
|
-
name:
|
|
5508
|
-
});
|
|
5509
|
-
var Collection2 =
|
|
5510
|
-
id:
|
|
5511
|
-
name:
|
|
5512
|
-
modes:
|
|
5513
|
-
defaultModeId:
|
|
5514
|
-
remote:
|
|
5515
|
-
hiddenFromPublishing:
|
|
5516
|
-
});
|
|
5517
|
-
var VariablesMapping =
|
|
5518
|
-
variableCollections:
|
|
5519
|
-
variableMode:
|
|
5520
|
-
supernovaBrand:
|
|
5521
|
-
supernovaTheme:
|
|
5522
|
-
});
|
|
5523
|
-
var FormattedCollections =
|
|
5524
|
-
variables:
|
|
5525
|
-
variableCollections:
|
|
5526
|
-
mappings:
|
|
5527
|
-
variablesOrder:
|
|
5493
|
+
valuesByMode: z191.record(VariableValue),
|
|
5494
|
+
remote: z191.boolean(),
|
|
5495
|
+
description: z191.string(),
|
|
5496
|
+
hiddenFromPublishing: z191.boolean(),
|
|
5497
|
+
scopes: z191.array(VariableScope),
|
|
5498
|
+
codeSyntax: z191.record(z191.any()).optional()
|
|
5499
|
+
});
|
|
5500
|
+
var VariableMode = z191.object({
|
|
5501
|
+
modeId: z191.string(),
|
|
5502
|
+
name: z191.string()
|
|
5503
|
+
});
|
|
5504
|
+
var Collection2 = z191.object({
|
|
5505
|
+
id: z191.string(),
|
|
5506
|
+
name: z191.string(),
|
|
5507
|
+
modes: z191.array(VariableMode),
|
|
5508
|
+
defaultModeId: z191.string(),
|
|
5509
|
+
remote: z191.boolean(),
|
|
5510
|
+
hiddenFromPublishing: z191.boolean()
|
|
5511
|
+
});
|
|
5512
|
+
var VariablesMapping = z191.object({
|
|
5513
|
+
variableCollections: z191.array(z191.string()).min(1),
|
|
5514
|
+
variableMode: z191.string().min(1),
|
|
5515
|
+
supernovaBrand: z191.string().min(1),
|
|
5516
|
+
supernovaTheme: z191.string().min(1).optional().or(z191.null())
|
|
5517
|
+
});
|
|
5518
|
+
var FormattedCollections = z191.object({
|
|
5519
|
+
variables: z191.record(z191.string(), Variable),
|
|
5520
|
+
variableCollections: z191.record(z191.string(), Collection2),
|
|
5521
|
+
mappings: z191.array(VariablesMapping).optional(),
|
|
5522
|
+
variablesOrder: z191.string().array().optional()
|
|
5528
5523
|
});
|
|
5529
5524
|
|
|
5530
5525
|
// src/api/dto/design-systems/import-job.ts
|
|
5531
|
-
import { z as
|
|
5532
|
-
var DTOImportJob =
|
|
5533
|
-
id:
|
|
5534
|
-
designSystemId:
|
|
5535
|
-
designSystemVersionId:
|
|
5536
|
-
operation:
|
|
5537
|
-
createdAt:
|
|
5538
|
-
stateChangedAt:
|
|
5526
|
+
import { z as z192 } from "zod";
|
|
5527
|
+
var DTOImportJob = z192.object({
|
|
5528
|
+
id: z192.string(),
|
|
5529
|
+
designSystemId: z192.string(),
|
|
5530
|
+
designSystemVersionId: z192.string(),
|
|
5531
|
+
operation: z192.literal("Import"),
|
|
5532
|
+
createdAt: z192.coerce.date(),
|
|
5533
|
+
stateChangedAt: z192.coerce.date(),
|
|
5539
5534
|
state: ImportJobState,
|
|
5540
|
-
sourceIds:
|
|
5535
|
+
sourceIds: z192.string().array()
|
|
5541
5536
|
});
|
|
5542
|
-
var DTOImportJobResponse =
|
|
5537
|
+
var DTOImportJobResponse = z192.object({
|
|
5543
5538
|
job: DTOImportJob
|
|
5544
5539
|
});
|
|
5545
|
-
var DTOBffFigmaImportRequestBody =
|
|
5546
|
-
type:
|
|
5547
|
-
brandPersistentId:
|
|
5548
|
-
fileId:
|
|
5540
|
+
var DTOBffFigmaImportRequestBody = z192.object({
|
|
5541
|
+
type: z192.literal(DataSourceRemoteType.Enum.Figma),
|
|
5542
|
+
brandPersistentId: z192.string().optional(),
|
|
5543
|
+
fileId: z192.string(),
|
|
5549
5544
|
scope: DataSourceFigmaScope,
|
|
5550
5545
|
autoImportMode: DataSourceAutoImportMode
|
|
5551
5546
|
});
|
|
5552
|
-
var DTOBffUploadImportRequestBody =
|
|
5553
|
-
type:
|
|
5554
|
-
brandPersistentId:
|
|
5555
|
-
sourceName:
|
|
5556
|
-
remoteId:
|
|
5557
|
-
isTokenTypeSplitEnabled:
|
|
5558
|
-
payload:
|
|
5547
|
+
var DTOBffUploadImportRequestBody = z192.object({
|
|
5548
|
+
type: z192.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5549
|
+
brandPersistentId: z192.string().optional(),
|
|
5550
|
+
sourceName: z192.string().optional(),
|
|
5551
|
+
remoteId: z192.string(),
|
|
5552
|
+
isTokenTypeSplitEnabled: z192.boolean().optional(),
|
|
5553
|
+
payload: z192.any()
|
|
5559
5554
|
});
|
|
5560
|
-
var DTOBffImportRequestBody =
|
|
5555
|
+
var DTOBffImportRequestBody = z192.discriminatedUnion("type", [
|
|
5561
5556
|
DTOBffFigmaImportRequestBody,
|
|
5562
5557
|
DTOBffUploadImportRequestBody
|
|
5563
5558
|
]);
|
|
5564
5559
|
|
|
5565
5560
|
// src/api/dto/design-systems/stats.ts
|
|
5566
|
-
import { z as
|
|
5567
|
-
var DTODesignSystemVersionStats =
|
|
5568
|
-
tokens:
|
|
5569
|
-
designSystemComponents:
|
|
5570
|
-
assets:
|
|
5571
|
-
documentationPages:
|
|
5561
|
+
import { z as z193 } from "zod";
|
|
5562
|
+
var DTODesignSystemVersionStats = z193.object({
|
|
5563
|
+
tokens: z193.number(),
|
|
5564
|
+
designSystemComponents: z193.number(),
|
|
5565
|
+
assets: z193.number(),
|
|
5566
|
+
documentationPages: z193.number()
|
|
5572
5567
|
});
|
|
5573
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5574
|
-
brandId:
|
|
5568
|
+
var DTODesignSystemVersionStatsQuery = z193.object({
|
|
5569
|
+
brandId: z193.string().optional()
|
|
5575
5570
|
});
|
|
5576
5571
|
|
|
5577
5572
|
// src/api/dto/design-systems/version.ts
|
|
5578
5573
|
import { z as z206 } from "zod";
|
|
5579
5574
|
|
|
5580
5575
|
// src/api/payloads/design-systems/brand.ts
|
|
5581
|
-
import { z as
|
|
5582
|
-
var DTOCreateBrandInput =
|
|
5583
|
-
persistentId:
|
|
5584
|
-
meta:
|
|
5585
|
-
name:
|
|
5586
|
-
description:
|
|
5576
|
+
import { z as z194 } from "zod";
|
|
5577
|
+
var DTOCreateBrandInput = z194.object({
|
|
5578
|
+
persistentId: z194.string().uuid(),
|
|
5579
|
+
meta: z194.object({
|
|
5580
|
+
name: z194.string(),
|
|
5581
|
+
description: z194.string()
|
|
5587
5582
|
})
|
|
5588
5583
|
});
|
|
5589
5584
|
|
|
5590
5585
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5591
|
-
import { z as
|
|
5586
|
+
import { z as z195 } from "zod";
|
|
5592
5587
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5593
5588
|
id: true,
|
|
5594
5589
|
workspaceId: true,
|
|
@@ -5600,40 +5595,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5600
5595
|
}).extend({
|
|
5601
5596
|
meta: ObjectMeta.partial().optional()
|
|
5602
5597
|
});
|
|
5603
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5598
|
+
var DTODesignSystemUpdateAccessModeInput = z195.object({
|
|
5604
5599
|
accessMode: DesignSystemAccessMode,
|
|
5605
|
-
retain:
|
|
5606
|
-
userIds:
|
|
5607
|
-
inviteIds:
|
|
5600
|
+
retain: z195.object({
|
|
5601
|
+
userIds: z195.string().array(),
|
|
5602
|
+
inviteIds: z195.string().array()
|
|
5608
5603
|
}).optional()
|
|
5609
5604
|
});
|
|
5610
5605
|
|
|
5611
5606
|
// src/api/payloads/design-systems/version.ts
|
|
5612
|
-
import { z as
|
|
5613
|
-
var ObjectMeta2 =
|
|
5614
|
-
name:
|
|
5615
|
-
description:
|
|
5607
|
+
import { z as z196 } from "zod";
|
|
5608
|
+
var ObjectMeta2 = z196.object({
|
|
5609
|
+
name: z196.string().max(150).optional(),
|
|
5610
|
+
description: z196.string().max(2e3).optional()
|
|
5616
5611
|
});
|
|
5617
5612
|
function validateDesignSystemVersion(version) {
|
|
5618
5613
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5619
5614
|
return urlCompliantRegex.test(version);
|
|
5620
5615
|
}
|
|
5621
|
-
var DTOCreateVersionInput =
|
|
5616
|
+
var DTOCreateVersionInput = z196.object({
|
|
5622
5617
|
meta: ObjectMeta2,
|
|
5623
|
-
version:
|
|
5618
|
+
version: z196.string().refine(validateDesignSystemVersion, {
|
|
5624
5619
|
message: "Invalid semantic versioning format"
|
|
5625
5620
|
}),
|
|
5626
|
-
changeLog:
|
|
5621
|
+
changeLog: z196.string().optional()
|
|
5627
5622
|
});
|
|
5628
|
-
var DTOUpdateVersionInput =
|
|
5623
|
+
var DTOUpdateVersionInput = z196.object({
|
|
5629
5624
|
meta: ObjectMeta2,
|
|
5630
|
-
version:
|
|
5625
|
+
version: z196.string(),
|
|
5631
5626
|
// required for PUT, but not editable
|
|
5632
|
-
changeLog:
|
|
5627
|
+
changeLog: z196.string()
|
|
5633
5628
|
});
|
|
5634
5629
|
|
|
5635
5630
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5636
|
-
import { z as
|
|
5631
|
+
import { z as z197 } from "zod";
|
|
5637
5632
|
|
|
5638
5633
|
// src/api/dto/documentation/block-definition.ts
|
|
5639
5634
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5645,18 +5640,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5645
5640
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5646
5641
|
|
|
5647
5642
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5648
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5649
|
-
definitions:
|
|
5643
|
+
var DTOGetBlockDefinitionsOutput = z197.object({
|
|
5644
|
+
definitions: z197.array(DTOPageBlockDefinition)
|
|
5650
5645
|
});
|
|
5651
5646
|
|
|
5652
5647
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5653
|
-
import { z as
|
|
5654
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5655
|
-
environment:
|
|
5648
|
+
import { z as z198 } from "zod";
|
|
5649
|
+
var DTODocumentationPublishTypeQueryParams = z198.object({
|
|
5650
|
+
environment: z198.enum(["Live", "Preview"])
|
|
5656
5651
|
});
|
|
5657
5652
|
|
|
5658
5653
|
// src/api/payloads/export/pipeline.ts
|
|
5659
5654
|
import { z as z200 } from "zod";
|
|
5655
|
+
|
|
5656
|
+
// src/api/dto/export/exporter-property.ts
|
|
5657
|
+
import { z as z199 } from "zod";
|
|
5658
|
+
var PrimitiveValue = z199.number().or(z199.boolean()).or(z199.string());
|
|
5659
|
+
var ArrayValue = z199.array(z199.string());
|
|
5660
|
+
var ObjectValue = z199.record(z199.string());
|
|
5661
|
+
var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
5662
|
+
var DTOExporterPropertyType = z199.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5663
|
+
var PropertyDefinitionBase = z199.object({
|
|
5664
|
+
key: z199.string(),
|
|
5665
|
+
title: z199.string(),
|
|
5666
|
+
description: z199.string()
|
|
5667
|
+
});
|
|
5668
|
+
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
|
|
5669
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5670
|
+
options: z199.string().array(),
|
|
5671
|
+
default: z199.string()
|
|
5672
|
+
});
|
|
5673
|
+
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
|
|
5674
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5675
|
+
default: z199.boolean()
|
|
5676
|
+
});
|
|
5677
|
+
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
|
|
5678
|
+
type: z199.literal(DTOExporterPropertyType.Enum.String),
|
|
5679
|
+
default: z199.string()
|
|
5680
|
+
});
|
|
5681
|
+
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
|
|
5682
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Number),
|
|
5683
|
+
default: z199.number()
|
|
5684
|
+
});
|
|
5685
|
+
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
|
|
5686
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Array),
|
|
5687
|
+
default: ArrayValue
|
|
5688
|
+
});
|
|
5689
|
+
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
|
|
5690
|
+
type: z199.literal(DTOExporterPropertyType.Enum.Object),
|
|
5691
|
+
default: ObjectValue,
|
|
5692
|
+
allowedKeys: z199.object({
|
|
5693
|
+
options: z199.string().array()
|
|
5694
|
+
}).optional(),
|
|
5695
|
+
allowedValues: z199.object({
|
|
5696
|
+
options: z199.string().array()
|
|
5697
|
+
}).optional()
|
|
5698
|
+
});
|
|
5699
|
+
var DTOExporterPropertyDefinition = z199.discriminatedUnion("type", [
|
|
5700
|
+
DTOExporterPropertyDefinitionEnum,
|
|
5701
|
+
DTOExporterPropertyDefinitionBoolean,
|
|
5702
|
+
DTOExporterPropertyDefinitionString,
|
|
5703
|
+
DTOExporterPropertyDefinitionNumber,
|
|
5704
|
+
DTOExporterPropertyDefinitionArray,
|
|
5705
|
+
DTOExporterPropertyDefinitionObject
|
|
5706
|
+
]);
|
|
5707
|
+
var DTOExporterPropertyDefinitionsResponse = z199.object({
|
|
5708
|
+
properties: DTOExporterPropertyDefinition.array()
|
|
5709
|
+
});
|
|
5710
|
+
var DTOExporterPropertyDefinitionValueMap = z199.record(DTOExporterPropertyDefinitionValue);
|
|
5711
|
+
|
|
5712
|
+
// src/api/payloads/export/pipeline.ts
|
|
5660
5713
|
var DTOPipelineCreateBody = z200.object({
|
|
5661
5714
|
name: z200.string(),
|
|
5662
5715
|
exporterId: z200.string(),
|
|
@@ -5666,6 +5719,7 @@ var DTOPipelineCreateBody = z200.object({
|
|
|
5666
5719
|
brandPersistentId: z200.string().optional(),
|
|
5667
5720
|
themePersistentId: z200.string().optional(),
|
|
5668
5721
|
themePersistentIds: z200.string().array().optional(),
|
|
5722
|
+
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5669
5723
|
destination: PipelineDestinationType.optional(),
|
|
5670
5724
|
gitQuery: GitObjectsQuery,
|
|
5671
5725
|
destinations: z200.object({
|
|
@@ -6255,6 +6309,7 @@ var DTOExporter = z225.object({
|
|
|
6255
6309
|
isDefaultDocumentationExporter: z225.boolean(),
|
|
6256
6310
|
iconURL: z225.string().optional(),
|
|
6257
6311
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6312
|
+
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6258
6313
|
customBlocks: PulsarCustomBlock.array(),
|
|
6259
6314
|
blockVariants: z225.record(z225.string(), PulsarContributionVariant.array()),
|
|
6260
6315
|
usesBrands: z225.boolean(),
|
|
@@ -6335,7 +6390,8 @@ var DTOExportJob = z226.object({
|
|
|
6335
6390
|
result: DTOExportJobResult.optional(),
|
|
6336
6391
|
brandPersistentId: z226.string().optional(),
|
|
6337
6392
|
themePersistentId: z226.string().optional(),
|
|
6338
|
-
themePersistentIds: z226.string().array().optional()
|
|
6393
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6394
|
+
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6339
6395
|
});
|
|
6340
6396
|
var DTOExportJobResponse = z226.object({
|
|
6341
6397
|
job: DTOExportJob
|
|
@@ -6359,6 +6415,7 @@ var DTOPipeline = z227.object({
|
|
|
6359
6415
|
brandPersistentId: z227.string().optional(),
|
|
6360
6416
|
themePersistentId: z227.string().optional(),
|
|
6361
6417
|
themePersistentIds: z227.string().array().optional(),
|
|
6418
|
+
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6362
6419
|
...ExportDestinationsMap.shape,
|
|
6363
6420
|
latestJobs: DTOExportJob.array()
|
|
6364
6421
|
});
|
|
@@ -6383,38 +6440,53 @@ var DTOPublishDocumentationResponse = z228.object({
|
|
|
6383
6440
|
job: DTOExportJob
|
|
6384
6441
|
});
|
|
6385
6442
|
|
|
6386
|
-
// src/api/dto/elements/components/figma-component.ts
|
|
6387
|
-
import
|
|
6388
|
-
var
|
|
6389
|
-
var DTOFigmaComponentPropertyMap = z229.record(DTOFigmaComponentProperty);
|
|
6390
|
-
var DTOFigmaComponent = z229.object({
|
|
6443
|
+
// src/api/dto/elements/components/figma-component-group.ts
|
|
6444
|
+
import z229 from "zod";
|
|
6445
|
+
var DTOFigmaComponentGroup = z229.object({
|
|
6391
6446
|
id: z229.string(),
|
|
6392
|
-
persistentId: z229.string(),
|
|
6393
6447
|
designSystemVersionId: z229.string(),
|
|
6448
|
+
persistentId: z229.string(),
|
|
6449
|
+
isRoot: z229.boolean(),
|
|
6394
6450
|
brandId: z229.string(),
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6451
|
+
meta: DTOObjectMeta,
|
|
6452
|
+
childrenIds: z229.string().array()
|
|
6453
|
+
});
|
|
6454
|
+
var DTOFigmaComponentGroupListResponse = z229.object({
|
|
6455
|
+
groups: DTOFigmaComponentGroup.array()
|
|
6456
|
+
});
|
|
6457
|
+
|
|
6458
|
+
// src/api/dto/elements/components/figma-component.ts
|
|
6459
|
+
import { z as z230 } from "zod";
|
|
6460
|
+
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6461
|
+
var DTOFigmaComponentPropertyMap = z230.record(DTOFigmaComponentProperty);
|
|
6462
|
+
var DTOFigmaComponent = z230.object({
|
|
6463
|
+
id: z230.string(),
|
|
6464
|
+
persistentId: z230.string(),
|
|
6465
|
+
designSystemVersionId: z230.string(),
|
|
6466
|
+
brandId: z230.string(),
|
|
6467
|
+
thumbnailUrl: z230.string().optional(),
|
|
6468
|
+
svgUrl: z230.string().optional(),
|
|
6469
|
+
exportProperties: z230.object({
|
|
6470
|
+
isAsset: z230.boolean()
|
|
6399
6471
|
}),
|
|
6400
|
-
createdAt:
|
|
6401
|
-
updatedAt:
|
|
6472
|
+
createdAt: z230.coerce.date(),
|
|
6473
|
+
updatedAt: z230.coerce.date(),
|
|
6402
6474
|
meta: ObjectMeta,
|
|
6403
6475
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6404
|
-
parentComponentPersistentId:
|
|
6405
|
-
childrenPersistentIds:
|
|
6476
|
+
parentComponentPersistentId: z230.string().optional(),
|
|
6477
|
+
childrenPersistentIds: z230.string().array().optional(),
|
|
6406
6478
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6407
|
-
variantPropertyValues:
|
|
6479
|
+
variantPropertyValues: z230.record(z230.string()).optional()
|
|
6408
6480
|
});
|
|
6409
|
-
var DTOFigmaComponentListResponse =
|
|
6481
|
+
var DTOFigmaComponentListResponse = z230.object({
|
|
6410
6482
|
components: DTOFigmaComponent.array()
|
|
6411
6483
|
});
|
|
6412
6484
|
|
|
6413
6485
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6414
|
-
import { z as
|
|
6486
|
+
import { z as z232 } from "zod";
|
|
6415
6487
|
|
|
6416
6488
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6417
|
-
import { z as
|
|
6489
|
+
import { z as z231 } from "zod";
|
|
6418
6490
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6419
6491
|
sortOrder: true,
|
|
6420
6492
|
parentPersistentId: true,
|
|
@@ -6424,13 +6496,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6424
6496
|
data: true,
|
|
6425
6497
|
shortPersistentId: true
|
|
6426
6498
|
}).extend({
|
|
6427
|
-
title:
|
|
6428
|
-
isRoot:
|
|
6429
|
-
childrenIds:
|
|
6499
|
+
title: z231.string(),
|
|
6500
|
+
isRoot: z231.boolean(),
|
|
6501
|
+
childrenIds: z231.array(z231.string()),
|
|
6430
6502
|
groupBehavior: DocumentationGroupBehavior,
|
|
6431
|
-
shortPersistentId:
|
|
6503
|
+
shortPersistentId: z231.string(),
|
|
6432
6504
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6433
|
-
type:
|
|
6505
|
+
type: z231.literal("Group"),
|
|
6434
6506
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6435
6507
|
draftState: DTODocumentationDraftState.optional(),
|
|
6436
6508
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6438,127 +6510,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6438
6510
|
//** An approval state for frontend to utilize. */
|
|
6439
6511
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6440
6512
|
});
|
|
6441
|
-
var DTOCreateDocumentationGroupInput =
|
|
6513
|
+
var DTOCreateDocumentationGroupInput = z231.object({
|
|
6442
6514
|
// Identifier
|
|
6443
|
-
persistentId:
|
|
6515
|
+
persistentId: z231.string(),
|
|
6444
6516
|
// Group properties
|
|
6445
|
-
title:
|
|
6517
|
+
title: z231.string(),
|
|
6446
6518
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6447
6519
|
// Group placement properties
|
|
6448
|
-
afterPersistentId:
|
|
6449
|
-
parentPersistentId:
|
|
6520
|
+
afterPersistentId: z231.string().nullish(),
|
|
6521
|
+
parentPersistentId: z231.string()
|
|
6450
6522
|
});
|
|
6451
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6523
|
+
var DTOUpdateDocumentationGroupInput = z231.object({
|
|
6452
6524
|
// Identifier of the group to update
|
|
6453
|
-
id:
|
|
6525
|
+
id: z231.string(),
|
|
6454
6526
|
// Group properties
|
|
6455
|
-
title:
|
|
6527
|
+
title: z231.string().optional(),
|
|
6456
6528
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6457
6529
|
});
|
|
6458
|
-
var DTOMoveDocumentationGroupInput =
|
|
6530
|
+
var DTOMoveDocumentationGroupInput = z231.object({
|
|
6459
6531
|
// Identifier of the group to update
|
|
6460
|
-
id:
|
|
6532
|
+
id: z231.string(),
|
|
6461
6533
|
// Group placement properties
|
|
6462
|
-
parentPersistentId:
|
|
6463
|
-
afterPersistentId:
|
|
6534
|
+
parentPersistentId: z231.string(),
|
|
6535
|
+
afterPersistentId: z231.string().nullish()
|
|
6464
6536
|
});
|
|
6465
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6537
|
+
var DTODuplicateDocumentationGroupInput = z231.object({
|
|
6466
6538
|
// Identifier of the group to duplicate from
|
|
6467
|
-
id:
|
|
6539
|
+
id: z231.string(),
|
|
6468
6540
|
// New group persistent id
|
|
6469
|
-
persistentId:
|
|
6541
|
+
persistentId: z231.string(),
|
|
6470
6542
|
// Group placement properties
|
|
6471
|
-
afterPersistentId:
|
|
6472
|
-
parentPersistentId:
|
|
6543
|
+
afterPersistentId: z231.string().nullish(),
|
|
6544
|
+
parentPersistentId: z231.string()
|
|
6473
6545
|
});
|
|
6474
|
-
var DTOCreateDocumentationTabInput =
|
|
6546
|
+
var DTOCreateDocumentationTabInput = z231.object({
|
|
6475
6547
|
// New group persistent id
|
|
6476
|
-
persistentId:
|
|
6548
|
+
persistentId: z231.string(),
|
|
6477
6549
|
// If this is page, we will attempt to convert it to tab
|
|
6478
6550
|
// If this is tab group, we will add a new tab to it
|
|
6479
|
-
fromItemPersistentId:
|
|
6480
|
-
tabName:
|
|
6551
|
+
fromItemPersistentId: z231.string(),
|
|
6552
|
+
tabName: z231.string()
|
|
6481
6553
|
});
|
|
6482
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6554
|
+
var DTODeleteDocumentationTabGroupInput = z231.object({
|
|
6483
6555
|
// Deleted group id
|
|
6484
|
-
id:
|
|
6556
|
+
id: z231.string()
|
|
6485
6557
|
});
|
|
6486
|
-
var DTODeleteDocumentationGroupInput =
|
|
6558
|
+
var DTODeleteDocumentationGroupInput = z231.object({
|
|
6487
6559
|
// Identifier
|
|
6488
|
-
id:
|
|
6560
|
+
id: z231.string(),
|
|
6489
6561
|
// Deletion options
|
|
6490
|
-
deleteSubtree:
|
|
6562
|
+
deleteSubtree: z231.boolean().default(false)
|
|
6491
6563
|
});
|
|
6492
6564
|
|
|
6493
6565
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6494
|
-
var SuccessPayload =
|
|
6495
|
-
success:
|
|
6566
|
+
var SuccessPayload = z232.object({
|
|
6567
|
+
success: z232.literal(true)
|
|
6496
6568
|
});
|
|
6497
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6498
|
-
type:
|
|
6569
|
+
var DTODocumentationGroupCreateActionOutputV2 = z232.object({
|
|
6570
|
+
type: z232.literal("DocumentationGroupCreate"),
|
|
6499
6571
|
output: SuccessPayload
|
|
6500
6572
|
});
|
|
6501
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6502
|
-
type:
|
|
6573
|
+
var DTODocumentationTabCreateActionOutputV2 = z232.object({
|
|
6574
|
+
type: z232.literal("DocumentationTabCreate"),
|
|
6503
6575
|
output: SuccessPayload
|
|
6504
6576
|
});
|
|
6505
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6506
|
-
type:
|
|
6577
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z232.object({
|
|
6578
|
+
type: z232.literal("DocumentationGroupUpdate"),
|
|
6507
6579
|
output: SuccessPayload
|
|
6508
6580
|
});
|
|
6509
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6510
|
-
type:
|
|
6581
|
+
var DTODocumentationGroupMoveActionOutputV2 = z232.object({
|
|
6582
|
+
type: z232.literal("DocumentationGroupMove"),
|
|
6511
6583
|
output: SuccessPayload
|
|
6512
6584
|
});
|
|
6513
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6514
|
-
type:
|
|
6585
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z232.object({
|
|
6586
|
+
type: z232.literal("DocumentationGroupDuplicate"),
|
|
6515
6587
|
output: SuccessPayload
|
|
6516
6588
|
});
|
|
6517
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6518
|
-
type:
|
|
6589
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z232.object({
|
|
6590
|
+
type: z232.literal("DocumentationGroupDelete"),
|
|
6519
6591
|
output: SuccessPayload
|
|
6520
6592
|
});
|
|
6521
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6522
|
-
type:
|
|
6593
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z232.object({
|
|
6594
|
+
type: z232.literal("DocumentationTabGroupDelete"),
|
|
6523
6595
|
output: SuccessPayload
|
|
6524
6596
|
});
|
|
6525
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6526
|
-
type:
|
|
6597
|
+
var DTODocumentationGroupCreateActionInputV2 = z232.object({
|
|
6598
|
+
type: z232.literal("DocumentationGroupCreate"),
|
|
6527
6599
|
input: DTOCreateDocumentationGroupInput
|
|
6528
6600
|
});
|
|
6529
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6530
|
-
type:
|
|
6601
|
+
var DTODocumentationTabCreateActionInputV2 = z232.object({
|
|
6602
|
+
type: z232.literal("DocumentationTabCreate"),
|
|
6531
6603
|
input: DTOCreateDocumentationTabInput
|
|
6532
6604
|
});
|
|
6533
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6534
|
-
type:
|
|
6605
|
+
var DTODocumentationGroupUpdateActionInputV2 = z232.object({
|
|
6606
|
+
type: z232.literal("DocumentationGroupUpdate"),
|
|
6535
6607
|
input: DTOUpdateDocumentationGroupInput
|
|
6536
6608
|
});
|
|
6537
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6538
|
-
type:
|
|
6609
|
+
var DTODocumentationGroupMoveActionInputV2 = z232.object({
|
|
6610
|
+
type: z232.literal("DocumentationGroupMove"),
|
|
6539
6611
|
input: DTOMoveDocumentationGroupInput
|
|
6540
6612
|
});
|
|
6541
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6542
|
-
type:
|
|
6613
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z232.object({
|
|
6614
|
+
type: z232.literal("DocumentationGroupDuplicate"),
|
|
6543
6615
|
input: DTODuplicateDocumentationGroupInput
|
|
6544
6616
|
});
|
|
6545
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6546
|
-
type:
|
|
6617
|
+
var DTODocumentationGroupDeleteActionInputV2 = z232.object({
|
|
6618
|
+
type: z232.literal("DocumentationGroupDelete"),
|
|
6547
6619
|
input: DTODeleteDocumentationGroupInput
|
|
6548
6620
|
});
|
|
6549
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6550
|
-
type:
|
|
6621
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z232.object({
|
|
6622
|
+
type: z232.literal("DocumentationTabGroupDelete"),
|
|
6551
6623
|
input: DTODeleteDocumentationTabGroupInput
|
|
6552
6624
|
});
|
|
6553
6625
|
|
|
6554
6626
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6555
|
-
import { z as
|
|
6627
|
+
import { z as z234 } from "zod";
|
|
6556
6628
|
|
|
6557
6629
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6558
|
-
import { z as
|
|
6559
|
-
var DocumentationColorV1 =
|
|
6560
|
-
aliasTo:
|
|
6561
|
-
value:
|
|
6630
|
+
import { z as z233 } from "zod";
|
|
6631
|
+
var DocumentationColorV1 = z233.object({
|
|
6632
|
+
aliasTo: z233.string().optional(),
|
|
6633
|
+
value: z233.string().optional()
|
|
6562
6634
|
});
|
|
6563
6635
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6564
6636
|
foregroundColor: true,
|
|
@@ -6567,10 +6639,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6567
6639
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6568
6640
|
backgroundColor: DocumentationColorV1.optional()
|
|
6569
6641
|
});
|
|
6570
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6571
|
-
showSidebar:
|
|
6572
|
-
isPrivate:
|
|
6573
|
-
isHidden:
|
|
6642
|
+
var DTODocumentationItemConfigurationV1 = z233.object({
|
|
6643
|
+
showSidebar: z233.boolean(),
|
|
6644
|
+
isPrivate: z233.boolean(),
|
|
6645
|
+
isHidden: z233.boolean(),
|
|
6574
6646
|
header: DTODocumentationItemHeaderV1
|
|
6575
6647
|
});
|
|
6576
6648
|
|
|
@@ -6584,27 +6656,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6584
6656
|
data: true,
|
|
6585
6657
|
shortPersistentId: true
|
|
6586
6658
|
}).extend({
|
|
6587
|
-
title:
|
|
6588
|
-
isRoot:
|
|
6589
|
-
childrenIds:
|
|
6659
|
+
title: z234.string(),
|
|
6660
|
+
isRoot: z234.boolean(),
|
|
6661
|
+
childrenIds: z234.array(z234.string()),
|
|
6590
6662
|
groupBehavior: DocumentationGroupBehavior,
|
|
6591
|
-
shortPersistentId:
|
|
6592
|
-
type:
|
|
6663
|
+
shortPersistentId: z234.string(),
|
|
6664
|
+
type: z234.literal("Group")
|
|
6593
6665
|
});
|
|
6594
6666
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6595
6667
|
configuration: DTODocumentationItemConfigurationV1
|
|
6596
6668
|
});
|
|
6597
6669
|
|
|
6598
6670
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6599
|
-
import { z as
|
|
6600
|
-
var DTODocumentationHierarchyV2 =
|
|
6601
|
-
pages:
|
|
6671
|
+
import { z as z235 } from "zod";
|
|
6672
|
+
var DTODocumentationHierarchyV2 = z235.object({
|
|
6673
|
+
pages: z235.array(
|
|
6602
6674
|
DTODocumentationPageV2.extend({
|
|
6603
6675
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6604
6676
|
draftState: DTODocumentationDraftState.optional()
|
|
6605
6677
|
})
|
|
6606
6678
|
),
|
|
6607
|
-
groups:
|
|
6679
|
+
groups: z235.array(
|
|
6608
6680
|
DTODocumentationGroupV2.extend({
|
|
6609
6681
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6610
6682
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6613,84 +6685,84 @@ var DTODocumentationHierarchyV2 = z234.object({
|
|
|
6613
6685
|
});
|
|
6614
6686
|
|
|
6615
6687
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6616
|
-
import { z as
|
|
6617
|
-
var SuccessPayload2 =
|
|
6618
|
-
success:
|
|
6688
|
+
import { z as z236 } from "zod";
|
|
6689
|
+
var SuccessPayload2 = z236.object({
|
|
6690
|
+
success: z236.literal(true)
|
|
6619
6691
|
});
|
|
6620
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6621
|
-
type:
|
|
6692
|
+
var DTODocumentationPageCreateActionOutputV2 = z236.object({
|
|
6693
|
+
type: z236.literal("DocumentationPageCreate"),
|
|
6622
6694
|
output: SuccessPayload2
|
|
6623
6695
|
});
|
|
6624
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6625
|
-
type:
|
|
6696
|
+
var DTODocumentationPageUpdateActionOutputV2 = z236.object({
|
|
6697
|
+
type: z236.literal("DocumentationPageUpdate"),
|
|
6626
6698
|
output: SuccessPayload2
|
|
6627
6699
|
});
|
|
6628
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6629
|
-
type:
|
|
6700
|
+
var DTODocumentationPageMoveActionOutputV2 = z236.object({
|
|
6701
|
+
type: z236.literal("DocumentationPageMove"),
|
|
6630
6702
|
output: SuccessPayload2
|
|
6631
6703
|
});
|
|
6632
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6633
|
-
type:
|
|
6704
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z236.object({
|
|
6705
|
+
type: z236.literal("DocumentationPageDuplicate"),
|
|
6634
6706
|
output: SuccessPayload2
|
|
6635
6707
|
});
|
|
6636
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6637
|
-
type:
|
|
6708
|
+
var DTODocumentationPageDeleteActionOutputV2 = z236.object({
|
|
6709
|
+
type: z236.literal("DocumentationPageDelete"),
|
|
6638
6710
|
output: SuccessPayload2
|
|
6639
6711
|
});
|
|
6640
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6641
|
-
type:
|
|
6712
|
+
var DTODocumentationPageRestoreActionOutput = z236.object({
|
|
6713
|
+
type: z236.literal("DocumentationPageRestore"),
|
|
6642
6714
|
output: SuccessPayload2
|
|
6643
6715
|
});
|
|
6644
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6645
|
-
type:
|
|
6716
|
+
var DTODocumentationGroupRestoreActionOutput = z236.object({
|
|
6717
|
+
type: z236.literal("DocumentationGroupRestore"),
|
|
6646
6718
|
output: SuccessPayload2
|
|
6647
6719
|
});
|
|
6648
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6649
|
-
type:
|
|
6720
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z236.object({
|
|
6721
|
+
type: z236.literal("DocumentationPageApprovalStateChange"),
|
|
6650
6722
|
output: SuccessPayload2
|
|
6651
6723
|
});
|
|
6652
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6653
|
-
type:
|
|
6724
|
+
var DTODocumentationPageCreateActionInputV2 = z236.object({
|
|
6725
|
+
type: z236.literal("DocumentationPageCreate"),
|
|
6654
6726
|
input: DTOCreateDocumentationPageInputV2
|
|
6655
6727
|
});
|
|
6656
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6657
|
-
type:
|
|
6728
|
+
var DTODocumentationPageUpdateActionInputV2 = z236.object({
|
|
6729
|
+
type: z236.literal("DocumentationPageUpdate"),
|
|
6658
6730
|
input: DTOUpdateDocumentationPageInputV2
|
|
6659
6731
|
});
|
|
6660
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6661
|
-
type:
|
|
6732
|
+
var DTODocumentationPageMoveActionInputV2 = z236.object({
|
|
6733
|
+
type: z236.literal("DocumentationPageMove"),
|
|
6662
6734
|
input: DTOMoveDocumentationPageInputV2
|
|
6663
6735
|
});
|
|
6664
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6665
|
-
type:
|
|
6736
|
+
var DTODocumentationPageDuplicateActionInputV2 = z236.object({
|
|
6737
|
+
type: z236.literal("DocumentationPageDuplicate"),
|
|
6666
6738
|
input: DTODuplicateDocumentationPageInputV2
|
|
6667
6739
|
});
|
|
6668
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6669
|
-
type:
|
|
6740
|
+
var DTODocumentationPageDeleteActionInputV2 = z236.object({
|
|
6741
|
+
type: z236.literal("DocumentationPageDelete"),
|
|
6670
6742
|
input: DTODeleteDocumentationPageInputV2
|
|
6671
6743
|
});
|
|
6672
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6673
|
-
type:
|
|
6744
|
+
var DTODocumentationPageRestoreActionInput = z236.object({
|
|
6745
|
+
type: z236.literal("DocumentationPageRestore"),
|
|
6674
6746
|
input: DTORestoreDocumentationPageInput
|
|
6675
6747
|
});
|
|
6676
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6677
|
-
type:
|
|
6748
|
+
var DTODocumentationGroupRestoreActionInput = z236.object({
|
|
6749
|
+
type: z236.literal("DocumentationGroupRestore"),
|
|
6678
6750
|
input: DTORestoreDocumentationGroupInput
|
|
6679
6751
|
});
|
|
6680
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6681
|
-
type:
|
|
6752
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z236.object({
|
|
6753
|
+
type: z236.literal("DocumentationPageApprovalStateChange"),
|
|
6682
6754
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6683
6755
|
});
|
|
6684
6756
|
|
|
6685
6757
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6686
|
-
import { z as
|
|
6758
|
+
import { z as z237 } from "zod";
|
|
6687
6759
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6688
|
-
var DTODocumentationPageContentGetResponse =
|
|
6760
|
+
var DTODocumentationPageContentGetResponse = z237.object({
|
|
6689
6761
|
pageContent: DTODocumentationPageContent
|
|
6690
6762
|
});
|
|
6691
6763
|
|
|
6692
6764
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6693
|
-
import { z as
|
|
6765
|
+
import { z as z238 } from "zod";
|
|
6694
6766
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6695
6767
|
data: true,
|
|
6696
6768
|
meta: true,
|
|
@@ -6698,63 +6770,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6698
6770
|
sortOrder: true
|
|
6699
6771
|
}).extend({
|
|
6700
6772
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6701
|
-
blocks:
|
|
6702
|
-
title:
|
|
6703
|
-
path:
|
|
6773
|
+
blocks: z238.array(PageBlockV1),
|
|
6774
|
+
title: z238.string(),
|
|
6775
|
+
path: z238.string()
|
|
6704
6776
|
});
|
|
6705
6777
|
|
|
6706
6778
|
// src/api/dto/elements/documentation/structure.ts
|
|
6707
|
-
import { z as
|
|
6708
|
-
var DTODocumentationStructureItemType =
|
|
6709
|
-
var DTODocumentationStructureItemBase =
|
|
6779
|
+
import { z as z239 } from "zod";
|
|
6780
|
+
var DTODocumentationStructureItemType = z239.enum(["Group", "Page"]);
|
|
6781
|
+
var DTODocumentationStructureItemBase = z239.object({
|
|
6710
6782
|
type: DTODocumentationStructureItemType,
|
|
6711
|
-
id:
|
|
6712
|
-
designSystemVersionId:
|
|
6713
|
-
shortPersistentId:
|
|
6714
|
-
persistentId:
|
|
6715
|
-
title:
|
|
6716
|
-
createdAt:
|
|
6717
|
-
updatedAt:
|
|
6783
|
+
id: z239.string(),
|
|
6784
|
+
designSystemVersionId: z239.string(),
|
|
6785
|
+
shortPersistentId: z239.string(),
|
|
6786
|
+
persistentId: z239.string(),
|
|
6787
|
+
title: z239.string(),
|
|
6788
|
+
createdAt: z239.coerce.date(),
|
|
6789
|
+
updatedAt: z239.coerce.date()
|
|
6718
6790
|
});
|
|
6719
6791
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
6720
|
-
type:
|
|
6721
|
-
groupBehavior:
|
|
6722
|
-
childrenIds:
|
|
6723
|
-
isRoot:
|
|
6792
|
+
type: z239.literal(DTODocumentationStructureItemType.enum.Group),
|
|
6793
|
+
groupBehavior: z239.string(),
|
|
6794
|
+
childrenIds: z239.string().array(),
|
|
6795
|
+
isRoot: z239.boolean()
|
|
6724
6796
|
});
|
|
6725
6797
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
6726
|
-
type:
|
|
6727
|
-
path:
|
|
6798
|
+
type: z239.literal(DTODocumentationStructureItemType.enum.Page),
|
|
6799
|
+
path: z239.string()
|
|
6728
6800
|
});
|
|
6729
|
-
var DTODocumentationStructureItem =
|
|
6801
|
+
var DTODocumentationStructureItem = z239.discriminatedUnion("type", [
|
|
6730
6802
|
DTODocumentationStructureGroupItem,
|
|
6731
6803
|
DTODocumentationStructurePageItem
|
|
6732
6804
|
]);
|
|
6733
|
-
var DTODocumentationStructure =
|
|
6734
|
-
items:
|
|
6805
|
+
var DTODocumentationStructure = z239.object({
|
|
6806
|
+
items: z239.array(DTODocumentationStructureItem)
|
|
6735
6807
|
});
|
|
6736
6808
|
|
|
6737
6809
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6738
|
-
import { z as
|
|
6810
|
+
import { z as z240 } from "zod";
|
|
6739
6811
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6740
|
-
var DTOFigmaNodeOrigin =
|
|
6741
|
-
sourceId:
|
|
6742
|
-
fileId:
|
|
6743
|
-
parentName:
|
|
6812
|
+
var DTOFigmaNodeOrigin = z240.object({
|
|
6813
|
+
sourceId: z240.string(),
|
|
6814
|
+
fileId: z240.string().optional(),
|
|
6815
|
+
parentName: z240.string().optional()
|
|
6744
6816
|
});
|
|
6745
|
-
var DTOFigmaNodeData =
|
|
6817
|
+
var DTOFigmaNodeData = z240.object({
|
|
6746
6818
|
// Id of the node in the Figma file
|
|
6747
|
-
figmaNodeId:
|
|
6819
|
+
figmaNodeId: z240.string(),
|
|
6748
6820
|
// Validity
|
|
6749
|
-
isValid:
|
|
6821
|
+
isValid: z240.boolean(),
|
|
6750
6822
|
// Asset data
|
|
6751
|
-
assetId:
|
|
6752
|
-
assetUrl:
|
|
6823
|
+
assetId: z240.string(),
|
|
6824
|
+
assetUrl: z240.string(),
|
|
6753
6825
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6754
6826
|
// Asset metadata
|
|
6755
|
-
assetScale:
|
|
6756
|
-
assetWidth:
|
|
6757
|
-
assetHeight:
|
|
6827
|
+
assetScale: z240.number(),
|
|
6828
|
+
assetWidth: z240.number().optional(),
|
|
6829
|
+
assetHeight: z240.number().optional()
|
|
6758
6830
|
});
|
|
6759
6831
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6760
6832
|
data: true,
|
|
@@ -6763,15 +6835,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6763
6835
|
data: DTOFigmaNodeData,
|
|
6764
6836
|
origin: DTOFigmaNodeOrigin
|
|
6765
6837
|
});
|
|
6766
|
-
var DTOFigmaNodeRenderInput =
|
|
6838
|
+
var DTOFigmaNodeRenderInput = z240.object({
|
|
6767
6839
|
/**
|
|
6768
6840
|
* Id of a design system's data source representing a linked Figma file
|
|
6769
6841
|
*/
|
|
6770
|
-
sourceId:
|
|
6842
|
+
sourceId: z240.string(),
|
|
6771
6843
|
/**
|
|
6772
6844
|
* Id of a node within the Figma file
|
|
6773
6845
|
*/
|
|
6774
|
-
figmaFileNodeId:
|
|
6846
|
+
figmaFileNodeId: z240.string(),
|
|
6775
6847
|
/**
|
|
6776
6848
|
* Format in which the node must be rendered, png by default.
|
|
6777
6849
|
*/
|
|
@@ -6779,84 +6851,97 @@ var DTOFigmaNodeRenderInput = z239.object({
|
|
|
6779
6851
|
});
|
|
6780
6852
|
|
|
6781
6853
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6782
|
-
import { z as
|
|
6783
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6784
|
-
type:
|
|
6785
|
-
figmaNodes:
|
|
6854
|
+
import { z as z241 } from "zod";
|
|
6855
|
+
var DTOFigmaNodeRenderActionOutput = z241.object({
|
|
6856
|
+
type: z241.literal("FigmaNodeRender"),
|
|
6857
|
+
figmaNodes: z241.array(DTOFigmaNode)
|
|
6786
6858
|
});
|
|
6787
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6788
|
-
type:
|
|
6859
|
+
var DTOFigmaNodeRenderActionInput = z241.object({
|
|
6860
|
+
type: z241.literal("FigmaNodeRender"),
|
|
6789
6861
|
input: DTOFigmaNodeRenderInput.array()
|
|
6790
6862
|
});
|
|
6791
6863
|
|
|
6864
|
+
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
6865
|
+
import { z as z242 } from "zod";
|
|
6866
|
+
var DTOFrameNodeStructure = z242.object({
|
|
6867
|
+
id: z242.string(),
|
|
6868
|
+
persistentId: z242.string(),
|
|
6869
|
+
designSystemVersionId: z242.string(),
|
|
6870
|
+
origin: FigmaFileStructureOrigin,
|
|
6871
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
6872
|
+
});
|
|
6873
|
+
var DTOFrameNodeStructureListResponse = z242.object({
|
|
6874
|
+
structures: DTOFrameNodeStructure.array()
|
|
6875
|
+
});
|
|
6876
|
+
|
|
6792
6877
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6793
|
-
import { z as
|
|
6878
|
+
import { z as z243 } from "zod";
|
|
6794
6879
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6795
|
-
var DTOElementPropertyDefinitionOption =
|
|
6796
|
-
id:
|
|
6797
|
-
name:
|
|
6880
|
+
var DTOElementPropertyDefinitionOption = z243.object({
|
|
6881
|
+
id: z243.string(),
|
|
6882
|
+
name: z243.string(),
|
|
6798
6883
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6799
6884
|
});
|
|
6800
|
-
var DTOElementPropertyDefinition =
|
|
6801
|
-
id:
|
|
6802
|
-
designSystemVersionId:
|
|
6885
|
+
var DTOElementPropertyDefinition = z243.object({
|
|
6886
|
+
id: z243.string(),
|
|
6887
|
+
designSystemVersionId: z243.string(),
|
|
6803
6888
|
meta: DTOObjectMeta,
|
|
6804
|
-
persistentId:
|
|
6889
|
+
persistentId: z243.string(),
|
|
6805
6890
|
type: ElementPropertyTypeSchema,
|
|
6806
6891
|
targetElementType: ElementPropertyTargetType,
|
|
6807
|
-
codeName:
|
|
6808
|
-
options: nullishToOptional(
|
|
6892
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2),
|
|
6893
|
+
options: nullishToOptional(z243.array(DTOElementPropertyDefinitionOption)),
|
|
6809
6894
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6810
|
-
isImmutable:
|
|
6895
|
+
isImmutable: z243.boolean(),
|
|
6811
6896
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
6812
6897
|
});
|
|
6813
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6814
|
-
definitions:
|
|
6898
|
+
var DTOElementPropertyDefinitionListResponse = z243.object({
|
|
6899
|
+
definitions: z243.array(DTOElementPropertyDefinition)
|
|
6815
6900
|
});
|
|
6816
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6901
|
+
var DTOElementPropertyDefinitionResponse = z243.object({
|
|
6817
6902
|
definition: DTOElementPropertyDefinition
|
|
6818
6903
|
});
|
|
6819
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
6904
|
+
var DTOElementPropertyDefinitionCreatePayload = z243.object({
|
|
6820
6905
|
meta: DTOObjectMeta,
|
|
6821
|
-
persistentId:
|
|
6906
|
+
persistentId: z243.string(),
|
|
6822
6907
|
type: ElementPropertyTypeSchema,
|
|
6823
6908
|
targetElementType: ElementPropertyTargetType,
|
|
6824
|
-
codeName:
|
|
6825
|
-
options: nullishToOptional(
|
|
6909
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2),
|
|
6910
|
+
options: nullishToOptional(z243.array(DTOElementPropertyDefinitionOption)),
|
|
6826
6911
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6827
|
-
columnWidth:
|
|
6912
|
+
columnWidth: z243.number().max(1024).optional()
|
|
6828
6913
|
});
|
|
6829
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6914
|
+
var DTOElementPropertyDefinitionUpdatePayload = z243.object({
|
|
6830
6915
|
meta: DTOObjectMeta.optional(),
|
|
6831
|
-
codeName:
|
|
6832
|
-
options:
|
|
6916
|
+
codeName: z243.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6917
|
+
options: z243.array(DTOElementPropertyDefinitionOption).optional()
|
|
6833
6918
|
});
|
|
6834
6919
|
|
|
6835
6920
|
// src/api/dto/elements/properties/property-values.ts
|
|
6836
|
-
import { z as
|
|
6837
|
-
var DTOElementPropertyValue =
|
|
6838
|
-
id:
|
|
6839
|
-
designSystemVersionId:
|
|
6840
|
-
definitionId:
|
|
6841
|
-
targetElementId:
|
|
6842
|
-
value:
|
|
6843
|
-
valuePreview:
|
|
6844
|
-
});
|
|
6845
|
-
var DTOElementPropertyValueListResponse =
|
|
6846
|
-
values:
|
|
6847
|
-
});
|
|
6848
|
-
var DTOElementPropertyValueResponse =
|
|
6921
|
+
import { z as z244 } from "zod";
|
|
6922
|
+
var DTOElementPropertyValue = z244.object({
|
|
6923
|
+
id: z244.string(),
|
|
6924
|
+
designSystemVersionId: z244.string(),
|
|
6925
|
+
definitionId: z244.string(),
|
|
6926
|
+
targetElementId: z244.string(),
|
|
6927
|
+
value: z244.union([z244.string(), z244.number(), z244.boolean()]).optional(),
|
|
6928
|
+
valuePreview: z244.string().optional()
|
|
6929
|
+
});
|
|
6930
|
+
var DTOElementPropertyValueListResponse = z244.object({
|
|
6931
|
+
values: z244.array(DTOElementPropertyValue)
|
|
6932
|
+
});
|
|
6933
|
+
var DTOElementPropertyValueResponse = z244.object({
|
|
6849
6934
|
value: DTOElementPropertyValue
|
|
6850
6935
|
});
|
|
6851
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6852
|
-
definitionId:
|
|
6853
|
-
targetElementId:
|
|
6854
|
-
value:
|
|
6936
|
+
var DTOElementPropertyValueUpsertPaylod = z244.object({
|
|
6937
|
+
definitionId: z244.string(),
|
|
6938
|
+
targetElementId: z244.string(),
|
|
6939
|
+
value: z244.string().or(z244.number()).or(z244.boolean())
|
|
6855
6940
|
});
|
|
6856
6941
|
|
|
6857
6942
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6858
|
-
import { z as
|
|
6859
|
-
var DTOElementActionOutput =
|
|
6943
|
+
import { z as z245 } from "zod";
|
|
6944
|
+
var DTOElementActionOutput = z245.discriminatedUnion("type", [
|
|
6860
6945
|
// Documentation pages
|
|
6861
6946
|
DTODocumentationPageCreateActionOutputV2,
|
|
6862
6947
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6879,7 +6964,7 @@ var DTOElementActionOutput = z243.discriminatedUnion("type", [
|
|
|
6879
6964
|
// Approvals
|
|
6880
6965
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6881
6966
|
]);
|
|
6882
|
-
var DTOElementActionInput =
|
|
6967
|
+
var DTOElementActionInput = z245.discriminatedUnion("type", [
|
|
6883
6968
|
// Documentation pages
|
|
6884
6969
|
DTODocumentationPageCreateActionInputV2,
|
|
6885
6970
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6904,94 +6989,163 @@ var DTOElementActionInput = z243.discriminatedUnion("type", [
|
|
|
6904
6989
|
]);
|
|
6905
6990
|
|
|
6906
6991
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6907
|
-
import { z as
|
|
6908
|
-
var DTOElementsGetTypeFilter =
|
|
6909
|
-
var DTOElementsGetQuerySchema =
|
|
6910
|
-
types:
|
|
6992
|
+
import { z as z246 } from "zod";
|
|
6993
|
+
var DTOElementsGetTypeFilter = z246.enum(["FigmaNode"]);
|
|
6994
|
+
var DTOElementsGetQuerySchema = z246.object({
|
|
6995
|
+
types: z246.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6911
6996
|
});
|
|
6912
|
-
var DTOElementsGetOutput =
|
|
6913
|
-
figmaNodes:
|
|
6997
|
+
var DTOElementsGetOutput = z246.object({
|
|
6998
|
+
figmaNodes: z246.array(DTOFigmaNode).optional()
|
|
6914
6999
|
});
|
|
6915
7000
|
|
|
6916
7001
|
// src/api/dto/figma-components/assets/download.ts
|
|
6917
|
-
import { z as
|
|
6918
|
-
var DTOAssetRenderConfiguration =
|
|
6919
|
-
prefix:
|
|
6920
|
-
suffix:
|
|
6921
|
-
scale:
|
|
6922
|
-
format:
|
|
6923
|
-
});
|
|
6924
|
-
var DTORenderedAssetFile =
|
|
6925
|
-
assetId:
|
|
6926
|
-
fileName:
|
|
6927
|
-
sourceUrl:
|
|
7002
|
+
import { z as z247 } from "zod";
|
|
7003
|
+
var DTOAssetRenderConfiguration = z247.object({
|
|
7004
|
+
prefix: z247.string().optional(),
|
|
7005
|
+
suffix: z247.string().optional(),
|
|
7006
|
+
scale: z247.enum(["x1", "x2", "x3", "x4"]),
|
|
7007
|
+
format: z247.enum(["png", "pdf", "svg"])
|
|
7008
|
+
});
|
|
7009
|
+
var DTORenderedAssetFile = z247.object({
|
|
7010
|
+
assetId: z247.string(),
|
|
7011
|
+
fileName: z247.string(),
|
|
7012
|
+
sourceUrl: z247.string(),
|
|
6928
7013
|
settings: DTOAssetRenderConfiguration,
|
|
6929
|
-
originalName:
|
|
7014
|
+
originalName: z247.string()
|
|
6930
7015
|
});
|
|
6931
|
-
var DTODownloadAssetsRequest =
|
|
6932
|
-
persistentIds:
|
|
7016
|
+
var DTODownloadAssetsRequest = z247.object({
|
|
7017
|
+
persistentIds: z247.array(z247.string().uuid()).optional(),
|
|
6933
7018
|
settings: DTOAssetRenderConfiguration.array()
|
|
6934
7019
|
});
|
|
6935
|
-
var DTODownloadAssetsResponse =
|
|
7020
|
+
var DTODownloadAssetsResponse = z247.object({
|
|
6936
7021
|
items: DTORenderedAssetFile.array()
|
|
6937
7022
|
});
|
|
6938
7023
|
|
|
6939
7024
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6940
|
-
import { z as
|
|
6941
|
-
var DTOLiveblocksAuthResponse =
|
|
6942
|
-
token:
|
|
7025
|
+
import { z as z248 } from "zod";
|
|
7026
|
+
var DTOLiveblocksAuthResponse = z248.object({
|
|
7027
|
+
token: z248.string()
|
|
6943
7028
|
});
|
|
6944
7029
|
|
|
6945
7030
|
// src/api/dto/themes/override.ts
|
|
6946
|
-
import { z as
|
|
7031
|
+
import { z as z249 } from "zod";
|
|
6947
7032
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
6948
|
-
|
|
6949
|
-
tokenPersistentId:
|
|
7033
|
+
z249.object({
|
|
7034
|
+
tokenPersistentId: z249.string(),
|
|
6950
7035
|
origin: ThemeOverrideOrigin.optional()
|
|
6951
7036
|
})
|
|
6952
7037
|
);
|
|
6953
7038
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
6954
|
-
|
|
6955
|
-
tokenPersistentId:
|
|
7039
|
+
z249.object({
|
|
7040
|
+
tokenPersistentId: z249.string()
|
|
6956
7041
|
})
|
|
6957
7042
|
);
|
|
6958
7043
|
|
|
6959
7044
|
// src/api/dto/themes/theme.ts
|
|
6960
|
-
import { z as
|
|
6961
|
-
var DTOTheme =
|
|
6962
|
-
id:
|
|
6963
|
-
persistentId:
|
|
6964
|
-
designSystemVersionId:
|
|
6965
|
-
brandId:
|
|
7045
|
+
import { z as z250 } from "zod";
|
|
7046
|
+
var DTOTheme = z250.object({
|
|
7047
|
+
id: z250.string(),
|
|
7048
|
+
persistentId: z250.string(),
|
|
7049
|
+
designSystemVersionId: z250.string(),
|
|
7050
|
+
brandId: z250.string(),
|
|
6966
7051
|
meta: ObjectMeta,
|
|
6967
|
-
codeName:
|
|
7052
|
+
codeName: z250.string(),
|
|
6968
7053
|
overrides: DTOThemeOverride.array()
|
|
6969
7054
|
});
|
|
6970
|
-
var DTOThemeResponse =
|
|
7055
|
+
var DTOThemeResponse = z250.object({
|
|
6971
7056
|
theme: DTOTheme
|
|
6972
7057
|
});
|
|
6973
|
-
var DTOThemeListResponse =
|
|
7058
|
+
var DTOThemeListResponse = z250.object({
|
|
6974
7059
|
themes: DTOTheme.array()
|
|
6975
7060
|
});
|
|
6976
|
-
var DTOThemeCreatePayload =
|
|
7061
|
+
var DTOThemeCreatePayload = z250.object({
|
|
6977
7062
|
meta: ObjectMeta,
|
|
6978
|
-
persistentId:
|
|
6979
|
-
brandId:
|
|
6980
|
-
codeName:
|
|
7063
|
+
persistentId: z250.string(),
|
|
7064
|
+
brandId: z250.string(),
|
|
7065
|
+
codeName: z250.string(),
|
|
6981
7066
|
overrides: DTOThemeOverride.array()
|
|
6982
7067
|
});
|
|
6983
7068
|
|
|
7069
|
+
// src/utils/hash.ts
|
|
7070
|
+
function hash(input) {
|
|
7071
|
+
return farmhash(input).toString(16);
|
|
7072
|
+
}
|
|
7073
|
+
function farmhash(input) {
|
|
7074
|
+
const seed = 2654435769;
|
|
7075
|
+
let hash2 = seed;
|
|
7076
|
+
for (let i = 0; i < input.length; i++) {
|
|
7077
|
+
const charCode = input.charCodeAt(i);
|
|
7078
|
+
hash2 ^= charCode;
|
|
7079
|
+
hash2 = Math.imul(hash2, 1540483477);
|
|
7080
|
+
hash2 ^= hash2 >>> 15;
|
|
7081
|
+
}
|
|
7082
|
+
hash2 = Math.imul(hash2, 1540483477);
|
|
7083
|
+
hash2 ^= hash2 >>> 13;
|
|
7084
|
+
hash2 = Math.imul(hash2, 1540483477);
|
|
7085
|
+
hash2 ^= hash2 >>> 15;
|
|
7086
|
+
return hash2 >>> 0;
|
|
7087
|
+
}
|
|
7088
|
+
function prepareObject(obj) {
|
|
7089
|
+
if (obj === null || typeof obj !== "object") {
|
|
7090
|
+
return obj;
|
|
7091
|
+
}
|
|
7092
|
+
if (Array.isArray(obj)) {
|
|
7093
|
+
return obj.map(prepareObject);
|
|
7094
|
+
}
|
|
7095
|
+
const sortedObj = {};
|
|
7096
|
+
for (const key of Object.keys(obj).sort()) {
|
|
7097
|
+
if (obj[key] === null || obj[key] === void 0) {
|
|
7098
|
+
continue;
|
|
7099
|
+
}
|
|
7100
|
+
sortedObj[key] = prepareObject(obj[key]);
|
|
7101
|
+
}
|
|
7102
|
+
return sortedObj;
|
|
7103
|
+
}
|
|
7104
|
+
function generateHash(input, debug = false) {
|
|
7105
|
+
if (typeof input === "object") {
|
|
7106
|
+
const sanitized = JSON.stringify(prepareObject(input));
|
|
7107
|
+
if (debug) {
|
|
7108
|
+
console.log("Hashing sanitized string:");
|
|
7109
|
+
console.log(sanitized);
|
|
7110
|
+
}
|
|
7111
|
+
return hash(sanitized);
|
|
7112
|
+
} else {
|
|
7113
|
+
try {
|
|
7114
|
+
const obj = JSON.parse(input);
|
|
7115
|
+
const sanitized = JSON.stringify(prepareObject(obj));
|
|
7116
|
+
if (debug) {
|
|
7117
|
+
console.log("Hashing sanitized string:");
|
|
7118
|
+
console.log(sanitized);
|
|
7119
|
+
}
|
|
7120
|
+
return hash(sanitized);
|
|
7121
|
+
} catch {
|
|
7122
|
+
return hash(input);
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
}
|
|
7126
|
+
|
|
7127
|
+
// src/utils/query.ts
|
|
7128
|
+
function serializeQuery(query) {
|
|
7129
|
+
const queryWithStrings = Object.fromEntries(
|
|
7130
|
+
Object.entries(query).filter((e) => !!e[1]).map(([k, v]) => {
|
|
7131
|
+
if (Array.isArray(v)) {
|
|
7132
|
+
return [k, v.join(", ")];
|
|
7133
|
+
} else {
|
|
7134
|
+
return [k, v.toString()];
|
|
7135
|
+
}
|
|
7136
|
+
})
|
|
7137
|
+
);
|
|
7138
|
+
return new URLSearchParams(queryWithStrings);
|
|
7139
|
+
}
|
|
7140
|
+
|
|
6984
7141
|
// src/api/endpoints/codegen/exporters.ts
|
|
6985
7142
|
var ExportersEndpoint = class {
|
|
6986
7143
|
constructor(requestExecutor) {
|
|
6987
7144
|
this.requestExecutor = requestExecutor;
|
|
6988
7145
|
}
|
|
6989
7146
|
list(workspaceId, query) {
|
|
6990
|
-
const queryWithStrings = Object.fromEntries(
|
|
6991
|
-
Object.entries(query).filter((e) => !!e[1]).map(([k, v]) => [k, v.toString()])
|
|
6992
|
-
);
|
|
6993
7147
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
|
|
6994
|
-
query:
|
|
7148
|
+
query: serializeQuery(query)
|
|
6995
7149
|
});
|
|
6996
7150
|
}
|
|
6997
7151
|
};
|
|
@@ -7067,20 +7221,6 @@ var BrandsEndpoint = class {
|
|
|
7067
7221
|
}
|
|
7068
7222
|
};
|
|
7069
7223
|
|
|
7070
|
-
// src/api/endpoints/design-system/versions/components.ts
|
|
7071
|
-
import { z as z249 } from "zod";
|
|
7072
|
-
var DesignSystemComponentEndpoint = class {
|
|
7073
|
-
constructor(requestExecutor) {
|
|
7074
|
-
this.requestExecutor = requestExecutor;
|
|
7075
|
-
}
|
|
7076
|
-
async create(dsId, vId, body) {
|
|
7077
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z249.any(), {
|
|
7078
|
-
body,
|
|
7079
|
-
method: "POST"
|
|
7080
|
-
});
|
|
7081
|
-
}
|
|
7082
|
-
};
|
|
7083
|
-
|
|
7084
7224
|
// src/api/endpoints/design-system/versions/documentation.ts
|
|
7085
7225
|
var DocumentationEndpoint = class {
|
|
7086
7226
|
constructor(requestExecutor) {
|
|
@@ -7103,87 +7243,105 @@ var DocumentationEndpoint = class {
|
|
|
7103
7243
|
}
|
|
7104
7244
|
};
|
|
7105
7245
|
|
|
7246
|
+
// src/api/endpoints/design-system/versions/ds-components.ts
|
|
7247
|
+
import { z as z251 } from "zod";
|
|
7248
|
+
var DesignSystemComponentEndpoint = class {
|
|
7249
|
+
constructor(requestExecutor) {
|
|
7250
|
+
this.requestExecutor = requestExecutor;
|
|
7251
|
+
}
|
|
7252
|
+
async create(dsId, vId, body) {
|
|
7253
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z251.any(), {
|
|
7254
|
+
body,
|
|
7255
|
+
method: "POST"
|
|
7256
|
+
});
|
|
7257
|
+
}
|
|
7258
|
+
};
|
|
7259
|
+
|
|
7106
7260
|
// src/api/endpoints/design-system/versions/elements-action.ts
|
|
7107
7261
|
var ElementsActionEndpoint = class {
|
|
7108
7262
|
constructor(requestExecutor) {
|
|
7109
7263
|
this.requestExecutor = requestExecutor;
|
|
7110
7264
|
}
|
|
7111
7265
|
async createDocPage(dsId, vId, input) {
|
|
7112
|
-
return this.
|
|
7113
|
-
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7114
|
-
DTOElementActionOutput,
|
|
7115
|
-
{
|
|
7116
|
-
body: {
|
|
7117
|
-
type: "DocumentationPageCreate",
|
|
7118
|
-
input
|
|
7119
|
-
},
|
|
7120
|
-
method: "POST"
|
|
7121
|
-
}
|
|
7122
|
-
);
|
|
7266
|
+
return this.action(dsId, vId, { type: "DocumentationPageCreate", input });
|
|
7123
7267
|
}
|
|
7124
7268
|
async createDocGroup(dsId, vId, input) {
|
|
7125
|
-
return this.
|
|
7126
|
-
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7127
|
-
DTOElementActionOutput,
|
|
7128
|
-
{
|
|
7129
|
-
body: {
|
|
7130
|
-
type: "DocumentationGroupCreate",
|
|
7131
|
-
input
|
|
7132
|
-
},
|
|
7133
|
-
method: "POST"
|
|
7134
|
-
}
|
|
7135
|
-
);
|
|
7269
|
+
return this.action(dsId, vId, { type: "DocumentationGroupCreate", input });
|
|
7136
7270
|
}
|
|
7137
7271
|
async moveDocGroup(dsId, vId, input) {
|
|
7272
|
+
return this.action(dsId, vId, { type: "DocumentationGroupMove", input });
|
|
7273
|
+
}
|
|
7274
|
+
async updateDocPage(dsId, vId, input) {
|
|
7275
|
+
return this.action(dsId, vId, { type: "DocumentationPageUpdate", input });
|
|
7276
|
+
}
|
|
7277
|
+
async updateDocGroup(dsId, vId, input) {
|
|
7278
|
+
return this.action(dsId, vId, { type: "DocumentationGroupUpdate", input });
|
|
7279
|
+
}
|
|
7280
|
+
async createDocTab(dsId, vId, input) {
|
|
7281
|
+
return this.action(dsId, vId, { type: "DocumentationTabCreate", input });
|
|
7282
|
+
}
|
|
7283
|
+
async renderNodes(dsId, vId, input) {
|
|
7284
|
+
return this.action(dsId, vId, { type: "FigmaNodeRender", input });
|
|
7285
|
+
}
|
|
7286
|
+
async action(dsId, vId, input) {
|
|
7138
7287
|
return this.requestExecutor.json(
|
|
7139
7288
|
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7140
7289
|
DTOElementActionOutput,
|
|
7141
7290
|
{
|
|
7142
|
-
body:
|
|
7143
|
-
type: "DocumentationGroupMove",
|
|
7144
|
-
input
|
|
7145
|
-
},
|
|
7291
|
+
body: input,
|
|
7146
7292
|
method: "POST"
|
|
7147
7293
|
}
|
|
7148
7294
|
);
|
|
7149
7295
|
}
|
|
7150
|
-
|
|
7296
|
+
};
|
|
7297
|
+
|
|
7298
|
+
// src/api/endpoints/design-system/versions/elements.ts
|
|
7299
|
+
var ElementsEndpoint = class {
|
|
7300
|
+
constructor(requestExecutor) {
|
|
7301
|
+
this.requestExecutor = requestExecutor;
|
|
7302
|
+
}
|
|
7303
|
+
getElements(dsId, vId, query) {
|
|
7304
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
|
|
7305
|
+
query: serializeQuery(query)
|
|
7306
|
+
});
|
|
7307
|
+
}
|
|
7308
|
+
};
|
|
7309
|
+
|
|
7310
|
+
// src/api/endpoints/design-system/versions/figma-component-groups.ts
|
|
7311
|
+
var FigmaComponentGroupsEndpoint = class {
|
|
7312
|
+
constructor(requestExecutor) {
|
|
7313
|
+
this.requestExecutor = requestExecutor;
|
|
7314
|
+
}
|
|
7315
|
+
async list(dsId, vId) {
|
|
7151
7316
|
return this.requestExecutor.json(
|
|
7152
|
-
`/design-systems/${dsId}/versions/${vId}/
|
|
7153
|
-
|
|
7154
|
-
{
|
|
7155
|
-
body: {
|
|
7156
|
-
type: "DocumentationPageUpdate",
|
|
7157
|
-
input
|
|
7158
|
-
},
|
|
7159
|
-
method: "POST"
|
|
7160
|
-
}
|
|
7317
|
+
`/design-systems/${dsId}/versions/${vId}/component-groups`,
|
|
7318
|
+
DTOFigmaComponentGroupListResponse
|
|
7161
7319
|
);
|
|
7162
7320
|
}
|
|
7163
|
-
|
|
7321
|
+
};
|
|
7322
|
+
|
|
7323
|
+
// src/api/endpoints/design-system/versions/figma-components.ts
|
|
7324
|
+
var FigmaComponentsEndpoint = class {
|
|
7325
|
+
constructor(requestExecutor) {
|
|
7326
|
+
this.requestExecutor = requestExecutor;
|
|
7327
|
+
}
|
|
7328
|
+
async list(dsId, vId) {
|
|
7164
7329
|
return this.requestExecutor.json(
|
|
7165
|
-
`/design-systems/${dsId}/versions/${vId}/
|
|
7166
|
-
|
|
7167
|
-
{
|
|
7168
|
-
body: {
|
|
7169
|
-
type: "DocumentationGroupUpdate",
|
|
7170
|
-
input
|
|
7171
|
-
},
|
|
7172
|
-
method: "POST"
|
|
7173
|
-
}
|
|
7330
|
+
`/design-systems/${dsId}/versions/${vId}/components`,
|
|
7331
|
+
DTOFigmaComponentListResponse
|
|
7174
7332
|
);
|
|
7175
7333
|
}
|
|
7176
|
-
|
|
7334
|
+
};
|
|
7335
|
+
|
|
7336
|
+
// src/api/endpoints/design-system/versions/figma-frame-structures.ts
|
|
7337
|
+
var FigmaFrameStructuresEndpoint = class {
|
|
7338
|
+
constructor(requestExecutor) {
|
|
7339
|
+
this.requestExecutor = requestExecutor;
|
|
7340
|
+
}
|
|
7341
|
+
list(dsId, vId) {
|
|
7177
7342
|
return this.requestExecutor.json(
|
|
7178
|
-
`/design-systems/${dsId}/versions/${vId}/
|
|
7179
|
-
|
|
7180
|
-
{
|
|
7181
|
-
body: {
|
|
7182
|
-
type: "DocumentationTabCreate",
|
|
7183
|
-
input
|
|
7184
|
-
},
|
|
7185
|
-
method: "POST"
|
|
7186
|
-
}
|
|
7343
|
+
`/design-systems/${dsId}/versions/${vId}/figma-frames/node-structures`,
|
|
7344
|
+
DTOFrameNodeStructureListResponse
|
|
7187
7345
|
);
|
|
7188
7346
|
}
|
|
7189
7347
|
};
|
|
@@ -7202,7 +7360,7 @@ var ImportJobsEndpoint = class {
|
|
|
7202
7360
|
};
|
|
7203
7361
|
|
|
7204
7362
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7205
|
-
import { z as
|
|
7363
|
+
import { z as z252 } from "zod";
|
|
7206
7364
|
var OverridesEndpoint = class {
|
|
7207
7365
|
constructor(requestExecutor) {
|
|
7208
7366
|
this.requestExecutor = requestExecutor;
|
|
@@ -7210,7 +7368,7 @@ var OverridesEndpoint = class {
|
|
|
7210
7368
|
create(dsId, versionId, themeId, body) {
|
|
7211
7369
|
return this.requestExecutor.json(
|
|
7212
7370
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7213
|
-
|
|
7371
|
+
z252.any(),
|
|
7214
7372
|
{
|
|
7215
7373
|
method: "POST",
|
|
7216
7374
|
body
|
|
@@ -7220,7 +7378,7 @@ var OverridesEndpoint = class {
|
|
|
7220
7378
|
};
|
|
7221
7379
|
|
|
7222
7380
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7223
|
-
import { z as
|
|
7381
|
+
import { z as z253 } from "zod";
|
|
7224
7382
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7225
7383
|
constructor(requestExecutor) {
|
|
7226
7384
|
this.requestExecutor = requestExecutor;
|
|
@@ -7248,7 +7406,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7248
7406
|
delete(designSystemId, versionId, defId) {
|
|
7249
7407
|
return this.requestExecutor.json(
|
|
7250
7408
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7251
|
-
|
|
7409
|
+
z253.any(),
|
|
7252
7410
|
{ method: "DELETE" }
|
|
7253
7411
|
);
|
|
7254
7412
|
}
|
|
@@ -7287,7 +7445,7 @@ var VersionStatsEndpoint = class {
|
|
|
7287
7445
|
};
|
|
7288
7446
|
|
|
7289
7447
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7290
|
-
import { z as
|
|
7448
|
+
import { z as z254 } from "zod";
|
|
7291
7449
|
var ThemesEndpoint = class {
|
|
7292
7450
|
constructor(requestExecutor) {
|
|
7293
7451
|
this.requestExecutor = requestExecutor;
|
|
@@ -7310,7 +7468,7 @@ var ThemesEndpoint = class {
|
|
|
7310
7468
|
});
|
|
7311
7469
|
}
|
|
7312
7470
|
delete(dsId, versionId, themeId) {
|
|
7313
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7471
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z254.any(), {
|
|
7314
7472
|
method: "DELETE"
|
|
7315
7473
|
});
|
|
7316
7474
|
}
|
|
@@ -7387,10 +7545,14 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7387
7545
|
__publicField(this, "importJobs");
|
|
7388
7546
|
__publicField(this, "tokens");
|
|
7389
7547
|
__publicField(this, "tokenGroups");
|
|
7548
|
+
__publicField(this, "figmaComponents");
|
|
7549
|
+
__publicField(this, "figmaComponentGroups");
|
|
7550
|
+
__publicField(this, "figmaFrameStructures");
|
|
7390
7551
|
__publicField(this, "stats");
|
|
7391
7552
|
__publicField(this, "elementPropertyDefinitions");
|
|
7392
7553
|
__publicField(this, "elementPropertyValues");
|
|
7393
7554
|
__publicField(this, "elementsAction");
|
|
7555
|
+
__publicField(this, "elements");
|
|
7394
7556
|
__publicField(this, "designSystemComponents");
|
|
7395
7557
|
__publicField(this, "documentation");
|
|
7396
7558
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
@@ -7399,10 +7561,14 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7399
7561
|
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
7400
7562
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
7401
7563
|
this.tokenGroups = new TokenGroupsEndpoint(requestExecutor);
|
|
7564
|
+
this.figmaComponents = new FigmaComponentsEndpoint(requestExecutor);
|
|
7565
|
+
this.figmaComponentGroups = new FigmaComponentGroupsEndpoint(requestExecutor);
|
|
7566
|
+
this.figmaFrameStructures = new FigmaFrameStructuresEndpoint(requestExecutor);
|
|
7402
7567
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7403
7568
|
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7404
7569
|
this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
|
|
7405
7570
|
this.elementsAction = new ElementsActionEndpoint(requestExecutor);
|
|
7571
|
+
this.elements = new ElementsEndpoint(requestExecutor);
|
|
7406
7572
|
this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
|
|
7407
7573
|
this.documentation = new DocumentationEndpoint(requestExecutor);
|
|
7408
7574
|
}
|
|
@@ -7449,7 +7615,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7449
7615
|
};
|
|
7450
7616
|
|
|
7451
7617
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7452
|
-
import { z as
|
|
7618
|
+
import { z as z256 } from "zod";
|
|
7453
7619
|
|
|
7454
7620
|
// src/api/endpoints/design-system/members.ts
|
|
7455
7621
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7470,7 +7636,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7470
7636
|
};
|
|
7471
7637
|
|
|
7472
7638
|
// src/api/endpoints/design-system/sources.ts
|
|
7473
|
-
import { z as
|
|
7639
|
+
import { z as z255 } from "zod";
|
|
7474
7640
|
var DesignSystemSourcesEndpoint = class {
|
|
7475
7641
|
constructor(requestExecutor) {
|
|
7476
7642
|
this.requestExecutor = requestExecutor;
|
|
@@ -7485,7 +7651,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7485
7651
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7486
7652
|
}
|
|
7487
7653
|
delete(dsId, sourceId) {
|
|
7488
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7654
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z255.any(), { method: "DELETE" });
|
|
7489
7655
|
}
|
|
7490
7656
|
figmaImport(dsId, payload) {
|
|
7491
7657
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -7520,7 +7686,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7520
7686
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7521
7687
|
}
|
|
7522
7688
|
delete(dsId) {
|
|
7523
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7689
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z256.any(), { method: "DELETE" });
|
|
7524
7690
|
}
|
|
7525
7691
|
update(dsId, body) {
|
|
7526
7692
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7564,7 +7730,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7564
7730
|
};
|
|
7565
7731
|
|
|
7566
7732
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7567
|
-
import { z as
|
|
7733
|
+
import { z as z257 } from "zod";
|
|
7568
7734
|
var WorkspaceMembersEndpoint = class {
|
|
7569
7735
|
constructor(requestExecutor) {
|
|
7570
7736
|
this.requestExecutor = requestExecutor;
|
|
@@ -7581,7 +7747,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7581
7747
|
});
|
|
7582
7748
|
}
|
|
7583
7749
|
invite(workspaceId, body) {
|
|
7584
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7750
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z257.any(), { method: "POST", body });
|
|
7585
7751
|
}
|
|
7586
7752
|
delete(workspaceId, userId) {
|
|
7587
7753
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7591,7 +7757,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7591
7757
|
};
|
|
7592
7758
|
|
|
7593
7759
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7594
|
-
import { z as
|
|
7760
|
+
import { z as z258 } from "zod";
|
|
7595
7761
|
var WorkspacesEndpoint = class {
|
|
7596
7762
|
constructor(requestExecutor) {
|
|
7597
7763
|
this.requestExecutor = requestExecutor;
|
|
@@ -7614,10 +7780,10 @@ var WorkspacesEndpoint = class {
|
|
|
7614
7780
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7615
7781
|
}
|
|
7616
7782
|
delete(workspaceId) {
|
|
7617
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7783
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z258.any(), { method: "DELETE" });
|
|
7618
7784
|
}
|
|
7619
7785
|
subscription(workspaceId) {
|
|
7620
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7786
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z258.any(), { method: "GET" });
|
|
7621
7787
|
}
|
|
7622
7788
|
transferOwnership(workspaceId, body) {
|
|
7623
7789
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -7704,9 +7870,9 @@ ${bodyText}`,
|
|
|
7704
7870
|
|
|
7705
7871
|
// src/api/transport/request-executor.ts
|
|
7706
7872
|
import fetch from "node-fetch";
|
|
7707
|
-
import { z as
|
|
7708
|
-
var ResponseWrapper =
|
|
7709
|
-
result:
|
|
7873
|
+
import { z as z259 } from "zod";
|
|
7874
|
+
var ResponseWrapper = z259.object({
|
|
7875
|
+
result: z259.record(z259.any())
|
|
7710
7876
|
});
|
|
7711
7877
|
var RequestExecutor = class {
|
|
7712
7878
|
constructor(testServerConfig) {
|
|
@@ -7747,6 +7913,8 @@ var RequestExecutor = class {
|
|
|
7747
7913
|
}
|
|
7748
7914
|
const responseParseResult = schema.safeParse(wrapperParseResult.data.result);
|
|
7749
7915
|
if (!responseParseResult.success) {
|
|
7916
|
+
console.error(`Response was:`);
|
|
7917
|
+
console.error(wrapperParseResult.data.result);
|
|
7750
7918
|
throw RequestExecutorError.responseParsingError(endpoint, responseParseResult.error);
|
|
7751
7919
|
}
|
|
7752
7920
|
return responseParseResult.data;
|
|
@@ -7778,66 +7946,8 @@ var SupernovaApiClient = class {
|
|
|
7778
7946
|
}
|
|
7779
7947
|
};
|
|
7780
7948
|
|
|
7781
|
-
// src/utils/hash.ts
|
|
7782
|
-
function hash(input) {
|
|
7783
|
-
return farmhash(input).toString(16);
|
|
7784
|
-
}
|
|
7785
|
-
function farmhash(input) {
|
|
7786
|
-
const seed = 2654435769;
|
|
7787
|
-
let hash2 = seed;
|
|
7788
|
-
for (let i = 0; i < input.length; i++) {
|
|
7789
|
-
const charCode = input.charCodeAt(i);
|
|
7790
|
-
hash2 ^= charCode;
|
|
7791
|
-
hash2 = Math.imul(hash2, 1540483477);
|
|
7792
|
-
hash2 ^= hash2 >>> 15;
|
|
7793
|
-
}
|
|
7794
|
-
hash2 = Math.imul(hash2, 1540483477);
|
|
7795
|
-
hash2 ^= hash2 >>> 13;
|
|
7796
|
-
hash2 = Math.imul(hash2, 1540483477);
|
|
7797
|
-
hash2 ^= hash2 >>> 15;
|
|
7798
|
-
return hash2 >>> 0;
|
|
7799
|
-
}
|
|
7800
|
-
function prepareObject(obj) {
|
|
7801
|
-
if (obj === null || typeof obj !== "object") {
|
|
7802
|
-
return obj;
|
|
7803
|
-
}
|
|
7804
|
-
if (Array.isArray(obj)) {
|
|
7805
|
-
return obj.map(prepareObject);
|
|
7806
|
-
}
|
|
7807
|
-
const sortedObj = {};
|
|
7808
|
-
for (const key of Object.keys(obj).sort()) {
|
|
7809
|
-
if (obj[key] === null || obj[key] === void 0) {
|
|
7810
|
-
continue;
|
|
7811
|
-
}
|
|
7812
|
-
sortedObj[key] = prepareObject(obj[key]);
|
|
7813
|
-
}
|
|
7814
|
-
return sortedObj;
|
|
7815
|
-
}
|
|
7816
|
-
function generateHash(input, debug = false) {
|
|
7817
|
-
if (typeof input === "object") {
|
|
7818
|
-
const sanitized = JSON.stringify(prepareObject(input));
|
|
7819
|
-
if (debug) {
|
|
7820
|
-
console.log("Hashing sanitized string:");
|
|
7821
|
-
console.log(sanitized);
|
|
7822
|
-
}
|
|
7823
|
-
return hash(sanitized);
|
|
7824
|
-
} else {
|
|
7825
|
-
try {
|
|
7826
|
-
const obj = JSON.parse(input);
|
|
7827
|
-
const sanitized = JSON.stringify(prepareObject(obj));
|
|
7828
|
-
if (debug) {
|
|
7829
|
-
console.log("Hashing sanitized string:");
|
|
7830
|
-
console.log(sanitized);
|
|
7831
|
-
}
|
|
7832
|
-
return hash(sanitized);
|
|
7833
|
-
} catch {
|
|
7834
|
-
return hash(input);
|
|
7835
|
-
}
|
|
7836
|
-
}
|
|
7837
|
-
}
|
|
7838
|
-
|
|
7839
7949
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7840
|
-
import { z as
|
|
7950
|
+
import { z as z260 } from "zod";
|
|
7841
7951
|
|
|
7842
7952
|
// src/yjs/version-room/base.ts
|
|
7843
7953
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8367,24 +8477,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8367
8477
|
};
|
|
8368
8478
|
|
|
8369
8479
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8370
|
-
var DocumentationHierarchySettings =
|
|
8371
|
-
routingVersion:
|
|
8372
|
-
isDraftFeatureAdopted:
|
|
8373
|
-
isApprovalFeatureEnabled:
|
|
8374
|
-
approvalRequiredForPublishing:
|
|
8480
|
+
var DocumentationHierarchySettings = z260.object({
|
|
8481
|
+
routingVersion: z260.string(),
|
|
8482
|
+
isDraftFeatureAdopted: z260.boolean(),
|
|
8483
|
+
isApprovalFeatureEnabled: z260.boolean(),
|
|
8484
|
+
approvalRequiredForPublishing: z260.boolean()
|
|
8375
8485
|
});
|
|
8376
8486
|
function yjsToDocumentationHierarchy(doc) {
|
|
8377
8487
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8378
8488
|
}
|
|
8379
8489
|
|
|
8380
8490
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8381
|
-
import { z as
|
|
8382
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8383
|
-
title:
|
|
8491
|
+
import { z as z261 } from "zod";
|
|
8492
|
+
var DTODocumentationPageRoomHeaderData = z261.object({
|
|
8493
|
+
title: z261.string(),
|
|
8384
8494
|
configuration: DTODocumentationItemConfigurationV2
|
|
8385
8495
|
});
|
|
8386
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8387
|
-
title:
|
|
8496
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z261.object({
|
|
8497
|
+
title: z261.string().optional(),
|
|
8388
8498
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8389
8499
|
});
|
|
8390
8500
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8435,7 +8545,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8435
8545
|
header: rawHeader
|
|
8436
8546
|
};
|
|
8437
8547
|
return {
|
|
8438
|
-
title:
|
|
8548
|
+
title: z261.string().parse(title),
|
|
8439
8549
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8440
8550
|
};
|
|
8441
8551
|
}
|
|
@@ -8445,9 +8555,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8445
8555
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8446
8556
|
|
|
8447
8557
|
// src/yjs/docs-editor/model/page.ts
|
|
8448
|
-
import { z as
|
|
8449
|
-
var DocumentationPageEditorModel =
|
|
8450
|
-
blocks:
|
|
8558
|
+
import { z as z262 } from "zod";
|
|
8559
|
+
var DocumentationPageEditorModel = z262.object({
|
|
8560
|
+
blocks: z262.array(DocumentationPageContentItem)
|
|
8451
8561
|
});
|
|
8452
8562
|
|
|
8453
8563
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11968,7 +12078,7 @@ var blocks = [
|
|
|
11968
12078
|
|
|
11969
12079
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11970
12080
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11971
|
-
import { z as
|
|
12081
|
+
import { z as z263 } from "zod";
|
|
11972
12082
|
function yDocToPage(yDoc, definitions) {
|
|
11973
12083
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11974
12084
|
}
|
|
@@ -12048,7 +12158,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12048
12158
|
return null;
|
|
12049
12159
|
return {
|
|
12050
12160
|
id,
|
|
12051
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12161
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z263.string()) ?? "",
|
|
12052
12162
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12053
12163
|
};
|
|
12054
12164
|
}
|
|
@@ -12083,7 +12193,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12083
12193
|
});
|
|
12084
12194
|
}
|
|
12085
12195
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12086
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12196
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z263.string());
|
|
12087
12197
|
if (!definitionId) {
|
|
12088
12198
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12089
12199
|
return [];
|
|
@@ -12125,7 +12235,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12125
12235
|
if (!id)
|
|
12126
12236
|
return null;
|
|
12127
12237
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12128
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12238
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z263.string().optional()));
|
|
12129
12239
|
return {
|
|
12130
12240
|
id,
|
|
12131
12241
|
type: "Block",
|
|
@@ -12253,10 +12363,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12253
12363
|
return null;
|
|
12254
12364
|
}
|
|
12255
12365
|
function parseProsemirrorLink(mark) {
|
|
12256
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12366
|
+
const href = getProsemirrorAttribute(mark, "href", z263.string().optional());
|
|
12257
12367
|
if (!href)
|
|
12258
12368
|
return null;
|
|
12259
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12369
|
+
const target = getProsemirrorAttribute(mark, "target", z263.string().optional());
|
|
12260
12370
|
const openInNewTab = target === "_blank";
|
|
12261
12371
|
if (href.startsWith("@")) {
|
|
12262
12372
|
return {
|
|
@@ -12275,10 +12385,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12275
12385
|
}
|
|
12276
12386
|
}
|
|
12277
12387
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12278
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12388
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z263.string().optional());
|
|
12279
12389
|
if (!highlightId)
|
|
12280
12390
|
return null;
|
|
12281
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12391
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z263.boolean().optional()) ?? false;
|
|
12282
12392
|
return {
|
|
12283
12393
|
type: "Comment",
|
|
12284
12394
|
commentHighlightId: highlightId,
|
|
@@ -12290,7 +12400,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12290
12400
|
if (!id)
|
|
12291
12401
|
return null;
|
|
12292
12402
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12293
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12403
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z263.boolean().optional()) !== false;
|
|
12294
12404
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12295
12405
|
if (!tableChild) {
|
|
12296
12406
|
return emptyTable(id, variantId, 0);
|
|
@@ -12337,9 +12447,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12337
12447
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12338
12448
|
if (!id)
|
|
12339
12449
|
return null;
|
|
12340
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12450
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z263.string().optional());
|
|
12341
12451
|
let columnWidth;
|
|
12342
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12452
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z263.array(z263.number()).nullish());
|
|
12343
12453
|
if (columnWidthArray) {
|
|
12344
12454
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12345
12455
|
}
|
|
@@ -12377,7 +12487,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12377
12487
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12378
12488
|
};
|
|
12379
12489
|
case "image":
|
|
12380
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12490
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z263.string());
|
|
12381
12491
|
if (!items)
|
|
12382
12492
|
return null;
|
|
12383
12493
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12497,7 +12607,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12497
12607
|
);
|
|
12498
12608
|
}
|
|
12499
12609
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12500
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12610
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z263.string());
|
|
12501
12611
|
if (!itemsString)
|
|
12502
12612
|
return null;
|
|
12503
12613
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12509,18 +12619,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12509
12619
|
}
|
|
12510
12620
|
function parseAppearance(prosemirrorNode) {
|
|
12511
12621
|
let appearance = {};
|
|
12512
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12622
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z263.string().optional());
|
|
12513
12623
|
if (rawAppearanceString) {
|
|
12514
12624
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12515
12625
|
if (parsedAppearance.success) {
|
|
12516
12626
|
appearance = parsedAppearance.data;
|
|
12517
12627
|
}
|
|
12518
12628
|
}
|
|
12519
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12629
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z263.number().optional());
|
|
12520
12630
|
if (columns) {
|
|
12521
12631
|
appearance.numberOfColumns = columns;
|
|
12522
12632
|
}
|
|
12523
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12633
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z263.string().optional());
|
|
12524
12634
|
if (backgroundColor) {
|
|
12525
12635
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12526
12636
|
if (parsedColor.success) {
|
|
@@ -12615,13 +12725,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12615
12725
|
}
|
|
12616
12726
|
}
|
|
12617
12727
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12618
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12728
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z263.string());
|
|
12619
12729
|
if (!id)
|
|
12620
12730
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12621
12731
|
return id;
|
|
12622
12732
|
}
|
|
12623
12733
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12624
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12734
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z263.string()));
|
|
12625
12735
|
}
|
|
12626
12736
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12627
12737
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12851,12 +12961,12 @@ export {
|
|
|
12851
12961
|
DTOExporterListResponse,
|
|
12852
12962
|
DTOExporterMembership,
|
|
12853
12963
|
DTOExporterMembershipRole,
|
|
12854
|
-
DTOExporterProperty,
|
|
12855
|
-
DTOExporterPropertyListResponse,
|
|
12856
12964
|
DTOExporterSource,
|
|
12857
12965
|
DTOExporterType,
|
|
12858
12966
|
DTOExporterUpdateInput,
|
|
12859
12967
|
DTOFigmaComponent,
|
|
12968
|
+
DTOFigmaComponentGroup,
|
|
12969
|
+
DTOFigmaComponentGroupListResponse,
|
|
12860
12970
|
DTOFigmaComponentListResponse,
|
|
12861
12971
|
DTOFigmaNode,
|
|
12862
12972
|
DTOFigmaNodeData,
|
|
@@ -12865,6 +12975,8 @@ export {
|
|
|
12865
12975
|
DTOFigmaNodeRenderActionOutput,
|
|
12866
12976
|
DTOFigmaNodeRenderFormat,
|
|
12867
12977
|
DTOFigmaNodeRenderInput,
|
|
12978
|
+
DTOFrameNodeStructure,
|
|
12979
|
+
DTOFrameNodeStructureListResponse,
|
|
12868
12980
|
DTOGetBlockDefinitionsOutput,
|
|
12869
12981
|
DTOGetDocumentationPageAnchorsResponse,
|
|
12870
12982
|
DTOGitBranch,
|
|
@@ -12963,7 +13075,11 @@ export {
|
|
|
12963
13075
|
ElementPropertyDefinitionsEndpoint,
|
|
12964
13076
|
ElementPropertyValuesEndpoint,
|
|
12965
13077
|
ElementsActionEndpoint,
|
|
13078
|
+
ElementsEndpoint,
|
|
12966
13079
|
ExportersEndpoint,
|
|
13080
|
+
FigmaComponentGroupsEndpoint,
|
|
13081
|
+
FigmaComponentsEndpoint,
|
|
13082
|
+
FigmaFrameStructuresEndpoint,
|
|
12967
13083
|
FormattedCollections,
|
|
12968
13084
|
FrontendVersionRoomYDoc,
|
|
12969
13085
|
ImportJobsEndpoint,
|
|
@@ -13038,6 +13154,7 @@ export {
|
|
|
13038
13154
|
prosemirrorNodesToBlocks,
|
|
13039
13155
|
richTextPropertyValueToProsemirror,
|
|
13040
13156
|
serializeAsCustomBlock,
|
|
13157
|
+
serializeQuery,
|
|
13041
13158
|
shallowProsemirrorNodeToBlock,
|
|
13042
13159
|
validateDesignSystemVersion,
|
|
13043
13160
|
validateSsoPayload,
|