@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.
Files changed (117) hide show
  1. package/es/enum.js +1 -1
  2. package/es/get-is-leaf.js +5 -5
  3. package/es/layers/type-utils.js +2 -2
  4. package/es/migration.js +59 -1
  5. package/es/project-schema/index.js +1 -0
  6. package/es/project-schema/v3.10.0.js +1 -0
  7. package/es/refs.js +19 -19
  8. package/es/schema-util.js +11 -7
  9. package/es/schemas/index.js +15 -15
  10. package/es/schemas/index.ts +26 -25
  11. package/es/schemas/project-schema/v3.10.0.json +2091 -0
  12. package/es/schemas/project-schema/v4.0.0.json +8 -6
  13. package/es/schemas/project-schema.json +2 -1
  14. package/es/types/types.js +1 -1
  15. package/es/types/utils.js +20 -19
  16. package/es/util/detect-cycles.js +1 -1
  17. package/es/validate.js +6 -5
  18. package/examples/latest/blog-schema.json +32 -32
  19. package/examples/latest/brewery-schema.json +53 -53
  20. package/examples/latest/complex-project-schema.json +3278 -3278
  21. package/examples/latest/fabric-ecommerce.json +130 -130
  22. package/examples/latest/frank-and-fred-schema.json +15588 -15588
  23. package/examples/latest/massive-schema.json +5836 -5836
  24. package/examples/latest/mill-components-schema.json +876 -876
  25. package/examples/latest/pet-oneof-array.json +77 -77
  26. package/examples/latest/post-schema.json +23 -23
  27. package/examples/latest/pruned-shopify-product-schema.json +19 -19
  28. package/examples/latest/real-world-schema.json +166 -166
  29. package/examples/latest/recursive-repeater-schema.json +14 -14
  30. package/examples/latest/recursive-schema.json +14 -14
  31. package/examples/latest/rick-and-morty-ast.json +1875 -1896
  32. package/examples/latest/rick-and-morty-graphql.json +1093 -1093
  33. package/examples/latest/rick-and-morty-rest.json +20 -20
  34. package/examples/latest/schema-with-repeater-draftjs.json +9 -9
  35. package/examples/latest/shape-books-v3_2_0.json +218 -218
  36. package/examples/latest/shape-books.json +218 -218
  37. package/examples/latest/shopify-lookbook.json +147 -147
  38. package/examples/latest/shopify-store-with-widget.json +10420 -10420
  39. package/examples/latest/stripe-starter-resolved.json +1018 -1018
  40. package/examples/latest/user-schema-no-required.json +19 -19
  41. package/examples/latest/user-schema-with-defaults.json +20 -20
  42. package/examples/source/rick-and-morty-ast.json +0 -21
  43. package/lib/content-schema-transform.d.ts +13 -13
  44. package/lib/content-schema-transform.d.ts.map +1 -1
  45. package/lib/enum.d.ts +2 -2
  46. package/lib/enum.d.ts.map +1 -1
  47. package/lib/enum.js +2 -2
  48. package/lib/get-is-leaf.d.ts +2 -2
  49. package/lib/get-is-leaf.d.ts.map +1 -1
  50. package/lib/get-is-leaf.js +5 -5
  51. package/lib/layers/type-utils.js +1 -1
  52. package/lib/migration.d.ts +6 -5
  53. package/lib/migration.d.ts.map +1 -1
  54. package/lib/migration.js +60 -0
  55. package/lib/project-schema/index.d.ts +3 -1
  56. package/lib/project-schema/index.d.ts.map +1 -1
  57. package/lib/project-schema/index.js +25 -12
  58. package/lib/project-schema/latest.d.ts +260 -238
  59. package/lib/project-schema/latest.d.ts.map +1 -1
  60. package/lib/project-schema/v1.0.0.d.ts +14 -7
  61. package/lib/project-schema/v1.0.0.d.ts.map +1 -1
  62. package/lib/project-schema/v3.0.0.d.ts +24 -25
  63. package/lib/project-schema/v3.0.0.d.ts.map +1 -1
  64. package/lib/project-schema/v3.1.0.d.ts +42 -43
  65. package/lib/project-schema/v3.1.0.d.ts.map +1 -1
  66. package/lib/project-schema/v3.10.0.d.ts +1202 -0
  67. package/lib/project-schema/v3.10.0.d.ts.map +1 -0
  68. package/lib/project-schema/v3.10.0.js +5 -0
  69. package/lib/project-schema/v3.2.0.d.ts +42 -43
  70. package/lib/project-schema/v3.2.0.d.ts.map +1 -1
  71. package/lib/project-schema/v3.3.0.d.ts +42 -43
  72. package/lib/project-schema/v3.3.0.d.ts.map +1 -1
  73. package/lib/project-schema/v3.4.0.d.ts +42 -43
  74. package/lib/project-schema/v3.4.0.d.ts.map +1 -1
  75. package/lib/project-schema/v3.5.0.d.ts +42 -43
  76. package/lib/project-schema/v3.5.0.d.ts.map +1 -1
  77. package/lib/project-schema/v3.5.1.d.ts +42 -43
  78. package/lib/project-schema/v3.5.1.d.ts.map +1 -1
  79. package/lib/project-schema/v3.6.0.d.ts +42 -43
  80. package/lib/project-schema/v3.6.0.d.ts.map +1 -1
  81. package/lib/project-schema/v3.7.0.d.ts +42 -43
  82. package/lib/project-schema/v3.7.0.d.ts.map +1 -1
  83. package/lib/project-schema/v3.8.0.d.ts +42 -43
  84. package/lib/project-schema/v3.8.0.d.ts.map +1 -1
  85. package/lib/project-schema/v3.9.0.d.ts +42 -43
  86. package/lib/project-schema/v3.9.0.d.ts.map +1 -1
  87. package/lib/project-schema/v4.0.0.d.ts +54 -52
  88. package/lib/project-schema/v4.0.0.d.ts.map +1 -1
  89. package/lib/refs.d.ts +8 -8
  90. package/lib/refs.d.ts.map +1 -1
  91. package/lib/refs.js +19 -19
  92. package/lib/schema-util.d.ts +23 -23
  93. package/lib/schema-util.d.ts.map +1 -1
  94. package/lib/schema-util.js +11 -7
  95. package/lib/schemas/index.d.ts +3421 -3420
  96. package/lib/schemas/index.d.ts.map +1 -1
  97. package/lib/schemas/index.js +26 -30
  98. package/lib/schemas/index.ts +26 -25
  99. package/lib/schemas/project-schema/v3.10.0.json +2091 -0
  100. package/lib/schemas/project-schema/v4.0.0.json +8 -6
  101. package/lib/schemas/project-schema.json +2 -1
  102. package/lib/types/types.d.ts +8 -7
  103. package/lib/types/types.d.ts.map +1 -1
  104. package/lib/types/types.js +1 -1
  105. package/lib/types/utils.d.ts +9 -8
  106. package/lib/types/utils.d.ts.map +1 -1
  107. package/lib/types/utils.js +25 -23
  108. package/lib/unions.d.ts +8 -8
  109. package/lib/unions.d.ts.map +1 -1
  110. package/lib/util/detect-cycles.d.ts +2 -2
  111. package/lib/util/detect-cycles.d.ts.map +1 -1
  112. package/lib/util/detect-cycles.js +1 -1
  113. package/lib/validate.d.ts.map +1 -1
  114. package/lib/validate.js +5 -4
  115. package/lib/workflows.d.ts +2 -2
  116. package/lib/workflows.d.ts.map +1 -1
  117. package/package.json +5 -5
@@ -9,7 +9,135 @@
9
9
  "en-us"
10
10
  ],
11
11
  "apiVersion": "2",
12
- "schemaVersion": "3.9.0",
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
- "workflows": {},
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
  }