@takeshape/schema 8.17.1 → 8.21.1
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/es/enum.js +1 -1
- package/es/get-is-leaf.js +5 -5
- package/es/layers/type-utils.js +2 -2
- package/es/migration.js +59 -1
- package/es/project-schema/index.js +1 -0
- package/es/project-schema/v3.10.0.js +1 -0
- package/es/refs.js +19 -19
- package/es/schema-util.js +11 -7
- package/es/schemas/index.js +15 -15
- package/es/schemas/index.ts +26 -25
- package/es/schemas/project-schema/v3.10.0.json +2091 -0
- package/es/schemas/project-schema/v4.0.0.json +8 -6
- package/es/schemas/project-schema.json +2 -1
- package/es/types/types.js +1 -1
- package/es/types/utils.js +20 -19
- package/es/util/detect-cycles.js +1 -1
- package/es/validate.js +6 -5
- package/examples/latest/blog-schema.json +32 -32
- package/examples/latest/brewery-schema.json +53 -53
- package/examples/latest/complex-project-schema.json +3278 -3278
- package/examples/latest/fabric-ecommerce.json +130 -130
- package/examples/latest/frank-and-fred-schema.json +15588 -15588
- package/examples/latest/massive-schema.json +5836 -5836
- package/examples/latest/mill-components-schema.json +876 -876
- package/examples/latest/pet-oneof-array.json +77 -77
- package/examples/latest/post-schema.json +23 -23
- package/examples/latest/pruned-shopify-product-schema.json +19 -19
- package/examples/latest/real-world-schema.json +166 -166
- package/examples/latest/recursive-repeater-schema.json +14 -14
- package/examples/latest/recursive-schema.json +14 -14
- package/examples/latest/rick-and-morty-ast.json +1875 -1896
- package/examples/latest/rick-and-morty-graphql.json +1093 -1093
- package/examples/latest/rick-and-morty-rest.json +20 -20
- package/examples/latest/schema-with-repeater-draftjs.json +9 -9
- package/examples/latest/shape-books-v3_2_0.json +218 -218
- package/examples/latest/shape-books.json +218 -218
- package/examples/latest/shopify-lookbook.json +147 -147
- package/examples/latest/shopify-store-with-widget.json +10420 -10420
- package/examples/latest/stripe-starter-resolved.json +1018 -1018
- package/examples/latest/user-schema-no-required.json +19 -19
- package/examples/latest/user-schema-with-defaults.json +20 -20
- package/examples/source/rick-and-morty-ast.json +0 -21
- package/lib/content-schema-transform.d.ts +13 -13
- package/lib/content-schema-transform.d.ts.map +1 -1
- package/lib/enum.d.ts +2 -2
- package/lib/enum.d.ts.map +1 -1
- package/lib/enum.js +2 -2
- package/lib/get-is-leaf.d.ts +2 -2
- package/lib/get-is-leaf.d.ts.map +1 -1
- package/lib/get-is-leaf.js +5 -5
- package/lib/layers/type-utils.js +1 -1
- package/lib/migration.d.ts +6 -5
- package/lib/migration.d.ts.map +1 -1
- package/lib/migration.js +60 -0
- package/lib/project-schema/index.d.ts +3 -1
- package/lib/project-schema/index.d.ts.map +1 -1
- package/lib/project-schema/index.js +25 -12
- package/lib/project-schema/latest.d.ts +260 -238
- package/lib/project-schema/latest.d.ts.map +1 -1
- package/lib/project-schema/v1.0.0.d.ts +14 -7
- package/lib/project-schema/v1.0.0.d.ts.map +1 -1
- package/lib/project-schema/v3.0.0.d.ts +24 -25
- package/lib/project-schema/v3.0.0.d.ts.map +1 -1
- package/lib/project-schema/v3.1.0.d.ts +42 -43
- package/lib/project-schema/v3.1.0.d.ts.map +1 -1
- package/lib/project-schema/v3.10.0.d.ts +1202 -0
- package/lib/project-schema/v3.10.0.d.ts.map +1 -0
- package/lib/project-schema/v3.10.0.js +5 -0
- package/lib/project-schema/v3.2.0.d.ts +42 -43
- package/lib/project-schema/v3.2.0.d.ts.map +1 -1
- package/lib/project-schema/v3.3.0.d.ts +42 -43
- package/lib/project-schema/v3.3.0.d.ts.map +1 -1
- package/lib/project-schema/v3.4.0.d.ts +42 -43
- package/lib/project-schema/v3.4.0.d.ts.map +1 -1
- package/lib/project-schema/v3.5.0.d.ts +42 -43
- package/lib/project-schema/v3.5.0.d.ts.map +1 -1
- package/lib/project-schema/v3.5.1.d.ts +42 -43
- package/lib/project-schema/v3.5.1.d.ts.map +1 -1
- package/lib/project-schema/v3.6.0.d.ts +42 -43
- package/lib/project-schema/v3.6.0.d.ts.map +1 -1
- package/lib/project-schema/v3.7.0.d.ts +42 -43
- package/lib/project-schema/v3.7.0.d.ts.map +1 -1
- package/lib/project-schema/v3.8.0.d.ts +42 -43
- package/lib/project-schema/v3.8.0.d.ts.map +1 -1
- package/lib/project-schema/v3.9.0.d.ts +42 -43
- package/lib/project-schema/v3.9.0.d.ts.map +1 -1
- package/lib/project-schema/v4.0.0.d.ts +54 -52
- package/lib/project-schema/v4.0.0.d.ts.map +1 -1
- package/lib/refs.d.ts +8 -8
- package/lib/refs.d.ts.map +1 -1
- package/lib/refs.js +19 -19
- package/lib/schema-util.d.ts +23 -23
- package/lib/schema-util.d.ts.map +1 -1
- package/lib/schema-util.js +11 -7
- package/lib/schemas/index.d.ts +3421 -3420
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +26 -30
- package/lib/schemas/index.ts +26 -25
- package/lib/schemas/project-schema/v3.10.0.json +2091 -0
- package/lib/schemas/project-schema/v4.0.0.json +8 -6
- package/lib/schemas/project-schema.json +2 -1
- package/lib/types/types.d.ts +8 -7
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js +1 -1
- package/lib/types/utils.d.ts +9 -8
- package/lib/types/utils.d.ts.map +1 -1
- package/lib/types/utils.js +25 -23
- package/lib/unions.d.ts +8 -8
- package/lib/unions.d.ts.map +1 -1
- package/lib/util/detect-cycles.d.ts +2 -2
- package/lib/util/detect-cycles.d.ts.map +1 -1
- package/lib/util/detect-cycles.js +1 -1
- package/lib/validate.d.ts.map +1 -1
- package/lib/validate.js +5 -4
- package/lib/workflows.d.ts +2 -2
- package/lib/workflows.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -9,7 +9,135 @@
|
|
|
9
9
|
"en-us"
|
|
10
10
|
],
|
|
11
11
|
"apiVersion": "2",
|
|
12
|
-
"
|
|
12
|
+
"workflows": {},
|
|
13
|
+
"forms": {
|
|
14
|
+
"Product": {
|
|
15
|
+
"default": {
|
|
16
|
+
"properties": {
|
|
17
|
+
"name": {
|
|
18
|
+
"widget": "singleLineText"
|
|
19
|
+
},
|
|
20
|
+
"shopifyProduct": {
|
|
21
|
+
"properties": {
|
|
22
|
+
"descriptionHtml": {
|
|
23
|
+
"widget": "serviceObjectProperty",
|
|
24
|
+
"provider": "shopify"
|
|
25
|
+
},
|
|
26
|
+
"handle": {
|
|
27
|
+
"widget": "serviceObjectProperty",
|
|
28
|
+
"provider": "shopify"
|
|
29
|
+
},
|
|
30
|
+
"redirectNewHandle": {
|
|
31
|
+
"widget": "serviceObjectProperty",
|
|
32
|
+
"provider": "shopify"
|
|
33
|
+
},
|
|
34
|
+
"productType": {
|
|
35
|
+
"widget": "serviceObjectProperty",
|
|
36
|
+
"provider": "shopify"
|
|
37
|
+
},
|
|
38
|
+
"tags": {
|
|
39
|
+
"widget": "serviceObjectProperty",
|
|
40
|
+
"provider": "shopify"
|
|
41
|
+
},
|
|
42
|
+
"templateSuffix": {
|
|
43
|
+
"widget": "serviceObjectProperty",
|
|
44
|
+
"provider": "shopify"
|
|
45
|
+
},
|
|
46
|
+
"giftCard": {
|
|
47
|
+
"widget": "serviceObjectProperty",
|
|
48
|
+
"provider": "shopify"
|
|
49
|
+
},
|
|
50
|
+
"giftCardTemplateSuffix": {
|
|
51
|
+
"widget": "serviceObjectProperty",
|
|
52
|
+
"provider": "shopify"
|
|
53
|
+
},
|
|
54
|
+
"title": {
|
|
55
|
+
"widget": "serviceObjectProperty",
|
|
56
|
+
"provider": "shopify"
|
|
57
|
+
},
|
|
58
|
+
"vendor": {
|
|
59
|
+
"widget": "serviceObjectProperty",
|
|
60
|
+
"provider": "shopify"
|
|
61
|
+
},
|
|
62
|
+
"bodyHtml": {
|
|
63
|
+
"widget": "serviceObjectProperty",
|
|
64
|
+
"provider": "shopify"
|
|
65
|
+
},
|
|
66
|
+
"images": {
|
|
67
|
+
"widget": "shopifyProductImages",
|
|
68
|
+
"provider": "shopify"
|
|
69
|
+
},
|
|
70
|
+
"publishedAt": {
|
|
71
|
+
"widget": "serviceObjectProperty",
|
|
72
|
+
"provider": "shopify"
|
|
73
|
+
},
|
|
74
|
+
"variants": {
|
|
75
|
+
"widget": "shopifyRelationshipSummary",
|
|
76
|
+
"provider": "shopify"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"widget": "shopify",
|
|
80
|
+
"wrapper": "shopifyServiceWrapper",
|
|
81
|
+
"order": [
|
|
82
|
+
"title",
|
|
83
|
+
"handle",
|
|
84
|
+
"descriptionHtml",
|
|
85
|
+
"bodyHtml",
|
|
86
|
+
"tags",
|
|
87
|
+
"vendor",
|
|
88
|
+
"publishedAt",
|
|
89
|
+
"variants",
|
|
90
|
+
"images",
|
|
91
|
+
"redirectNewHandle",
|
|
92
|
+
"productType",
|
|
93
|
+
"templateSuffix",
|
|
94
|
+
"giftCard",
|
|
95
|
+
"giftCardTemplateSuffix"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"shopifyProductId": {
|
|
99
|
+
"instructions": "Format: gid://shopify/Product/1111111111111",
|
|
100
|
+
"label": "product ID",
|
|
101
|
+
"widget": "serviceObjectId",
|
|
102
|
+
"provider": "shopify",
|
|
103
|
+
"serviceObjectType": "product",
|
|
104
|
+
"service": "michaels-store-takeshape"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"order": [
|
|
108
|
+
"name",
|
|
109
|
+
"shopifyProductId",
|
|
110
|
+
"shopifyProduct"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"services": {
|
|
116
|
+
"michaels-store-takeshape": {
|
|
117
|
+
"title": "SHOPIFY",
|
|
118
|
+
"namespace": "Shopify",
|
|
119
|
+
"provider": "shopify",
|
|
120
|
+
"serviceType": "graphql",
|
|
121
|
+
"authenticationType": "oauth2Bearer",
|
|
122
|
+
"authentication": "secret",
|
|
123
|
+
"options": {
|
|
124
|
+
"shop": "michaels-store-takeshape",
|
|
125
|
+
"endpoint": "https://michaels-store-takeshape.myshopify.com/admin/api/2020-07/graphql.json"
|
|
126
|
+
},
|
|
127
|
+
"id": "michaels-store-takeshape"
|
|
128
|
+
},
|
|
129
|
+
"rick": {
|
|
130
|
+
"id": "rick",
|
|
131
|
+
"provider": "generic",
|
|
132
|
+
"title": "Rick",
|
|
133
|
+
"namespace": "Rick",
|
|
134
|
+
"serviceType": "rest",
|
|
135
|
+
"authenticationType": "none",
|
|
136
|
+
"options": {
|
|
137
|
+
"endpoint": "https://rickandmortyapi.com/api"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
13
141
|
"queries": {
|
|
14
142
|
"getShopifyProductDetails": {
|
|
15
143
|
"shape": "michaels-store-takeshape:Product",
|
|
@@ -1606,133 +1734,5 @@
|
|
|
1606
1734
|
}
|
|
1607
1735
|
}
|
|
1608
1736
|
},
|
|
1609
|
-
"
|
|
1610
|
-
"forms": {
|
|
1611
|
-
"Product": {
|
|
1612
|
-
"default": {
|
|
1613
|
-
"properties": {
|
|
1614
|
-
"name": {
|
|
1615
|
-
"widget": "singleLineText"
|
|
1616
|
-
},
|
|
1617
|
-
"shopifyProduct": {
|
|
1618
|
-
"properties": {
|
|
1619
|
-
"descriptionHtml": {
|
|
1620
|
-
"widget": "serviceObjectProperty",
|
|
1621
|
-
"provider": "shopify"
|
|
1622
|
-
},
|
|
1623
|
-
"handle": {
|
|
1624
|
-
"widget": "serviceObjectProperty",
|
|
1625
|
-
"provider": "shopify"
|
|
1626
|
-
},
|
|
1627
|
-
"redirectNewHandle": {
|
|
1628
|
-
"widget": "serviceObjectProperty",
|
|
1629
|
-
"provider": "shopify"
|
|
1630
|
-
},
|
|
1631
|
-
"productType": {
|
|
1632
|
-
"widget": "serviceObjectProperty",
|
|
1633
|
-
"provider": "shopify"
|
|
1634
|
-
},
|
|
1635
|
-
"tags": {
|
|
1636
|
-
"widget": "serviceObjectProperty",
|
|
1637
|
-
"provider": "shopify"
|
|
1638
|
-
},
|
|
1639
|
-
"templateSuffix": {
|
|
1640
|
-
"widget": "serviceObjectProperty",
|
|
1641
|
-
"provider": "shopify"
|
|
1642
|
-
},
|
|
1643
|
-
"giftCard": {
|
|
1644
|
-
"widget": "serviceObjectProperty",
|
|
1645
|
-
"provider": "shopify"
|
|
1646
|
-
},
|
|
1647
|
-
"giftCardTemplateSuffix": {
|
|
1648
|
-
"widget": "serviceObjectProperty",
|
|
1649
|
-
"provider": "shopify"
|
|
1650
|
-
},
|
|
1651
|
-
"title": {
|
|
1652
|
-
"widget": "serviceObjectProperty",
|
|
1653
|
-
"provider": "shopify"
|
|
1654
|
-
},
|
|
1655
|
-
"vendor": {
|
|
1656
|
-
"widget": "serviceObjectProperty",
|
|
1657
|
-
"provider": "shopify"
|
|
1658
|
-
},
|
|
1659
|
-
"bodyHtml": {
|
|
1660
|
-
"widget": "serviceObjectProperty",
|
|
1661
|
-
"provider": "shopify"
|
|
1662
|
-
},
|
|
1663
|
-
"images": {
|
|
1664
|
-
"widget": "shopifyProductImages",
|
|
1665
|
-
"provider": "shopify"
|
|
1666
|
-
},
|
|
1667
|
-
"publishedAt": {
|
|
1668
|
-
"widget": "serviceObjectProperty",
|
|
1669
|
-
"provider": "shopify"
|
|
1670
|
-
},
|
|
1671
|
-
"variants": {
|
|
1672
|
-
"widget": "shopifyRelationshipSummary",
|
|
1673
|
-
"provider": "shopify"
|
|
1674
|
-
}
|
|
1675
|
-
},
|
|
1676
|
-
"widget": "shopify",
|
|
1677
|
-
"wrapper": "shopifyServiceWrapper",
|
|
1678
|
-
"order": [
|
|
1679
|
-
"title",
|
|
1680
|
-
"handle",
|
|
1681
|
-
"descriptionHtml",
|
|
1682
|
-
"bodyHtml",
|
|
1683
|
-
"tags",
|
|
1684
|
-
"vendor",
|
|
1685
|
-
"publishedAt",
|
|
1686
|
-
"variants",
|
|
1687
|
-
"images",
|
|
1688
|
-
"redirectNewHandle",
|
|
1689
|
-
"productType",
|
|
1690
|
-
"templateSuffix",
|
|
1691
|
-
"giftCard",
|
|
1692
|
-
"giftCardTemplateSuffix"
|
|
1693
|
-
]
|
|
1694
|
-
},
|
|
1695
|
-
"shopifyProductId": {
|
|
1696
|
-
"instructions": "Format: gid://shopify/Product/1111111111111",
|
|
1697
|
-
"label": "product ID",
|
|
1698
|
-
"widget": "serviceObjectId",
|
|
1699
|
-
"provider": "shopify",
|
|
1700
|
-
"serviceObjectType": "product",
|
|
1701
|
-
"service": "michaels-store-takeshape"
|
|
1702
|
-
}
|
|
1703
|
-
},
|
|
1704
|
-
"order": [
|
|
1705
|
-
"name",
|
|
1706
|
-
"shopifyProductId",
|
|
1707
|
-
"shopifyProduct"
|
|
1708
|
-
]
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
},
|
|
1712
|
-
"services": {
|
|
1713
|
-
"michaels-store-takeshape": {
|
|
1714
|
-
"title": "SHOPIFY",
|
|
1715
|
-
"namespace": "Shopify",
|
|
1716
|
-
"provider": "shopify",
|
|
1717
|
-
"serviceType": "graphql",
|
|
1718
|
-
"authenticationType": "oauth2Bearer",
|
|
1719
|
-
"authentication": "secret",
|
|
1720
|
-
"options": {
|
|
1721
|
-
"shop": "michaels-store-takeshape",
|
|
1722
|
-
"endpoint": "https://michaels-store-takeshape.myshopify.com/admin/api/2020-07/graphql.json"
|
|
1723
|
-
},
|
|
1724
|
-
"id": "michaels-store-takeshape"
|
|
1725
|
-
},
|
|
1726
|
-
"rick": {
|
|
1727
|
-
"id": "rick",
|
|
1728
|
-
"provider": "generic",
|
|
1729
|
-
"title": "Rick",
|
|
1730
|
-
"namespace": "Rick",
|
|
1731
|
-
"serviceType": "rest",
|
|
1732
|
-
"authenticationType": "none",
|
|
1733
|
-
"options": {
|
|
1734
|
-
"endpoint": "https://rickandmortyapi.com/api"
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1737
|
+
"schemaVersion": "3.10.0"
|
|
1738
1738
|
}
|