@supernova-studio/client 0.36.0 → 0.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1140 -91
- package/dist/index.d.ts +1140 -91
- package/dist/index.js +278 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +896 -627
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/design-system/index.ts +1 -0
- package/src/api/conversion/design-system/version-to-dto.ts +17 -0
- package/src/api/conversion/design-systems/brand.ts +14 -0
- package/src/api/conversion/design-systems/elements/index.ts +1 -0
- package/src/api/conversion/design-systems/elements/properties/index.ts +2 -0
- package/src/api/conversion/design-systems/elements/properties/property-definition.ts +21 -0
- package/src/api/conversion/design-systems/elements/properties/property-value.ts +28 -0
- package/src/api/conversion/design-systems/index.ts +3 -0
- package/src/api/conversion/design-systems/view.ts +18 -0
- package/src/api/conversion/index.ts +2 -0
- package/src/api/dto/design-systems/brand.ts +17 -0
- package/src/api/dto/design-systems/index.ts +3 -0
- package/src/api/dto/design-systems/version.ts +24 -0
- package/src/api/dto/design-systems/view.ts +45 -0
- package/src/api/dto/elements/index.ts +1 -0
- package/src/api/dto/elements/properties/index.ts +2 -0
- package/src/api/dto/elements/properties/property-definitions.ts +27 -0
- package/src/api/dto/elements/properties/property-values.ts +17 -0
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +36 -36
package/dist/index.js
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }//
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/api/conversion/design-systems/brand.ts
|
|
2
|
+
function designSystemBrandToDto(brand) {
|
|
3
|
+
return {
|
|
4
|
+
id: brand.id,
|
|
5
|
+
designSystemVersionId: brand.designSystemVersionId,
|
|
6
|
+
persistentId: brand.persistentId,
|
|
7
|
+
meta: {
|
|
8
|
+
name: brand.name,
|
|
9
|
+
description: brand.description
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/api/conversion/design-systems/elements/properties/property-definition.ts
|
|
15
|
+
function elementPropertyDefinitionToDto(elementProperyDefinition) {
|
|
16
|
+
return {
|
|
17
|
+
id: elementProperyDefinition.id,
|
|
18
|
+
designSystemVersionId: elementProperyDefinition.designSystemVersionId,
|
|
19
|
+
meta: {
|
|
20
|
+
name: elementProperyDefinition.name,
|
|
21
|
+
description: elementProperyDefinition.description
|
|
22
|
+
},
|
|
23
|
+
persistentId: elementProperyDefinition.persistentId,
|
|
24
|
+
type: elementProperyDefinition.type,
|
|
25
|
+
targetElementType: elementProperyDefinition.targetElementType,
|
|
26
|
+
codeName: elementProperyDefinition.codeName,
|
|
27
|
+
options: elementProperyDefinition.options,
|
|
28
|
+
linkElementType: elementProperyDefinition.linkElementType
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ../model/dist/index.mjs
|
|
2
33
|
var _zod = require('zod');
|
|
3
34
|
|
|
4
35
|
|
|
@@ -104,6 +135,9 @@ var _zod = require('zod');
|
|
|
104
135
|
|
|
105
136
|
|
|
106
137
|
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
107
141
|
|
|
108
142
|
|
|
109
143
|
|
|
@@ -133,6 +167,7 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
133
167
|
|
|
134
168
|
|
|
135
169
|
|
|
170
|
+
|
|
136
171
|
|
|
137
172
|
|
|
138
173
|
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
@@ -290,7 +325,7 @@ var PriceSchema = _zod.z.object({
|
|
|
290
325
|
stripeProductFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
291
326
|
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional()
|
|
292
327
|
});
|
|
293
|
-
var ProductCodeSchema = _zod.z.enum(["free", "team", "
|
|
328
|
+
var ProductCodeSchema = _zod.z.enum(["free", "team", "company", "enterprise"]);
|
|
294
329
|
var ProductCode = ProductCodeSchema.enum;
|
|
295
330
|
var StripeSubscriptionStatusSchema = _zod.z.enum([
|
|
296
331
|
"trialing",
|
|
@@ -619,7 +654,7 @@ var DesignElement = ShallowDesignElement.extend({
|
|
|
619
654
|
var HierarchicalElements = DesignTokenType.or(
|
|
620
655
|
_zod.z.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
621
656
|
);
|
|
622
|
-
var
|
|
657
|
+
var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
623
658
|
var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
|
|
624
659
|
var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
|
|
625
660
|
var ColorTokenInlineData = _zod.z.object({
|
|
@@ -637,11 +672,12 @@ var ElementPropertyDefinition = _zod.z.object({
|
|
|
637
672
|
name: _zod.z.string(),
|
|
638
673
|
codeName: _zod.z.string(),
|
|
639
674
|
description: _zod.z.string(),
|
|
640
|
-
type:
|
|
675
|
+
type: ElementPropertyTypeSchema,
|
|
641
676
|
targetElementType: ElementPropertyTargetType,
|
|
642
|
-
options: _zod.z.array(ElementPropertyDefinitionOption).
|
|
643
|
-
linkElementType: ElementPropertyLinkType.
|
|
677
|
+
options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
|
|
678
|
+
linkElementType: ElementPropertyLinkType.optional()
|
|
644
679
|
});
|
|
680
|
+
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
645
681
|
var ElementPropertyValue = _zod.z.object({
|
|
646
682
|
id: _zod.z.string(),
|
|
647
683
|
designSystemVersionId: _zod.z.string(),
|
|
@@ -651,7 +687,7 @@ var ElementPropertyValue = _zod.z.object({
|
|
|
651
687
|
numberValue: _zod.z.number().nullish(),
|
|
652
688
|
booleanValue: _zod.z.boolean().nullish(),
|
|
653
689
|
referenceValue: _zod.z.string().nullish(),
|
|
654
|
-
referenceValuePreview: _zod.z.string().
|
|
690
|
+
referenceValuePreview: _zod.z.string().optional()
|
|
655
691
|
});
|
|
656
692
|
var Point2D = _zod.z.object({
|
|
657
693
|
x: _zod.z.number(),
|
|
@@ -2212,6 +2248,52 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
2212
2248
|
})(RoomTypeEnum || {});
|
|
2213
2249
|
var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
|
|
2214
2250
|
var RoomType = RoomTypeSchema.enum;
|
|
2251
|
+
var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2252
|
+
var ElementViewColumnType = _zod.z.union([
|
|
2253
|
+
_zod.z.literal("BaseProperty"),
|
|
2254
|
+
_zod.z.literal("PropertyDefinition"),
|
|
2255
|
+
_zod.z.literal("Theme")
|
|
2256
|
+
]);
|
|
2257
|
+
var ElementViewColumnSharedAttributes = _zod.z.object({
|
|
2258
|
+
id: _zod.z.string(),
|
|
2259
|
+
persistentId: _zod.z.string(),
|
|
2260
|
+
elementDataViewId: _zod.z.string(),
|
|
2261
|
+
sortPosition: _zod.z.number(),
|
|
2262
|
+
width: _zod.z.number()
|
|
2263
|
+
});
|
|
2264
|
+
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2265
|
+
type: _zod.z.literal("BaseProperty"),
|
|
2266
|
+
basePropertyType: ElementViewBaseColumnType
|
|
2267
|
+
});
|
|
2268
|
+
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2269
|
+
type: _zod.z.literal("PropertyDefinition"),
|
|
2270
|
+
propertyDefinitionId: _zod.z.string()
|
|
2271
|
+
});
|
|
2272
|
+
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2273
|
+
type: _zod.z.literal("Theme"),
|
|
2274
|
+
themeId: _zod.z.string()
|
|
2275
|
+
});
|
|
2276
|
+
var ElementViewColumn = _zod.z.discriminatedUnion("type", [
|
|
2277
|
+
ElementViewBasePropertyColumn,
|
|
2278
|
+
ElementViewPropertyDefinitionColumn,
|
|
2279
|
+
ElementViewThemeColumn
|
|
2280
|
+
]);
|
|
2281
|
+
var ElementView = _zod.z.object({
|
|
2282
|
+
id: _zod.z.string(),
|
|
2283
|
+
persistentId: _zod.z.string(),
|
|
2284
|
+
designSystemVersionId: _zod.z.string(),
|
|
2285
|
+
name: _zod.z.string(),
|
|
2286
|
+
description: _zod.z.string(),
|
|
2287
|
+
targetElementType: ElementPropertyTargetType,
|
|
2288
|
+
isDefault: _zod.z.boolean()
|
|
2289
|
+
});
|
|
2290
|
+
var Brand = _zod.z.object({
|
|
2291
|
+
id: _zod.z.string(),
|
|
2292
|
+
designSystemVersionId: _zod.z.string(),
|
|
2293
|
+
persistentId: _zod.z.string(),
|
|
2294
|
+
name: _zod.z.string(),
|
|
2295
|
+
description: _zod.z.string()
|
|
2296
|
+
});
|
|
2215
2297
|
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2216
2298
|
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2217
2299
|
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
@@ -2430,6 +2512,17 @@ var PublishedDoc = _zod.z.object({
|
|
|
2430
2512
|
usesLocalizations: _zod.z.boolean(),
|
|
2431
2513
|
wasPublishedWithLocalizations: _zod.z.boolean()
|
|
2432
2514
|
});
|
|
2515
|
+
var DesignSystemVersion = _zod.z.object({
|
|
2516
|
+
id: _zod.z.string(),
|
|
2517
|
+
version: _zod.z.string(),
|
|
2518
|
+
createdAt: _zod.z.date(),
|
|
2519
|
+
designSystemId: _zod.z.string(),
|
|
2520
|
+
name: _zod.z.string(),
|
|
2521
|
+
comment: _zod.z.string(),
|
|
2522
|
+
isReadonly: _zod.z.boolean(),
|
|
2523
|
+
changeLog: _zod.z.string(),
|
|
2524
|
+
parentId: _zod.z.string().optional()
|
|
2525
|
+
});
|
|
2433
2526
|
var ExporterJobDestination = _zod.z.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2434
2527
|
var ExporterJobStatus = _zod.z.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2435
2528
|
var ExporterJobLogEntryType = _zod.z.enum(["success", "info", "warning", "error", "user"]);
|
|
@@ -3523,6 +3616,48 @@ var RESERVED_SLUGS = [
|
|
|
3523
3616
|
];
|
|
3524
3617
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3525
3618
|
|
|
3619
|
+
// src/api/conversion/design-systems/elements/properties/property-value.ts
|
|
3620
|
+
function elementPropertyValueToDto(elementPropertyValue) {
|
|
3621
|
+
let value;
|
|
3622
|
+
let valuePreview;
|
|
3623
|
+
if (elementPropertyValue.stringValue) {
|
|
3624
|
+
value = elementPropertyValue.stringValue;
|
|
3625
|
+
} else if (elementPropertyValue.numberValue) {
|
|
3626
|
+
value = elementPropertyValue.numberValue;
|
|
3627
|
+
} else if (typeof elementPropertyValue.booleanValue === "boolean") {
|
|
3628
|
+
value = elementPropertyValue.booleanValue;
|
|
3629
|
+
} else if (elementPropertyValue.referenceValue) {
|
|
3630
|
+
value = elementPropertyValue.referenceValue;
|
|
3631
|
+
valuePreview = elementPropertyValue.referenceValuePreview;
|
|
3632
|
+
} else {
|
|
3633
|
+
throw SupernovaException.shouldNotHappen(`Invalid element property value, id: ${elementPropertyValue.id}`);
|
|
3634
|
+
}
|
|
3635
|
+
return {
|
|
3636
|
+
id: elementPropertyValue.id,
|
|
3637
|
+
designSystemVersionId: elementPropertyValue.designSystemVersionId,
|
|
3638
|
+
definitionId: elementPropertyValue.definitionPersistentId,
|
|
3639
|
+
targetElementId: elementPropertyValue.targetElementPersistentId,
|
|
3640
|
+
value,
|
|
3641
|
+
valuePreview
|
|
3642
|
+
};
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
// src/api/conversion/design-systems/view.ts
|
|
3646
|
+
function elementViewToDto(elementView, columns) {
|
|
3647
|
+
columns.sort((lhs, rhs) => lhs.sortPosition - rhs.sortPosition);
|
|
3648
|
+
return {
|
|
3649
|
+
id: elementView.id,
|
|
3650
|
+
persistentId: elementView.persistentId,
|
|
3651
|
+
targetElementType: elementView.targetElementType,
|
|
3652
|
+
isDefault: elementView.isDefault,
|
|
3653
|
+
meta: {
|
|
3654
|
+
name: elementView.name,
|
|
3655
|
+
description: elementView.description
|
|
3656
|
+
},
|
|
3657
|
+
columns
|
|
3658
|
+
};
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3526
3661
|
// src/api/conversion/documentation/documentation-page-to-dto-utils.ts
|
|
3527
3662
|
function buildDocPagePublishPaths(groups, pages) {
|
|
3528
3663
|
const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
|
|
@@ -3683,6 +3818,22 @@ function documentationPagesToDTOV1(pages, groups) {
|
|
|
3683
3818
|
});
|
|
3684
3819
|
}
|
|
3685
3820
|
|
|
3821
|
+
// src/api/conversion/design-system/version-to-dto.ts
|
|
3822
|
+
function designSystemVersionToDto(version) {
|
|
3823
|
+
return {
|
|
3824
|
+
id: version.id,
|
|
3825
|
+
designSystemId: version.designSystemId,
|
|
3826
|
+
createdAt: version.createdAt,
|
|
3827
|
+
meta: {
|
|
3828
|
+
name: version.name,
|
|
3829
|
+
description: version.comment
|
|
3830
|
+
},
|
|
3831
|
+
version: version.version,
|
|
3832
|
+
changeLog: version.changeLog,
|
|
3833
|
+
isReadonly: version.isReadonly
|
|
3834
|
+
};
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3686
3837
|
// src/api/dto/design-systems/design-system.ts
|
|
3687
3838
|
var DTODesignSystem = DesignSystem.omit({
|
|
3688
3839
|
name: true,
|
|
@@ -3691,6 +3842,71 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
3691
3842
|
meta: ObjectMeta
|
|
3692
3843
|
});
|
|
3693
3844
|
|
|
3845
|
+
// src/api/dto/design-systems/brand.ts
|
|
3846
|
+
|
|
3847
|
+
var DTOBrand = _zod.z.object({
|
|
3848
|
+
id: _zod.z.string(),
|
|
3849
|
+
designSystemVersionId: _zod.z.string(),
|
|
3850
|
+
persistentId: _zod.z.string(),
|
|
3851
|
+
meta: ObjectMeta
|
|
3852
|
+
});
|
|
3853
|
+
var DTOBrandGetResponse = _zod.z.object({ brand: DTOBrand });
|
|
3854
|
+
var DTOBrandsListResponse = _zod.z.object({ brands: _zod.z.array(DTOBrand) });
|
|
3855
|
+
|
|
3856
|
+
// src/api/dto/design-systems/view.ts
|
|
3857
|
+
|
|
3858
|
+
var DTOElementViewColumnSharedAttributes = _zod.z.object({
|
|
3859
|
+
id: _zod.z.string(),
|
|
3860
|
+
persistentId: _zod.z.string(),
|
|
3861
|
+
width: _zod.z.number()
|
|
3862
|
+
});
|
|
3863
|
+
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
3864
|
+
type: _zod.z.literal("BaseProperty"),
|
|
3865
|
+
basePropertyType: ElementViewBaseColumnType
|
|
3866
|
+
});
|
|
3867
|
+
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
3868
|
+
type: _zod.z.literal("PropertyDefinition"),
|
|
3869
|
+
propertyDefinitionId: _zod.z.string()
|
|
3870
|
+
});
|
|
3871
|
+
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
3872
|
+
type: _zod.z.literal("Theme"),
|
|
3873
|
+
themeId: _zod.z.string()
|
|
3874
|
+
});
|
|
3875
|
+
var DTOElementViewColumn = _zod.z.discriminatedUnion("type", [
|
|
3876
|
+
DTOElementViewBasePropertyColumn,
|
|
3877
|
+
DTOElementViewPropertyDefinitionColumn,
|
|
3878
|
+
DTOElementViewThemeColumn
|
|
3879
|
+
]);
|
|
3880
|
+
var DTOElementView = _zod.z.object({
|
|
3881
|
+
meta: ObjectMeta,
|
|
3882
|
+
persistentId: _zod.z.string(),
|
|
3883
|
+
targetElementType: ElementPropertyTargetType,
|
|
3884
|
+
id: _zod.z.string(),
|
|
3885
|
+
isDefault: _zod.z.boolean(),
|
|
3886
|
+
columns: _zod.z.array(DTOElementViewColumn)
|
|
3887
|
+
});
|
|
3888
|
+
var DTOElementViewsListResponse = _zod.z.object({
|
|
3889
|
+
elementDataViews: _zod.z.array(DTOElementView)
|
|
3890
|
+
});
|
|
3891
|
+
|
|
3892
|
+
// src/api/dto/design-systems/version.ts
|
|
3893
|
+
|
|
3894
|
+
var DTODesignSystemVersion = _zod.z.object({
|
|
3895
|
+
id: _zod.z.string(),
|
|
3896
|
+
createdAt: _zod.z.date(),
|
|
3897
|
+
meta: ObjectMeta,
|
|
3898
|
+
version: _zod.z.string(),
|
|
3899
|
+
isReadonly: _zod.z.boolean(),
|
|
3900
|
+
changeLog: _zod.z.string(),
|
|
3901
|
+
designSystemId: _zod.z.string()
|
|
3902
|
+
});
|
|
3903
|
+
var DTODesignSystemVersionsListResponse = _zod.z.object({
|
|
3904
|
+
designSystemVersions: _zod.z.array(DTODesignSystemVersion)
|
|
3905
|
+
});
|
|
3906
|
+
var DTODesignSystemVersionGetResponse = _zod.z.object({
|
|
3907
|
+
designSystemVersion: DTODesignSystemVersion
|
|
3908
|
+
});
|
|
3909
|
+
|
|
3694
3910
|
// src/api/dto/documentation/link-preview.ts
|
|
3695
3911
|
|
|
3696
3912
|
var DTODocumentationLinkPreviewResponse = _zod.z.object({
|
|
@@ -3993,6 +4209,37 @@ var DTOFigmaNodeRenderActionInput = _zod.z.object({
|
|
|
3993
4209
|
input: DTOFigmaNodeRenderInput.array()
|
|
3994
4210
|
});
|
|
3995
4211
|
|
|
4212
|
+
// src/api/dto/elements/properties/property-definitions.ts
|
|
4213
|
+
|
|
4214
|
+
var DTOElementPropertyDefinition = _zod.z.object({
|
|
4215
|
+
id: _zod.z.string(),
|
|
4216
|
+
designSystemVersionId: _zod.z.string(),
|
|
4217
|
+
meta: ObjectMeta,
|
|
4218
|
+
persistentId: _zod.z.string(),
|
|
4219
|
+
type: ElementPropertyTypeSchema,
|
|
4220
|
+
targetElementType: ElementPropertyTargetType,
|
|
4221
|
+
codeName: _zod.z.string(),
|
|
4222
|
+
options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
|
|
4223
|
+
linkElementType: ElementPropertyLinkType.optional()
|
|
4224
|
+
});
|
|
4225
|
+
var DTOElementPropertyDefinitionsGetResponse = _zod.z.object({
|
|
4226
|
+
definitions: _zod.z.array(DTOElementPropertyDefinition)
|
|
4227
|
+
});
|
|
4228
|
+
|
|
4229
|
+
// src/api/dto/elements/properties/property-values.ts
|
|
4230
|
+
|
|
4231
|
+
var DTOElementPropertyValue = _zod.z.object({
|
|
4232
|
+
id: _zod.z.string(),
|
|
4233
|
+
designSystemVersionId: _zod.z.string(),
|
|
4234
|
+
definitionId: _zod.z.string(),
|
|
4235
|
+
targetElementId: _zod.z.string(),
|
|
4236
|
+
value: _zod.z.union([_zod.z.string(), _zod.z.number(), _zod.z.boolean()]).optional(),
|
|
4237
|
+
valuePreview: _zod.z.string().optional()
|
|
4238
|
+
});
|
|
4239
|
+
var DTOElementPropertyValuesGetResponse = _zod.z.object({
|
|
4240
|
+
values: _zod.z.array(DTOElementPropertyValue)
|
|
4241
|
+
});
|
|
4242
|
+
|
|
3996
4243
|
// src/api/dto/elements/elements-action-v2.ts
|
|
3997
4244
|
|
|
3998
4245
|
var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
@@ -7740,7 +7987,7 @@ function parseItem(rawItem, definition) {
|
|
|
7740
7987
|
if (validationResult.success) {
|
|
7741
7988
|
sanitizedProps[property.id] = validationResult.data;
|
|
7742
7989
|
} else {
|
|
7743
|
-
console.log(validationResult.error.
|
|
7990
|
+
console.log(validationResult.error.toString());
|
|
7744
7991
|
}
|
|
7745
7992
|
}
|
|
7746
7993
|
return {
|
|
@@ -7930,5 +8177,27 @@ function mapByUnique2(items, keyFn) {
|
|
|
7930
8177
|
|
|
7931
8178
|
|
|
7932
8179
|
|
|
7933
|
-
|
|
8180
|
+
|
|
8181
|
+
|
|
8182
|
+
|
|
8183
|
+
|
|
8184
|
+
|
|
8185
|
+
|
|
8186
|
+
|
|
8187
|
+
|
|
8188
|
+
|
|
8189
|
+
|
|
8190
|
+
|
|
8191
|
+
|
|
8192
|
+
|
|
8193
|
+
|
|
8194
|
+
|
|
8195
|
+
|
|
8196
|
+
|
|
8197
|
+
|
|
8198
|
+
|
|
8199
|
+
|
|
8200
|
+
|
|
8201
|
+
|
|
8202
|
+
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; 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.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; 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.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; 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.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.designSystemBrandToDto = designSystemBrandToDto; exports.designSystemVersionToDto = designSystemVersionToDto; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTO = elementGroupsToDocumentationGroupDTO; exports.elementGroupsToDocumentationGroupStructureDTO = elementGroupsToDocumentationGroupStructureDTO; exports.elementPropertyDefinitionToDto = elementPropertyDefinitionToDto; exports.elementPropertyValueToDto = elementPropertyValueToDto; exports.elementViewToDto = elementViewToDto; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
7934
8203
|
//# sourceMappingURL=index.js.map
|