@manta-eu/ldo 0.1.5 → 0.1.6

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.
@@ -1,49 +1,36 @@
1
1
  import { ldkit, xsd } from "ldkit/namespaces";
2
2
  import { brand, nfo, nmo, prov, schema } from "./namespaces.js";
3
- export const BrandApproveBrandGuidelinesSchema = {
4
- blockerFacet: {
5
- "@id": brand.blockerFacet,
6
- "@optional": true,
7
- "@array": true,
8
- },
9
- entryKey: {
10
- "@id": brand.entryKey,
3
+ export const BrandAddFacetEntrySchema = {
4
+ basis: {
5
+ "@id": brand.basis,
11
6
  "@optional": true,
12
- "@array": true,
13
7
  },
14
- entryPolicy: {
15
- "@id": brand.entryPolicy,
16
- "@optional": true,
17
- "@array": true,
18
- },
19
- entryWeight: {
20
- "@id": brand.entryWeight,
8
+ claimKind: {
9
+ "@id": brand.claimKind,
10
+ "@enum": ["fact", "proof", "offer"],
21
11
  "@optional": true,
22
- "@array": true,
23
12
  },
24
- focalMarginMin: {
25
- "@id": brand.focalMarginMin,
26
- "@type": xsd.decimal,
13
+ facet: brand.facet,
14
+ file: {
15
+ "@id": brand.file,
16
+ "@type": ldkit.IRI,
27
17
  "@optional": true,
28
18
  },
29
19
  forBrand: {
30
20
  "@id": brand.forBrand,
31
21
  "@type": ldkit.IRI,
32
22
  },
33
- includeDeclared: {
34
- "@id": brand.includeDeclared,
35
- "@type": xsd.boolean,
23
+ hex: {
24
+ "@id": brand.hex,
36
25
  "@optional": true,
37
26
  },
38
- policy: {
39
- "@id": brand.policy,
40
- "@enum": ["required", "preferred", "forbidden"],
27
+ means: {
28
+ "@id": brand.means,
29
+ "@optional": true,
41
30
  },
42
- version: brand.version,
43
- why: {
44
- "@id": brand.why,
31
+ term: {
32
+ "@id": brand.term,
45
33
  "@optional": true,
46
- "@array": true,
47
34
  },
48
35
  };
49
36
  export const BrandAssetAnalysisSchema = {
@@ -76,7 +63,7 @@ export const BrandAssetAnalysisSchema = {
76
63
  },
77
64
  analysisKind: {
78
65
  "@id": brand.analysisKind,
79
- "@enum": ["visual", "video", "stylesheet", "figma-frame"],
66
+ "@enum": ["visual", "video", "stylesheet", "figma-frame", "page-typography"],
80
67
  "@optional": true,
81
68
  },
82
69
  analysisVersion: {
@@ -505,6 +492,12 @@ export const BrandAssetAnalysisSchema = {
505
492
  "@optional": true,
506
493
  "@array": true,
507
494
  },
495
+ fontFile: {
496
+ "@id": brand.fontFile,
497
+ "@type": ldkit.IRI,
498
+ "@optional": true,
499
+ "@array": true,
500
+ },
508
501
  frameHash: {
509
502
  "@id": brand.frameHash,
510
503
  "@optional": true,
@@ -631,6 +624,11 @@ export const BrandAssetAnalysisSchema = {
631
624
  "@optional": true,
632
625
  "@array": true,
633
626
  },
627
+ isPartOf: {
628
+ "@id": schema.isPartOf,
629
+ "@type": ldkit.IRI,
630
+ "@optional": true,
631
+ },
634
632
  lensArtifacts: {
635
633
  "@id": brand.lensArtifacts,
636
634
  "@enum": [
@@ -1309,6 +1307,12 @@ export const BrandAssetAnalysisSchema = {
1309
1307
  "@optional": true,
1310
1308
  "@array": true,
1311
1309
  },
1310
+ typeStyle: {
1311
+ "@id": brand.typeStyle,
1312
+ "@type": ldkit.IRI,
1313
+ "@optional": true,
1314
+ "@array": true,
1315
+ },
1312
1316
  visibleText: {
1313
1317
  "@id": brand.visibleText,
1314
1318
  "@optional": true,
@@ -1376,17 +1380,19 @@ export const BrandAssetDecisionSchema = {
1376
1380
  "@type": ldkit.IRI,
1377
1381
  },
1378
1382
  };
1383
+ export const BrandAttachFontFileSchema = {
1384
+ fontFamily: brand.fontFamily,
1385
+ fontFile: {
1386
+ "@id": brand.fontFile,
1387
+ "@type": ldkit.IRI,
1388
+ },
1389
+ };
1379
1390
  export const BrandBrandFacetRuleSchema = {
1380
1391
  "@type": brand.BrandFacetRule,
1381
1392
  appliesToRole: {
1382
1393
  "@id": brand.appliesToRole,
1383
1394
  "@optional": true,
1384
1395
  },
1385
- entryKey: {
1386
- "@id": brand.entryKey,
1387
- "@optional": true,
1388
- "@array": true,
1389
- },
1390
1396
  entryStatus: {
1391
1397
  "@id": brand.entryStatus,
1392
1398
  "@enum": ["draft", "accepted", "rejected"],
@@ -1416,6 +1422,11 @@ export const BrandBrandFacetRuleSchema = {
1416
1422
  "@enum": ["blocker", "major", "minor", "info"],
1417
1423
  "@optional": true,
1418
1424
  },
1425
+ wasDerivedFrom: {
1426
+ "@id": prov.wasDerivedFrom,
1427
+ "@optional": true,
1428
+ "@array": true,
1429
+ },
1419
1430
  weight: {
1420
1431
  "@id": brand.weight,
1421
1432
  "@type": xsd.double,
@@ -1464,16 +1475,6 @@ export const BrandBrandFitVerdictSchema = {
1464
1475
  };
1465
1476
  export const BrandBrandGuidelinesSchema = {
1466
1477
  "@type": brand.BrandGuidelines,
1467
- approvedAt: {
1468
- "@id": brand.approvedAt,
1469
- "@type": xsd.dateTime,
1470
- "@optional": true,
1471
- },
1472
- approvedBy: {
1473
- "@id": brand.approvedBy,
1474
- "@type": ldkit.IRI,
1475
- "@optional": true,
1476
- },
1477
1478
  approvedCta: {
1478
1479
  "@id": brand.approvedCta,
1479
1480
  "@optional": true,
@@ -1514,11 +1515,6 @@ export const BrandBrandGuidelinesSchema = {
1514
1515
  "@type": xsd.dateTime,
1515
1516
  "@optional": true,
1516
1517
  },
1517
- guidelineStatus: {
1518
- "@id": brand.guidelineStatus,
1519
- "@enum": ["draft", "approved", "superseded"],
1520
- "@optional": true,
1521
- },
1522
1518
  hasClaim: {
1523
1519
  "@id": brand.hasClaim,
1524
1520
  "@type": ldkit.IRI,
@@ -1531,6 +1527,18 @@ export const BrandBrandGuidelinesSchema = {
1531
1527
  "@optional": true,
1532
1528
  "@array": true,
1533
1529
  },
1530
+ hasWordingEntry: {
1531
+ "@id": brand.hasWordingEntry,
1532
+ "@type": ldkit.IRI,
1533
+ "@optional": true,
1534
+ "@array": true,
1535
+ },
1536
+ logo: {
1537
+ "@id": brand.logo,
1538
+ "@type": ldkit.IRI,
1539
+ "@optional": true,
1540
+ "@array": true,
1541
+ },
1534
1542
  logoRule: {
1535
1543
  "@id": brand.logoRule,
1536
1544
  "@optional": true,
@@ -1548,7 +1556,7 @@ export const BrandBrandGuidelinesSchema = {
1548
1556
  },
1549
1557
  origin: {
1550
1558
  "@id": brand.origin,
1551
- "@enum": ["declared", "deduced"],
1559
+ "@enum": ["declared", "deduced", "accepted"],
1552
1560
  "@optional": true,
1553
1561
  },
1554
1562
  preferredVocab: {
@@ -1600,7 +1608,10 @@ export const BrandClaimSchema = {
1600
1608
  "@optional": true,
1601
1609
  "@array": true,
1602
1610
  },
1603
- basis: brand.basis,
1611
+ basis: {
1612
+ "@id": brand.basis,
1613
+ "@optional": true,
1614
+ },
1604
1615
  claimKind: {
1605
1616
  "@id": brand.claimKind,
1606
1617
  "@enum": ["fact", "proof", "offer"],
@@ -1664,6 +1675,66 @@ export const BrandDecideAssetSchema = {
1664
1675
  "@type": ldkit.IRI,
1665
1676
  },
1666
1677
  };
1678
+ export const BrandDecideEntrySchema = {
1679
+ blockerFacet: {
1680
+ "@id": brand.blockerFacet,
1681
+ "@optional": true,
1682
+ "@array": true,
1683
+ },
1684
+ decisionNote: {
1685
+ "@id": brand.decisionNote,
1686
+ "@optional": true,
1687
+ },
1688
+ decisionOnEntry: {
1689
+ "@id": brand.decisionOnEntry,
1690
+ "@type": ldkit.IRI,
1691
+ "@optional": true,
1692
+ },
1693
+ entryStatus: {
1694
+ "@id": brand.entryStatus,
1695
+ "@enum": ["accepted", "rejected", "draft"],
1696
+ },
1697
+ facet: {
1698
+ "@id": brand.facet,
1699
+ "@optional": true,
1700
+ },
1701
+ file: {
1702
+ "@id": brand.file,
1703
+ "@type": ldkit.IRI,
1704
+ "@optional": true,
1705
+ },
1706
+ focalMarginMin: {
1707
+ "@id": brand.focalMarginMin,
1708
+ "@type": xsd.double,
1709
+ "@optional": true,
1710
+ },
1711
+ forBrand: {
1712
+ "@id": brand.forBrand,
1713
+ "@type": ldkit.IRI,
1714
+ },
1715
+ hex: {
1716
+ "@id": brand.hex,
1717
+ "@optional": true,
1718
+ },
1719
+ policy: {
1720
+ "@id": brand.policy,
1721
+ "@enum": ["required", "preferred", "forbidden"],
1722
+ "@optional": true,
1723
+ },
1724
+ term: {
1725
+ "@id": brand.term,
1726
+ "@optional": true,
1727
+ },
1728
+ weight: {
1729
+ "@id": brand.weight,
1730
+ "@type": xsd.double,
1731
+ "@optional": true,
1732
+ },
1733
+ why: {
1734
+ "@id": brand.why,
1735
+ "@optional": true,
1736
+ },
1737
+ };
1667
1738
  export const BrandDeclaredTextSchema = {
1668
1739
  "@type": brand.DeclaredText,
1669
1740
  fontFamily: {
@@ -1730,6 +1801,57 @@ export const BrandDismissDeviationSchema = {
1730
1801
  "@type": ldkit.IRI,
1731
1802
  },
1732
1803
  };
1804
+ export const BrandEntryDecisionSchema = {
1805
+ "@type": brand.EntryDecision,
1806
+ acceptedCopy: {
1807
+ "@id": brand.acceptedCopy,
1808
+ "@type": ldkit.IRI,
1809
+ "@optional": true,
1810
+ },
1811
+ decidedAt: {
1812
+ "@id": brand.decidedAt,
1813
+ "@type": xsd.dateTime,
1814
+ "@optional": true,
1815
+ },
1816
+ decidedBy: {
1817
+ "@id": brand.decidedBy,
1818
+ "@type": ldkit.IRI,
1819
+ "@optional": true,
1820
+ },
1821
+ decisionNote: {
1822
+ "@id": brand.decisionNote,
1823
+ "@optional": true,
1824
+ },
1825
+ decisionOnEntry: {
1826
+ "@id": brand.decisionOnEntry,
1827
+ "@array": true,
1828
+ },
1829
+ entryStatus: {
1830
+ "@id": brand.entryStatus,
1831
+ "@enum": ["accepted", "rejected"],
1832
+ },
1833
+ facet: {
1834
+ "@id": brand.facet,
1835
+ "@optional": true,
1836
+ },
1837
+ file: {
1838
+ "@id": brand.file,
1839
+ "@type": ldkit.IRI,
1840
+ "@optional": true,
1841
+ },
1842
+ forBrand: {
1843
+ "@id": brand.forBrand,
1844
+ "@type": ldkit.IRI,
1845
+ },
1846
+ hex: {
1847
+ "@id": brand.hex,
1848
+ "@optional": true,
1849
+ },
1850
+ term: {
1851
+ "@id": brand.term,
1852
+ "@optional": true,
1853
+ },
1854
+ };
1733
1855
  export const BrandFacetCheckSchema = {
1734
1856
  "@type": brand.FacetCheck,
1735
1857
  checkFacet: {
@@ -1742,7 +1864,6 @@ export const BrandFacetCheckSchema = {
1742
1864
  },
1743
1865
  checkOfRule: {
1744
1866
  "@id": brand.checkOfRule,
1745
- "@type": ldkit.IRI,
1746
1867
  "@optional": true,
1747
1868
  },
1748
1869
  checkOnAsset: {
@@ -1817,6 +1938,105 @@ export const BrandFontFamilySchema = {
1817
1938
  "@id": brand.family,
1818
1939
  "@optional": true,
1819
1940
  },
1941
+ fontAvailability: {
1942
+ "@id": brand.fontAvailability,
1943
+ "@enum": ["available", "looking-up", "needs-upload"],
1944
+ "@optional": true,
1945
+ },
1946
+ fontFile: {
1947
+ "@id": brand.fontFile,
1948
+ "@type": ldkit.IRI,
1949
+ "@optional": true,
1950
+ "@array": true,
1951
+ },
1952
+ fontUsage: {
1953
+ "@id": brand.fontUsage,
1954
+ "@type": ldkit.IRI,
1955
+ "@optional": true,
1956
+ "@array": true,
1957
+ },
1958
+ };
1959
+ export const BrandFontFileSchema = {
1960
+ "@type": brand.FontFile,
1961
+ contentMimeType: {
1962
+ "@id": nmo.contentMimeType,
1963
+ "@enum": ["font/woff2", "font/woff", "font/ttf", "font/otf"],
1964
+ "@optional": true,
1965
+ },
1966
+ contentUrl: {
1967
+ "@id": schema.contentUrl,
1968
+ "@type": ldkit.IRI,
1969
+ },
1970
+ embeddedFamilyName: {
1971
+ "@id": brand.embeddedFamilyName,
1972
+ "@optional": true,
1973
+ },
1974
+ fontFamily: brand.fontFamily,
1975
+ fontSource: {
1976
+ "@id": brand.fontSource,
1977
+ "@enum": ["website", "google-fonts", "upload"],
1978
+ },
1979
+ fontStyle: {
1980
+ "@id": brand.fontStyle,
1981
+ "@enum": ["normal", "italic"],
1982
+ },
1983
+ fontWeightMax: {
1984
+ "@id": brand.fontWeightMax,
1985
+ "@type": xsd.double,
1986
+ },
1987
+ fontWeightMin: {
1988
+ "@id": brand.fontWeightMin,
1989
+ "@type": xsd.double,
1990
+ },
1991
+ wasDerivedFrom: {
1992
+ "@id": prov.wasDerivedFrom,
1993
+ "@type": ldkit.IRI,
1994
+ "@optional": true,
1995
+ },
1996
+ };
1997
+ export const BrandFontLookupResultSchema = {
1998
+ "@type": brand.FontLookupResult,
1999
+ fontFamily: brand.fontFamily,
2000
+ lookupOutcome: {
2001
+ "@id": brand.lookupOutcome,
2002
+ "@enum": ["found", "not-found", "unavailable"],
2003
+ },
2004
+ lookupSource: {
2005
+ "@id": brand.lookupSource,
2006
+ "@enum": ["google-fonts"],
2007
+ },
2008
+ };
2009
+ export const BrandFontLookupSchema = {
2010
+ "@type": brand.FontLookup,
2011
+ fontFamily: brand.fontFamily,
2012
+ };
2013
+ export const BrandFontUsageSchema = {
2014
+ "@type": brand.FontUsage,
2015
+ evidencedBy: {
2016
+ "@id": brand.evidencedBy,
2017
+ "@type": ldkit.IRI,
2018
+ "@optional": true,
2019
+ "@array": true,
2020
+ },
2021
+ family: brand.family,
2022
+ fontRole: {
2023
+ "@id": brand.fontRole,
2024
+ "@enum": ["display", "heading", "subheading", "body", "eyebrow", "button", "navigation", "caption"],
2025
+ },
2026
+ fontWeight: {
2027
+ "@id": brand.fontWeight,
2028
+ "@type": xsd.double,
2029
+ },
2030
+ rolePageCount: {
2031
+ "@id": brand.rolePageCount,
2032
+ "@type": xsd.integer,
2033
+ "@optional": true,
2034
+ },
2035
+ usageShare: {
2036
+ "@id": brand.usageShare,
2037
+ "@type": xsd.double,
2038
+ "@optional": true,
2039
+ },
1820
2040
  };
1821
2041
  export const BrandHueBandSchema = {
1822
2042
  "@type": brand.HueBand,
@@ -1841,6 +2061,67 @@ export const BrandHueBandSchema = {
1841
2061
  "@optional": true,
1842
2062
  },
1843
2063
  };
2064
+ export const BrandLogoEntrySchema = {
2065
+ "@type": brand.LogoEntry,
2066
+ entryStatus: {
2067
+ "@id": brand.entryStatus,
2068
+ "@enum": ["draft", "accepted", "rejected"],
2069
+ "@optional": true,
2070
+ },
2071
+ file: {
2072
+ "@id": brand.file,
2073
+ "@type": ldkit.IRI,
2074
+ "@optional": true,
2075
+ },
2076
+ };
2077
+ export const BrandManualEntrySchema = {
2078
+ "@type": brand.ManualEntry,
2079
+ addedAt: {
2080
+ "@id": brand.addedAt,
2081
+ "@type": xsd.dateTime,
2082
+ "@optional": true,
2083
+ },
2084
+ addedBy: {
2085
+ "@id": brand.addedBy,
2086
+ "@type": ldkit.IRI,
2087
+ "@optional": true,
2088
+ },
2089
+ basis: {
2090
+ "@id": brand.basis,
2091
+ "@optional": true,
2092
+ },
2093
+ claimKind: {
2094
+ "@id": brand.claimKind,
2095
+ "@enum": ["fact", "proof", "offer"],
2096
+ "@optional": true,
2097
+ },
2098
+ facet: brand.facet,
2099
+ file: {
2100
+ "@id": brand.file,
2101
+ "@type": ldkit.IRI,
2102
+ "@optional": true,
2103
+ },
2104
+ forBrand: {
2105
+ "@id": brand.forBrand,
2106
+ "@type": ldkit.IRI,
2107
+ },
2108
+ hex: {
2109
+ "@id": brand.hex,
2110
+ "@optional": true,
2111
+ },
2112
+ means: {
2113
+ "@id": brand.means,
2114
+ "@optional": true,
2115
+ },
2116
+ paletteHex: {
2117
+ "@id": brand.paletteHex,
2118
+ "@optional": true,
2119
+ },
2120
+ term: {
2121
+ "@id": brand.term,
2122
+ "@optional": true,
2123
+ },
2124
+ };
1844
2125
  export const BrandNamedColorSchema = {
1845
2126
  "@type": brand.NamedColor,
1846
2127
  entryStatus: {
@@ -1892,6 +2173,11 @@ export const BrandOnScreenTextSchema = {
1892
2173
  };
1893
2174
  export const BrandPaletteColorSchema = {
1894
2175
  "@type": brand.PaletteColor,
2176
+ brightnessBand: {
2177
+ "@id": brand.brightnessBand,
2178
+ "@type": xsd.integer,
2179
+ "@optional": true,
2180
+ },
1895
2181
  entryStatus: {
1896
2182
  "@id": brand.entryStatus,
1897
2183
  "@enum": ["draft", "accepted", "rejected"],
@@ -1903,6 +2189,11 @@ export const BrandPaletteColorSchema = {
1903
2189
  "@optional": true,
1904
2190
  "@array": true,
1905
2191
  },
2192
+ hueBucket: {
2193
+ "@id": brand.hueBucket,
2194
+ "@type": xsd.integer,
2195
+ "@optional": true,
2196
+ },
1906
2197
  paletteBrightness: {
1907
2198
  "@id": brand.paletteBrightness,
1908
2199
  "@type": xsd.decimal,
@@ -2079,6 +2370,27 @@ export const BrandTranscriptSegmentSchema = {
2079
2370
  "@optional": true,
2080
2371
  },
2081
2372
  };
2373
+ export const BrandTypeStyleSchema = {
2374
+ "@type": brand.TypeStyle,
2375
+ fontFamily: brand.fontFamily,
2376
+ fontRole: {
2377
+ "@id": brand.fontRole,
2378
+ "@enum": ["display", "heading", "subheading", "body", "eyebrow", "button", "navigation", "caption"],
2379
+ },
2380
+ fontSizePx: {
2381
+ "@id": brand.fontSizePx,
2382
+ "@type": xsd.double,
2383
+ "@optional": true,
2384
+ },
2385
+ fontWeight: {
2386
+ "@id": brand.fontWeight,
2387
+ "@type": xsd.double,
2388
+ },
2389
+ roleShare: {
2390
+ "@id": brand.roleShare,
2391
+ "@type": xsd.double,
2392
+ },
2393
+ };
2082
2394
  export const BrandVoiceContrastSchema = {
2083
2395
  "@type": brand.VoiceContrast,
2084
2396
  means: brand.means,
@@ -2095,3 +2407,22 @@ export const BrandWebsiteAnalysisSchema = {
2095
2407
  "@type": ldkit.IRI,
2096
2408
  },
2097
2409
  };
2410
+ export const BrandWordingEntrySchema = {
2411
+ "@type": brand.WordingEntry,
2412
+ entryStatus: {
2413
+ "@id": brand.entryStatus,
2414
+ "@enum": ["draft", "accepted", "rejected"],
2415
+ "@optional": true,
2416
+ },
2417
+ evidencedBy: {
2418
+ "@id": brand.evidencedBy,
2419
+ "@type": ldkit.IRI,
2420
+ "@optional": true,
2421
+ "@array": true,
2422
+ },
2423
+ term: brand.term,
2424
+ wordingProperty: {
2425
+ "@id": brand.wordingProperty,
2426
+ "@enum": ["proofPoint", "approvedCta", "preferredVocab", "bannedVocab", "mandatoryLine"],
2427
+ },
2428
+ };