@supernova-studio/client 0.54.14 → 0.54.15
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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +91 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1202 -1201
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/design-system.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -30,45 +30,45 @@ import { z as z18 } from "zod";
|
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
32
32
|
import { z as z21 } from "zod";
|
|
33
|
+
import { z as z99 } from "zod";
|
|
33
34
|
import { z as z22 } from "zod";
|
|
34
|
-
import { z as
|
|
35
|
+
import { z as z90 } from "zod";
|
|
36
|
+
import { z as z88 } from "zod";
|
|
35
37
|
import { z as z23 } from "zod";
|
|
36
|
-
import { z as
|
|
37
|
-
import { z as z89 } from "zod";
|
|
38
|
+
import { z as z87 } from "zod";
|
|
38
39
|
import { z as z24 } from "zod";
|
|
39
|
-
import { z as
|
|
40
|
+
import { z as z26 } from "zod";
|
|
40
41
|
import { z as z25 } from "zod";
|
|
41
42
|
import { z as z27 } from "zod";
|
|
42
|
-
import { z as z26 } from "zod";
|
|
43
43
|
import { z as z28 } from "zod";
|
|
44
|
-
import { z as z29 } from "zod";
|
|
45
|
-
import { z as z32 } from "zod";
|
|
46
44
|
import { z as z31 } from "zod";
|
|
47
45
|
import { z as z30 } from "zod";
|
|
48
|
-
import { z as
|
|
46
|
+
import { z as z29 } from "zod";
|
|
49
47
|
import { z as z33 } from "zod";
|
|
50
|
-
import { z as
|
|
51
|
-
import { z as
|
|
48
|
+
import { z as z32 } from "zod";
|
|
49
|
+
import { z as z40 } from "zod";
|
|
50
|
+
import { z as z34 } from "zod";
|
|
52
51
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
52
|
+
import { z as z35 } from "zod";
|
|
53
53
|
import { z as z36 } from "zod";
|
|
54
54
|
import { z as z37 } from "zod";
|
|
55
55
|
import { z as z38 } from "zod";
|
|
56
56
|
import { z as z39 } from "zod";
|
|
57
|
-
import { z as z40 } from "zod";
|
|
58
|
-
import { z as z45 } from "zod";
|
|
59
57
|
import { z as z44 } from "zod";
|
|
60
|
-
import { z as z42 } from "zod";
|
|
61
58
|
import { z as z43 } from "zod";
|
|
62
|
-
import { z as
|
|
59
|
+
import { z as z41 } from "zod";
|
|
60
|
+
import { z as z42 } from "zod";
|
|
63
61
|
import { z as z48 } from "zod";
|
|
64
62
|
import { z as z47 } from "zod";
|
|
65
63
|
import { z as z46 } from "zod";
|
|
66
|
-
import { z as
|
|
64
|
+
import { z as z45 } from "zod";
|
|
67
65
|
import { z as z51 } from "zod";
|
|
68
66
|
import { z as z50 } from "zod";
|
|
69
|
-
import { z as
|
|
67
|
+
import { z as z49 } from "zod";
|
|
70
68
|
import { z as z54 } from "zod";
|
|
71
69
|
import { z as z53 } from "zod";
|
|
70
|
+
import { z as z52 } from "zod";
|
|
71
|
+
import { z as z55 } from "zod";
|
|
72
72
|
import { z as z56 } from "zod";
|
|
73
73
|
import { z as z57 } from "zod";
|
|
74
74
|
import { z as z58 } from "zod";
|
|
@@ -92,24 +92,24 @@ import { z as z75 } from "zod";
|
|
|
92
92
|
import { z as z76 } from "zod";
|
|
93
93
|
import { z as z77 } from "zod";
|
|
94
94
|
import { z as z78 } from "zod";
|
|
95
|
+
import { z as z80 } from "zod";
|
|
95
96
|
import { z as z79 } from "zod";
|
|
96
97
|
import { z as z81 } from "zod";
|
|
97
|
-
import { z as z80 } from "zod";
|
|
98
98
|
import { z as z82 } from "zod";
|
|
99
99
|
import { z as z83 } from "zod";
|
|
100
100
|
import { z as z84 } from "zod";
|
|
101
|
-
import { z as z85 } from "zod";
|
|
102
|
-
import { z as z87 } from "zod";
|
|
103
101
|
import { z as z86 } from "zod";
|
|
104
|
-
import { z as
|
|
105
|
-
import { z as
|
|
106
|
-
import { z as
|
|
107
|
-
import { z as z92 } from "zod";
|
|
102
|
+
import { z as z85 } from "zod";
|
|
103
|
+
import { z as z89 } from "zod";
|
|
104
|
+
import { z as z98 } from "zod";
|
|
108
105
|
import { z as z93 } from "zod";
|
|
106
|
+
import { z as z91 } from "zod";
|
|
107
|
+
import { z as z92 } from "zod";
|
|
108
|
+
import { z as z94 } from "zod";
|
|
109
109
|
import { z as z95 } from "zod";
|
|
110
110
|
import { z as z96 } from "zod";
|
|
111
111
|
import { z as z97 } from "zod";
|
|
112
|
-
import { z as
|
|
112
|
+
import { z as z100 } from "zod";
|
|
113
113
|
import { z as z101 } from "zod";
|
|
114
114
|
import { z as z102 } from "zod";
|
|
115
115
|
import { z as z103 } from "zod";
|
|
@@ -553,26 +553,19 @@ var Asset = z21.object({
|
|
|
553
553
|
var ResolvedAsset = Asset.extend({
|
|
554
554
|
url: z21.string()
|
|
555
555
|
});
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
downloadChunkSize: z23.number().optional(),
|
|
570
|
-
maxFileDepth: z23.number().optional()
|
|
571
|
-
});
|
|
572
|
-
var FigmaFileAccessData = z23.object({
|
|
573
|
-
accessToken: z23.string()
|
|
574
|
-
});
|
|
575
|
-
var ImportWarningType = z24.enum([
|
|
556
|
+
var FigmaFileDownloadScope = z22.object({
|
|
557
|
+
styles: z22.boolean(),
|
|
558
|
+
components: z22.boolean(),
|
|
559
|
+
componentSets: z22.boolean(),
|
|
560
|
+
currentVersion: z22.literal("__latest__").nullable(),
|
|
561
|
+
publishedVersion: z22.string().nullable(),
|
|
562
|
+
downloadChunkSize: z22.number().optional(),
|
|
563
|
+
maxFileDepth: z22.number().optional()
|
|
564
|
+
});
|
|
565
|
+
var FigmaFileAccessData = z22.object({
|
|
566
|
+
accessToken: z22.string()
|
|
567
|
+
});
|
|
568
|
+
var ImportWarningType = z23.enum([
|
|
576
569
|
"NoVersionFound",
|
|
577
570
|
"UnsupportedFill",
|
|
578
571
|
"UnsupportedStroke",
|
|
@@ -588,114 +581,114 @@ var ImportWarningType = z24.enum([
|
|
|
588
581
|
"NoUnpublishedStyles",
|
|
589
582
|
"ReferenceResolutionFailed"
|
|
590
583
|
]);
|
|
591
|
-
var ImportWarning =
|
|
584
|
+
var ImportWarning = z23.object({
|
|
592
585
|
warningType: ImportWarningType,
|
|
593
|
-
componentId:
|
|
594
|
-
componentName:
|
|
595
|
-
styleId:
|
|
596
|
-
styleName:
|
|
597
|
-
unsupportedStyleValueType:
|
|
598
|
-
referenceId:
|
|
586
|
+
componentId: z23.string().optional(),
|
|
587
|
+
componentName: z23.string().optional(),
|
|
588
|
+
styleId: z23.string().optional(),
|
|
589
|
+
styleName: z23.string().optional(),
|
|
590
|
+
unsupportedStyleValueType: z23.string().optional(),
|
|
591
|
+
referenceId: z23.string().optional()
|
|
599
592
|
});
|
|
600
|
-
var TokenDataAliasSchema =
|
|
601
|
-
aliasTo:
|
|
593
|
+
var TokenDataAliasSchema = z24.object({
|
|
594
|
+
aliasTo: z24.string().optional().nullable().transform((v) => v ?? void 0)
|
|
602
595
|
});
|
|
603
596
|
function tokenAliasOrValue(value) {
|
|
604
597
|
return TokenDataAliasSchema.extend({
|
|
605
598
|
value: value.optional().nullable().transform((v) => v ?? void 0)
|
|
606
599
|
});
|
|
607
600
|
}
|
|
608
|
-
var DimensionUnit =
|
|
609
|
-
var DimensionValue =
|
|
601
|
+
var DimensionUnit = z25.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
602
|
+
var DimensionValue = z25.object({
|
|
610
603
|
unit: DimensionUnit,
|
|
611
|
-
measure:
|
|
604
|
+
measure: z25.number()
|
|
612
605
|
});
|
|
613
606
|
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
614
|
-
var BlurType =
|
|
615
|
-
var BlurValue =
|
|
607
|
+
var BlurType = z26.enum(["Layer", "Background"]);
|
|
608
|
+
var BlurValue = z26.object({
|
|
616
609
|
type: BlurType,
|
|
617
610
|
radius: DimensionTokenData
|
|
618
611
|
});
|
|
619
612
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
620
|
-
var BorderRadiusUnit =
|
|
621
|
-
var BorderRadiusValue =
|
|
613
|
+
var BorderRadiusUnit = z27.enum(["Pixels", "Rem", "Percent"]);
|
|
614
|
+
var BorderRadiusValue = z27.object({
|
|
622
615
|
unit: BorderRadiusUnit,
|
|
623
|
-
measure:
|
|
616
|
+
measure: z27.number()
|
|
624
617
|
});
|
|
625
618
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
626
|
-
var BorderWidthUnit =
|
|
627
|
-
var BorderWidthValue =
|
|
619
|
+
var BorderWidthUnit = z28.enum(["Pixels"]);
|
|
620
|
+
var BorderWidthValue = z28.object({
|
|
628
621
|
unit: BorderWidthUnit,
|
|
629
|
-
measure:
|
|
622
|
+
measure: z28.number()
|
|
630
623
|
});
|
|
631
624
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
632
|
-
var OpacityValue =
|
|
633
|
-
unit:
|
|
634
|
-
measure:
|
|
625
|
+
var OpacityValue = z29.object({
|
|
626
|
+
unit: z29.enum(["Raw", "Pixels"]),
|
|
627
|
+
measure: z29.number()
|
|
635
628
|
});
|
|
636
629
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
637
|
-
var ColorValue =
|
|
630
|
+
var ColorValue = z30.object({
|
|
638
631
|
opacity: OpacityTokenData,
|
|
639
|
-
color:
|
|
632
|
+
color: z30.string().or(TokenDataAliasSchema)
|
|
640
633
|
});
|
|
641
634
|
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
642
|
-
var BorderPosition =
|
|
643
|
-
var BorderStyle =
|
|
644
|
-
var BorderValue =
|
|
635
|
+
var BorderPosition = z31.enum(["Inside", "Center", "Outside"]);
|
|
636
|
+
var BorderStyle = z31.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
637
|
+
var BorderValue = z31.object({
|
|
645
638
|
color: ColorTokenData,
|
|
646
639
|
width: BorderWidthTokenData,
|
|
647
640
|
position: BorderPosition,
|
|
648
641
|
style: BorderStyle.optional()
|
|
649
642
|
});
|
|
650
643
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
651
|
-
var FigmaComponentPropertyType =
|
|
652
|
-
var FigmaComponentPropertyOrigin =
|
|
653
|
-
id:
|
|
644
|
+
var FigmaComponentPropertyType = z32.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
645
|
+
var FigmaComponentPropertyOrigin = z32.object({
|
|
646
|
+
id: z32.string()
|
|
654
647
|
});
|
|
655
|
-
var FigmaComponentPropertyBase =
|
|
656
|
-
id:
|
|
657
|
-
name:
|
|
648
|
+
var FigmaComponentPropertyBase = z32.object({
|
|
649
|
+
id: z32.string(),
|
|
650
|
+
name: z32.string()
|
|
658
651
|
});
|
|
659
652
|
var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
|
|
660
|
-
type:
|
|
661
|
-
defaultValue:
|
|
653
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
654
|
+
defaultValue: z32.boolean()
|
|
662
655
|
});
|
|
663
656
|
var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
|
|
664
|
-
type:
|
|
665
|
-
defaultValue:
|
|
657
|
+
type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
658
|
+
defaultValue: z32.string()
|
|
666
659
|
});
|
|
667
660
|
var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
|
|
668
|
-
type:
|
|
669
|
-
defaultValue:
|
|
670
|
-
options:
|
|
661
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Variant),
|
|
662
|
+
defaultValue: z32.string(),
|
|
663
|
+
options: z32.array(z32.string())
|
|
671
664
|
});
|
|
672
665
|
var FigmaComponentTextProperty = FigmaComponentPropertyBase.extend({
|
|
673
|
-
type:
|
|
674
|
-
id:
|
|
675
|
-
defaultValue:
|
|
666
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Text),
|
|
667
|
+
id: z32.string(),
|
|
668
|
+
defaultValue: z32.string()
|
|
676
669
|
});
|
|
677
|
-
var FigmaComponentProperty =
|
|
670
|
+
var FigmaComponentProperty = z32.discriminatedUnion("type", [
|
|
678
671
|
FigmaComponentBooleanProperty,
|
|
679
672
|
FigmaComponentInstanceSwapProperty,
|
|
680
673
|
FigmaComponentTextProperty,
|
|
681
674
|
FigmaComponentVariantProperty
|
|
682
675
|
]);
|
|
683
|
-
var FigmaComponentPropertyMap =
|
|
684
|
-
var ComponentElementData =
|
|
685
|
-
value:
|
|
686
|
-
thumbnailImage:
|
|
687
|
-
value:
|
|
688
|
-
url:
|
|
689
|
-
assetId:
|
|
676
|
+
var FigmaComponentPropertyMap = z32.record(z32.string(), FigmaComponentProperty);
|
|
677
|
+
var ComponentElementData = z33.object({
|
|
678
|
+
value: z33.object({
|
|
679
|
+
thumbnailImage: z33.object({
|
|
680
|
+
value: z33.object({
|
|
681
|
+
url: z33.string(),
|
|
682
|
+
assetId: z33.string()
|
|
690
683
|
})
|
|
691
684
|
}),
|
|
692
|
-
svg:
|
|
693
|
-
value:
|
|
694
|
-
url:
|
|
695
|
-
assetId:
|
|
685
|
+
svg: z33.object({
|
|
686
|
+
value: z33.object({
|
|
687
|
+
url: z33.string(),
|
|
688
|
+
assetId: z33.string()
|
|
696
689
|
})
|
|
697
690
|
}).optional(),
|
|
698
|
-
parentComponentPersistentId: nullishToOptional(
|
|
691
|
+
parentComponentPersistentId: nullishToOptional(z33.string()),
|
|
699
692
|
componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap)
|
|
700
693
|
})
|
|
701
694
|
});
|
|
@@ -827,25 +820,25 @@ function areShallowObjectsEqual(lhs, rhs) {
|
|
|
827
820
|
}
|
|
828
821
|
return true;
|
|
829
822
|
}
|
|
830
|
-
var ContentLoadInstruction =
|
|
831
|
-
from:
|
|
832
|
-
to:
|
|
833
|
-
authorizationHeaderKvsId:
|
|
834
|
-
timeout:
|
|
823
|
+
var ContentLoadInstruction = z34.object({
|
|
824
|
+
from: z34.string(),
|
|
825
|
+
to: z34.string(),
|
|
826
|
+
authorizationHeaderKvsId: z34.string().optional(),
|
|
827
|
+
timeout: z34.number().optional()
|
|
835
828
|
});
|
|
836
|
-
var ContentLoaderPayload =
|
|
837
|
-
type:
|
|
829
|
+
var ContentLoaderPayload = z34.object({
|
|
830
|
+
type: z34.literal("Single"),
|
|
838
831
|
instruction: ContentLoadInstruction
|
|
839
832
|
}).or(
|
|
840
|
-
|
|
841
|
-
type:
|
|
842
|
-
loadingChunkSize:
|
|
843
|
-
instructions:
|
|
833
|
+
z34.object({
|
|
834
|
+
type: z34.literal("Multiple"),
|
|
835
|
+
loadingChunkSize: z34.number().optional(),
|
|
836
|
+
instructions: z34.array(ContentLoadInstruction)
|
|
844
837
|
})
|
|
845
838
|
).or(
|
|
846
|
-
|
|
847
|
-
type:
|
|
848
|
-
location:
|
|
839
|
+
z34.object({
|
|
840
|
+
type: z34.literal("S3"),
|
|
841
|
+
location: z34.string()
|
|
849
842
|
})
|
|
850
843
|
);
|
|
851
844
|
var RESERVED_SLUGS = [
|
|
@@ -1469,53 +1462,53 @@ var RESERVED_SLUGS = [
|
|
|
1469
1462
|
];
|
|
1470
1463
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
1471
1464
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
1472
|
-
var ElementPropertyTypeSchema =
|
|
1473
|
-
var ElementPropertyTargetType =
|
|
1474
|
-
var ElementPropertyLinkType =
|
|
1465
|
+
var ElementPropertyTypeSchema = z35.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
1466
|
+
var ElementPropertyTargetType = z35.enum(["Token", "Component", "DocumentationPage"]);
|
|
1467
|
+
var ElementPropertyLinkType = z35.enum(["FigmaComponent", "DocumentationPage"]);
|
|
1475
1468
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
1476
|
-
var ColorTokenInlineData =
|
|
1477
|
-
value:
|
|
1469
|
+
var ColorTokenInlineData = z35.object({
|
|
1470
|
+
value: z35.string()
|
|
1478
1471
|
});
|
|
1479
|
-
var ElementPropertyDefinitionOption =
|
|
1480
|
-
id:
|
|
1481
|
-
name:
|
|
1472
|
+
var ElementPropertyDefinitionOption = z35.object({
|
|
1473
|
+
id: z35.string(),
|
|
1474
|
+
name: z35.string(),
|
|
1482
1475
|
backgroundColor: ColorTokenInlineData.optional()
|
|
1483
1476
|
});
|
|
1484
|
-
var ElementPropertyDefinition =
|
|
1485
|
-
id:
|
|
1486
|
-
designSystemVersionId:
|
|
1487
|
-
persistentId:
|
|
1488
|
-
name:
|
|
1489
|
-
codeName:
|
|
1490
|
-
description:
|
|
1477
|
+
var ElementPropertyDefinition = z35.object({
|
|
1478
|
+
id: z35.string(),
|
|
1479
|
+
designSystemVersionId: z35.string(),
|
|
1480
|
+
persistentId: z35.string(),
|
|
1481
|
+
name: z35.string(),
|
|
1482
|
+
codeName: z35.string().regex(CODE_NAME_REGEX),
|
|
1483
|
+
description: z35.string(),
|
|
1491
1484
|
type: ElementPropertyTypeSchema,
|
|
1492
1485
|
targetElementType: ElementPropertyTargetType,
|
|
1493
|
-
options:
|
|
1486
|
+
options: z35.array(ElementPropertyDefinitionOption).optional(),
|
|
1494
1487
|
linkElementType: ElementPropertyLinkType.optional()
|
|
1495
1488
|
});
|
|
1496
1489
|
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
1497
|
-
var ElementPropertyValue =
|
|
1498
|
-
id:
|
|
1499
|
-
designSystemVersionId:
|
|
1500
|
-
targetElementPersistentId:
|
|
1501
|
-
definitionPersistentId:
|
|
1502
|
-
stringValue:
|
|
1503
|
-
numberValue:
|
|
1504
|
-
booleanValue:
|
|
1505
|
-
referenceValue:
|
|
1506
|
-
referenceValuePreview:
|
|
1507
|
-
});
|
|
1508
|
-
var Point2D =
|
|
1509
|
-
x:
|
|
1510
|
-
y:
|
|
1490
|
+
var ElementPropertyValue = z36.object({
|
|
1491
|
+
id: z36.string(),
|
|
1492
|
+
designSystemVersionId: z36.string(),
|
|
1493
|
+
targetElementPersistentId: z36.string(),
|
|
1494
|
+
definitionPersistentId: z36.string(),
|
|
1495
|
+
stringValue: z36.string().nullish(),
|
|
1496
|
+
numberValue: z36.number().nullish(),
|
|
1497
|
+
booleanValue: z36.boolean().nullish(),
|
|
1498
|
+
referenceValue: z36.string().nullish(),
|
|
1499
|
+
referenceValuePreview: z36.string().optional()
|
|
1500
|
+
});
|
|
1501
|
+
var Point2D = z37.object({
|
|
1502
|
+
x: z37.number(),
|
|
1503
|
+
y: z37.number()
|
|
1511
1504
|
});
|
|
1512
1505
|
var nullSize = { height: -1, width: -1 };
|
|
1513
1506
|
function isNullSize(size) {
|
|
1514
1507
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
1515
1508
|
}
|
|
1516
|
-
var Size =
|
|
1517
|
-
width:
|
|
1518
|
-
height:
|
|
1509
|
+
var Size = z38.object({
|
|
1510
|
+
width: z38.number().nullish().transform((v) => v ?? nullSize.width),
|
|
1511
|
+
height: z38.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1519
1512
|
});
|
|
1520
1513
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1521
1514
|
if (!v)
|
|
@@ -1524,7 +1517,7 @@ var SizeOrUndefined = Size.optional().transform((v) => {
|
|
|
1524
1517
|
return void 0;
|
|
1525
1518
|
return v;
|
|
1526
1519
|
});
|
|
1527
|
-
var DesignTokenType =
|
|
1520
|
+
var DesignTokenType = z39.enum([
|
|
1528
1521
|
"Color",
|
|
1529
1522
|
"Border",
|
|
1530
1523
|
"Gradient",
|
|
@@ -1555,7 +1548,7 @@ var DesignTokenType = z40.enum([
|
|
|
1555
1548
|
]);
|
|
1556
1549
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
1557
1550
|
var DesignElementType = DesignTokenType.or(
|
|
1558
|
-
|
|
1551
|
+
z39.enum([
|
|
1559
1552
|
"Component",
|
|
1560
1553
|
"Theme",
|
|
1561
1554
|
"Documentation",
|
|
@@ -1567,7 +1560,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
1567
1560
|
"PageBlock"
|
|
1568
1561
|
])
|
|
1569
1562
|
);
|
|
1570
|
-
var DesignElementCategory =
|
|
1563
|
+
var DesignElementCategory = z39.enum([
|
|
1571
1564
|
"Token",
|
|
1572
1565
|
"Component",
|
|
1573
1566
|
"DesignSystemComponent",
|
|
@@ -1575,37 +1568,37 @@ var DesignElementCategory = z40.enum([
|
|
|
1575
1568
|
"Theme",
|
|
1576
1569
|
"PageBlock"
|
|
1577
1570
|
]);
|
|
1578
|
-
var DesignSystemElementExportProps =
|
|
1579
|
-
isAsset:
|
|
1580
|
-
codeName:
|
|
1581
|
-
});
|
|
1582
|
-
var ShallowDesignElement =
|
|
1583
|
-
id:
|
|
1584
|
-
persistentId:
|
|
1585
|
-
designSystemVersionId:
|
|
1571
|
+
var DesignSystemElementExportProps = z39.object({
|
|
1572
|
+
isAsset: z39.boolean().nullish().transform((v) => v ?? false),
|
|
1573
|
+
codeName: z39.string().nullish()
|
|
1574
|
+
});
|
|
1575
|
+
var ShallowDesignElement = z39.object({
|
|
1576
|
+
id: z39.string(),
|
|
1577
|
+
persistentId: z39.string(),
|
|
1578
|
+
designSystemVersionId: z39.string(),
|
|
1586
1579
|
type: DesignElementType,
|
|
1587
|
-
brandPersistentId:
|
|
1588
|
-
parentPersistentId:
|
|
1589
|
-
shortPersistentId:
|
|
1580
|
+
brandPersistentId: z39.string().optional(),
|
|
1581
|
+
parentPersistentId: z39.string().optional(),
|
|
1582
|
+
shortPersistentId: z39.string().optional(),
|
|
1590
1583
|
childType: DesignElementType.optional(),
|
|
1591
|
-
sortOrder:
|
|
1592
|
-
origin:
|
|
1593
|
-
createdAt:
|
|
1594
|
-
updatedAt:
|
|
1584
|
+
sortOrder: z39.number(),
|
|
1585
|
+
origin: z39.record(z39.any()).optional(),
|
|
1586
|
+
createdAt: z39.coerce.date(),
|
|
1587
|
+
updatedAt: z39.coerce.date()
|
|
1595
1588
|
});
|
|
1596
1589
|
var DesignElement = ShallowDesignElement.extend({
|
|
1597
1590
|
meta: ObjectMeta,
|
|
1598
|
-
slug:
|
|
1599
|
-
userSlug:
|
|
1591
|
+
slug: z39.string().optional(),
|
|
1592
|
+
userSlug: z39.string().optional(),
|
|
1600
1593
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
1601
|
-
data:
|
|
1602
|
-
origin:
|
|
1594
|
+
data: z39.record(z39.any()),
|
|
1595
|
+
origin: z39.record(z39.any()).optional()
|
|
1603
1596
|
});
|
|
1604
1597
|
var HierarchicalElements = DesignTokenType.or(
|
|
1605
|
-
|
|
1598
|
+
z39.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
1606
1599
|
);
|
|
1607
|
-
var PageBlockCalloutType =
|
|
1608
|
-
var PageBlockTypeV1 =
|
|
1600
|
+
var PageBlockCalloutType = z40.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
1601
|
+
var PageBlockTypeV1 = z40.enum([
|
|
1609
1602
|
"Text",
|
|
1610
1603
|
"Heading",
|
|
1611
1604
|
"Code",
|
|
@@ -1641,7 +1634,7 @@ var PageBlockTypeV1 = z41.enum([
|
|
|
1641
1634
|
"Guidelines",
|
|
1642
1635
|
"Guideline"
|
|
1643
1636
|
]);
|
|
1644
|
-
var PageBlockCodeLanguage =
|
|
1637
|
+
var PageBlockCodeLanguage = z40.enum([
|
|
1645
1638
|
"Angular",
|
|
1646
1639
|
"Bash",
|
|
1647
1640
|
"C",
|
|
@@ -1675,74 +1668,74 @@ var PageBlockCodeLanguage = z41.enum([
|
|
|
1675
1668
|
"XML",
|
|
1676
1669
|
"YAML"
|
|
1677
1670
|
]);
|
|
1678
|
-
var PageBlockAlignment =
|
|
1679
|
-
var PageBlockThemeType =
|
|
1680
|
-
var PageBlockAssetType =
|
|
1681
|
-
var PageBlockTilesAlignment =
|
|
1682
|
-
var PageBlockTilesLayout =
|
|
1683
|
-
var PageBlockTheme =
|
|
1684
|
-
themeIds:
|
|
1671
|
+
var PageBlockAlignment = z40.enum(["Left", "Center", "Stretch", "Right"]);
|
|
1672
|
+
var PageBlockThemeType = z40.enum(["Override", "Comparison"]);
|
|
1673
|
+
var PageBlockAssetType = z40.enum(["image", "figmaFrame"]);
|
|
1674
|
+
var PageBlockTilesAlignment = z40.enum(["Center", "FrameHeight"]);
|
|
1675
|
+
var PageBlockTilesLayout = z40.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
1676
|
+
var PageBlockTheme = z40.object({
|
|
1677
|
+
themeIds: z40.array(z40.string()),
|
|
1685
1678
|
type: PageBlockThemeType
|
|
1686
1679
|
});
|
|
1687
|
-
var PageBlockSwatch =
|
|
1688
|
-
id:
|
|
1689
|
-
selectedThemeIds:
|
|
1690
|
-
});
|
|
1691
|
-
var PageBlockUrlPreview =
|
|
1692
|
-
title: nullishToOptional(
|
|
1693
|
-
description: nullishToOptional(
|
|
1694
|
-
thumbnailUrl: nullishToOptional(
|
|
1695
|
-
});
|
|
1696
|
-
var PageBlockFrameOrigin =
|
|
1697
|
-
sourceFileName: nullishToOptional(
|
|
1698
|
-
title: nullishToOptional(
|
|
1699
|
-
previewUrl: nullishToOptional(
|
|
1700
|
-
valid: nullishToOptional(
|
|
1701
|
-
referenceId: nullishToOptional(
|
|
1702
|
-
assetId: nullishToOptional(
|
|
1703
|
-
assetScale: nullishToOptional(
|
|
1704
|
-
width: nullishToOptional(
|
|
1705
|
-
height: nullishToOptional(
|
|
1706
|
-
});
|
|
1707
|
-
var PageBlockFrame =
|
|
1708
|
-
persistentId:
|
|
1709
|
-
sourceId:
|
|
1710
|
-
sourceFrameId:
|
|
1711
|
-
title: nullishToOptional(
|
|
1712
|
-
description: nullishToOptional(
|
|
1680
|
+
var PageBlockSwatch = z40.object({
|
|
1681
|
+
id: z40.string(),
|
|
1682
|
+
selectedThemeIds: z40.string().array()
|
|
1683
|
+
});
|
|
1684
|
+
var PageBlockUrlPreview = z40.object({
|
|
1685
|
+
title: nullishToOptional(z40.string()),
|
|
1686
|
+
description: nullishToOptional(z40.string()),
|
|
1687
|
+
thumbnailUrl: nullishToOptional(z40.string())
|
|
1688
|
+
});
|
|
1689
|
+
var PageBlockFrameOrigin = z40.object({
|
|
1690
|
+
sourceFileName: nullishToOptional(z40.string()),
|
|
1691
|
+
title: nullishToOptional(z40.string()),
|
|
1692
|
+
previewUrl: nullishToOptional(z40.string()),
|
|
1693
|
+
valid: nullishToOptional(z40.boolean()),
|
|
1694
|
+
referenceId: nullishToOptional(z40.string()),
|
|
1695
|
+
assetId: nullishToOptional(z40.string()),
|
|
1696
|
+
assetScale: nullishToOptional(z40.number()),
|
|
1697
|
+
width: nullishToOptional(z40.number()),
|
|
1698
|
+
height: nullishToOptional(z40.number())
|
|
1699
|
+
});
|
|
1700
|
+
var PageBlockFrame = z40.object({
|
|
1701
|
+
persistentId: z40.string(),
|
|
1702
|
+
sourceId: z40.string(),
|
|
1703
|
+
sourceFrameId: z40.string(),
|
|
1704
|
+
title: nullishToOptional(z40.string()),
|
|
1705
|
+
description: nullishToOptional(z40.string()),
|
|
1713
1706
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1714
1707
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
1715
1708
|
});
|
|
1716
|
-
var PageBlockAsset =
|
|
1709
|
+
var PageBlockAsset = z40.object({
|
|
1717
1710
|
type: PageBlockAssetType,
|
|
1718
|
-
id: nullishToOptional(
|
|
1719
|
-
url: nullishToOptional(
|
|
1711
|
+
id: nullishToOptional(z40.string()),
|
|
1712
|
+
url: nullishToOptional(z40.string()),
|
|
1720
1713
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
1721
1714
|
});
|
|
1722
|
-
var PageBlockLinkPreview =
|
|
1723
|
-
title: nullishToOptional(
|
|
1724
|
-
valid: nullishToOptional(
|
|
1715
|
+
var PageBlockLinkPreview = z40.object({
|
|
1716
|
+
title: nullishToOptional(z40.string()),
|
|
1717
|
+
valid: nullishToOptional(z40.boolean())
|
|
1725
1718
|
});
|
|
1726
|
-
var PageBlockShortcut =
|
|
1727
|
-
persistentId:
|
|
1728
|
-
title: nullishToOptional(
|
|
1729
|
-
description: nullishToOptional(
|
|
1719
|
+
var PageBlockShortcut = z40.object({
|
|
1720
|
+
persistentId: z40.string(),
|
|
1721
|
+
title: nullishToOptional(z40.string()),
|
|
1722
|
+
description: nullishToOptional(z40.string()),
|
|
1730
1723
|
asset: nullishToOptional(PageBlockAsset),
|
|
1731
|
-
documentationItemId: nullishToOptional(
|
|
1732
|
-
pageHeadingId: nullishToOptional(
|
|
1733
|
-
url: nullishToOptional(
|
|
1734
|
-
openInNewTab: nullishToOptional(
|
|
1724
|
+
documentationItemId: nullishToOptional(z40.string()),
|
|
1725
|
+
pageHeadingId: nullishToOptional(z40.string()),
|
|
1726
|
+
url: nullishToOptional(z40.string()),
|
|
1727
|
+
openInNewTab: nullishToOptional(z40.boolean()),
|
|
1735
1728
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1736
1729
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
1737
1730
|
});
|
|
1738
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
1731
|
+
var PageBlockCustomBlockPropertyImageValue = z40.object({
|
|
1739
1732
|
asset: nullishToOptional(PageBlockAsset),
|
|
1740
|
-
assetId: nullishToOptional(
|
|
1741
|
-
assetUrl: nullishToOptional(
|
|
1733
|
+
assetId: nullishToOptional(z40.string()),
|
|
1734
|
+
assetUrl: nullishToOptional(z40.string())
|
|
1742
1735
|
});
|
|
1743
|
-
var PageBlockCustomBlockPropertyValue =
|
|
1744
|
-
key:
|
|
1745
|
-
value:
|
|
1736
|
+
var PageBlockCustomBlockPropertyValue = z40.object({
|
|
1737
|
+
key: z40.string(),
|
|
1738
|
+
value: z40.any()
|
|
1746
1739
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
1747
1740
|
// e.g. element id 67451 in the dev db
|
|
1748
1741
|
// value: z
|
|
@@ -1753,119 +1746,119 @@ var PageBlockCustomBlockPropertyValue = z41.object({
|
|
|
1753
1746
|
// .or(TypographyTokenData)
|
|
1754
1747
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
1755
1748
|
});
|
|
1756
|
-
var PageBlockFigmaFrameProperties =
|
|
1749
|
+
var PageBlockFigmaFrameProperties = z40.object({
|
|
1757
1750
|
color: nullishToOptional(
|
|
1758
|
-
|
|
1759
|
-
value:
|
|
1751
|
+
z40.object({
|
|
1752
|
+
value: z40.string()
|
|
1760
1753
|
})
|
|
1761
1754
|
),
|
|
1762
1755
|
alignment: PageBlockTilesAlignment,
|
|
1763
1756
|
layout: PageBlockTilesLayout,
|
|
1764
1757
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1765
|
-
showTitles:
|
|
1758
|
+
showTitles: z40.boolean()
|
|
1766
1759
|
});
|
|
1767
|
-
var PageBlockRenderCodeProperties =
|
|
1768
|
-
showCode:
|
|
1769
|
-
showControls:
|
|
1760
|
+
var PageBlockRenderCodeProperties = z40.object({
|
|
1761
|
+
showCode: z40.boolean(),
|
|
1762
|
+
showControls: z40.boolean().optional()
|
|
1770
1763
|
});
|
|
1771
|
-
var PageBlockAssetComponent =
|
|
1772
|
-
persistentId:
|
|
1773
|
-
componentAssetId:
|
|
1774
|
-
title: nullishToOptional(
|
|
1775
|
-
description: nullishToOptional(
|
|
1764
|
+
var PageBlockAssetComponent = z40.object({
|
|
1765
|
+
persistentId: z40.string(),
|
|
1766
|
+
componentAssetId: z40.string(),
|
|
1767
|
+
title: nullishToOptional(z40.string()),
|
|
1768
|
+
description: nullishToOptional(z40.string()),
|
|
1776
1769
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1777
1770
|
});
|
|
1778
|
-
var PageBlockTableColumn =
|
|
1779
|
-
id:
|
|
1771
|
+
var PageBlockTableColumn = z40.object({
|
|
1772
|
+
id: z40.string(),
|
|
1780
1773
|
width: DimensionTokenData
|
|
1781
1774
|
});
|
|
1782
|
-
var PageBlockTableProperties =
|
|
1783
|
-
showBorders:
|
|
1784
|
-
showHeaderRow:
|
|
1785
|
-
showHeaderColumn:
|
|
1786
|
-
columns:
|
|
1775
|
+
var PageBlockTableProperties = z40.object({
|
|
1776
|
+
showBorders: z40.boolean(),
|
|
1777
|
+
showHeaderRow: z40.boolean(),
|
|
1778
|
+
showHeaderColumn: z40.boolean(),
|
|
1779
|
+
columns: z40.array(PageBlockTableColumn)
|
|
1787
1780
|
});
|
|
1788
|
-
var PageBlockTextSpanAttributeType =
|
|
1789
|
-
var PageBlockTextSpanAttribute =
|
|
1781
|
+
var PageBlockTextSpanAttributeType = z40.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
1782
|
+
var PageBlockTextSpanAttribute = z40.object({
|
|
1790
1783
|
type: PageBlockTextSpanAttributeType,
|
|
1791
1784
|
// Link attributes
|
|
1792
|
-
link: nullishToOptional(
|
|
1793
|
-
documentationItemId: nullishToOptional(
|
|
1794
|
-
openInNewWindow: nullishToOptional(
|
|
1785
|
+
link: nullishToOptional(z40.string()),
|
|
1786
|
+
documentationItemId: nullishToOptional(z40.string()),
|
|
1787
|
+
openInNewWindow: nullishToOptional(z40.boolean()),
|
|
1795
1788
|
// deprecated. use openInNewTab
|
|
1796
|
-
openInNewTab: nullishToOptional(
|
|
1789
|
+
openInNewTab: nullishToOptional(z40.boolean()),
|
|
1797
1790
|
// Comment attributes
|
|
1798
|
-
commentHighlightId: nullishToOptional(
|
|
1799
|
-
commentIsResolved: nullishToOptional(
|
|
1791
|
+
commentHighlightId: nullishToOptional(z40.string()),
|
|
1792
|
+
commentIsResolved: nullishToOptional(z40.boolean())
|
|
1800
1793
|
});
|
|
1801
|
-
var PageBlockTextSpan =
|
|
1802
|
-
text:
|
|
1803
|
-
attributes:
|
|
1794
|
+
var PageBlockTextSpan = z40.object({
|
|
1795
|
+
text: z40.string(),
|
|
1796
|
+
attributes: z40.array(PageBlockTextSpanAttribute)
|
|
1804
1797
|
});
|
|
1805
|
-
var PageBlockText =
|
|
1806
|
-
spans:
|
|
1798
|
+
var PageBlockText = z40.object({
|
|
1799
|
+
spans: z40.array(PageBlockTextSpan)
|
|
1807
1800
|
});
|
|
1808
|
-
var PageBlockGuideline =
|
|
1809
|
-
description: nullishToOptional(
|
|
1801
|
+
var PageBlockGuideline = z40.object({
|
|
1802
|
+
description: nullishToOptional(z40.string()),
|
|
1810
1803
|
asset: nullishToOptional(PageBlockAsset),
|
|
1811
|
-
type:
|
|
1812
|
-
imageAlt: nullishToOptional(
|
|
1813
|
-
imageCaption: nullishToOptional(
|
|
1804
|
+
type: z40.string(),
|
|
1805
|
+
imageAlt: nullishToOptional(z40.string()),
|
|
1806
|
+
imageCaption: nullishToOptional(z40.string()),
|
|
1814
1807
|
imageAlignment: nullishToOptional(PageBlockAlignment)
|
|
1815
1808
|
});
|
|
1816
|
-
var PageBlockBaseV1 =
|
|
1817
|
-
persistentId:
|
|
1809
|
+
var PageBlockBaseV1 = z40.object({
|
|
1810
|
+
persistentId: z40.string(),
|
|
1818
1811
|
type: PageBlockTypeV1,
|
|
1819
|
-
numberOfColumns: nullishToOptional(
|
|
1812
|
+
numberOfColumns: nullishToOptional(z40.number()),
|
|
1820
1813
|
// Element linking
|
|
1821
|
-
designObjectId: nullishToOptional(
|
|
1822
|
-
designObjectIds: nullishToOptional(
|
|
1823
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
1824
|
-
showNestedGroups: nullishToOptional(
|
|
1825
|
-
brandId: nullishToOptional(
|
|
1814
|
+
designObjectId: nullishToOptional(z40.string()),
|
|
1815
|
+
designObjectIds: nullishToOptional(z40.array(z40.string())),
|
|
1816
|
+
tokenType: nullishToOptional(DesignTokenType.or(z40.literal("Font"))),
|
|
1817
|
+
showNestedGroups: nullishToOptional(z40.boolean()),
|
|
1818
|
+
brandId: nullishToOptional(z40.string()),
|
|
1826
1819
|
// Rich text
|
|
1827
1820
|
text: nullishToOptional(PageBlockText),
|
|
1828
|
-
caption: nullishToOptional(
|
|
1829
|
-
headingType: nullishToOptional(
|
|
1821
|
+
caption: nullishToOptional(z40.string()),
|
|
1822
|
+
headingType: nullishToOptional(z40.number().min(1).max(3)),
|
|
1830
1823
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
1831
1824
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
1832
|
-
urlInput: nullishToOptional(
|
|
1833
|
-
url: nullishToOptional(
|
|
1825
|
+
urlInput: nullishToOptional(z40.string()),
|
|
1826
|
+
url: nullishToOptional(z40.string()),
|
|
1834
1827
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1835
1828
|
// Image
|
|
1836
1829
|
asset: nullishToOptional(PageBlockAsset),
|
|
1837
1830
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
1838
|
-
imageAlt: nullishToOptional(
|
|
1831
|
+
imageAlt: nullishToOptional(z40.string()),
|
|
1839
1832
|
// Shortcuts block
|
|
1840
|
-
shortcuts: nullishToOptional(
|
|
1833
|
+
shortcuts: nullishToOptional(z40.array(PageBlockShortcut)),
|
|
1841
1834
|
// Guidelines
|
|
1842
1835
|
guideline: nullishToOptional(PageBlockGuideline),
|
|
1843
1836
|
// Custom blocks
|
|
1844
|
-
customBlockKey: nullishToOptional(
|
|
1845
|
-
customBlockProperties: nullishToOptional(
|
|
1846
|
-
variantKey: nullishToOptional(
|
|
1837
|
+
customBlockKey: nullishToOptional(z40.string()),
|
|
1838
|
+
customBlockProperties: nullishToOptional(z40.array(PageBlockCustomBlockPropertyValue)),
|
|
1839
|
+
variantKey: nullishToOptional(z40.string()),
|
|
1847
1840
|
// Figma frames
|
|
1848
1841
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
1849
|
-
figmaFrames: nullishToOptional(
|
|
1842
|
+
figmaFrames: nullishToOptional(z40.array(PageBlockFrame)),
|
|
1850
1843
|
// Generic
|
|
1851
1844
|
size: nullishToOptional(Size),
|
|
1852
1845
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1853
1846
|
// Render code
|
|
1854
1847
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
1855
1848
|
// Component assets
|
|
1856
|
-
componentAssets: nullishToOptional(
|
|
1849
|
+
componentAssets: nullishToOptional(z40.array(PageBlockAssetComponent)),
|
|
1857
1850
|
// Tables
|
|
1858
1851
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
1859
|
-
columnId: nullishToOptional(
|
|
1852
|
+
columnId: nullishToOptional(z40.string()),
|
|
1860
1853
|
// Token spreadsheet
|
|
1861
1854
|
theme: nullishToOptional(PageBlockTheme),
|
|
1862
1855
|
swatches: nullishToOptional(PageBlockSwatch.array()),
|
|
1863
|
-
blacklistedElementProperties: nullishToOptional(
|
|
1856
|
+
blacklistedElementProperties: nullishToOptional(z40.array(z40.string())),
|
|
1864
1857
|
// Arbitrary
|
|
1865
|
-
userMetadata: nullishToOptional(
|
|
1858
|
+
userMetadata: nullishToOptional(z40.string())
|
|
1866
1859
|
});
|
|
1867
1860
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
1868
|
-
children:
|
|
1861
|
+
children: z40.lazy(
|
|
1869
1862
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
1870
1863
|
)
|
|
1871
1864
|
});
|
|
@@ -1959,37 +1952,37 @@ function sanitizeSpanAttribute(attribute) {
|
|
|
1959
1952
|
};
|
|
1960
1953
|
}
|
|
1961
1954
|
}
|
|
1962
|
-
var PageBlockDefinitionAppearance =
|
|
1963
|
-
isBordered:
|
|
1964
|
-
hasBackground:
|
|
1965
|
-
isEditorPresentationDifferent:
|
|
1966
|
-
showBlockHeaderInEditor:
|
|
1955
|
+
var PageBlockDefinitionAppearance = z41.object({
|
|
1956
|
+
isBordered: z41.boolean().optional(),
|
|
1957
|
+
hasBackground: z41.boolean().optional(),
|
|
1958
|
+
isEditorPresentationDifferent: z41.boolean().optional(),
|
|
1959
|
+
showBlockHeaderInEditor: z41.boolean().optional()
|
|
1967
1960
|
});
|
|
1968
|
-
var PageBlockDefinitionLayoutType =
|
|
1969
|
-
var PageBlockDefinitionLayoutGap =
|
|
1970
|
-
var PageBlockDefinitionLayoutAlign =
|
|
1971
|
-
var PageBlockDefinitionLayoutResizing =
|
|
1972
|
-
var PageBlockDefinitionLayoutBase =
|
|
1961
|
+
var PageBlockDefinitionLayoutType = z42.enum(["Column", "Row"]);
|
|
1962
|
+
var PageBlockDefinitionLayoutGap = z42.enum(["Small", "Medium", "Large", "None"]);
|
|
1963
|
+
var PageBlockDefinitionLayoutAlign = z42.enum(["Start", "Center", "End"]);
|
|
1964
|
+
var PageBlockDefinitionLayoutResizing = z42.enum(["Fill", "Hug"]);
|
|
1965
|
+
var PageBlockDefinitionLayoutBase = z42.object({
|
|
1973
1966
|
type: PageBlockDefinitionLayoutType,
|
|
1974
1967
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1975
1968
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1976
1969
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1977
1970
|
});
|
|
1978
1971
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1979
|
-
children:
|
|
1980
|
-
});
|
|
1981
|
-
var PageBlockDefinitionVariant =
|
|
1982
|
-
id:
|
|
1983
|
-
name:
|
|
1984
|
-
image:
|
|
1985
|
-
description:
|
|
1986
|
-
documentationLink:
|
|
1972
|
+
children: z42.lazy(() => z42.array(PageBlockDefinitionLayout.or(z42.string())))
|
|
1973
|
+
});
|
|
1974
|
+
var PageBlockDefinitionVariant = z42.object({
|
|
1975
|
+
id: z42.string(),
|
|
1976
|
+
name: z42.string(),
|
|
1977
|
+
image: z42.string().optional(),
|
|
1978
|
+
description: z42.string().optional(),
|
|
1979
|
+
documentationLink: z42.string().optional(),
|
|
1987
1980
|
layout: PageBlockDefinitionLayout,
|
|
1988
|
-
maxColumns:
|
|
1989
|
-
defaultColumns:
|
|
1981
|
+
maxColumns: z42.number().optional(),
|
|
1982
|
+
defaultColumns: z42.number().optional(),
|
|
1990
1983
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
1991
1984
|
});
|
|
1992
|
-
var PageBlockDefinitionPropertyType =
|
|
1985
|
+
var PageBlockDefinitionPropertyType = z43.enum([
|
|
1993
1986
|
"RichText",
|
|
1994
1987
|
"MultiRichText",
|
|
1995
1988
|
"RichTextEditor",
|
|
@@ -2018,7 +2011,7 @@ var PageBlockDefinitionPropertyType = z44.enum([
|
|
|
2018
2011
|
"Color",
|
|
2019
2012
|
"FigmaComponent"
|
|
2020
2013
|
]);
|
|
2021
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
2014
|
+
var PageBlockDefinitionRichTextPropertyStyle = z43.enum([
|
|
2022
2015
|
"Title1",
|
|
2023
2016
|
"Title2",
|
|
2024
2017
|
"Title3",
|
|
@@ -2028,8 +2021,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z44.enum([
|
|
|
2028
2021
|
"Callout",
|
|
2029
2022
|
"Default"
|
|
2030
2023
|
]);
|
|
2031
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
2032
|
-
var PageBlockDefinitionRichTextEditorPropertyStyle =
|
|
2024
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z43.enum(["OL", "UL"]);
|
|
2025
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z43.enum([
|
|
2033
2026
|
"OL",
|
|
2034
2027
|
"UL",
|
|
2035
2028
|
"Bold",
|
|
@@ -2038,7 +2031,7 @@ var PageBlockDefinitionRichTextEditorPropertyStyle = z44.enum([
|
|
|
2038
2031
|
"Strikethrough",
|
|
2039
2032
|
"InlineCode"
|
|
2040
2033
|
]);
|
|
2041
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
2034
|
+
var PageBlockDefinitionTextPropertyStyle = z43.enum([
|
|
2042
2035
|
"Title1",
|
|
2043
2036
|
"Title2",
|
|
2044
2037
|
"Title3",
|
|
@@ -2052,15 +2045,15 @@ var PageBlockDefinitionTextPropertyStyle = z44.enum([
|
|
|
2052
2045
|
"SmallSemibold",
|
|
2053
2046
|
"Custom"
|
|
2054
2047
|
]);
|
|
2055
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
2056
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2057
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2048
|
+
var PageBlockDefinitionTextPropertyColor = z43.enum(["Neutral", "NeutralFaded"]);
|
|
2049
|
+
var PageBlockDefinitionBooleanPropertyStyle = z43.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2050
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z43.enum([
|
|
2058
2051
|
"SegmentedControl",
|
|
2059
2052
|
"ToggleButton",
|
|
2060
2053
|
"Select",
|
|
2061
2054
|
"Checkbox"
|
|
2062
2055
|
]);
|
|
2063
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
2056
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z43.enum([
|
|
2064
2057
|
"Green",
|
|
2065
2058
|
"Red",
|
|
2066
2059
|
"Yellow",
|
|
@@ -2075,351 +2068,351 @@ var PageBlockDefinitionSingleSelectPropertyColor = z44.enum([
|
|
|
2075
2068
|
"Cyan",
|
|
2076
2069
|
"Fuchsia"
|
|
2077
2070
|
]);
|
|
2078
|
-
var IconSet =
|
|
2079
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2080
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2081
|
-
var PageBlockDefinitionImageWidth =
|
|
2082
|
-
var PageBlockDefinitionSelectChoice =
|
|
2083
|
-
value:
|
|
2084
|
-
name:
|
|
2071
|
+
var IconSet = z43.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
2072
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z43.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2073
|
+
var PageBlockDefinitionImageAspectRatio = z43.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2074
|
+
var PageBlockDefinitionImageWidth = z43.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2075
|
+
var PageBlockDefinitionSelectChoice = z43.object({
|
|
2076
|
+
value: z43.string(),
|
|
2077
|
+
name: z43.string(),
|
|
2085
2078
|
icon: IconSet.optional(),
|
|
2086
|
-
customIconUrl:
|
|
2079
|
+
customIconUrl: z43.string().optional(),
|
|
2087
2080
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2088
2081
|
});
|
|
2089
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2090
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2082
|
+
var PageBlockDefinitionUntypedPropertyOptions = z43.record(z43.any());
|
|
2083
|
+
var PageBlockDefinitionRichTextOptions = z43.object({
|
|
2091
2084
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2092
2085
|
});
|
|
2093
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2086
|
+
var PageBlockDefinitionMutiRichTextOptions = z43.object({
|
|
2094
2087
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2095
2088
|
});
|
|
2096
|
-
var PageBlockDefinitionRichTextEditorOptions =
|
|
2097
|
-
placeholder:
|
|
2098
|
-
allowedInlineStyles:
|
|
2089
|
+
var PageBlockDefinitionRichTextEditorOptions = z43.object({
|
|
2090
|
+
placeholder: z43.string().optional(),
|
|
2091
|
+
allowedInlineStyles: z43.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
2099
2092
|
});
|
|
2100
|
-
var PageBlockDefinitionTextOptions =
|
|
2101
|
-
placeholder:
|
|
2102
|
-
defaultValue:
|
|
2093
|
+
var PageBlockDefinitionTextOptions = z43.object({
|
|
2094
|
+
placeholder: z43.string().optional(),
|
|
2095
|
+
defaultValue: z43.string().optional(),
|
|
2103
2096
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2104
2097
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2105
|
-
allowLineBreaks:
|
|
2098
|
+
allowLineBreaks: z43.boolean().optional()
|
|
2106
2099
|
});
|
|
2107
|
-
var PageBlockDefinitionSelectOptions =
|
|
2100
|
+
var PageBlockDefinitionSelectOptions = z43.object({
|
|
2108
2101
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2109
|
-
defaultChoice:
|
|
2110
|
-
choices:
|
|
2102
|
+
defaultChoice: z43.string(),
|
|
2103
|
+
choices: z43.array(PageBlockDefinitionSelectChoice)
|
|
2111
2104
|
});
|
|
2112
|
-
var PageBlockDefinitionImageOptions =
|
|
2105
|
+
var PageBlockDefinitionImageOptions = z43.object({
|
|
2113
2106
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2114
2107
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2115
|
-
allowCaption:
|
|
2116
|
-
recommendation:
|
|
2108
|
+
allowCaption: z43.boolean().optional(),
|
|
2109
|
+
recommendation: z43.string().optional()
|
|
2117
2110
|
});
|
|
2118
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2119
|
-
defaultvalue:
|
|
2111
|
+
var PageBlockDefinitionBooleanOptions = z43.object({
|
|
2112
|
+
defaultvalue: z43.boolean().optional(),
|
|
2120
2113
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2121
2114
|
});
|
|
2122
|
-
var PageBlockDefinitionNumberOptions =
|
|
2123
|
-
defaultValue:
|
|
2124
|
-
min:
|
|
2125
|
-
max:
|
|
2126
|
-
step:
|
|
2127
|
-
placeholder:
|
|
2115
|
+
var PageBlockDefinitionNumberOptions = z43.object({
|
|
2116
|
+
defaultValue: z43.number(),
|
|
2117
|
+
min: z43.number().optional(),
|
|
2118
|
+
max: z43.number().optional(),
|
|
2119
|
+
step: z43.number().optional(),
|
|
2120
|
+
placeholder: z43.string().optional()
|
|
2128
2121
|
});
|
|
2129
|
-
var PageBlockDefinitionComponentOptions =
|
|
2130
|
-
renderLayoutAs:
|
|
2131
|
-
allowPropertySelection:
|
|
2122
|
+
var PageBlockDefinitionComponentOptions = z43.object({
|
|
2123
|
+
renderLayoutAs: z43.enum(["List", "Table"]).optional(),
|
|
2124
|
+
allowPropertySelection: z43.boolean().optional()
|
|
2132
2125
|
});
|
|
2133
|
-
var PageBlockDefinitionProperty =
|
|
2134
|
-
id:
|
|
2135
|
-
name:
|
|
2126
|
+
var PageBlockDefinitionProperty = z43.object({
|
|
2127
|
+
id: z43.string(),
|
|
2128
|
+
name: z43.string(),
|
|
2136
2129
|
type: PageBlockDefinitionPropertyType,
|
|
2137
|
-
description:
|
|
2130
|
+
description: z43.string().optional(),
|
|
2138
2131
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2139
|
-
variantOptions:
|
|
2132
|
+
variantOptions: z43.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2140
2133
|
});
|
|
2141
|
-
var PageBlockDefinitionItem =
|
|
2142
|
-
properties:
|
|
2134
|
+
var PageBlockDefinitionItem = z43.object({
|
|
2135
|
+
properties: z43.array(PageBlockDefinitionProperty),
|
|
2143
2136
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2144
|
-
variants:
|
|
2145
|
-
defaultVariantKey:
|
|
2146
|
-
});
|
|
2147
|
-
var PageBlockLinkType =
|
|
2148
|
-
var PageBlockImageType =
|
|
2149
|
-
var PageBlockImageAlignment =
|
|
2150
|
-
var PageBlockTableCellAlignment =
|
|
2151
|
-
var PageBlockPreviewContainerSize =
|
|
2152
|
-
var PageBlockThemeDisplayMode =
|
|
2153
|
-
var PageBlockImageResourceReference =
|
|
2154
|
-
resourceId:
|
|
2155
|
-
url:
|
|
2156
|
-
});
|
|
2157
|
-
var PageBlockResourceFrameNodeReference =
|
|
2158
|
-
sourceId:
|
|
2159
|
-
frameReferenceId:
|
|
2160
|
-
});
|
|
2161
|
-
var PageBlockImageReference =
|
|
2137
|
+
variants: z43.array(PageBlockDefinitionVariant),
|
|
2138
|
+
defaultVariantKey: z43.string()
|
|
2139
|
+
});
|
|
2140
|
+
var PageBlockLinkType = z44.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
2141
|
+
var PageBlockImageType = z44.enum(["Resource", "FigmaNode"]);
|
|
2142
|
+
var PageBlockImageAlignment = z44.enum(["Left", "Center", "Stretch"]);
|
|
2143
|
+
var PageBlockTableCellAlignment = z44.enum(["Left", "Center", "Right"]);
|
|
2144
|
+
var PageBlockPreviewContainerSize = z44.enum(["Centered", "NaturalHeight"]);
|
|
2145
|
+
var PageBlockThemeDisplayMode = z44.enum(["Split", "Override"]);
|
|
2146
|
+
var PageBlockImageResourceReference = z44.object({
|
|
2147
|
+
resourceId: z44.string(),
|
|
2148
|
+
url: z44.string()
|
|
2149
|
+
});
|
|
2150
|
+
var PageBlockResourceFrameNodeReference = z44.object({
|
|
2151
|
+
sourceId: z44.string(),
|
|
2152
|
+
frameReferenceId: z44.string()
|
|
2153
|
+
});
|
|
2154
|
+
var PageBlockImageReference = z44.object({
|
|
2162
2155
|
type: PageBlockImageType,
|
|
2163
2156
|
resource: PageBlockImageResourceReference.optional(),
|
|
2164
2157
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
2165
2158
|
});
|
|
2166
|
-
var PageBlockColorV2 =
|
|
2167
|
-
value:
|
|
2168
|
-
referencedTokenId:
|
|
2159
|
+
var PageBlockColorV2 = z44.object({
|
|
2160
|
+
value: z44.string(),
|
|
2161
|
+
referencedTokenId: z44.string().optional()
|
|
2169
2162
|
});
|
|
2170
|
-
var PageBlockAssetEntityMeta =
|
|
2171
|
-
title:
|
|
2172
|
-
description:
|
|
2163
|
+
var PageBlockAssetEntityMeta = z44.object({
|
|
2164
|
+
title: z44.string().optional(),
|
|
2165
|
+
description: z44.string().optional(),
|
|
2173
2166
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2174
|
-
showNestedGroups:
|
|
2167
|
+
showNestedGroups: z44.boolean().optional()
|
|
2175
2168
|
});
|
|
2176
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
2177
|
-
title:
|
|
2178
|
-
description:
|
|
2169
|
+
var PageBlockFigmaComponentEntityMeta = z44.object({
|
|
2170
|
+
title: z44.string().optional(),
|
|
2171
|
+
description: z44.string().optional(),
|
|
2179
2172
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2180
|
-
selectedComponentProperties:
|
|
2173
|
+
selectedComponentProperties: z44.array(z44.string()).optional()
|
|
2181
2174
|
});
|
|
2182
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
2183
|
-
title:
|
|
2184
|
-
description:
|
|
2175
|
+
var PageBlockFigmaNodeEntityMeta = z44.object({
|
|
2176
|
+
title: z44.string().optional(),
|
|
2177
|
+
description: z44.string().optional(),
|
|
2185
2178
|
backgroundColor: PageBlockColorV2.optional()
|
|
2186
2179
|
});
|
|
2187
|
-
var PageBlockAppearanceV2 =
|
|
2180
|
+
var PageBlockAppearanceV2 = z44.object({
|
|
2188
2181
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
2189
|
-
numberOfColumns:
|
|
2182
|
+
numberOfColumns: z44.number().optional()
|
|
2190
2183
|
});
|
|
2191
|
-
var PageBlockItemUntypedValue =
|
|
2192
|
-
value:
|
|
2193
|
-
}).and(
|
|
2194
|
-
var PageBlockLinkV2 =
|
|
2184
|
+
var PageBlockItemUntypedValue = z44.object({
|
|
2185
|
+
value: z44.any()
|
|
2186
|
+
}).and(z44.record(z44.any()));
|
|
2187
|
+
var PageBlockLinkV2 = z44.object({
|
|
2195
2188
|
type: PageBlockLinkType,
|
|
2196
|
-
documentationItemId:
|
|
2197
|
-
pageHeadingId:
|
|
2198
|
-
url:
|
|
2199
|
-
openInNewTab:
|
|
2189
|
+
documentationItemId: z44.string().optional(),
|
|
2190
|
+
pageHeadingId: z44.string().optional(),
|
|
2191
|
+
url: z44.string().optional(),
|
|
2192
|
+
openInNewTab: z44.boolean().optional()
|
|
2200
2193
|
});
|
|
2201
|
-
var PageBlockItemV2 =
|
|
2202
|
-
id:
|
|
2194
|
+
var PageBlockItemV2 = z44.object({
|
|
2195
|
+
id: z44.string(),
|
|
2203
2196
|
linksTo: PageBlockLinkV2.optional(),
|
|
2204
|
-
props:
|
|
2197
|
+
props: z44.record(PageBlockItemUntypedValue)
|
|
2205
2198
|
});
|
|
2206
|
-
var PageBlockDataV2 =
|
|
2207
|
-
packageId:
|
|
2208
|
-
variantId:
|
|
2209
|
-
indentLevel:
|
|
2199
|
+
var PageBlockDataV2 = z44.object({
|
|
2200
|
+
packageId: z44.string(),
|
|
2201
|
+
variantId: z44.string().optional(),
|
|
2202
|
+
indentLevel: z44.number(),
|
|
2210
2203
|
appearance: PageBlockAppearanceV2.optional(),
|
|
2211
|
-
items:
|
|
2204
|
+
items: z44.array(PageBlockItemV2)
|
|
2212
2205
|
});
|
|
2213
|
-
var PageBlockItemAssetValue =
|
|
2214
|
-
selectedPropertyIds:
|
|
2215
|
-
showSearch:
|
|
2206
|
+
var PageBlockItemAssetValue = z44.object({
|
|
2207
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2208
|
+
showSearch: z44.boolean().optional(),
|
|
2216
2209
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2217
2210
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2218
|
-
value:
|
|
2219
|
-
|
|
2220
|
-
entityId:
|
|
2221
|
-
entityType:
|
|
2211
|
+
value: z44.array(
|
|
2212
|
+
z44.object({
|
|
2213
|
+
entityId: z44.string(),
|
|
2214
|
+
entityType: z44.enum(["Asset", "AssetGroup"]),
|
|
2222
2215
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
2223
2216
|
})
|
|
2224
2217
|
).default([])
|
|
2225
2218
|
});
|
|
2226
|
-
var PageBlockItemAssetPropertyValue =
|
|
2227
|
-
value:
|
|
2219
|
+
var PageBlockItemAssetPropertyValue = z44.object({
|
|
2220
|
+
value: z44.array(z44.string()).default([])
|
|
2228
2221
|
});
|
|
2229
|
-
var PageBlockItemFigmaComponentValue =
|
|
2230
|
-
showComponentName:
|
|
2231
|
-
showComponentDescription:
|
|
2232
|
-
showPropertyList:
|
|
2222
|
+
var PageBlockItemFigmaComponentValue = z44.object({
|
|
2223
|
+
showComponentName: z44.boolean().optional(),
|
|
2224
|
+
showComponentDescription: z44.boolean().optional(),
|
|
2225
|
+
showPropertyList: z44.boolean().optional(),
|
|
2233
2226
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2234
2227
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2235
|
-
value:
|
|
2236
|
-
|
|
2237
|
-
entityId:
|
|
2238
|
-
entityType:
|
|
2228
|
+
value: z44.array(
|
|
2229
|
+
z44.object({
|
|
2230
|
+
entityId: z44.string(),
|
|
2231
|
+
entityType: z44.enum(["FigmaComponent"]),
|
|
2239
2232
|
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
2240
2233
|
})
|
|
2241
2234
|
).default([])
|
|
2242
2235
|
});
|
|
2243
|
-
var PageBlockItemBooleanValue =
|
|
2244
|
-
value:
|
|
2236
|
+
var PageBlockItemBooleanValue = z44.object({
|
|
2237
|
+
value: z44.boolean()
|
|
2245
2238
|
});
|
|
2246
|
-
var PageBlockItemCodeValue =
|
|
2239
|
+
var PageBlockItemCodeValue = z44.object({
|
|
2247
2240
|
format: PageBlockCodeLanguage.optional(),
|
|
2248
|
-
caption:
|
|
2249
|
-
value:
|
|
2250
|
-
});
|
|
2251
|
-
var PageBlockItemSandboxValue =
|
|
2252
|
-
showCode:
|
|
2253
|
-
showControls:
|
|
2254
|
-
backgroundColor:
|
|
2255
|
-
alignPreview:
|
|
2256
|
-
previewHeight:
|
|
2257
|
-
value:
|
|
2258
|
-
});
|
|
2259
|
-
var PageBlockItemColorValue =
|
|
2260
|
-
var PageBlockItemComponentValue =
|
|
2261
|
-
selectedPropertyIds:
|
|
2262
|
-
selectedBrandId:
|
|
2263
|
-
value:
|
|
2264
|
-
|
|
2265
|
-
entityId:
|
|
2266
|
-
entityType:
|
|
2241
|
+
caption: z44.string().optional(),
|
|
2242
|
+
value: z44.string()
|
|
2243
|
+
});
|
|
2244
|
+
var PageBlockItemSandboxValue = z44.object({
|
|
2245
|
+
showCode: z44.boolean().optional(),
|
|
2246
|
+
showControls: z44.boolean().optional(),
|
|
2247
|
+
backgroundColor: z44.string().optional(),
|
|
2248
|
+
alignPreview: z44.enum(["Left", "Center"]).optional(),
|
|
2249
|
+
previewHeight: z44.number().optional(),
|
|
2250
|
+
value: z44.string()
|
|
2251
|
+
});
|
|
2252
|
+
var PageBlockItemColorValue = z44.record(z44.any());
|
|
2253
|
+
var PageBlockItemComponentValue = z44.object({
|
|
2254
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2255
|
+
selectedBrandId: z44.string().optional(),
|
|
2256
|
+
value: z44.array(
|
|
2257
|
+
z44.object({
|
|
2258
|
+
entityId: z44.string(),
|
|
2259
|
+
entityType: z44.enum(["Component", "ComponentGroup"])
|
|
2267
2260
|
})
|
|
2268
2261
|
).default([])
|
|
2269
2262
|
});
|
|
2270
|
-
var PageBlockItemComponentPropertyValue =
|
|
2271
|
-
value:
|
|
2272
|
-
});
|
|
2273
|
-
var PageBlockItemDividerValue =
|
|
2274
|
-
var PageBlockItemEmbedValue =
|
|
2275
|
-
value:
|
|
2276
|
-
caption:
|
|
2277
|
-
height:
|
|
2278
|
-
alt:
|
|
2279
|
-
openGraph:
|
|
2280
|
-
title:
|
|
2281
|
-
description:
|
|
2282
|
-
imageUrl:
|
|
2263
|
+
var PageBlockItemComponentPropertyValue = z44.object({
|
|
2264
|
+
value: z44.string()
|
|
2265
|
+
});
|
|
2266
|
+
var PageBlockItemDividerValue = z44.object({});
|
|
2267
|
+
var PageBlockItemEmbedValue = z44.object({
|
|
2268
|
+
value: z44.string().optional(),
|
|
2269
|
+
caption: z44.string().optional(),
|
|
2270
|
+
height: z44.number().optional(),
|
|
2271
|
+
alt: z44.number().optional(),
|
|
2272
|
+
openGraph: z44.object({
|
|
2273
|
+
title: z44.string().optional(),
|
|
2274
|
+
description: z44.string().optional(),
|
|
2275
|
+
imageUrl: z44.string().optional()
|
|
2283
2276
|
}).optional()
|
|
2284
2277
|
});
|
|
2285
|
-
var PageBlockItemFigmaNodeValue =
|
|
2286
|
-
showSearch:
|
|
2278
|
+
var PageBlockItemFigmaNodeValue = z44.object({
|
|
2279
|
+
showSearch: z44.boolean().optional(),
|
|
2287
2280
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2288
2281
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2289
|
-
showFrameDetails:
|
|
2290
|
-
value:
|
|
2291
|
-
|
|
2292
|
-
entityId:
|
|
2282
|
+
showFrameDetails: z44.boolean().optional(),
|
|
2283
|
+
value: z44.array(
|
|
2284
|
+
z44.object({
|
|
2285
|
+
entityId: z44.string(),
|
|
2293
2286
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
2294
2287
|
})
|
|
2295
2288
|
).default([])
|
|
2296
2289
|
});
|
|
2297
|
-
var PageBlockItemImageValue =
|
|
2298
|
-
alt:
|
|
2299
|
-
caption:
|
|
2290
|
+
var PageBlockItemImageValue = z44.object({
|
|
2291
|
+
alt: z44.string().optional(),
|
|
2292
|
+
caption: z44.string().optional(),
|
|
2300
2293
|
alignment: PageBlockImageAlignment.optional(),
|
|
2301
2294
|
value: PageBlockImageReference.optional()
|
|
2302
2295
|
});
|
|
2303
|
-
var PageBlockItemMarkdownValue =
|
|
2304
|
-
value:
|
|
2296
|
+
var PageBlockItemMarkdownValue = z44.object({
|
|
2297
|
+
value: z44.string()
|
|
2305
2298
|
});
|
|
2306
|
-
var PageBlockItemMultiRichTextValue =
|
|
2299
|
+
var PageBlockItemMultiRichTextValue = z44.object({
|
|
2307
2300
|
value: PageBlockText.array()
|
|
2308
2301
|
});
|
|
2309
|
-
var PageBlockItemMultiSelectValue =
|
|
2310
|
-
value:
|
|
2302
|
+
var PageBlockItemMultiSelectValue = z44.object({
|
|
2303
|
+
value: z44.array(z44.string()).default([])
|
|
2311
2304
|
});
|
|
2312
|
-
var PageBlockItemNumberValue =
|
|
2313
|
-
value:
|
|
2305
|
+
var PageBlockItemNumberValue = z44.object({
|
|
2306
|
+
value: z44.number()
|
|
2314
2307
|
});
|
|
2315
|
-
var PageBlockItemRichTextValue =
|
|
2308
|
+
var PageBlockItemRichTextValue = z44.object({
|
|
2316
2309
|
value: PageBlockText,
|
|
2317
2310
|
calloutType: PageBlockCalloutType.optional()
|
|
2318
2311
|
});
|
|
2319
|
-
var PageBlockItemSingleSelectValue =
|
|
2320
|
-
value:
|
|
2312
|
+
var PageBlockItemSingleSelectValue = z44.object({
|
|
2313
|
+
value: z44.string()
|
|
2321
2314
|
});
|
|
2322
|
-
var PageBlockItemStorybookValue =
|
|
2323
|
-
caption:
|
|
2324
|
-
height:
|
|
2325
|
-
embedUrl:
|
|
2326
|
-
value:
|
|
2315
|
+
var PageBlockItemStorybookValue = z44.object({
|
|
2316
|
+
caption: z44.string().optional(),
|
|
2317
|
+
height: z44.number().optional(),
|
|
2318
|
+
embedUrl: z44.string().optional(),
|
|
2319
|
+
value: z44.string().optional()
|
|
2327
2320
|
});
|
|
2328
|
-
var PageBlockItemTextValue =
|
|
2329
|
-
value:
|
|
2321
|
+
var PageBlockItemTextValue = z44.object({
|
|
2322
|
+
value: z44.string()
|
|
2330
2323
|
});
|
|
2331
|
-
var PageBlockItemSwatch =
|
|
2332
|
-
id:
|
|
2333
|
-
selectedThemeIds:
|
|
2324
|
+
var PageBlockItemSwatch = z44.object({
|
|
2325
|
+
id: z44.string(),
|
|
2326
|
+
selectedThemeIds: z44.string().array()
|
|
2334
2327
|
});
|
|
2335
|
-
var PageBlockItemTokenValue =
|
|
2336
|
-
selectedPropertyIds:
|
|
2337
|
-
selectedThemeIds:
|
|
2338
|
-
swatches:
|
|
2328
|
+
var PageBlockItemTokenValue = z44.object({
|
|
2329
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2330
|
+
selectedThemeIds: z44.array(z44.string()).optional(),
|
|
2331
|
+
swatches: z44.array(PageBlockItemSwatch).optional(),
|
|
2339
2332
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
2340
|
-
value:
|
|
2341
|
-
|
|
2342
|
-
entityId:
|
|
2343
|
-
entityType:
|
|
2344
|
-
entityMeta:
|
|
2345
|
-
showNestedGroups:
|
|
2333
|
+
value: z44.array(
|
|
2334
|
+
z44.object({
|
|
2335
|
+
entityId: z44.string(),
|
|
2336
|
+
entityType: z44.enum(["Token", "TokenGroup"]),
|
|
2337
|
+
entityMeta: z44.object({
|
|
2338
|
+
showNestedGroups: z44.boolean().optional()
|
|
2346
2339
|
}).optional()
|
|
2347
2340
|
})
|
|
2348
2341
|
).default([])
|
|
2349
2342
|
});
|
|
2350
|
-
var PageBlockItemTokenPropertyValue =
|
|
2351
|
-
selectedPropertyIds:
|
|
2352
|
-
selectedThemeIds:
|
|
2353
|
-
value:
|
|
2343
|
+
var PageBlockItemTokenPropertyValue = z44.object({
|
|
2344
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2345
|
+
selectedThemeIds: z44.array(z44.string()).optional(),
|
|
2346
|
+
value: z44.array(z44.string()).default([])
|
|
2354
2347
|
});
|
|
2355
|
-
var PageBlockItemTokenTypeValue =
|
|
2356
|
-
value:
|
|
2348
|
+
var PageBlockItemTokenTypeValue = z44.object({
|
|
2349
|
+
value: z44.array(DesignTokenType).default([])
|
|
2357
2350
|
});
|
|
2358
|
-
var PageBlockItemUrlValue =
|
|
2359
|
-
value:
|
|
2351
|
+
var PageBlockItemUrlValue = z44.object({
|
|
2352
|
+
value: z44.string()
|
|
2360
2353
|
});
|
|
2361
|
-
var PageBlockItemRichTextEditorParagraphNode =
|
|
2362
|
-
type:
|
|
2354
|
+
var PageBlockItemRichTextEditorParagraphNode = z44.object({
|
|
2355
|
+
type: z44.literal("Paragraph"),
|
|
2363
2356
|
value: PageBlockItemRichTextValue.shape.value
|
|
2364
2357
|
});
|
|
2365
|
-
var PageBlockItemRichTextEditorListNode =
|
|
2366
|
-
type:
|
|
2358
|
+
var PageBlockItemRichTextEditorListNode = z44.object({
|
|
2359
|
+
type: z44.literal("List"),
|
|
2367
2360
|
listType: PageBlockDefinitionMultiRichTextPropertyStyle,
|
|
2368
2361
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2369
2362
|
});
|
|
2370
|
-
var PageBlockItemRichTextEditorNode =
|
|
2363
|
+
var PageBlockItemRichTextEditorNode = z44.discriminatedUnion("type", [
|
|
2371
2364
|
PageBlockItemRichTextEditorParagraphNode,
|
|
2372
2365
|
PageBlockItemRichTextEditorListNode
|
|
2373
2366
|
]);
|
|
2374
|
-
var PageBlockItemRichTextEditorValue =
|
|
2367
|
+
var PageBlockItemRichTextEditorValue = z44.object({
|
|
2375
2368
|
value: PageBlockItemRichTextEditorNode.array()
|
|
2376
2369
|
});
|
|
2377
|
-
var PageBlockItemTableRichTextNode =
|
|
2378
|
-
type:
|
|
2379
|
-
id:
|
|
2370
|
+
var PageBlockItemTableRichTextNode = z44.object({
|
|
2371
|
+
type: z44.literal("RichText"),
|
|
2372
|
+
id: z44.string(),
|
|
2380
2373
|
value: PageBlockItemRichTextValue.shape.value
|
|
2381
2374
|
});
|
|
2382
|
-
var PageBlockItemTableImageNode =
|
|
2383
|
-
type:
|
|
2384
|
-
id:
|
|
2375
|
+
var PageBlockItemTableImageNode = z44.object({
|
|
2376
|
+
type: z44.literal("Image"),
|
|
2377
|
+
id: z44.string(),
|
|
2385
2378
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2386
2379
|
alt: PageBlockItemImageValue.shape.alt,
|
|
2387
2380
|
value: PageBlockItemImageValue.shape.value,
|
|
2388
2381
|
alignment: PageBlockItemImageValue.shape.alignment
|
|
2389
2382
|
});
|
|
2390
|
-
var PageBlockItemTableNode =
|
|
2383
|
+
var PageBlockItemTableNode = z44.discriminatedUnion("type", [
|
|
2391
2384
|
PageBlockItemTableRichTextNode,
|
|
2392
2385
|
PageBlockItemTableImageNode
|
|
2393
2386
|
]);
|
|
2394
|
-
var PageBlockItemTableCell =
|
|
2395
|
-
id:
|
|
2396
|
-
nodes:
|
|
2397
|
-
columnWidth:
|
|
2387
|
+
var PageBlockItemTableCell = z44.object({
|
|
2388
|
+
id: z44.string(),
|
|
2389
|
+
nodes: z44.array(PageBlockItemTableNode),
|
|
2390
|
+
columnWidth: z44.number().optional(),
|
|
2398
2391
|
alignment: PageBlockTableCellAlignment
|
|
2399
2392
|
});
|
|
2400
|
-
var PageBlockItemTableRow =
|
|
2401
|
-
cells:
|
|
2393
|
+
var PageBlockItemTableRow = z44.object({
|
|
2394
|
+
cells: z44.array(PageBlockItemTableCell)
|
|
2402
2395
|
});
|
|
2403
|
-
var PageBlockItemTableValue =
|
|
2404
|
-
highlightHeaderColumn:
|
|
2405
|
-
highlightHeaderRow:
|
|
2406
|
-
showBorder:
|
|
2407
|
-
value:
|
|
2396
|
+
var PageBlockItemTableValue = z44.object({
|
|
2397
|
+
highlightHeaderColumn: z44.boolean().optional(),
|
|
2398
|
+
highlightHeaderRow: z44.boolean().optional(),
|
|
2399
|
+
showBorder: z44.boolean().optional(),
|
|
2400
|
+
value: z44.array(PageBlockItemTableRow).default([])
|
|
2408
2401
|
});
|
|
2409
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
2410
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
2402
|
+
var DocumentationItemHeaderAlignmentSchema = z45.enum(["Left", "Center"]);
|
|
2403
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z45.enum(["AspectFill", "AspectFit"]);
|
|
2411
2404
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
2412
2405
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
2413
|
-
var DocumentationItemHeaderV1 =
|
|
2414
|
-
description:
|
|
2406
|
+
var DocumentationItemHeaderV1 = z46.object({
|
|
2407
|
+
description: z46.string(),
|
|
2415
2408
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2416
2409
|
foregroundColor: ColorTokenData.nullish(),
|
|
2417
2410
|
backgroundColor: ColorTokenData.nullish(),
|
|
2418
2411
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
2419
2412
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2420
|
-
showBackgroundOverlay:
|
|
2421
|
-
showCoverText:
|
|
2422
|
-
minHeight:
|
|
2413
|
+
showBackgroundOverlay: z46.boolean(),
|
|
2414
|
+
showCoverText: z46.boolean(),
|
|
2415
|
+
minHeight: z46.number().nullish()
|
|
2423
2416
|
});
|
|
2424
2417
|
var defaultDocumentationItemHeaderV1 = {
|
|
2425
2418
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2428,26 +2421,26 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
2428
2421
|
showBackgroundOverlay: false,
|
|
2429
2422
|
showCoverText: true
|
|
2430
2423
|
};
|
|
2431
|
-
var DocumentationItemConfigurationV1 =
|
|
2432
|
-
showSidebar:
|
|
2433
|
-
isPrivate:
|
|
2434
|
-
isHidden:
|
|
2424
|
+
var DocumentationItemConfigurationV1 = z47.object({
|
|
2425
|
+
showSidebar: z47.boolean(),
|
|
2426
|
+
isPrivate: z47.boolean().optional(),
|
|
2427
|
+
isHidden: z47.boolean().optional(),
|
|
2435
2428
|
header: DocumentationItemHeaderV1
|
|
2436
2429
|
});
|
|
2437
|
-
var DocumentationPageDataV1 =
|
|
2438
|
-
blocks:
|
|
2430
|
+
var DocumentationPageDataV1 = z48.object({
|
|
2431
|
+
blocks: z48.array(PageBlockV1),
|
|
2439
2432
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2440
2433
|
});
|
|
2441
|
-
var DocumentationItemHeaderV2 =
|
|
2442
|
-
description:
|
|
2434
|
+
var DocumentationItemHeaderV2 = z49.object({
|
|
2435
|
+
description: z49.string(),
|
|
2443
2436
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2444
2437
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
2445
2438
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
2446
2439
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
2447
2440
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2448
|
-
showBackgroundOverlay:
|
|
2449
|
-
showCoverText:
|
|
2450
|
-
minHeight:
|
|
2441
|
+
showBackgroundOverlay: z49.boolean(),
|
|
2442
|
+
showCoverText: z49.boolean(),
|
|
2443
|
+
minHeight: z49.number().nullish()
|
|
2451
2444
|
});
|
|
2452
2445
|
var defaultDocumentationItemHeaderV2 = {
|
|
2453
2446
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2456,10 +2449,10 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
2456
2449
|
showBackgroundOverlay: false,
|
|
2457
2450
|
showCoverText: true
|
|
2458
2451
|
};
|
|
2459
|
-
var DocumentationItemConfigurationV2 =
|
|
2460
|
-
showSidebar:
|
|
2461
|
-
isPrivate:
|
|
2462
|
-
isHidden:
|
|
2452
|
+
var DocumentationItemConfigurationV2 = z50.object({
|
|
2453
|
+
showSidebar: z50.boolean(),
|
|
2454
|
+
isPrivate: z50.boolean().optional(),
|
|
2455
|
+
isHidden: z50.boolean().optional(),
|
|
2463
2456
|
header: DocumentationItemHeaderV2
|
|
2464
2457
|
});
|
|
2465
2458
|
var defaultDocumentationItemConfigurationV2 = {
|
|
@@ -2468,190 +2461,190 @@ var defaultDocumentationItemConfigurationV2 = {
|
|
|
2468
2461
|
isPrivate: false,
|
|
2469
2462
|
showSidebar: true
|
|
2470
2463
|
};
|
|
2471
|
-
var DocumentationPageDataV2 =
|
|
2464
|
+
var DocumentationPageDataV2 = z51.object({
|
|
2472
2465
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2473
2466
|
});
|
|
2474
|
-
var DesignElementOrigin =
|
|
2475
|
-
id:
|
|
2476
|
-
sourceId:
|
|
2477
|
-
name:
|
|
2467
|
+
var DesignElementOrigin = z52.object({
|
|
2468
|
+
id: z52.string(),
|
|
2469
|
+
sourceId: z52.string(),
|
|
2470
|
+
name: z52.string()
|
|
2478
2471
|
});
|
|
2479
|
-
var DesignElementBase =
|
|
2480
|
-
id:
|
|
2481
|
-
persistentId:
|
|
2472
|
+
var DesignElementBase = z52.object({
|
|
2473
|
+
id: z52.string(),
|
|
2474
|
+
persistentId: z52.string(),
|
|
2482
2475
|
meta: ObjectMeta,
|
|
2483
|
-
designSystemVersionId:
|
|
2484
|
-
createdAt:
|
|
2485
|
-
updatedAt:
|
|
2476
|
+
designSystemVersionId: z52.string(),
|
|
2477
|
+
createdAt: z52.coerce.date(),
|
|
2478
|
+
updatedAt: z52.coerce.date()
|
|
2486
2479
|
});
|
|
2487
2480
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
2488
2481
|
origin: DesignElementOrigin
|
|
2489
2482
|
});
|
|
2490
|
-
var DesignElementGroupablePart =
|
|
2491
|
-
parentPersistentId:
|
|
2492
|
-
sortOrder:
|
|
2483
|
+
var DesignElementGroupablePart = z52.object({
|
|
2484
|
+
parentPersistentId: z52.string().optional(),
|
|
2485
|
+
sortOrder: z52.number()
|
|
2493
2486
|
});
|
|
2494
2487
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
2495
2488
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
2496
|
-
parentPersistentId:
|
|
2489
|
+
parentPersistentId: z52.string()
|
|
2497
2490
|
});
|
|
2498
|
-
var DesignElementBrandedPart =
|
|
2499
|
-
brandPersistentId:
|
|
2491
|
+
var DesignElementBrandedPart = z52.object({
|
|
2492
|
+
brandPersistentId: z52.string()
|
|
2500
2493
|
});
|
|
2501
|
-
var DesignElementSlugPart =
|
|
2502
|
-
slug:
|
|
2503
|
-
userSlug:
|
|
2494
|
+
var DesignElementSlugPart = z52.object({
|
|
2495
|
+
slug: z52.string().optional(),
|
|
2496
|
+
userSlug: z52.string().optional()
|
|
2504
2497
|
});
|
|
2505
2498
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
2506
2499
|
data: PageBlockDataV2
|
|
2507
2500
|
});
|
|
2508
|
-
var PageBlockEditorModelV2 =
|
|
2509
|
-
id:
|
|
2510
|
-
type:
|
|
2501
|
+
var PageBlockEditorModelV2 = z53.object({
|
|
2502
|
+
id: z53.string(),
|
|
2503
|
+
type: z53.literal("Block"),
|
|
2511
2504
|
data: PageBlockDataV2
|
|
2512
2505
|
});
|
|
2513
|
-
var PageSectionTypeV2 =
|
|
2514
|
-
var PageSectionColumnV2 =
|
|
2515
|
-
id:
|
|
2516
|
-
blocks:
|
|
2517
|
-
});
|
|
2518
|
-
var PageSectionItemV2 =
|
|
2519
|
-
id:
|
|
2520
|
-
title:
|
|
2521
|
-
columns:
|
|
2522
|
-
});
|
|
2523
|
-
var PageSectionPaddingV2 =
|
|
2524
|
-
top:
|
|
2525
|
-
bottom:
|
|
2526
|
-
left:
|
|
2527
|
-
right:
|
|
2528
|
-
});
|
|
2529
|
-
var PageSectionAppearanceV2 =
|
|
2530
|
-
expandToEdges:
|
|
2531
|
-
contentExpandToEdges:
|
|
2506
|
+
var PageSectionTypeV2 = z54.enum(["Tabs"]);
|
|
2507
|
+
var PageSectionColumnV2 = z54.object({
|
|
2508
|
+
id: z54.string(),
|
|
2509
|
+
blocks: z54.array(PageBlockEditorModelV2)
|
|
2510
|
+
});
|
|
2511
|
+
var PageSectionItemV2 = z54.object({
|
|
2512
|
+
id: z54.string(),
|
|
2513
|
+
title: z54.string(),
|
|
2514
|
+
columns: z54.array(PageSectionColumnV2)
|
|
2515
|
+
});
|
|
2516
|
+
var PageSectionPaddingV2 = z54.object({
|
|
2517
|
+
top: z54.number().optional(),
|
|
2518
|
+
bottom: z54.number().optional(),
|
|
2519
|
+
left: z54.number().optional(),
|
|
2520
|
+
right: z54.number().optional()
|
|
2521
|
+
});
|
|
2522
|
+
var PageSectionAppearanceV2 = z54.object({
|
|
2523
|
+
expandToEdges: z54.boolean(),
|
|
2524
|
+
contentExpandToEdges: z54.boolean(),
|
|
2532
2525
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2533
2526
|
foregroundColor: PageBlockColorV2.optional(),
|
|
2534
2527
|
padding: PageSectionPaddingV2.optional()
|
|
2535
2528
|
});
|
|
2536
|
-
var PageSectionEditorModelV2 =
|
|
2537
|
-
id:
|
|
2538
|
-
type:
|
|
2539
|
-
variantId:
|
|
2529
|
+
var PageSectionEditorModelV2 = z54.object({
|
|
2530
|
+
id: z54.string(),
|
|
2531
|
+
type: z54.literal("Section"),
|
|
2532
|
+
variantId: z54.string().optional(),
|
|
2540
2533
|
sectionType: PageSectionTypeV2,
|
|
2541
2534
|
appearance: PageSectionAppearanceV2,
|
|
2542
|
-
items:
|
|
2535
|
+
items: z54.array(PageSectionItemV2)
|
|
2543
2536
|
});
|
|
2544
|
-
var DurationUnit =
|
|
2545
|
-
var DurationValue =
|
|
2537
|
+
var DurationUnit = z55.enum(["Ms"]);
|
|
2538
|
+
var DurationValue = z55.object({
|
|
2546
2539
|
unit: DurationUnit,
|
|
2547
|
-
measure:
|
|
2540
|
+
measure: z55.number()
|
|
2548
2541
|
});
|
|
2549
2542
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
2550
|
-
var FigmaFileStructureNodeType =
|
|
2551
|
-
var FigmaFileStructureNodeBase =
|
|
2552
|
-
id:
|
|
2553
|
-
name:
|
|
2543
|
+
var FigmaFileStructureNodeType = z56.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
2544
|
+
var FigmaFileStructureNodeBase = z56.object({
|
|
2545
|
+
id: z56.string(),
|
|
2546
|
+
name: z56.string(),
|
|
2554
2547
|
type: FigmaFileStructureNodeType,
|
|
2555
2548
|
size: SizeOrUndefined,
|
|
2556
|
-
parentComponentSetId:
|
|
2549
|
+
parentComponentSetId: z56.string().optional()
|
|
2557
2550
|
});
|
|
2558
2551
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
2559
|
-
children:
|
|
2552
|
+
children: z56.lazy(() => FigmaFileStructureNode.array())
|
|
2560
2553
|
});
|
|
2561
|
-
var FigmaFileStructureStatistics =
|
|
2562
|
-
frames:
|
|
2563
|
-
components:
|
|
2564
|
-
componentSets:
|
|
2554
|
+
var FigmaFileStructureStatistics = z56.object({
|
|
2555
|
+
frames: z56.number().nullable().optional().transform((v) => v ?? 0),
|
|
2556
|
+
components: z56.number().nullable().optional().transform((v) => v ?? 0),
|
|
2557
|
+
componentSets: z56.number().nullable().optional().transform((v) => v ?? 0)
|
|
2565
2558
|
});
|
|
2566
|
-
var FigmaFileStructureElementData =
|
|
2567
|
-
value:
|
|
2559
|
+
var FigmaFileStructureElementData = z56.object({
|
|
2560
|
+
value: z56.object({
|
|
2568
2561
|
structure: FigmaFileStructureNode,
|
|
2569
2562
|
assetsInFile: FigmaFileStructureStatistics
|
|
2570
2563
|
})
|
|
2571
2564
|
});
|
|
2572
|
-
var FigmaNodeRenderFormat =
|
|
2573
|
-
var FigmaNodeReferenceData =
|
|
2574
|
-
structureElementId:
|
|
2575
|
-
nodeId:
|
|
2576
|
-
fileId:
|
|
2577
|
-
valid:
|
|
2565
|
+
var FigmaNodeRenderFormat = z57.enum(["Png", "Svg"]);
|
|
2566
|
+
var FigmaNodeReferenceData = z57.object({
|
|
2567
|
+
structureElementId: z57.string(),
|
|
2568
|
+
nodeId: z57.string(),
|
|
2569
|
+
fileId: z57.string().optional(),
|
|
2570
|
+
valid: z57.boolean(),
|
|
2578
2571
|
format: FigmaNodeRenderFormat.default("Png"),
|
|
2579
2572
|
// Asset data
|
|
2580
|
-
assetId:
|
|
2581
|
-
assetScale:
|
|
2582
|
-
assetWidth:
|
|
2583
|
-
assetHeight:
|
|
2584
|
-
assetUrl:
|
|
2585
|
-
assetOriginKey:
|
|
2586
|
-
});
|
|
2587
|
-
var FigmaNodeReferenceElementData =
|
|
2573
|
+
assetId: z57.string().optional(),
|
|
2574
|
+
assetScale: z57.number().optional(),
|
|
2575
|
+
assetWidth: z57.number().optional(),
|
|
2576
|
+
assetHeight: z57.number().optional(),
|
|
2577
|
+
assetUrl: z57.string().optional(),
|
|
2578
|
+
assetOriginKey: z57.string().optional()
|
|
2579
|
+
});
|
|
2580
|
+
var FigmaNodeReferenceElementData = z57.object({
|
|
2588
2581
|
value: FigmaNodeReferenceData
|
|
2589
2582
|
});
|
|
2590
|
-
var FontFamilyValue =
|
|
2583
|
+
var FontFamilyValue = z58.string();
|
|
2591
2584
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
2592
|
-
var FontSizeUnit =
|
|
2593
|
-
var FontSizeValue =
|
|
2585
|
+
var FontSizeUnit = z59.enum(["Pixels", "Rem", "Percent"]);
|
|
2586
|
+
var FontSizeValue = z59.object({
|
|
2594
2587
|
unit: FontSizeUnit,
|
|
2595
|
-
measure:
|
|
2588
|
+
measure: z59.number()
|
|
2596
2589
|
});
|
|
2597
2590
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
2598
|
-
var FontWeightValue =
|
|
2591
|
+
var FontWeightValue = z60.string();
|
|
2599
2592
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
2600
|
-
var FontValue =
|
|
2593
|
+
var FontValue = z61.unknown();
|
|
2601
2594
|
var FontTokenData = tokenAliasOrValue(FontValue);
|
|
2602
|
-
var GradientType =
|
|
2603
|
-
var GradientStop =
|
|
2604
|
-
position:
|
|
2595
|
+
var GradientType = z62.enum(["Linear", "Radial", "Angular"]);
|
|
2596
|
+
var GradientStop = z62.object({
|
|
2597
|
+
position: z62.number(),
|
|
2605
2598
|
color: ColorTokenData
|
|
2606
2599
|
});
|
|
2607
|
-
var GradientLayerValue =
|
|
2600
|
+
var GradientLayerValue = z62.object({
|
|
2608
2601
|
from: Point2D,
|
|
2609
2602
|
to: Point2D,
|
|
2610
2603
|
type: GradientType,
|
|
2611
|
-
aspectRatio: nullishToOptional(
|
|
2604
|
+
aspectRatio: nullishToOptional(z62.number()),
|
|
2612
2605
|
// z.number(),
|
|
2613
|
-
stops:
|
|
2606
|
+
stops: z62.array(GradientStop).min(2)
|
|
2614
2607
|
});
|
|
2615
2608
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
2616
|
-
var GradientTokenValue =
|
|
2609
|
+
var GradientTokenValue = z62.array(GradientLayerData);
|
|
2617
2610
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
2618
|
-
var DocumentationGroupBehavior =
|
|
2619
|
-
var ElementGroupDataV1 =
|
|
2611
|
+
var DocumentationGroupBehavior = z63.enum(["Group", "Tabs"]);
|
|
2612
|
+
var ElementGroupDataV1 = z63.object({
|
|
2620
2613
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2621
2614
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2622
2615
|
});
|
|
2623
|
-
var ElementGroupDataV2 =
|
|
2616
|
+
var ElementGroupDataV2 = z63.object({
|
|
2624
2617
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2625
2618
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2626
2619
|
});
|
|
2627
|
-
var LetterSpacingUnit =
|
|
2628
|
-
var LetterSpacingValue =
|
|
2620
|
+
var LetterSpacingUnit = z64.enum(["Pixels", "Rem", "Percent"]);
|
|
2621
|
+
var LetterSpacingValue = z64.object({
|
|
2629
2622
|
unit: LetterSpacingUnit,
|
|
2630
|
-
measure:
|
|
2623
|
+
measure: z64.number()
|
|
2631
2624
|
});
|
|
2632
2625
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
2633
|
-
var LineHeightUnit =
|
|
2634
|
-
var LineHeightValue =
|
|
2626
|
+
var LineHeightUnit = z65.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
2627
|
+
var LineHeightValue = z65.object({
|
|
2635
2628
|
unit: LineHeightUnit,
|
|
2636
|
-
measure:
|
|
2629
|
+
measure: z65.number()
|
|
2637
2630
|
});
|
|
2638
2631
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
2639
|
-
var ParagraphIndentUnit =
|
|
2640
|
-
var ParagraphIndentValue =
|
|
2632
|
+
var ParagraphIndentUnit = z66.enum(["Pixels", "Rem", "Percent"]);
|
|
2633
|
+
var ParagraphIndentValue = z66.object({
|
|
2641
2634
|
unit: ParagraphIndentUnit,
|
|
2642
|
-
measure:
|
|
2635
|
+
measure: z66.number()
|
|
2643
2636
|
});
|
|
2644
2637
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
2645
|
-
var ParagraphSpacingUnit =
|
|
2646
|
-
var ParagraphSpacingValue =
|
|
2638
|
+
var ParagraphSpacingUnit = z67.enum(["Pixels", "Rem", "Percent"]);
|
|
2639
|
+
var ParagraphSpacingValue = z67.object({
|
|
2647
2640
|
unit: ParagraphSpacingUnit,
|
|
2648
|
-
measure:
|
|
2641
|
+
measure: z67.number()
|
|
2649
2642
|
});
|
|
2650
2643
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
2651
|
-
var ProductCopyValue =
|
|
2644
|
+
var ProductCopyValue = z68.string();
|
|
2652
2645
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
2653
2646
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
2654
|
-
var SafeIdSchema =
|
|
2647
|
+
var SafeIdSchema = z69.string().refine(
|
|
2655
2648
|
(value) => {
|
|
2656
2649
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
2657
2650
|
},
|
|
@@ -2659,39 +2652,39 @@ var SafeIdSchema = z70.string().refine(
|
|
|
2659
2652
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
2660
2653
|
}
|
|
2661
2654
|
);
|
|
2662
|
-
var ShadowType =
|
|
2663
|
-
var ShadowLayerValue =
|
|
2655
|
+
var ShadowType = z70.enum(["Drop", "Inner"]);
|
|
2656
|
+
var ShadowLayerValue = z70.object({
|
|
2664
2657
|
color: ColorTokenData,
|
|
2665
|
-
x:
|
|
2666
|
-
y:
|
|
2667
|
-
radius:
|
|
2668
|
-
spread:
|
|
2658
|
+
x: z70.number(),
|
|
2659
|
+
y: z70.number(),
|
|
2660
|
+
radius: z70.number(),
|
|
2661
|
+
spread: z70.number(),
|
|
2669
2662
|
opacity: OpacityTokenData.optional(),
|
|
2670
2663
|
type: ShadowType
|
|
2671
2664
|
});
|
|
2672
2665
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
2673
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
2674
|
-
var SizeUnit =
|
|
2675
|
-
var SizeValue =
|
|
2666
|
+
var ShadowTokenData = tokenAliasOrValue(z70.array(ShadowTokenDataBase));
|
|
2667
|
+
var SizeUnit = z71.enum(["Pixels", "Rem", "Percent"]);
|
|
2668
|
+
var SizeValue = z71.object({
|
|
2676
2669
|
unit: SizeUnit,
|
|
2677
|
-
measure:
|
|
2670
|
+
measure: z71.number()
|
|
2678
2671
|
});
|
|
2679
2672
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
2680
|
-
var SpaceUnit =
|
|
2681
|
-
var SpaceValue =
|
|
2673
|
+
var SpaceUnit = z72.enum(["Pixels", "Rem", "Percent"]);
|
|
2674
|
+
var SpaceValue = z72.object({
|
|
2682
2675
|
unit: SpaceUnit,
|
|
2683
|
-
measure:
|
|
2676
|
+
measure: z72.number()
|
|
2684
2677
|
});
|
|
2685
2678
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
2686
|
-
var StringValue =
|
|
2679
|
+
var StringValue = z73.string();
|
|
2687
2680
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
2688
|
-
var TextCase =
|
|
2681
|
+
var TextCase = z74.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
2689
2682
|
var TextCaseValue = TextCase;
|
|
2690
2683
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
2691
|
-
var TextDecoration =
|
|
2684
|
+
var TextDecoration = z75.enum(["None", "Underline", "Strikethrough"]);
|
|
2692
2685
|
var TextDecorationValue = TextDecoration;
|
|
2693
2686
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
2694
|
-
var TypographyValue =
|
|
2687
|
+
var TypographyValue = z76.object({
|
|
2695
2688
|
fontSize: FontSizeTokenData,
|
|
2696
2689
|
fontFamily: FontFamilyTokenData,
|
|
2697
2690
|
fontWeight: FontWeightTokenData,
|
|
@@ -2703,23 +2696,23 @@ var TypographyValue = z77.object({
|
|
|
2703
2696
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
2704
2697
|
});
|
|
2705
2698
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
2706
|
-
var Visibility =
|
|
2699
|
+
var Visibility = z77.enum(["Hidden", "Visible"]);
|
|
2707
2700
|
var VisibilityValue = Visibility;
|
|
2708
2701
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
2709
|
-
var ZIndexUnit =
|
|
2710
|
-
var ZIndexValue =
|
|
2702
|
+
var ZIndexUnit = z78.enum(["Raw"]);
|
|
2703
|
+
var ZIndexValue = z78.object({
|
|
2711
2704
|
unit: ZIndexUnit,
|
|
2712
|
-
measure:
|
|
2705
|
+
measure: z78.number()
|
|
2713
2706
|
});
|
|
2714
2707
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
2715
2708
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
2716
|
-
shortPersistentId:
|
|
2709
|
+
shortPersistentId: z79.string().optional(),
|
|
2717
2710
|
childType: DesignElementType,
|
|
2718
2711
|
data: ElementGroupDataV2.optional()
|
|
2719
2712
|
});
|
|
2720
2713
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
2721
2714
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2722
|
-
shortPersistentId:
|
|
2715
|
+
shortPersistentId: z80.string(),
|
|
2723
2716
|
data: DocumentationPageDataV1
|
|
2724
2717
|
});
|
|
2725
2718
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -2728,19 +2721,19 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
2728
2721
|
data: ElementGroupDataV1.optional()
|
|
2729
2722
|
});
|
|
2730
2723
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2731
|
-
shortPersistentId:
|
|
2724
|
+
shortPersistentId: z81.string(),
|
|
2732
2725
|
data: DocumentationPageDataV2.extend({
|
|
2733
|
-
oldBlocks:
|
|
2726
|
+
oldBlocks: z81.array(PageBlockV1).optional()
|
|
2734
2727
|
})
|
|
2735
2728
|
});
|
|
2736
|
-
var FigmaComponentOriginPart =
|
|
2737
|
-
nodeId:
|
|
2738
|
-
width:
|
|
2739
|
-
height:
|
|
2729
|
+
var FigmaComponentOriginPart = z82.object({
|
|
2730
|
+
nodeId: z82.string().optional(),
|
|
2731
|
+
width: z82.number().optional(),
|
|
2732
|
+
height: z82.number().optional()
|
|
2740
2733
|
});
|
|
2741
|
-
var FigmaComponentAsset =
|
|
2742
|
-
assetId:
|
|
2743
|
-
assetPath:
|
|
2734
|
+
var FigmaComponentAsset = z82.object({
|
|
2735
|
+
assetId: z82.string(),
|
|
2736
|
+
assetPath: z82.string()
|
|
2744
2737
|
});
|
|
2745
2738
|
var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
|
|
2746
2739
|
var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -2748,14 +2741,14 @@ var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart
|
|
|
2748
2741
|
thumbnail: FigmaComponentAsset,
|
|
2749
2742
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
2750
2743
|
svg: FigmaComponentAsset.optional(),
|
|
2751
|
-
isAsset:
|
|
2752
|
-
parentComponentPersistentId: nullishToOptional(
|
|
2744
|
+
isAsset: z82.boolean(),
|
|
2745
|
+
parentComponentPersistentId: nullishToOptional(z82.string())
|
|
2753
2746
|
});
|
|
2754
|
-
var FigmaFileStructureOrigin =
|
|
2755
|
-
sourceId:
|
|
2756
|
-
fileId:
|
|
2747
|
+
var FigmaFileStructureOrigin = z83.object({
|
|
2748
|
+
sourceId: z83.string(),
|
|
2749
|
+
fileId: z83.string().optional()
|
|
2757
2750
|
});
|
|
2758
|
-
var FigmaFileStructureData =
|
|
2751
|
+
var FigmaFileStructureData = z83.object({
|
|
2759
2752
|
rootNode: FigmaFileStructureNode,
|
|
2760
2753
|
assetsInFile: FigmaFileStructureStatistics
|
|
2761
2754
|
});
|
|
@@ -2763,22 +2756,22 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
2763
2756
|
origin: FigmaFileStructureOrigin,
|
|
2764
2757
|
data: FigmaFileStructureData
|
|
2765
2758
|
});
|
|
2766
|
-
var FigmaNodeReferenceOrigin =
|
|
2767
|
-
sourceId:
|
|
2768
|
-
parentName:
|
|
2759
|
+
var FigmaNodeReferenceOrigin = z84.object({
|
|
2760
|
+
sourceId: z84.string(),
|
|
2761
|
+
parentName: z84.string().optional()
|
|
2769
2762
|
});
|
|
2770
2763
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
2771
2764
|
data: FigmaNodeReferenceData,
|
|
2772
2765
|
origin: FigmaNodeReferenceOrigin
|
|
2773
2766
|
});
|
|
2774
|
-
var DesignTokenOriginPart =
|
|
2775
|
-
referenceOriginId:
|
|
2776
|
-
referenceOriginKey:
|
|
2777
|
-
referenceOriginName:
|
|
2778
|
-
referenceOriginRemote:
|
|
2779
|
-
referencePersistentId:
|
|
2780
|
-
referenceResolutionFailed:
|
|
2781
|
-
key:
|
|
2767
|
+
var DesignTokenOriginPart = z85.object({
|
|
2768
|
+
referenceOriginId: z85.string().optional(),
|
|
2769
|
+
referenceOriginKey: z85.string().optional(),
|
|
2770
|
+
referenceOriginName: z85.string().optional(),
|
|
2771
|
+
referenceOriginRemote: z85.boolean().optional(),
|
|
2772
|
+
referencePersistentId: z85.string().optional(),
|
|
2773
|
+
referenceResolutionFailed: z85.boolean().optional(),
|
|
2774
|
+
key: z85.string().optional()
|
|
2782
2775
|
});
|
|
2783
2776
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
2784
2777
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -2790,111 +2783,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
2790
2783
|
brandPersistentId: true,
|
|
2791
2784
|
designSystemVersionId: true
|
|
2792
2785
|
});
|
|
2793
|
-
var BlurTokenTypedData =
|
|
2794
|
-
type:
|
|
2786
|
+
var BlurTokenTypedData = z85.object({
|
|
2787
|
+
type: z85.literal("Blur"),
|
|
2795
2788
|
data: BlurTokenData
|
|
2796
2789
|
});
|
|
2797
|
-
var ColorTokenTypedData =
|
|
2798
|
-
type:
|
|
2790
|
+
var ColorTokenTypedData = z85.object({
|
|
2791
|
+
type: z85.literal("Color"),
|
|
2799
2792
|
data: ColorTokenData
|
|
2800
2793
|
});
|
|
2801
|
-
var GradientTokenTypedData =
|
|
2802
|
-
type:
|
|
2794
|
+
var GradientTokenTypedData = z85.object({
|
|
2795
|
+
type: z85.literal("Gradient"),
|
|
2803
2796
|
data: GradientTokenData
|
|
2804
2797
|
});
|
|
2805
|
-
var OpacityTokenTypedData =
|
|
2806
|
-
type:
|
|
2798
|
+
var OpacityTokenTypedData = z85.object({
|
|
2799
|
+
type: z85.literal("Opacity"),
|
|
2807
2800
|
data: OpacityTokenData
|
|
2808
2801
|
});
|
|
2809
|
-
var ShadowTokenTypedData =
|
|
2810
|
-
type:
|
|
2802
|
+
var ShadowTokenTypedData = z85.object({
|
|
2803
|
+
type: z85.literal("Shadow"),
|
|
2811
2804
|
data: ShadowTokenData
|
|
2812
2805
|
});
|
|
2813
|
-
var TypographyTokenTypedData =
|
|
2814
|
-
type:
|
|
2806
|
+
var TypographyTokenTypedData = z85.object({
|
|
2807
|
+
type: z85.literal("Typography"),
|
|
2815
2808
|
data: TypographyTokenData
|
|
2816
2809
|
});
|
|
2817
|
-
var StringTokenTypedData =
|
|
2818
|
-
type:
|
|
2810
|
+
var StringTokenTypedData = z85.object({
|
|
2811
|
+
type: z85.literal("String"),
|
|
2819
2812
|
data: StringTokenData
|
|
2820
2813
|
});
|
|
2821
|
-
var DimensionTokenTypedData =
|
|
2822
|
-
type:
|
|
2814
|
+
var DimensionTokenTypedData = z85.object({
|
|
2815
|
+
type: z85.literal("Dimension"),
|
|
2823
2816
|
data: DimensionTokenData
|
|
2824
2817
|
});
|
|
2825
|
-
var FontSizeTokenTypedData =
|
|
2826
|
-
type:
|
|
2818
|
+
var FontSizeTokenTypedData = z85.object({
|
|
2819
|
+
type: z85.literal("FontSize"),
|
|
2827
2820
|
data: FontSizeTokenData
|
|
2828
2821
|
});
|
|
2829
|
-
var FontFamilyTokenTypedData =
|
|
2830
|
-
type:
|
|
2822
|
+
var FontFamilyTokenTypedData = z85.object({
|
|
2823
|
+
type: z85.literal("FontFamily"),
|
|
2831
2824
|
data: FontFamilyTokenData
|
|
2832
2825
|
});
|
|
2833
|
-
var FontWeightTokenTypedData =
|
|
2834
|
-
type:
|
|
2826
|
+
var FontWeightTokenTypedData = z85.object({
|
|
2827
|
+
type: z85.literal("FontWeight"),
|
|
2835
2828
|
data: FontWeightTokenData
|
|
2836
2829
|
});
|
|
2837
|
-
var LetterSpacingTokenTypedData =
|
|
2838
|
-
type:
|
|
2830
|
+
var LetterSpacingTokenTypedData = z85.object({
|
|
2831
|
+
type: z85.literal("LetterSpacing"),
|
|
2839
2832
|
data: LetterSpacingTokenData
|
|
2840
2833
|
});
|
|
2841
|
-
var LineHeightTokenTypedData =
|
|
2842
|
-
type:
|
|
2834
|
+
var LineHeightTokenTypedData = z85.object({
|
|
2835
|
+
type: z85.literal("LineHeight"),
|
|
2843
2836
|
data: LineHeightTokenData
|
|
2844
2837
|
});
|
|
2845
|
-
var ParagraphSpacingTokenTypedData =
|
|
2846
|
-
type:
|
|
2838
|
+
var ParagraphSpacingTokenTypedData = z85.object({
|
|
2839
|
+
type: z85.literal("ParagraphSpacing"),
|
|
2847
2840
|
data: ParagraphSpacingTokenData
|
|
2848
2841
|
});
|
|
2849
|
-
var TextCaseTokenTypedData =
|
|
2850
|
-
type:
|
|
2842
|
+
var TextCaseTokenTypedData = z85.object({
|
|
2843
|
+
type: z85.literal("TextCase"),
|
|
2851
2844
|
data: TextCaseTokenData
|
|
2852
2845
|
});
|
|
2853
|
-
var TextDecorationTokenTypedData =
|
|
2854
|
-
type:
|
|
2846
|
+
var TextDecorationTokenTypedData = z85.object({
|
|
2847
|
+
type: z85.literal("TextDecoration"),
|
|
2855
2848
|
data: TextDecorationTokenData
|
|
2856
2849
|
});
|
|
2857
|
-
var BorderRadiusTokenTypedData =
|
|
2858
|
-
type:
|
|
2850
|
+
var BorderRadiusTokenTypedData = z85.object({
|
|
2851
|
+
type: z85.literal("BorderRadius"),
|
|
2859
2852
|
data: BorderRadiusTokenData
|
|
2860
2853
|
});
|
|
2861
|
-
var BorderWidthTokenTypedData =
|
|
2862
|
-
type:
|
|
2854
|
+
var BorderWidthTokenTypedData = z85.object({
|
|
2855
|
+
type: z85.literal("BorderWidth"),
|
|
2863
2856
|
data: BorderWidthTokenData
|
|
2864
2857
|
});
|
|
2865
|
-
var BorderTypedData =
|
|
2866
|
-
type:
|
|
2858
|
+
var BorderTypedData = z85.object({
|
|
2859
|
+
type: z85.literal("Border"),
|
|
2867
2860
|
data: BorderTokenData
|
|
2868
2861
|
});
|
|
2869
|
-
var ProductCopyTypedData =
|
|
2870
|
-
type:
|
|
2862
|
+
var ProductCopyTypedData = z85.object({
|
|
2863
|
+
type: z85.literal("ProductCopy"),
|
|
2871
2864
|
data: ProductCopyTokenData
|
|
2872
2865
|
});
|
|
2873
|
-
var SizeTypedData =
|
|
2874
|
-
type:
|
|
2866
|
+
var SizeTypedData = z85.object({
|
|
2867
|
+
type: z85.literal("Size"),
|
|
2875
2868
|
data: SizeTokenData
|
|
2876
2869
|
});
|
|
2877
|
-
var SpaceTypedData =
|
|
2878
|
-
type:
|
|
2870
|
+
var SpaceTypedData = z85.object({
|
|
2871
|
+
type: z85.literal("Space"),
|
|
2879
2872
|
data: SpaceTokenData
|
|
2880
2873
|
});
|
|
2881
|
-
var VisibilityTypedData =
|
|
2882
|
-
type:
|
|
2874
|
+
var VisibilityTypedData = z85.object({
|
|
2875
|
+
type: z85.literal("Visibility"),
|
|
2883
2876
|
data: VisibilityTokenData
|
|
2884
2877
|
});
|
|
2885
|
-
var ZIndexTypedData =
|
|
2886
|
-
type:
|
|
2878
|
+
var ZIndexTypedData = z85.object({
|
|
2879
|
+
type: z85.literal("ZIndex"),
|
|
2887
2880
|
data: ZIndexTokenData
|
|
2888
2881
|
});
|
|
2889
|
-
var DurationTypedData =
|
|
2890
|
-
type:
|
|
2882
|
+
var DurationTypedData = z85.object({
|
|
2883
|
+
type: z85.literal("Duration"),
|
|
2891
2884
|
data: DurationTokenData
|
|
2892
2885
|
});
|
|
2893
|
-
var FontTypedData =
|
|
2894
|
-
type:
|
|
2886
|
+
var FontTypedData = z85.object({
|
|
2887
|
+
type: z85.literal("Font"),
|
|
2895
2888
|
data: FontTokenData
|
|
2896
2889
|
});
|
|
2897
|
-
var DesignTokenTypedData =
|
|
2890
|
+
var DesignTokenTypedData = z85.discriminatedUnion("type", [
|
|
2898
2891
|
BlurTokenTypedData,
|
|
2899
2892
|
BorderRadiusTokenTypedData,
|
|
2900
2893
|
BorderWidthTokenTypedData,
|
|
@@ -2927,32 +2920,32 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
2927
2920
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
2928
2921
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
2929
2922
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
2930
|
-
|
|
2931
|
-
tokenPersistentId:
|
|
2923
|
+
z86.object({
|
|
2924
|
+
tokenPersistentId: z86.string(),
|
|
2932
2925
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
2933
2926
|
})
|
|
2934
2927
|
);
|
|
2935
|
-
var ThemeElementData =
|
|
2936
|
-
value:
|
|
2937
|
-
overrides:
|
|
2928
|
+
var ThemeElementData = z86.object({
|
|
2929
|
+
value: z86.object({
|
|
2930
|
+
overrides: z86.array(ThemeOverride)
|
|
2938
2931
|
})
|
|
2939
2932
|
});
|
|
2940
|
-
var ThemeOriginPart =
|
|
2941
|
-
var ThemeOriginObject =
|
|
2942
|
-
id:
|
|
2943
|
-
name:
|
|
2933
|
+
var ThemeOriginPart = z86.object({});
|
|
2934
|
+
var ThemeOriginObject = z86.object({
|
|
2935
|
+
id: z86.string(),
|
|
2936
|
+
name: z86.string()
|
|
2944
2937
|
});
|
|
2945
|
-
var ThemeOriginSource =
|
|
2946
|
-
sourceId:
|
|
2947
|
-
sourceObjects:
|
|
2938
|
+
var ThemeOriginSource = z86.object({
|
|
2939
|
+
sourceId: z86.string(),
|
|
2940
|
+
sourceObjects: z86.array(ThemeOriginObject)
|
|
2948
2941
|
});
|
|
2949
|
-
var ThemeOrigin =
|
|
2950
|
-
sources:
|
|
2942
|
+
var ThemeOrigin = z86.object({
|
|
2943
|
+
sources: z86.array(ThemeOriginSource)
|
|
2951
2944
|
});
|
|
2952
2945
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
2953
2946
|
origin: ThemeOrigin.optional(),
|
|
2954
|
-
overrides:
|
|
2955
|
-
codeName:
|
|
2947
|
+
overrides: z86.array(ThemeOverride),
|
|
2948
|
+
codeName: z86.string()
|
|
2956
2949
|
});
|
|
2957
2950
|
function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
2958
2951
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
@@ -3008,17 +3001,17 @@ var PageBlockDefinitionsMap = class {
|
|
|
3008
3001
|
return `${defId}.${propId}`;
|
|
3009
3002
|
}
|
|
3010
3003
|
};
|
|
3011
|
-
var FileStructureStats =
|
|
3004
|
+
var FileStructureStats = z87.object({
|
|
3012
3005
|
frames: zeroNumberByDefault(),
|
|
3013
3006
|
components: zeroNumberByDefault(),
|
|
3014
3007
|
componentSets: zeroNumberByDefault()
|
|
3015
3008
|
});
|
|
3016
3009
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
3017
3010
|
// Backward compatibility
|
|
3018
|
-
|
|
3011
|
+
z87.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
3019
3012
|
);
|
|
3020
|
-
var SourceImportSummaryByTokenType =
|
|
3021
|
-
var SourceImportTokenSummary =
|
|
3013
|
+
var SourceImportSummaryByTokenType = z87.record(SourceImportSummaryByTokenTypeKey, z87.number());
|
|
3014
|
+
var SourceImportTokenSummary = z87.object({
|
|
3022
3015
|
tokensCreated: zeroNumberByDefault(),
|
|
3023
3016
|
tokensUpdated: zeroNumberByDefault(),
|
|
3024
3017
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -3026,7 +3019,7 @@ var SourceImportTokenSummary = z88.object({
|
|
|
3026
3019
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
3027
3020
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
3028
3021
|
});
|
|
3029
|
-
var SourceImportComponentSummary =
|
|
3022
|
+
var SourceImportComponentSummary = z87.object({
|
|
3030
3023
|
componentsCreated: zeroNumberByDefault(),
|
|
3031
3024
|
componentsUpdated: zeroNumberByDefault(),
|
|
3032
3025
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -3034,156 +3027,156 @@ var SourceImportComponentSummary = z88.object({
|
|
|
3034
3027
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
3035
3028
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
3036
3029
|
});
|
|
3037
|
-
var SourceImportFrameSummary =
|
|
3030
|
+
var SourceImportFrameSummary = z87.object({
|
|
3038
3031
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
3039
|
-
invalidReferencesCount: nullishToOptional(
|
|
3040
|
-
});
|
|
3041
|
-
var SourceImportSummary =
|
|
3042
|
-
sourceId: nullishToOptional(
|
|
3043
|
-
brandId: nullishToOptional(
|
|
3044
|
-
versionId: nullishToOptional(
|
|
3045
|
-
error: nullishToOptional(
|
|
3046
|
-
isFailed:
|
|
3047
|
-
warnings:
|
|
3032
|
+
invalidReferencesCount: nullishToOptional(z87.number().optional())
|
|
3033
|
+
});
|
|
3034
|
+
var SourceImportSummary = z87.object({
|
|
3035
|
+
sourceId: nullishToOptional(z87.string()),
|
|
3036
|
+
brandId: nullishToOptional(z87.string()),
|
|
3037
|
+
versionId: nullishToOptional(z87.string()),
|
|
3038
|
+
error: nullishToOptional(z87.any()),
|
|
3039
|
+
isFailed: z87.boolean(),
|
|
3040
|
+
warnings: z87.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
3048
3041
|
...SourceImportTokenSummary.shape,
|
|
3049
3042
|
...SourceImportComponentSummary.shape,
|
|
3050
3043
|
...FileStructureStats.shape
|
|
3051
3044
|
});
|
|
3052
3045
|
function zeroNumberByDefault() {
|
|
3053
|
-
return
|
|
3046
|
+
return z87.number().nullish().transform((v) => v ?? 0);
|
|
3054
3047
|
}
|
|
3055
|
-
var DataSourceRemoteType =
|
|
3056
|
-
var DataSourceUploadRemoteSource =
|
|
3057
|
-
var DataSourceFigmaState =
|
|
3058
|
-
var DataSourceAutoImportMode =
|
|
3059
|
-
var DataSourceStats =
|
|
3048
|
+
var DataSourceRemoteType = z88.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
3049
|
+
var DataSourceUploadRemoteSource = z88.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3050
|
+
var DataSourceFigmaState = z88.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3051
|
+
var DataSourceAutoImportMode = z88.enum(["Never", "Hourly"]);
|
|
3052
|
+
var DataSourceStats = z88.object({
|
|
3060
3053
|
tokens: zeroNumberByDefault2(),
|
|
3061
3054
|
components: zeroNumberByDefault2(),
|
|
3062
3055
|
assets: zeroNumberByDefault2(),
|
|
3063
3056
|
frames: zeroNumberByDefault2()
|
|
3064
3057
|
});
|
|
3065
|
-
var DataSourceFigmaFileData =
|
|
3066
|
-
lastUpdatedAt:
|
|
3058
|
+
var DataSourceFigmaFileData = z88.object({
|
|
3059
|
+
lastUpdatedAt: z88.coerce.date()
|
|
3067
3060
|
});
|
|
3068
|
-
var DataSourceFigmaFileVersionData =
|
|
3069
|
-
id:
|
|
3070
|
-
label:
|
|
3071
|
-
description:
|
|
3072
|
-
createdAt:
|
|
3061
|
+
var DataSourceFigmaFileVersionData = z88.object({
|
|
3062
|
+
id: z88.string(),
|
|
3063
|
+
label: z88.string().optional(),
|
|
3064
|
+
description: z88.string().optional(),
|
|
3065
|
+
createdAt: z88.coerce.date()
|
|
3073
3066
|
});
|
|
3074
|
-
var DataSourceFigmaScope =
|
|
3075
|
-
assets:
|
|
3076
|
-
components:
|
|
3077
|
-
documentationFrames:
|
|
3078
|
-
tokens:
|
|
3079
|
-
themePersistentId:
|
|
3080
|
-
isUnpublishedContentFallbackEnabled:
|
|
3067
|
+
var DataSourceFigmaScope = z88.object({
|
|
3068
|
+
assets: z88.boolean(),
|
|
3069
|
+
components: z88.boolean(),
|
|
3070
|
+
documentationFrames: z88.boolean(),
|
|
3071
|
+
tokens: z88.boolean(),
|
|
3072
|
+
themePersistentId: z88.string().optional(),
|
|
3073
|
+
isUnpublishedContentFallbackEnabled: z88.boolean()
|
|
3081
3074
|
});
|
|
3082
|
-
var DataSourceFigmaImportMetadata =
|
|
3075
|
+
var DataSourceFigmaImportMetadata = z88.object({
|
|
3083
3076
|
fileData: DataSourceFigmaFileData.optional(),
|
|
3084
3077
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
3085
3078
|
});
|
|
3086
|
-
var DataSourceFigmaRemote =
|
|
3087
|
-
type:
|
|
3088
|
-
fileId:
|
|
3089
|
-
preferredCredentialId:
|
|
3090
|
-
ownerId:
|
|
3079
|
+
var DataSourceFigmaRemote = z88.object({
|
|
3080
|
+
type: z88.literal(DataSourceRemoteType.Enum.Figma),
|
|
3081
|
+
fileId: z88.string(),
|
|
3082
|
+
preferredCredentialId: z88.string().optional(),
|
|
3083
|
+
ownerId: z88.string(),
|
|
3091
3084
|
// todo remove or keep to reference who created data source
|
|
3092
|
-
ownerName:
|
|
3085
|
+
ownerName: z88.string(),
|
|
3093
3086
|
// todo probably remove
|
|
3094
3087
|
scope: DataSourceFigmaScope,
|
|
3095
3088
|
state: DataSourceFigmaState,
|
|
3096
|
-
requiresSync:
|
|
3089
|
+
requiresSync: z88.boolean().optional().transform((v) => v ?? false),
|
|
3097
3090
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
3098
|
-
downloadChunkSize:
|
|
3099
|
-
figmaRenderChunkSize:
|
|
3100
|
-
maxFileDepth:
|
|
3091
|
+
downloadChunkSize: z88.number().optional(),
|
|
3092
|
+
figmaRenderChunkSize: z88.number().optional(),
|
|
3093
|
+
maxFileDepth: z88.number().optional()
|
|
3101
3094
|
});
|
|
3102
|
-
var DataSourceTokenStudioRemote =
|
|
3103
|
-
type:
|
|
3095
|
+
var DataSourceTokenStudioRemote = z88.object({
|
|
3096
|
+
type: z88.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
3104
3097
|
});
|
|
3105
|
-
var DataSourceUploadImportMetadata =
|
|
3106
|
-
var DataSourceUploadRemote =
|
|
3107
|
-
type:
|
|
3108
|
-
remoteId:
|
|
3098
|
+
var DataSourceUploadImportMetadata = z88.record(z88.any());
|
|
3099
|
+
var DataSourceUploadRemote = z88.object({
|
|
3100
|
+
type: z88.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
3101
|
+
remoteId: z88.string(),
|
|
3109
3102
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
3110
3103
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
3111
3104
|
warnings: nullishToOptional(ImportWarning.array())
|
|
3112
3105
|
});
|
|
3113
|
-
var DataSourceRemote =
|
|
3106
|
+
var DataSourceRemote = z88.discriminatedUnion("type", [
|
|
3114
3107
|
DataSourceFigmaRemote,
|
|
3115
3108
|
DataSourceUploadRemote,
|
|
3116
3109
|
DataSourceTokenStudioRemote
|
|
3117
3110
|
]);
|
|
3118
|
-
var DataSource =
|
|
3119
|
-
id:
|
|
3120
|
-
name:
|
|
3121
|
-
thumbnailUrl:
|
|
3122
|
-
createdAt:
|
|
3123
|
-
lastImportedAt:
|
|
3111
|
+
var DataSource = z88.object({
|
|
3112
|
+
id: z88.string(),
|
|
3113
|
+
name: z88.string(),
|
|
3114
|
+
thumbnailUrl: z88.string().optional(),
|
|
3115
|
+
createdAt: z88.coerce.date().optional(),
|
|
3116
|
+
lastImportedAt: z88.coerce.date().optional(),
|
|
3124
3117
|
lastImportSummary: SourceImportSummary.optional(),
|
|
3125
|
-
designSystemId:
|
|
3126
|
-
brandPersistentId:
|
|
3118
|
+
designSystemId: z88.string(),
|
|
3119
|
+
brandPersistentId: z88.string(),
|
|
3127
3120
|
autoImportMode: DataSourceAutoImportMode,
|
|
3128
3121
|
stats: DataSourceStats,
|
|
3129
3122
|
remote: DataSourceRemote,
|
|
3130
|
-
sortOrder:
|
|
3123
|
+
sortOrder: z88.number()
|
|
3131
3124
|
});
|
|
3132
|
-
var DataSourceVersion =
|
|
3133
|
-
id:
|
|
3134
|
-
createdAt:
|
|
3135
|
-
label:
|
|
3136
|
-
description:
|
|
3125
|
+
var DataSourceVersion = z88.object({
|
|
3126
|
+
id: z88.string(),
|
|
3127
|
+
createdAt: z88.coerce.date(),
|
|
3128
|
+
label: z88.string().nullish(),
|
|
3129
|
+
description: z88.string().nullish()
|
|
3137
3130
|
});
|
|
3138
3131
|
function zeroNumberByDefault2() {
|
|
3139
|
-
return
|
|
3132
|
+
return z88.number().nullish().transform((v) => v ?? 0);
|
|
3140
3133
|
}
|
|
3141
|
-
var ImportJobState =
|
|
3142
|
-
var ImportJobOperation =
|
|
3134
|
+
var ImportJobState = z89.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
3135
|
+
var ImportJobOperation = z89.enum(["Check", "Import"]);
|
|
3143
3136
|
var ImportJob = Entity.extend({
|
|
3144
|
-
designSystemId:
|
|
3145
|
-
designSystemVersionId:
|
|
3146
|
-
sourceIds:
|
|
3137
|
+
designSystemId: z89.string(),
|
|
3138
|
+
designSystemVersionId: z89.string(),
|
|
3139
|
+
sourceIds: z89.array(z89.string()),
|
|
3147
3140
|
state: ImportJobState,
|
|
3148
|
-
createdByUserId:
|
|
3149
|
-
importContextId:
|
|
3150
|
-
error:
|
|
3141
|
+
createdByUserId: z89.string().optional(),
|
|
3142
|
+
importContextId: z89.string(),
|
|
3143
|
+
error: z89.string().optional(),
|
|
3151
3144
|
sourceType: DataSourceRemoteType,
|
|
3152
|
-
importContextCleanedUp:
|
|
3145
|
+
importContextCleanedUp: z89.boolean()
|
|
3153
3146
|
});
|
|
3154
|
-
var ImportFunctionInput =
|
|
3155
|
-
importJobId:
|
|
3156
|
-
importContextId:
|
|
3157
|
-
designSystemId:
|
|
3147
|
+
var ImportFunctionInput = z90.object({
|
|
3148
|
+
importJobId: z90.string(),
|
|
3149
|
+
importContextId: z90.string(),
|
|
3150
|
+
designSystemId: z90.string().optional()
|
|
3158
3151
|
});
|
|
3159
|
-
var ImportedFigmaSourceData =
|
|
3160
|
-
sourceId:
|
|
3152
|
+
var ImportedFigmaSourceData = z90.object({
|
|
3153
|
+
sourceId: z90.string(),
|
|
3161
3154
|
figmaRemote: DataSourceFigmaRemote
|
|
3162
3155
|
});
|
|
3163
|
-
var FigmaImportBaseContext =
|
|
3164
|
-
designSystemId:
|
|
3156
|
+
var FigmaImportBaseContext = z90.object({
|
|
3157
|
+
designSystemId: z90.string(),
|
|
3165
3158
|
/**
|
|
3166
3159
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
3167
3160
|
* mentioned in the `importedSourceDataBySourceId`
|
|
3168
3161
|
*
|
|
3169
3162
|
* fileId: file data
|
|
3170
3163
|
*/
|
|
3171
|
-
fileAccessByFileId:
|
|
3164
|
+
fileAccessByFileId: z90.record(FigmaFileAccessData),
|
|
3172
3165
|
/**
|
|
3173
3166
|
* Figma source data for which import was requested
|
|
3174
3167
|
*
|
|
3175
3168
|
* sourceId: source data
|
|
3176
3169
|
*/
|
|
3177
|
-
importedSourceDataBySourceId:
|
|
3170
|
+
importedSourceDataBySourceId: z90.record(ImportedFigmaSourceData),
|
|
3178
3171
|
/**
|
|
3179
3172
|
* Array of warnings that will be written into the import result summary at the end
|
|
3180
3173
|
* of import job execution and displayed by the client.
|
|
3181
3174
|
*/
|
|
3182
|
-
importWarnings:
|
|
3175
|
+
importWarnings: z90.record(ImportWarning.array()).default({})
|
|
3183
3176
|
});
|
|
3184
3177
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3185
|
-
sourcesWithMissingAccess:
|
|
3186
|
-
shadowOpacityOptional:
|
|
3178
|
+
sourcesWithMissingAccess: z90.array(z90.string()).default([]),
|
|
3179
|
+
shadowOpacityOptional: z90.boolean().default(false)
|
|
3187
3180
|
});
|
|
3188
3181
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
3189
3182
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -3195,67 +3188,67 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
3195
3188
|
*
|
|
3196
3189
|
* File id -> file download scope
|
|
3197
3190
|
*/
|
|
3198
|
-
fileDownloadScopesByFileId:
|
|
3191
|
+
fileDownloadScopesByFileId: z90.record(FigmaFileDownloadScope),
|
|
3199
3192
|
/**
|
|
3200
3193
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
3201
3194
|
* imported again.
|
|
3202
3195
|
*
|
|
3203
3196
|
* Source id -> import metadata
|
|
3204
3197
|
*/
|
|
3205
|
-
changedImportedSourceDataBySourceId:
|
|
3198
|
+
changedImportedSourceDataBySourceId: z90.record(ChangedImportedFigmaSourceData)
|
|
3206
3199
|
});
|
|
3207
|
-
var ImportModelBase =
|
|
3208
|
-
id:
|
|
3200
|
+
var ImportModelBase = z91.object({
|
|
3201
|
+
id: z91.string(),
|
|
3209
3202
|
meta: ObjectMeta,
|
|
3210
3203
|
origin: DesignElementOrigin,
|
|
3211
|
-
brandPersistentId:
|
|
3212
|
-
sortOrder:
|
|
3204
|
+
brandPersistentId: z91.string(),
|
|
3205
|
+
sortOrder: z91.number()
|
|
3213
3206
|
});
|
|
3214
3207
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
3215
3208
|
brandPersistentId: true,
|
|
3216
3209
|
origin: true,
|
|
3217
3210
|
sortOrder: true
|
|
3218
3211
|
}).extend({
|
|
3219
|
-
originId:
|
|
3220
|
-
originMetadata:
|
|
3212
|
+
originId: z91.string(),
|
|
3213
|
+
originMetadata: z91.record(z91.any())
|
|
3221
3214
|
});
|
|
3222
|
-
var ImageImportModelType =
|
|
3223
|
-
var ImageImportModelBase =
|
|
3215
|
+
var ImageImportModelType = z92.enum(["Url", "FigmaRender"]);
|
|
3216
|
+
var ImageImportModelBase = z92.object({
|
|
3224
3217
|
scope: AssetScope
|
|
3225
3218
|
});
|
|
3226
3219
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
3227
|
-
type:
|
|
3228
|
-
url:
|
|
3229
|
-
originKey:
|
|
3230
|
-
extension:
|
|
3220
|
+
type: z92.literal(ImageImportModelType.enum.Url),
|
|
3221
|
+
url: z92.string(),
|
|
3222
|
+
originKey: z92.string(),
|
|
3223
|
+
extension: z92.string()
|
|
3231
3224
|
});
|
|
3232
|
-
var FigmaRenderFormat =
|
|
3225
|
+
var FigmaRenderFormat = z92.enum(["Svg", "Png", "Pdf"]);
|
|
3233
3226
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
3234
|
-
type:
|
|
3235
|
-
fileId:
|
|
3236
|
-
fileVersionId:
|
|
3237
|
-
nodeId:
|
|
3238
|
-
originKey:
|
|
3227
|
+
type: z92.literal(ImageImportModelType.enum.FigmaRender),
|
|
3228
|
+
fileId: z92.string(),
|
|
3229
|
+
fileVersionId: z92.string().optional(),
|
|
3230
|
+
nodeId: z92.string(),
|
|
3231
|
+
originKey: z92.string()
|
|
3239
3232
|
});
|
|
3240
3233
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
3241
|
-
format:
|
|
3242
|
-
scale:
|
|
3234
|
+
format: z92.literal(FigmaRenderFormat.enum.Png),
|
|
3235
|
+
scale: z92.number()
|
|
3243
3236
|
});
|
|
3244
3237
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
3245
|
-
format:
|
|
3238
|
+
format: z92.literal(FigmaRenderFormat.enum.Svg)
|
|
3246
3239
|
});
|
|
3247
|
-
var FigmaRenderImportModel =
|
|
3240
|
+
var FigmaRenderImportModel = z92.discriminatedUnion("format", [
|
|
3248
3241
|
FigmaPngRenderImportModel,
|
|
3249
3242
|
FigmaSvgRenderImportModel
|
|
3250
3243
|
]);
|
|
3251
|
-
var ImageImportModel =
|
|
3252
|
-
var FigmaComponentImportModelPart =
|
|
3244
|
+
var ImageImportModel = z92.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
3245
|
+
var FigmaComponentImportModelPart = z93.object({
|
|
3253
3246
|
thumbnail: ImageImportModel,
|
|
3254
|
-
parentComponentId:
|
|
3247
|
+
parentComponentId: z93.string().optional(),
|
|
3255
3248
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
|
|
3256
3249
|
});
|
|
3257
3250
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3258
|
-
isAsset:
|
|
3251
|
+
isAsset: z93.boolean(),
|
|
3259
3252
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
3260
3253
|
origin: FigmaComponentOrigin
|
|
3261
3254
|
});
|
|
@@ -3266,20 +3259,20 @@ var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportMode
|
|
|
3266
3259
|
svg: FigmaSvgRenderImportModel,
|
|
3267
3260
|
originMetadata: FigmaComponentOriginPart
|
|
3268
3261
|
});
|
|
3269
|
-
var DataSourceImportModel =
|
|
3270
|
-
id:
|
|
3271
|
-
fileName:
|
|
3272
|
-
thumbnailUrl:
|
|
3262
|
+
var DataSourceImportModel = z94.object({
|
|
3263
|
+
id: z94.string(),
|
|
3264
|
+
fileName: z94.string().optional(),
|
|
3265
|
+
thumbnailUrl: z94.string().optional()
|
|
3273
3266
|
});
|
|
3274
3267
|
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
3275
3268
|
png: FigmaPngRenderImportModel,
|
|
3276
3269
|
svg: FigmaSvgRenderImportModel
|
|
3277
3270
|
});
|
|
3278
3271
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3279
|
-
children:
|
|
3272
|
+
children: z95.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3280
3273
|
});
|
|
3281
|
-
var FigmaFileStructureImportModelPart =
|
|
3282
|
-
data:
|
|
3274
|
+
var FigmaFileStructureImportModelPart = z95.object({
|
|
3275
|
+
data: z95.object({
|
|
3283
3276
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
3284
3277
|
assetsInFile: FigmaFileStructureStatistics
|
|
3285
3278
|
})
|
|
@@ -3290,49 +3283,49 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
3290
3283
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
3291
3284
|
FigmaFileStructureImportModelPart.shape
|
|
3292
3285
|
).extend({
|
|
3293
|
-
fileVersionId:
|
|
3286
|
+
fileVersionId: z95.string()
|
|
3294
3287
|
});
|
|
3295
3288
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
3296
|
-
|
|
3297
|
-
id:
|
|
3289
|
+
z96.object({
|
|
3290
|
+
id: z96.string(),
|
|
3298
3291
|
meta: ObjectMeta
|
|
3299
3292
|
})
|
|
3300
3293
|
);
|
|
3301
3294
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
3302
|
-
|
|
3295
|
+
z96.object({
|
|
3303
3296
|
origin: ThemeOverrideOrigin
|
|
3304
3297
|
})
|
|
3305
3298
|
);
|
|
3306
3299
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
3307
|
-
|
|
3308
|
-
originId:
|
|
3300
|
+
z96.object({
|
|
3301
|
+
originId: z96.string(),
|
|
3309
3302
|
originMetadata: ThemeOverrideOriginPart
|
|
3310
3303
|
})
|
|
3311
3304
|
);
|
|
3312
|
-
var ThemeImportModel =
|
|
3305
|
+
var ThemeImportModel = z96.object({
|
|
3313
3306
|
meta: ObjectMeta,
|
|
3314
|
-
brandPersistentId:
|
|
3307
|
+
brandPersistentId: z96.string(),
|
|
3315
3308
|
originSource: ThemeOriginSource,
|
|
3316
|
-
overrides:
|
|
3317
|
-
sortOrder:
|
|
3309
|
+
overrides: z96.array(ThemeOverrideImportModel),
|
|
3310
|
+
sortOrder: z96.number()
|
|
3318
3311
|
});
|
|
3319
|
-
var ThemeImportModelInput =
|
|
3312
|
+
var ThemeImportModelInput = z96.object({
|
|
3320
3313
|
meta: ObjectMeta,
|
|
3321
|
-
originObjects:
|
|
3322
|
-
overrides:
|
|
3314
|
+
originObjects: z96.array(ThemeOriginObject),
|
|
3315
|
+
overrides: z96.array(ThemeOverrideImportModelInput)
|
|
3323
3316
|
});
|
|
3324
|
-
var ThemeUpdateImportModel =
|
|
3325
|
-
themePersistentId:
|
|
3326
|
-
overrides:
|
|
3317
|
+
var ThemeUpdateImportModel = z96.object({
|
|
3318
|
+
themePersistentId: z96.string(),
|
|
3319
|
+
overrides: z96.array(ThemeOverrideImportModel)
|
|
3327
3320
|
});
|
|
3328
|
-
var ThemeUpdateImportModelInput =
|
|
3329
|
-
themePersistentId:
|
|
3330
|
-
overrides:
|
|
3321
|
+
var ThemeUpdateImportModelInput = z96.object({
|
|
3322
|
+
themePersistentId: z96.string(),
|
|
3323
|
+
overrides: z96.array(ThemeOverrideImportModelInput)
|
|
3331
3324
|
});
|
|
3332
|
-
var DesignTokenImportModelPart =
|
|
3333
|
-
collection:
|
|
3334
|
-
codeSyntax:
|
|
3335
|
-
scopes:
|
|
3325
|
+
var DesignTokenImportModelPart = z97.object({
|
|
3326
|
+
collection: z97.string().optional(),
|
|
3327
|
+
codeSyntax: z97.record(z97.coerce.string()).optional(),
|
|
3328
|
+
scopes: z97.array(z97.string()).optional()
|
|
3336
3329
|
});
|
|
3337
3330
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3338
3331
|
origin: DesignTokenOrigin
|
|
@@ -3342,74 +3335,49 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
|
|
|
3342
3335
|
});
|
|
3343
3336
|
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
3344
3337
|
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
3345
|
-
var ImportModelInputCollection =
|
|
3338
|
+
var ImportModelInputCollection = z98.object({
|
|
3346
3339
|
source: DataSourceImportModel,
|
|
3347
|
-
tokens:
|
|
3348
|
-
components:
|
|
3349
|
-
assets:
|
|
3350
|
-
themeUpdates:
|
|
3351
|
-
themes:
|
|
3340
|
+
tokens: z98.array(DesignTokenImportModelInput).default([]),
|
|
3341
|
+
components: z98.array(FigmaComponentImportModelInput).default([]),
|
|
3342
|
+
assets: z98.array(AssetImportModelInput).default([]),
|
|
3343
|
+
themeUpdates: z98.array(ThemeUpdateImportModelInput).default([]),
|
|
3344
|
+
themes: z98.array(ThemeImportModelInput).default([]),
|
|
3352
3345
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
3353
3346
|
});
|
|
3354
|
-
var ImportModelCollection =
|
|
3355
|
-
sources:
|
|
3356
|
-
tokens:
|
|
3357
|
-
components:
|
|
3358
|
-
themeUpdates:
|
|
3359
|
-
themes:
|
|
3360
|
-
figmaFileStructures:
|
|
3361
|
-
});
|
|
3362
|
-
var AssetRenderConfiguration =
|
|
3363
|
-
prefix:
|
|
3364
|
-
suffix:
|
|
3365
|
-
scale:
|
|
3347
|
+
var ImportModelCollection = z98.object({
|
|
3348
|
+
sources: z98.array(DataSourceImportModel),
|
|
3349
|
+
tokens: z98.array(DesignTokenImportModel).default([]),
|
|
3350
|
+
components: z98.array(FigmaComponentImportModel).default([]),
|
|
3351
|
+
themeUpdates: z98.array(ThemeUpdateImportModel).default([]),
|
|
3352
|
+
themes: z98.array(ThemeImportModel).default([]),
|
|
3353
|
+
figmaFileStructures: z98.array(FigmaFileStructureImportModel)
|
|
3354
|
+
});
|
|
3355
|
+
var AssetRenderConfiguration = z99.object({
|
|
3356
|
+
prefix: z99.string().optional(),
|
|
3357
|
+
suffix: z99.string().optional(),
|
|
3358
|
+
scale: z99.number(),
|
|
3366
3359
|
format: FigmaRenderFormat
|
|
3367
3360
|
});
|
|
3368
|
-
var RenderedAssetFile =
|
|
3369
|
-
assetPersistentId:
|
|
3370
|
-
assetName:
|
|
3371
|
-
renderedImageFileName:
|
|
3372
|
-
renderedImageUrl:
|
|
3361
|
+
var RenderedAssetFile = z99.object({
|
|
3362
|
+
assetPersistentId: z99.string(),
|
|
3363
|
+
assetName: z99.string(),
|
|
3364
|
+
renderedImageFileName: z99.string(),
|
|
3365
|
+
renderedImageUrl: z99.string(),
|
|
3373
3366
|
settings: AssetRenderConfiguration
|
|
3374
3367
|
});
|
|
3375
|
-
var
|
|
3376
|
-
var
|
|
3377
|
-
isEnabled: z101.boolean(),
|
|
3378
|
-
designSystemIds: z101.array(z101.string())
|
|
3379
|
-
});
|
|
3380
|
-
var DesignSystem = z101.object({
|
|
3368
|
+
var DocumentationPageApprovalState = z100.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3369
|
+
var DocumentationPageApproval = z101.object({
|
|
3381
3370
|
id: z101.string(),
|
|
3382
|
-
workspaceId: z101.string(),
|
|
3383
|
-
name: z101.string(),
|
|
3384
|
-
description: z101.string(),
|
|
3385
|
-
docExporterId: nullishToOptional(z101.string()),
|
|
3386
|
-
docSlug: z101.string(),
|
|
3387
|
-
docUserSlug: nullishToOptional(z101.string()),
|
|
3388
|
-
docSlugDeprecated: z101.string(),
|
|
3389
|
-
isPublic: z101.boolean(),
|
|
3390
|
-
isMultibrand: z101.boolean(),
|
|
3391
|
-
docViewUrl: nullishToOptional(z101.string()),
|
|
3392
|
-
basePrefixes: z101.array(z101.string()),
|
|
3393
|
-
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3394
|
-
isApprovalFeatureEnabled: z101.boolean(),
|
|
3395
|
-
approvalRequiredForPublishing: z101.boolean(),
|
|
3396
|
-
accessMode: DesignSystemAccessMode,
|
|
3397
|
-
createdAt: z101.coerce.date(),
|
|
3398
|
-
updatedAt: z101.coerce.date()
|
|
3399
|
-
});
|
|
3400
|
-
var DocumentationPageApprovalState = z102.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3401
|
-
var DocumentationPageApproval = z103.object({
|
|
3402
|
-
id: z103.string(),
|
|
3403
3371
|
approvalState: DocumentationPageApprovalState,
|
|
3404
|
-
persistentId:
|
|
3405
|
-
pageId:
|
|
3406
|
-
pagePersistentId:
|
|
3407
|
-
updatedByUserId:
|
|
3408
|
-
designSystemVersionId:
|
|
3409
|
-
updatedAt:
|
|
3410
|
-
createdAt:
|
|
3411
|
-
});
|
|
3412
|
-
var PageBlockCategory =
|
|
3372
|
+
persistentId: z101.string(),
|
|
3373
|
+
pageId: z101.string(),
|
|
3374
|
+
pagePersistentId: z101.string(),
|
|
3375
|
+
updatedByUserId: z101.string(),
|
|
3376
|
+
designSystemVersionId: z101.string(),
|
|
3377
|
+
updatedAt: z101.coerce.date(),
|
|
3378
|
+
createdAt: z101.coerce.date()
|
|
3379
|
+
});
|
|
3380
|
+
var PageBlockCategory = z102.enum([
|
|
3413
3381
|
"Text",
|
|
3414
3382
|
"Layout",
|
|
3415
3383
|
"Media",
|
|
@@ -3423,147 +3391,147 @@ var PageBlockCategory = z104.enum([
|
|
|
3423
3391
|
"Data",
|
|
3424
3392
|
"Other"
|
|
3425
3393
|
]);
|
|
3426
|
-
var PageBlockBehaviorDataType =
|
|
3427
|
-
var PageBlockBehaviorSelectionType =
|
|
3428
|
-
var PageBlockDefinitionBehavior =
|
|
3394
|
+
var PageBlockBehaviorDataType = z102.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
3395
|
+
var PageBlockBehaviorSelectionType = z102.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
3396
|
+
var PageBlockDefinitionBehavior = z102.object({
|
|
3429
3397
|
dataType: PageBlockBehaviorDataType,
|
|
3430
|
-
items:
|
|
3431
|
-
numberOfItems:
|
|
3432
|
-
allowLinks:
|
|
3433
|
-
newItemLabel:
|
|
3398
|
+
items: z102.object({
|
|
3399
|
+
numberOfItems: z102.number(),
|
|
3400
|
+
allowLinks: z102.boolean(),
|
|
3401
|
+
newItemLabel: z102.string().optional()
|
|
3434
3402
|
}).optional(),
|
|
3435
|
-
entities:
|
|
3403
|
+
entities: z102.object({
|
|
3436
3404
|
selectionType: PageBlockBehaviorSelectionType,
|
|
3437
|
-
maxSelected:
|
|
3405
|
+
maxSelected: z102.number()
|
|
3438
3406
|
}).optional()
|
|
3439
3407
|
});
|
|
3440
|
-
var PageBlockDefinitionOnboarding =
|
|
3441
|
-
helpText:
|
|
3442
|
-
documentationLink:
|
|
3408
|
+
var PageBlockDefinitionOnboarding = z102.object({
|
|
3409
|
+
helpText: z102.string(),
|
|
3410
|
+
documentationLink: z102.string().optional()
|
|
3443
3411
|
});
|
|
3444
|
-
var PageBlockDefinition =
|
|
3445
|
-
id:
|
|
3446
|
-
name:
|
|
3447
|
-
description:
|
|
3412
|
+
var PageBlockDefinition = z102.object({
|
|
3413
|
+
id: z102.string(),
|
|
3414
|
+
name: z102.string(),
|
|
3415
|
+
description: z102.string(),
|
|
3448
3416
|
category: PageBlockCategory,
|
|
3449
|
-
icon:
|
|
3450
|
-
documentationLink:
|
|
3451
|
-
searchKeywords:
|
|
3417
|
+
icon: z102.string().optional(),
|
|
3418
|
+
documentationLink: z102.string().optional(),
|
|
3419
|
+
searchKeywords: z102.array(z102.string()).optional(),
|
|
3452
3420
|
item: PageBlockDefinitionItem,
|
|
3453
3421
|
behavior: PageBlockDefinitionBehavior,
|
|
3454
|
-
editorOptions:
|
|
3422
|
+
editorOptions: z102.object({
|
|
3455
3423
|
onboarding: PageBlockDefinitionOnboarding.optional(),
|
|
3456
|
-
newItemLabel:
|
|
3424
|
+
newItemLabel: z102.string().optional()
|
|
3457
3425
|
}),
|
|
3458
3426
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3459
3427
|
});
|
|
3460
|
-
var DocumentationPageGroup =
|
|
3461
|
-
type:
|
|
3462
|
-
childType:
|
|
3463
|
-
id:
|
|
3464
|
-
persistentId:
|
|
3465
|
-
shortPersistentId:
|
|
3466
|
-
designSystemVersionId:
|
|
3467
|
-
parentPersistentId:
|
|
3468
|
-
sortOrder:
|
|
3469
|
-
title:
|
|
3470
|
-
slug:
|
|
3471
|
-
userSlug:
|
|
3472
|
-
createdAt:
|
|
3473
|
-
updatedAt:
|
|
3474
|
-
});
|
|
3475
|
-
var DocumentationLinkPreview =
|
|
3476
|
-
title:
|
|
3477
|
-
description:
|
|
3428
|
+
var DocumentationPageGroup = z103.object({
|
|
3429
|
+
type: z103.literal("ElementGroup"),
|
|
3430
|
+
childType: z103.literal("DocumentationPage"),
|
|
3431
|
+
id: z103.string(),
|
|
3432
|
+
persistentId: z103.string(),
|
|
3433
|
+
shortPersistentId: z103.string(),
|
|
3434
|
+
designSystemVersionId: z103.string(),
|
|
3435
|
+
parentPersistentId: z103.string().nullish(),
|
|
3436
|
+
sortOrder: z103.number(),
|
|
3437
|
+
title: z103.string(),
|
|
3438
|
+
slug: z103.string(),
|
|
3439
|
+
userSlug: z103.string().nullish(),
|
|
3440
|
+
createdAt: z103.coerce.date(),
|
|
3441
|
+
updatedAt: z103.coerce.date()
|
|
3442
|
+
});
|
|
3443
|
+
var DocumentationLinkPreview = z104.object({
|
|
3444
|
+
title: z104.string().optional(),
|
|
3445
|
+
description: z104.string().optional(),
|
|
3478
3446
|
thumbnail: PageBlockImageReference.optional()
|
|
3479
3447
|
});
|
|
3480
|
-
var DocumentationPageAnchor =
|
|
3481
|
-
blockId:
|
|
3482
|
-
level:
|
|
3483
|
-
text:
|
|
3448
|
+
var DocumentationPageAnchor = z105.object({
|
|
3449
|
+
blockId: z105.string(),
|
|
3450
|
+
level: z105.number(),
|
|
3451
|
+
text: z105.string()
|
|
3452
|
+
});
|
|
3453
|
+
var DocumentationPageContentBackup = z106.object({
|
|
3454
|
+
id: z106.string(),
|
|
3455
|
+
designSystemVersionId: z106.string(),
|
|
3456
|
+
createdAt: z106.coerce.date(),
|
|
3457
|
+
updatedAt: z106.coerce.date(),
|
|
3458
|
+
documentationPageId: z106.string(),
|
|
3459
|
+
documentationPageName: z106.string(),
|
|
3460
|
+
storagePath: z106.string()
|
|
3461
|
+
});
|
|
3462
|
+
var DocumentationPageContentItem = z107.discriminatedUnion("type", [
|
|
3463
|
+
PageBlockEditorModelV2,
|
|
3464
|
+
PageSectionEditorModelV2
|
|
3465
|
+
]);
|
|
3466
|
+
var DocumentationPageContentData = z107.object({
|
|
3467
|
+
items: z107.array(DocumentationPageContentItem)
|
|
3468
|
+
});
|
|
3469
|
+
var DocumentationPageContent = z107.object({
|
|
3470
|
+
id: z107.string(),
|
|
3471
|
+
designSystemVersionId: z107.string(),
|
|
3472
|
+
createdAt: z107.coerce.date(),
|
|
3473
|
+
updatedAt: z107.coerce.date(),
|
|
3474
|
+
documentationPageId: z107.string(),
|
|
3475
|
+
data: DocumentationPageContentData
|
|
3484
3476
|
});
|
|
3485
|
-
var
|
|
3477
|
+
var DocumentationPage = z108.object({
|
|
3478
|
+
type: z108.literal("DocumentationPage"),
|
|
3486
3479
|
id: z108.string(),
|
|
3480
|
+
persistentId: z108.string(),
|
|
3481
|
+
shortPersistentId: z108.string(),
|
|
3487
3482
|
designSystemVersionId: z108.string(),
|
|
3483
|
+
parentPersistentId: z108.string().nullish(),
|
|
3484
|
+
sortOrder: z108.number(),
|
|
3485
|
+
title: z108.string(),
|
|
3486
|
+
slug: z108.string(),
|
|
3487
|
+
userSlug: z108.string().nullish(),
|
|
3488
3488
|
createdAt: z108.coerce.date(),
|
|
3489
|
-
updatedAt: z108.coerce.date()
|
|
3490
|
-
documentationPageId: z108.string(),
|
|
3491
|
-
documentationPageName: z108.string(),
|
|
3492
|
-
storagePath: z108.string()
|
|
3489
|
+
updatedAt: z108.coerce.date()
|
|
3493
3490
|
});
|
|
3494
|
-
var
|
|
3495
|
-
|
|
3496
|
-
PageSectionEditorModelV2
|
|
3497
|
-
]);
|
|
3498
|
-
var DocumentationPageContentData = z109.object({
|
|
3499
|
-
items: z109.array(DocumentationPageContentItem)
|
|
3500
|
-
});
|
|
3501
|
-
var DocumentationPageContent = z109.object({
|
|
3502
|
-
id: z109.string(),
|
|
3491
|
+
var DocumentationSettings = z109.object({
|
|
3492
|
+
// Basic
|
|
3503
3493
|
designSystemVersionId: z109.string(),
|
|
3504
3494
|
createdAt: z109.coerce.date(),
|
|
3505
3495
|
updatedAt: z109.coerce.date(),
|
|
3506
|
-
|
|
3507
|
-
|
|
3496
|
+
// Configuration
|
|
3497
|
+
isTabbedLayoutEnabled: z109.boolean(),
|
|
3498
|
+
storybookEmbedErrorMessage: z109.string().optional(),
|
|
3499
|
+
renderCodePackageJson: z109.string().optional(),
|
|
3500
|
+
selectedBrandPersistentId: z109.string().optional(),
|
|
3501
|
+
serveDefaultVersionOnly: z109.boolean(),
|
|
3502
|
+
isPublic: z109.boolean()
|
|
3503
|
+
});
|
|
3504
|
+
var DocumentationComment = z110.object({
|
|
3505
|
+
id: z110.string(),
|
|
3506
|
+
authorId: z110.string(),
|
|
3507
|
+
threadId: z110.string(),
|
|
3508
|
+
roomId: z110.string(),
|
|
3509
|
+
createdAt: z110.coerce.date(),
|
|
3510
|
+
editedAt: z110.coerce.date().optional(),
|
|
3511
|
+
deletedAt: z110.coerce.date().optional(),
|
|
3512
|
+
body: z110.string()
|
|
3508
3513
|
});
|
|
3509
|
-
var
|
|
3510
|
-
type: z110.literal("DocumentationPage"),
|
|
3514
|
+
var DocumentationCommentThread = z110.object({
|
|
3511
3515
|
id: z110.string(),
|
|
3512
|
-
|
|
3513
|
-
|
|
3516
|
+
roomId: z110.string(),
|
|
3517
|
+
pagePersistentId: z110.string(),
|
|
3518
|
+
brandId: z110.string(),
|
|
3514
3519
|
designSystemVersionId: z110.string(),
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
slug: z110.string(),
|
|
3519
|
-
userSlug: z110.string().nullish(),
|
|
3520
|
+
designSystemId: z110.string(),
|
|
3521
|
+
blockId: z110.string().optional(),
|
|
3522
|
+
resolved: z110.boolean(),
|
|
3520
3523
|
createdAt: z110.coerce.date(),
|
|
3521
3524
|
updatedAt: z110.coerce.date()
|
|
3522
3525
|
});
|
|
3523
|
-
var
|
|
3524
|
-
|
|
3526
|
+
var DesignElementSnapshotReason = z111.enum(["Publish", "Deletion"]);
|
|
3527
|
+
var DesignElementSnapshotBase = z111.object({
|
|
3528
|
+
id: z111.string(),
|
|
3529
|
+
persistentId: z111.string(),
|
|
3525
3530
|
designSystemVersionId: z111.string(),
|
|
3526
3531
|
createdAt: z111.coerce.date(),
|
|
3527
3532
|
updatedAt: z111.coerce.date(),
|
|
3528
|
-
// Configuration
|
|
3529
|
-
isTabbedLayoutEnabled: z111.boolean(),
|
|
3530
|
-
storybookEmbedErrorMessage: z111.string().optional(),
|
|
3531
|
-
renderCodePackageJson: z111.string().optional(),
|
|
3532
|
-
selectedBrandPersistentId: z111.string().optional(),
|
|
3533
|
-
serveDefaultVersionOnly: z111.boolean(),
|
|
3534
|
-
isPublic: z111.boolean()
|
|
3535
|
-
});
|
|
3536
|
-
var DocumentationComment = z112.object({
|
|
3537
|
-
id: z112.string(),
|
|
3538
|
-
authorId: z112.string(),
|
|
3539
|
-
threadId: z112.string(),
|
|
3540
|
-
roomId: z112.string(),
|
|
3541
|
-
createdAt: z112.coerce.date(),
|
|
3542
|
-
editedAt: z112.coerce.date().optional(),
|
|
3543
|
-
deletedAt: z112.coerce.date().optional(),
|
|
3544
|
-
body: z112.string()
|
|
3545
|
-
});
|
|
3546
|
-
var DocumentationCommentThread = z112.object({
|
|
3547
|
-
id: z112.string(),
|
|
3548
|
-
roomId: z112.string(),
|
|
3549
|
-
pagePersistentId: z112.string(),
|
|
3550
|
-
brandId: z112.string(),
|
|
3551
|
-
designSystemVersionId: z112.string(),
|
|
3552
|
-
designSystemId: z112.string(),
|
|
3553
|
-
blockId: z112.string().optional(),
|
|
3554
|
-
resolved: z112.boolean(),
|
|
3555
|
-
createdAt: z112.coerce.date(),
|
|
3556
|
-
updatedAt: z112.coerce.date()
|
|
3557
|
-
});
|
|
3558
|
-
var DesignElementSnapshotReason = z113.enum(["Publish", "Deletion"]);
|
|
3559
|
-
var DesignElementSnapshotBase = z113.object({
|
|
3560
|
-
id: z113.string(),
|
|
3561
|
-
persistentId: z113.string(),
|
|
3562
|
-
designSystemVersionId: z113.string(),
|
|
3563
|
-
createdAt: z113.coerce.date(),
|
|
3564
|
-
updatedAt: z113.coerce.date(),
|
|
3565
3533
|
reason: DesignElementSnapshotReason,
|
|
3566
|
-
createdByUserId:
|
|
3534
|
+
createdByUserId: z111.string()
|
|
3567
3535
|
});
|
|
3568
3536
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3569
3537
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -3574,8 +3542,8 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
3574
3542
|
}
|
|
3575
3543
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3576
3544
|
page: DocumentationPageV2,
|
|
3577
|
-
pageContentHash:
|
|
3578
|
-
pageContentStorageKey:
|
|
3545
|
+
pageContentHash: z112.string(),
|
|
3546
|
+
pageContentStorageKey: z112.string()
|
|
3579
3547
|
});
|
|
3580
3548
|
function pickLatestPageSnapshots(snapshots) {
|
|
3581
3549
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -3586,128 +3554,160 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3586
3554
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3587
3555
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3588
3556
|
}
|
|
3589
|
-
var
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3557
|
+
var DesignSystemMembership = z113.object({
|
|
3558
|
+
id: z113.string(),
|
|
3559
|
+
userId: z113.string(),
|
|
3560
|
+
designSystemId: z113.string(),
|
|
3561
|
+
workspaceMembershipId: z113.string()
|
|
3562
|
+
});
|
|
3563
|
+
var ElementViewBaseColumnType = z114.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3564
|
+
var ElementViewColumnType = z114.union([
|
|
3565
|
+
z114.literal("BaseProperty"),
|
|
3566
|
+
z114.literal("PropertyDefinition"),
|
|
3567
|
+
z114.literal("Theme")
|
|
3568
|
+
]);
|
|
3569
|
+
var ElementViewColumnSharedAttributes = z114.object({
|
|
3570
|
+
id: z114.string(),
|
|
3571
|
+
persistentId: z114.string(),
|
|
3572
|
+
elementDataViewId: z114.string(),
|
|
3573
|
+
sortPosition: z114.number(),
|
|
3574
|
+
width: z114.number()
|
|
3604
3575
|
});
|
|
3605
|
-
var
|
|
3576
|
+
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3577
|
+
type: z114.literal("BaseProperty"),
|
|
3578
|
+
basePropertyType: ElementViewBaseColumnType
|
|
3579
|
+
});
|
|
3580
|
+
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3581
|
+
type: z114.literal("PropertyDefinition"),
|
|
3582
|
+
propertyDefinitionId: z114.string()
|
|
3583
|
+
});
|
|
3584
|
+
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3585
|
+
type: z114.literal("Theme"),
|
|
3586
|
+
themeId: z114.string()
|
|
3587
|
+
});
|
|
3588
|
+
var ElementViewColumn = z114.discriminatedUnion("type", [
|
|
3589
|
+
ElementViewBasePropertyColumn,
|
|
3590
|
+
ElementViewPropertyDefinitionColumn,
|
|
3591
|
+
ElementViewThemeColumn
|
|
3592
|
+
]);
|
|
3593
|
+
var ElementView = z115.object({
|
|
3606
3594
|
id: z115.string(),
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3595
|
+
persistentId: z115.string(),
|
|
3596
|
+
designSystemVersionId: z115.string(),
|
|
3597
|
+
name: z115.string(),
|
|
3598
|
+
description: z115.string(),
|
|
3599
|
+
targetElementType: ElementPropertyTargetType,
|
|
3600
|
+
isDefault: z115.boolean()
|
|
3610
3601
|
});
|
|
3611
|
-
var
|
|
3602
|
+
var Brand = z116.object({
|
|
3612
3603
|
id: z116.string(),
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3604
|
+
designSystemVersionId: z116.string(),
|
|
3605
|
+
persistentId: z116.string(),
|
|
3606
|
+
name: z116.string(),
|
|
3607
|
+
description: z116.string()
|
|
3616
3608
|
});
|
|
3617
|
-
var
|
|
3618
|
-
var
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3609
|
+
var DesignSystemAccessMode = z117.enum(["Open", "InviteOnly"]);
|
|
3610
|
+
var DesignSystemSwitcher = z117.object({
|
|
3611
|
+
isEnabled: z117.boolean(),
|
|
3612
|
+
designSystemIds: z117.array(z117.string())
|
|
3613
|
+
});
|
|
3614
|
+
var DesignSystem = z117.object({
|
|
3622
3615
|
id: z117.string(),
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3616
|
+
workspaceId: z117.string(),
|
|
3617
|
+
name: z117.string(),
|
|
3618
|
+
description: z117.string(),
|
|
3619
|
+
docExporterId: nullishToOptional(z117.string()),
|
|
3620
|
+
docSlug: z117.string(),
|
|
3621
|
+
docUserSlug: nullishToOptional(z117.string()),
|
|
3622
|
+
docSlugDeprecated: z117.string(),
|
|
3628
3623
|
isPublic: z117.boolean(),
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3624
|
+
isMultibrand: z117.boolean(),
|
|
3625
|
+
docViewUrl: nullishToOptional(z117.string()),
|
|
3626
|
+
basePrefixes: z117.array(z117.string()),
|
|
3627
|
+
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3628
|
+
isApprovalFeatureEnabled: z117.boolean(),
|
|
3629
|
+
approvalRequiredForPublishing: z117.boolean(),
|
|
3630
|
+
accessMode: DesignSystemAccessMode,
|
|
3631
|
+
createdAt: z117.coerce.date(),
|
|
3632
|
+
updatedAt: z117.coerce.date()
|
|
3638
3633
|
});
|
|
3639
|
-
var
|
|
3634
|
+
var ExporterPropertyImageValue = z118.object({
|
|
3635
|
+
asset: PageBlockAsset.optional(),
|
|
3636
|
+
assetId: z118.string().optional(),
|
|
3637
|
+
assetUrl: z118.string().optional()
|
|
3638
|
+
});
|
|
3639
|
+
var ExporterPropertyValue = z118.object({
|
|
3640
|
+
key: z118.string(),
|
|
3641
|
+
value: z118.union([
|
|
3642
|
+
z118.number(),
|
|
3643
|
+
z118.string(),
|
|
3644
|
+
z118.boolean(),
|
|
3645
|
+
ExporterPropertyImageValue,
|
|
3646
|
+
ColorTokenData,
|
|
3647
|
+
TypographyTokenData
|
|
3648
|
+
])
|
|
3649
|
+
});
|
|
3650
|
+
var ExporterPropertyValuesCollection = z118.object({
|
|
3640
3651
|
id: z118.string(),
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
locale: z118.string().optional(),
|
|
3647
|
-
isPrivate: z118.boolean(),
|
|
3648
|
-
isHidden: z118.boolean(),
|
|
3649
|
-
createdAt: z118.coerce.date(),
|
|
3650
|
-
updatedAt: z118.coerce.date()
|
|
3651
|
-
});
|
|
3652
|
-
var DesignSystemVersion = z119.object({
|
|
3652
|
+
designSystemId: z118.string(),
|
|
3653
|
+
exporterId: z118.string(),
|
|
3654
|
+
values: z118.array(ExporterPropertyValue)
|
|
3655
|
+
});
|
|
3656
|
+
var PublishedDocPage = z119.object({
|
|
3653
3657
|
id: z119.string(),
|
|
3654
|
-
|
|
3658
|
+
publishedDocId: z119.string(),
|
|
3659
|
+
pageShortPersistentId: z119.string(),
|
|
3660
|
+
pathV1: z119.string(),
|
|
3661
|
+
pathV2: z119.string(),
|
|
3662
|
+
storagePath: z119.string(),
|
|
3663
|
+
locale: z119.string().optional(),
|
|
3664
|
+
isPrivate: z119.boolean(),
|
|
3665
|
+
isHidden: z119.boolean(),
|
|
3655
3666
|
createdAt: z119.coerce.date(),
|
|
3656
|
-
|
|
3657
|
-
name: z119.string(),
|
|
3658
|
-
comment: z119.string(),
|
|
3659
|
-
isReadonly: z119.boolean(),
|
|
3660
|
-
changeLog: z119.string(),
|
|
3661
|
-
parentId: z119.string().optional(),
|
|
3662
|
-
isDraftsFeatureAdopted: z119.boolean()
|
|
3663
|
-
});
|
|
3664
|
-
var VersionCreationJobStatus = z119.enum(["Success", "InProgress", "Error"]);
|
|
3665
|
-
var VersionCreationJob = z119.object({
|
|
3666
|
-
id: z119.string(),
|
|
3667
|
-
version: z119.string(),
|
|
3668
|
-
designSystemId: z119.string(),
|
|
3669
|
-
designSystemVersionId: nullishToOptional(z119.string()),
|
|
3670
|
-
status: VersionCreationJobStatus,
|
|
3671
|
-
errorMessage: nullishToOptional(z119.string())
|
|
3667
|
+
updatedAt: z119.coerce.date()
|
|
3672
3668
|
});
|
|
3673
|
-
var
|
|
3674
|
-
var
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
]);
|
|
3679
|
-
var ElementViewColumnSharedAttributes = z120.object({
|
|
3669
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3670
|
+
var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
|
|
3671
|
+
var PublishedDocsChecksums = z120.record(z120.string());
|
|
3672
|
+
var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
|
|
3673
|
+
var PublishedDoc = z120.object({
|
|
3680
3674
|
id: z120.string(),
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
themeId: z120.string()
|
|
3675
|
+
designSystemVersionId: z120.string(),
|
|
3676
|
+
createdAt: z120.coerce.date(),
|
|
3677
|
+
updatedAt: z120.coerce.date(),
|
|
3678
|
+
lastPublishedAt: z120.coerce.date(),
|
|
3679
|
+
isDefault: z120.boolean(),
|
|
3680
|
+
isPublic: z120.boolean(),
|
|
3681
|
+
environment: PublishedDocEnvironment,
|
|
3682
|
+
checksums: PublishedDocsChecksums,
|
|
3683
|
+
storagePath: z120.string(),
|
|
3684
|
+
wasMigrated: z120.boolean(),
|
|
3685
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
3686
|
+
usesLocalizations: z120.boolean(),
|
|
3687
|
+
wasPublishedWithLocalizations: z120.boolean(),
|
|
3688
|
+
tokenCount: z120.number(),
|
|
3689
|
+
assetCount: z120.number()
|
|
3697
3690
|
});
|
|
3698
|
-
var
|
|
3699
|
-
ElementViewBasePropertyColumn,
|
|
3700
|
-
ElementViewPropertyDefinitionColumn,
|
|
3701
|
-
ElementViewThemeColumn
|
|
3702
|
-
]);
|
|
3703
|
-
var ElementView = z121.object({
|
|
3691
|
+
var DesignSystemVersion = z121.object({
|
|
3704
3692
|
id: z121.string(),
|
|
3705
|
-
|
|
3706
|
-
|
|
3693
|
+
version: z121.string(),
|
|
3694
|
+
createdAt: z121.coerce.date(),
|
|
3695
|
+
designSystemId: z121.string(),
|
|
3707
3696
|
name: z121.string(),
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3697
|
+
comment: z121.string(),
|
|
3698
|
+
isReadonly: z121.boolean(),
|
|
3699
|
+
changeLog: z121.string(),
|
|
3700
|
+
parentId: z121.string().optional(),
|
|
3701
|
+
isDraftsFeatureAdopted: z121.boolean()
|
|
3702
|
+
});
|
|
3703
|
+
var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
|
|
3704
|
+
var VersionCreationJob = z121.object({
|
|
3705
|
+
id: z121.string(),
|
|
3706
|
+
version: z121.string(),
|
|
3707
|
+
designSystemId: z121.string(),
|
|
3708
|
+
designSystemVersionId: nullishToOptional(z121.string()),
|
|
3709
|
+
status: VersionCreationJobStatus,
|
|
3710
|
+
errorMessage: nullishToOptional(z121.string())
|
|
3711
3711
|
});
|
|
3712
3712
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3713
3713
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
@@ -5092,7 +5092,8 @@ var DTODesignSystemCreateInput = z175.object({
|
|
|
5092
5092
|
meta: ObjectMeta.optional(),
|
|
5093
5093
|
name: z175.string().min(2).max(64).optional(),
|
|
5094
5094
|
description: z175.string().max(1024).optional(),
|
|
5095
|
-
accessMode: DesignSystemAccessMode.optional()
|
|
5095
|
+
accessMode: DesignSystemAccessMode.optional(),
|
|
5096
|
+
inviteUserIds: z175.string().array().optional()
|
|
5096
5097
|
});
|
|
5097
5098
|
|
|
5098
5099
|
// src/api/dto/design-systems/elements-diff.ts
|