@takeshape/schema 7.194.0

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 (312) hide show
  1. package/README.md +5 -0
  2. package/es/api-version.js +21 -0
  3. package/es/auth-schemas.js +0 -0
  4. package/es/builtin-schema.js +590 -0
  5. package/es/content-schema-transform.js +192 -0
  6. package/es/entitlements.js +0 -0
  7. package/es/enum.js +11 -0
  8. package/es/get-is-leaf.js +58 -0
  9. package/es/index.js +25 -0
  10. package/es/migration.js +413 -0
  11. package/es/mocks.js +47 -0
  12. package/es/patterns.js +0 -0
  13. package/es/project-schema/index.js +10 -0
  14. package/es/project-schema/v1.0.0.js +0 -0
  15. package/es/project-schema/v3.0.0.js +0 -0
  16. package/es/project-schema/v3.1.0.js +0 -0
  17. package/es/project-schema/v3.2.0.js +0 -0
  18. package/es/project-schema/v3.3.0.js +0 -0
  19. package/es/project-schema/v3.4.0.js +0 -0
  20. package/es/project-schema/v3.5.0.js +0 -0
  21. package/es/project-schema/v3.5.1.js +0 -0
  22. package/es/project-schema/v3.6.0.js +0 -0
  23. package/es/refs.js +301 -0
  24. package/es/resolvers.js +2 -0
  25. package/es/scalars.js +4 -0
  26. package/es/schema-util.js +1197 -0
  27. package/es/schemas/auth-schemas.json +313 -0
  28. package/es/schemas/project-schema/meta-schema-v1.0.0.json +209 -0
  29. package/es/schemas/project-schema/meta-schema-v3.0.0.json +609 -0
  30. package/es/schemas/project-schema/meta-schema-v3.1.0.json +609 -0
  31. package/es/schemas/project-schema/meta-schema-v3.2.0.json +613 -0
  32. package/es/schemas/project-schema/meta-schema-v3.3.0.json +613 -0
  33. package/es/schemas/project-schema/meta-schema-v3.4.0.json +613 -0
  34. package/es/schemas/project-schema/meta-schema-v3.5.0.json +627 -0
  35. package/es/schemas/project-schema/meta-schema-v3.5.1.json +630 -0
  36. package/es/schemas/project-schema/meta-schema-v3.6.0.json +633 -0
  37. package/es/schemas/project-schema/v1.0.0.json +321 -0
  38. package/es/schemas/project-schema/v3.0.0.json +411 -0
  39. package/es/schemas/project-schema/v3.1.0.json +569 -0
  40. package/es/schemas/project-schema/v3.2.0.json +577 -0
  41. package/es/schemas/project-schema/v3.3.0.json +578 -0
  42. package/es/schemas/project-schema/v3.4.0.json +568 -0
  43. package/es/schemas/project-schema/v3.5.0.json +568 -0
  44. package/es/schemas/project-schema/v3.5.1.json +568 -0
  45. package/es/schemas/project-schema/v3.6.0.json +584 -0
  46. package/es/schemas/project-schema.json +16 -0
  47. package/es/schemas/user-schema.json +58 -0
  48. package/es/services.js +379 -0
  49. package/es/taxonomies.js +55 -0
  50. package/es/template-shapes.js +79 -0
  51. package/es/types.js +202 -0
  52. package/es/unions.js +137 -0
  53. package/es/user-schema.js +0 -0
  54. package/es/util/detect-cycles.js +54 -0
  55. package/es/util/index.js +1 -0
  56. package/es/validate.js +764 -0
  57. package/es/versions.js +4 -0
  58. package/es/workflows.js +69 -0
  59. package/examples/.pnpm-debug.log +20 -0
  60. package/examples/v1_0_0/beer-schema.json +125 -0
  61. package/examples/v1_0_0/blog-schema.json +192 -0
  62. package/examples/v1_0_0/brewery-schema.json +232 -0
  63. package/examples/v1_0_0/complex-project-schema.json +3197 -0
  64. package/examples/v1_0_0/error-schema.json +275 -0
  65. package/examples/v1_0_0/frank-and-fred-schema.json +21387 -0
  66. package/examples/v1_0_0/massive-schema.json +6930 -0
  67. package/examples/v1_0_0/post-schema.json +83 -0
  68. package/examples/v1_0_0/real-world-schema.json +797 -0
  69. package/examples/v1_0_0/recursive-repeater-schema.json +69 -0
  70. package/examples/v1_0_0/recursive-schema.json +79 -0
  71. package/examples/v1_0_0/schema-with-repeater-draftjs.json +292 -0
  72. package/examples/v1_0_0/shape-books.json +797 -0
  73. package/examples/v1_0_0/user-schema-no-required.json +84 -0
  74. package/examples/v1_0_0/user-schema-with-defaults.json +105 -0
  75. package/examples/v1_0_0/user-schema-with-obj-prop.json +92 -0
  76. package/examples/v1_0_0/user-schema.json +87 -0
  77. package/examples/v3_0_0/rick-and-morty-rest.json +62 -0
  78. package/examples/v3_0_0/shopify-lookbook.json +1172 -0
  79. package/examples/v3_0_0/shopify-store-with-widget.json +11323 -0
  80. package/examples/v3_2_0/blog-schema.json +378 -0
  81. package/examples/v3_2_0/brewery-schema.json +385 -0
  82. package/examples/v3_2_0/complex-project-schema.json +3748 -0
  83. package/examples/v3_2_0/frank-and-fred-schema.json +19217 -0
  84. package/examples/v3_2_0/massive-schema.json +6676 -0
  85. package/examples/v3_2_0/pet-oneof-array.json +323 -0
  86. package/examples/v3_2_0/post-schema.json +265 -0
  87. package/examples/v3_2_0/real-world-schema.json +970 -0
  88. package/examples/v3_2_0/recursive-repeater-schema.json +144 -0
  89. package/examples/v3_2_0/recursive-schema.json +151 -0
  90. package/examples/v3_2_0/rick-and-morty-rest.json +65 -0
  91. package/examples/v3_2_0/schema-with-repeater-draftjs.json +381 -0
  92. package/examples/v3_2_0/shape-books.json +1044 -0
  93. package/examples/v3_2_0/shopify-store-with-widget.json +11016 -0
  94. package/examples/v3_2_0/user-schema-no-required.json +174 -0
  95. package/examples/v3_2_0/user-schema-with-defaults.json +187 -0
  96. package/examples/v3_3_0/blog-schema.json +405 -0
  97. package/examples/v3_3_0/brewery-schema.json +406 -0
  98. package/examples/v3_3_0/complex-project-schema.json +4076 -0
  99. package/examples/v3_3_0/frank-and-fred-schema.json +20913 -0
  100. package/examples/v3_3_0/massive-schema.json +7309 -0
  101. package/examples/v3_3_0/pet-oneof-array.json +380 -0
  102. package/examples/v3_3_0/post-schema.json +248 -0
  103. package/examples/v3_3_0/real-world-schema.json +1046 -0
  104. package/examples/v3_3_0/recursive-repeater-schema.json +154 -0
  105. package/examples/v3_3_0/recursive-schema.json +161 -0
  106. package/examples/v3_3_0/rick-and-morty-rest.json +101 -0
  107. package/examples/v3_3_0/schema-with-repeater-draftjs.json +393 -0
  108. package/examples/v3_3_0/shape-books.json +1121 -0
  109. package/examples/v3_3_0/shopify-lookbook.json +1196 -0
  110. package/examples/v3_3_0/shopify-store-with-widget.json +11320 -0
  111. package/examples/v3_3_0/user-schema-no-required.json +185 -0
  112. package/examples/v3_3_0/user-schema-with-defaults.json +210 -0
  113. package/examples/v3_4_0/blog-schema.json +405 -0
  114. package/examples/v3_4_0/brewery-schema.json +406 -0
  115. package/examples/v3_4_0/complex-project-schema.json +4076 -0
  116. package/examples/v3_4_0/frank-and-fred-schema.json +20913 -0
  117. package/examples/v3_4_0/massive-schema.json +7309 -0
  118. package/examples/v3_4_0/pet-oneof-array.json +420 -0
  119. package/examples/v3_4_0/post-schema.json +248 -0
  120. package/examples/v3_4_0/real-world-schema.json +1046 -0
  121. package/examples/v3_4_0/recursive-repeater-schema.json +154 -0
  122. package/examples/v3_4_0/recursive-schema.json +161 -0
  123. package/examples/v3_4_0/rick-and-morty-rest.json +101 -0
  124. package/examples/v3_4_0/schema-with-repeater-draftjs.json +393 -0
  125. package/examples/v3_4_0/shape-books.json +1121 -0
  126. package/examples/v3_4_0/shopify-lookbook.json +1196 -0
  127. package/examples/v3_4_0/shopify-store-with-widget.json +11323 -0
  128. package/examples/v3_4_0/user-schema-no-required.json +185 -0
  129. package/examples/v3_4_0/user-schema-with-defaults.json +210 -0
  130. package/examples/v3_5_0/blog-schema.json +405 -0
  131. package/examples/v3_5_0/brewery-schema.json +406 -0
  132. package/examples/v3_5_0/complex-project-schema.json +4076 -0
  133. package/examples/v3_5_0/frank-and-fred-schema.json +20913 -0
  134. package/examples/v3_5_0/massive-schema.json +7309 -0
  135. package/examples/v3_5_0/pet-oneof-array.json +420 -0
  136. package/examples/v3_5_0/post-schema.json +248 -0
  137. package/examples/v3_5_0/real-world-schema.json +1046 -0
  138. package/examples/v3_5_0/recursive-repeater-schema.json +154 -0
  139. package/examples/v3_5_0/recursive-schema.json +161 -0
  140. package/examples/v3_5_0/rick-and-morty-rest.json +101 -0
  141. package/examples/v3_5_0/schema-with-repeater-draftjs.json +393 -0
  142. package/examples/v3_5_0/shape-books.json +1121 -0
  143. package/examples/v3_5_0/shopify-lookbook.json +1196 -0
  144. package/examples/v3_5_0/shopify-store-with-widget.json +12271 -0
  145. package/examples/v3_5_0/user-schema-no-required.json +185 -0
  146. package/examples/v3_5_0/user-schema-with-defaults.json +210 -0
  147. package/examples/v3_5_1/blog-schema.json +405 -0
  148. package/examples/v3_5_1/brewery-schema.json +406 -0
  149. package/examples/v3_5_1/complex-project-schema.json +4076 -0
  150. package/examples/v3_5_1/frank-and-fred-schema.json +20913 -0
  151. package/examples/v3_5_1/massive-schema.json +7309 -0
  152. package/examples/v3_5_1/pet-oneof-array.json +420 -0
  153. package/examples/v3_5_1/post-schema.json +248 -0
  154. package/examples/v3_5_1/real-world-schema.json +1046 -0
  155. package/examples/v3_5_1/recursive-repeater-schema.json +154 -0
  156. package/examples/v3_5_1/recursive-schema.json +161 -0
  157. package/examples/v3_5_1/rick-and-morty-rest.json +101 -0
  158. package/examples/v3_5_1/schema-with-repeater-draftjs.json +393 -0
  159. package/examples/v3_5_1/shape-books.json +1121 -0
  160. package/examples/v3_5_1/shopify-lookbook.json +1196 -0
  161. package/examples/v3_5_1/shopify-store-with-widget.json +12271 -0
  162. package/examples/v3_5_1/stripe-starter-resolved.json +21419 -0
  163. package/examples/v3_5_1/user-schema-no-required.json +185 -0
  164. package/examples/v3_5_1/user-schema-with-defaults.json +210 -0
  165. package/examples/v3_6_0/blog-schema.json +405 -0
  166. package/examples/v3_6_0/brewery-schema.json +406 -0
  167. package/examples/v3_6_0/complex-project-schema.json +4076 -0
  168. package/examples/v3_6_0/frank-and-fred-schema.json +20913 -0
  169. package/examples/v3_6_0/massive-schema.json +7309 -0
  170. package/examples/v3_6_0/pet-oneof-array.json +420 -0
  171. package/examples/v3_6_0/post-schema.json +248 -0
  172. package/examples/v3_6_0/real-world-schema.json +1046 -0
  173. package/examples/v3_6_0/recursive-repeater-schema.json +154 -0
  174. package/examples/v3_6_0/recursive-schema.json +161 -0
  175. package/examples/v3_6_0/rick-and-morty-rest.json +101 -0
  176. package/examples/v3_6_0/schema-with-repeater-draftjs.json +393 -0
  177. package/examples/v3_6_0/shape-books.json +1121 -0
  178. package/examples/v3_6_0/shopify-lookbook.json +1196 -0
  179. package/examples/v3_6_0/shopify-store-with-widget.json +12271 -0
  180. package/examples/v3_6_0/stripe-starter-resolved.json +21419 -0
  181. package/examples/v3_6_0/user-schema-no-required.json +185 -0
  182. package/examples/v3_6_0/user-schema-with-defaults.json +210 -0
  183. package/lib/api-version.d.ts +6 -0
  184. package/lib/api-version.d.ts.map +1 -0
  185. package/lib/api-version.js +36 -0
  186. package/lib/auth-schemas.d.ts +105 -0
  187. package/lib/auth-schemas.d.ts.map +1 -0
  188. package/lib/auth-schemas.js +1 -0
  189. package/lib/builtin-schema.d.ts +8 -0
  190. package/lib/builtin-schema.d.ts.map +1 -0
  191. package/lib/builtin-schema.js +606 -0
  192. package/lib/content-schema-transform.d.ts +41 -0
  193. package/lib/content-schema-transform.d.ts.map +1 -0
  194. package/lib/content-schema-transform.js +217 -0
  195. package/lib/entitlements.d.ts +1 -0
  196. package/lib/entitlements.d.ts.map +1 -0
  197. package/lib/entitlements.js +1 -0
  198. package/lib/enum.d.ts +3 -0
  199. package/lib/enum.d.ts.map +1 -0
  200. package/lib/enum.js +18 -0
  201. package/lib/get-is-leaf.d.ts +4 -0
  202. package/lib/get-is-leaf.d.ts.map +1 -0
  203. package/lib/get-is-leaf.js +68 -0
  204. package/lib/index.d.ts +27 -0
  205. package/lib/index.d.ts.map +1 -0
  206. package/lib/index.js +359 -0
  207. package/lib/migration.d.ts +55 -0
  208. package/lib/migration.d.ts.map +1 -0
  209. package/lib/migration.js +463 -0
  210. package/lib/mocks.d.ts +13 -0
  211. package/lib/mocks.d.ts.map +1 -0
  212. package/lib/mocks.js +61 -0
  213. package/lib/patterns.d.ts +13 -0
  214. package/lib/patterns.d.ts.map +1 -0
  215. package/lib/patterns.js +1 -0
  216. package/lib/project-schema/index.d.ts +21 -0
  217. package/lib/project-schema/index.d.ts.map +1 -0
  218. package/lib/project-schema/index.js +122 -0
  219. package/lib/project-schema/v1.0.0.d.ts +293 -0
  220. package/lib/project-schema/v1.0.0.d.ts.map +1 -0
  221. package/lib/project-schema/v1.0.0.js +1 -0
  222. package/lib/project-schema/v3.0.0.d.ts +480 -0
  223. package/lib/project-schema/v3.0.0.d.ts.map +1 -0
  224. package/lib/project-schema/v3.0.0.js +1 -0
  225. package/lib/project-schema/v3.1.0.d.ts +623 -0
  226. package/lib/project-schema/v3.1.0.d.ts.map +1 -0
  227. package/lib/project-schema/v3.1.0.js +1 -0
  228. package/lib/project-schema/v3.2.0.d.ts +634 -0
  229. package/lib/project-schema/v3.2.0.d.ts.map +1 -0
  230. package/lib/project-schema/v3.2.0.js +1 -0
  231. package/lib/project-schema/v3.3.0.d.ts +634 -0
  232. package/lib/project-schema/v3.3.0.d.ts.map +1 -0
  233. package/lib/project-schema/v3.3.0.js +1 -0
  234. package/lib/project-schema/v3.4.0.d.ts +626 -0
  235. package/lib/project-schema/v3.4.0.d.ts.map +1 -0
  236. package/lib/project-schema/v3.4.0.js +1 -0
  237. package/lib/project-schema/v3.5.0.d.ts +651 -0
  238. package/lib/project-schema/v3.5.0.d.ts.map +1 -0
  239. package/lib/project-schema/v3.5.0.js +1 -0
  240. package/lib/project-schema/v3.5.1.d.ts +651 -0
  241. package/lib/project-schema/v3.5.1.d.ts.map +1 -0
  242. package/lib/project-schema/v3.5.1.js +1 -0
  243. package/lib/project-schema/v3.6.0.d.ts +660 -0
  244. package/lib/project-schema/v3.6.0.d.ts.map +1 -0
  245. package/lib/project-schema/v3.6.0.js +1 -0
  246. package/lib/refs.d.ts +122 -0
  247. package/lib/refs.d.ts.map +1 -0
  248. package/lib/refs.js +359 -0
  249. package/lib/resolvers.d.ts +4 -0
  250. package/lib/resolvers.d.ts.map +1 -0
  251. package/lib/resolvers.js +10 -0
  252. package/lib/scalars.d.ts +3 -0
  253. package/lib/scalars.d.ts.map +1 -0
  254. package/lib/scalars.js +13 -0
  255. package/lib/schema-util.d.ts +201 -0
  256. package/lib/schema-util.d.ts.map +1 -0
  257. package/lib/schema-util.js +1353 -0
  258. package/lib/schemas/auth-schemas.json +313 -0
  259. package/lib/schemas/project-schema/meta-schema-v1.0.0.json +209 -0
  260. package/lib/schemas/project-schema/meta-schema-v3.0.0.json +609 -0
  261. package/lib/schemas/project-schema/meta-schema-v3.1.0.json +609 -0
  262. package/lib/schemas/project-schema/meta-schema-v3.2.0.json +613 -0
  263. package/lib/schemas/project-schema/meta-schema-v3.3.0.json +613 -0
  264. package/lib/schemas/project-schema/meta-schema-v3.4.0.json +613 -0
  265. package/lib/schemas/project-schema/meta-schema-v3.5.0.json +627 -0
  266. package/lib/schemas/project-schema/meta-schema-v3.5.1.json +630 -0
  267. package/lib/schemas/project-schema/meta-schema-v3.6.0.json +633 -0
  268. package/lib/schemas/project-schema/v1.0.0.json +321 -0
  269. package/lib/schemas/project-schema/v3.0.0.json +411 -0
  270. package/lib/schemas/project-schema/v3.1.0.json +569 -0
  271. package/lib/schemas/project-schema/v3.2.0.json +577 -0
  272. package/lib/schemas/project-schema/v3.3.0.json +578 -0
  273. package/lib/schemas/project-schema/v3.4.0.json +568 -0
  274. package/lib/schemas/project-schema/v3.5.0.json +568 -0
  275. package/lib/schemas/project-schema/v3.5.1.json +568 -0
  276. package/lib/schemas/project-schema/v3.6.0.json +584 -0
  277. package/lib/schemas/project-schema.json +16 -0
  278. package/lib/schemas/user-schema.json +58 -0
  279. package/lib/services.d.ts +71 -0
  280. package/lib/services.d.ts.map +1 -0
  281. package/lib/services.js +413 -0
  282. package/lib/taxonomies.d.ts +16 -0
  283. package/lib/taxonomies.d.ts.map +1 -0
  284. package/lib/taxonomies.js +69 -0
  285. package/lib/template-shapes.d.ts +32 -0
  286. package/lib/template-shapes.d.ts.map +1 -0
  287. package/lib/template-shapes.js +100 -0
  288. package/lib/types.d.ts +187 -0
  289. package/lib/types.d.ts.map +1 -0
  290. package/lib/types.js +289 -0
  291. package/lib/unions.d.ts +29 -0
  292. package/lib/unions.d.ts.map +1 -0
  293. package/lib/unions.js +167 -0
  294. package/lib/user-schema.d.ts +39 -0
  295. package/lib/user-schema.d.ts.map +1 -0
  296. package/lib/user-schema.js +1 -0
  297. package/lib/util/detect-cycles.d.ts +6 -0
  298. package/lib/util/detect-cycles.d.ts.map +1 -0
  299. package/lib/util/detect-cycles.js +61 -0
  300. package/lib/util/index.d.ts +2 -0
  301. package/lib/util/index.d.ts.map +1 -0
  302. package/lib/util/index.js +18 -0
  303. package/lib/validate.d.ts +49 -0
  304. package/lib/validate.d.ts.map +1 -0
  305. package/lib/validate.js +823 -0
  306. package/lib/versions.d.ts +5 -0
  307. package/lib/versions.d.ts.map +1 -0
  308. package/lib/versions.js +14 -0
  309. package/lib/workflows.d.ts +15 -0
  310. package/lib/workflows.d.ts.map +1 -0
  311. package/lib/workflows.js +92 -0
  312. package/package.json +65 -0
@@ -0,0 +1,797 @@
1
+ {
2
+ "$schema": "http://takeshape.io/schemas/project-schema#",
3
+ "version": 1,
4
+ "author": "<userId>",
5
+ "apiVersion": "2",
6
+ "projectId": "project-id",
7
+ "defaultLocale": "en-us",
8
+ "locales": ["en-us"],
9
+ "workflows": {},
10
+ "created": 1466522179051,
11
+ "updated": 1466522179051,
12
+ "contentTypes": {
13
+ "ry9SoTEGl": {
14
+ "schema": {
15
+ "type": "object",
16
+ "properties": {
17
+ "_enabled": {
18
+ "title": "Enabled",
19
+ "type": "boolean"
20
+ },
21
+ "name": {
22
+ "description": "Very impressive very important",
23
+ "title": "Name",
24
+ "type": "string",
25
+ "key": "rk-Vsa4Gl",
26
+ "minLength": 1
27
+ },
28
+ "about": {
29
+ "type": "object",
30
+ "draftjs": true,
31
+ "title": "About",
32
+ "key": "S1p2CYznZ"
33
+ },
34
+ "_updatedAt": {
35
+ "title": "Updated Date",
36
+ "type": "string",
37
+ "format": "date-time"
38
+ },
39
+ "_contentTypeId": {
40
+ "title": "Content Type Id",
41
+ "type": "string"
42
+ },
43
+ "dropdown": {
44
+ "oneOf": [
45
+ {
46
+ "title": "Option 1",
47
+ "enum": [
48
+ "option1"
49
+ ]
50
+ },
51
+ {
52
+ "title": "Option 2",
53
+ "enum": [
54
+ "option2"
55
+ ]
56
+ }
57
+ ],
58
+ "type": "string",
59
+ "title": "Dropdown",
60
+ "key": "SylJmaIVz"
61
+ },
62
+ "_enabledAt": {
63
+ "title": "Enabled Date",
64
+ "type": "string",
65
+ "format": "date-time"
66
+ },
67
+ "similarBeers": {
68
+ "type": "array",
69
+ "title": "Similar Beers",
70
+ "relationship": {
71
+ "type": "multiple",
72
+ "contentTypeIds": [
73
+ "ry9SoTEGl"
74
+ ]
75
+ },
76
+ "items": {
77
+ "type": "object",
78
+ "properties": {
79
+ "contentTypeId": {
80
+ "type": "string",
81
+ "enum": [
82
+ "ry9SoTEGl"
83
+ ],
84
+ "minLength": 1
85
+ },
86
+ "id": {
87
+ "type": "string",
88
+ "minLength": 1
89
+ }
90
+ },
91
+ "required": [
92
+ "contentTypeId",
93
+ "id"
94
+ ]
95
+ },
96
+ "key": "ry5xpLhoZ"
97
+ },
98
+ "_version": {
99
+ "title": "Version",
100
+ "type": "integer"
101
+ },
102
+ "_id": {
103
+ "title": "Id",
104
+ "type": "string"
105
+ },
106
+ "image": {
107
+ "description": "An image",
108
+ "title": "Image",
109
+ "type": "object",
110
+ "relationship": {
111
+ "type": "single",
112
+ "contentTypeIds": [
113
+ "ASSET"
114
+ ]
115
+ },
116
+ "properties": {
117
+ "contentTypeId": {
118
+ "type": "string",
119
+ "enum": [
120
+ "ASSET"
121
+ ],
122
+ "minLength": 1
123
+ },
124
+ "id": {
125
+ "type": "string",
126
+ "minLength": 1
127
+ }
128
+ },
129
+ "key": "S15VspNMl",
130
+ "required": [
131
+ "contentTypeId",
132
+ "id"
133
+ ]
134
+ },
135
+ "_createdAt": {
136
+ "title": "Created Date",
137
+ "type": "string",
138
+ "format": "date-time"
139
+ },
140
+ "publishDate": {
141
+ "format": "date-time",
142
+ "type": "string",
143
+ "title": "Publish Date",
144
+ "key": "Hy8mZOdZf"
145
+ },
146
+ "_contentTypeName": {
147
+ "title": "Content Type Name",
148
+ "type": "string"
149
+ }
150
+ },
151
+ "required": [
152
+ "name",
153
+ "image"
154
+ ]
155
+ },
156
+ "single": false,
157
+ "name": "beer",
158
+ "title": "Beer",
159
+ "forms": {
160
+ "default": {
161
+ "properties": {
162
+ "name": {
163
+ "widget": "singleLineText"
164
+ },
165
+ "publishDate": {
166
+ "widget": "datetime"
167
+ },
168
+ "about": {
169
+ "widget": "wysiwygText"
170
+ },
171
+ "image": {
172
+ "widget": "image"
173
+ },
174
+ "similarBeers": {
175
+ "widget": "relationship"
176
+ },
177
+ "dropdown": {
178
+ "widget": "dropdown"
179
+ }
180
+ },
181
+ "order": [
182
+ "name",
183
+ "image",
184
+ "publishDate",
185
+ "about",
186
+ "similarBeers",
187
+ "dropdown"
188
+ ]
189
+ }
190
+ }
191
+ },
192
+ "r1wsT6Efx": {
193
+ "schema": {
194
+ "type": "object",
195
+ "properties": {
196
+ "body": {
197
+ "description": "A Repeater",
198
+ "title": "Body",
199
+ "type": "array",
200
+ "items": {
201
+ "type": "object",
202
+ "properties": {
203
+ "image": {
204
+ "description": "An image",
205
+ "relationship": {
206
+ "type": "single",
207
+ "contentTypeIds": [
208
+ "ASSET"
209
+ ]
210
+ },
211
+ "title": "Image",
212
+ "type": [
213
+ "object",
214
+ "null"
215
+ ],
216
+ "key": "rJg1ATEMg",
217
+ "properties": {
218
+ "contentTypeId": {
219
+ "type": "string",
220
+ "enum": [
221
+ "ASSET"
222
+ ]
223
+ },
224
+ "id": {
225
+ "type": "string"
226
+ }
227
+ },
228
+ "required": [
229
+ "contentTypeId",
230
+ "id"
231
+ ]
232
+ },
233
+ "text": {
234
+ "description": "A Markdown text editor.",
235
+ "title": "Text",
236
+ "type": "string",
237
+ "key": "BJjAT6VMg",
238
+ "minLength": 0
239
+ }
240
+ }
241
+ },
242
+ "key": "BkVCpTNzg"
243
+ },
244
+ "_enabled": {
245
+ "title": "Enabled",
246
+ "type": "boolean"
247
+ },
248
+ "_updatedAt": {
249
+ "title": "Updated Date",
250
+ "type": "string",
251
+ "format": "date-time"
252
+ },
253
+ "_contentTypeId": {
254
+ "title": "Content Type Id",
255
+ "type": "string"
256
+ },
257
+ "dropdown": {
258
+ "oneOf": [
259
+ {
260
+ "title": "Option 1",
261
+ "enum": [
262
+ "option1"
263
+ ]
264
+ },
265
+ {
266
+ "title": "Option 2",
267
+ "enum": [
268
+ "option2"
269
+ ]
270
+ },
271
+ {
272
+ "title": "ooo",
273
+ "enum": [
274
+ "alowo"
275
+ ]
276
+ }
277
+ ],
278
+ "title": "Dropdown",
279
+ "type": "string",
280
+ "key": "B1MWaFTjl"
281
+ },
282
+ "_enabledAt": {
283
+ "title": "Enabled Date",
284
+ "type": "string",
285
+ "format": "date-time"
286
+ },
287
+ "title": {
288
+ "pattern": "^[\\S\\s]*?$",
289
+ "title": "Title",
290
+ "type": "string",
291
+ "key": "BJ-jTTNMg",
292
+ "minLength": 0
293
+ },
294
+ "content": {
295
+ "draftjs": true,
296
+ "title": "Content",
297
+ "type": "object",
298
+ "key": "rkFtL3Yil"
299
+ },
300
+ "_version": {
301
+ "title": "Version",
302
+ "type": "integer"
303
+ },
304
+ "_id": {
305
+ "title": "Id",
306
+ "type": "string"
307
+ },
308
+ "relatedBeer": {
309
+ "relationship": {
310
+ "type": "multiple",
311
+ "relatedName": "relatedPosts",
312
+ "contentTypeIds": [
313
+ "ry9SoTEGl"
314
+ ]
315
+ },
316
+ "title": "Related Beer",
317
+ "type": "array",
318
+ "items": {
319
+ "type": "object",
320
+ "properties": {
321
+ "contentTypeId": {
322
+ "type": "string",
323
+ "enum": [
324
+ "ry9SoTEGl"
325
+ ],
326
+ "minLength": 1
327
+ },
328
+ "id": {
329
+ "type": "string",
330
+ "minLength": 1
331
+ }
332
+ },
333
+ "required": [
334
+ "contentTypeId",
335
+ "id"
336
+ ]
337
+ },
338
+ "key": "B1fAr2Yjx",
339
+ "properties": {
340
+ "contentTypeId": {
341
+ "type": "string",
342
+ "enum": [
343
+ "ry9SoTEGl"
344
+ ]
345
+ },
346
+ "id": {
347
+ "type": "string"
348
+ }
349
+ }
350
+ },
351
+ "_createdAt": {
352
+ "title": "Created Date",
353
+ "type": "string",
354
+ "format": "date-time"
355
+ },
356
+ "_contentTypeName": {
357
+ "title": "Content Type Name",
358
+ "type": "string"
359
+ }
360
+ }
361
+ },
362
+ "single": false,
363
+ "name": "post",
364
+ "title": "Post",
365
+ "forms": {
366
+ "default": {
367
+ "properties": {
368
+ "relatedBeer": {
369
+ "widget": "relationship"
370
+ },
371
+ "body": {
372
+ "properties": {
373
+ "image": {
374
+ "widget": "image"
375
+ },
376
+ "text": {
377
+ "widget": "markdownText"
378
+ }
379
+ },
380
+ "widget": "repeater",
381
+ "order": [
382
+ "image",
383
+ "text"
384
+ ]
385
+ },
386
+ "title": {
387
+ "widget": "singleLineText"
388
+ },
389
+ "content": {
390
+ "widget": "wysiwygText"
391
+ },
392
+ "dropdown": {
393
+ "widget": "dropdown"
394
+ }
395
+ },
396
+ "order": [
397
+ "title",
398
+ "content",
399
+ "dropdown",
400
+ "relatedBeer",
401
+ "body"
402
+ ]
403
+ }
404
+ }
405
+ },
406
+ "Hyb-2VRYl": {
407
+ "schema": {
408
+ "type": "object",
409
+ "properties": {
410
+ "_enabled": {
411
+ "title": "Enabled",
412
+ "type": "boolean"
413
+ },
414
+ "heading": {
415
+ "title": "Heading",
416
+ "type": "string",
417
+ "key": "H1nl2NRFe",
418
+ "minLength": 0
419
+ },
420
+ "_updatedAt": {
421
+ "title": "Updated Date",
422
+ "type": "string",
423
+ "format": "date-time"
424
+ },
425
+ "_contentTypeId": {
426
+ "title": "Content Type Id",
427
+ "type": "string"
428
+ },
429
+ "_enabledAt": {
430
+ "title": "Enabled Date",
431
+ "type": "string",
432
+ "format": "date-time"
433
+ },
434
+ "relationship": {
435
+ "relationship": {
436
+ "type": "multiple",
437
+ "contentTypeIds": [
438
+ "ry9SoTEGl",
439
+ "r1wsT6Efx"
440
+ ]
441
+ },
442
+ "title": "Relationship",
443
+ "type": "array",
444
+ "items": {
445
+ "type": "object",
446
+ "properties": {
447
+ "contentTypeId": {
448
+ "type": "string",
449
+ "enum": [
450
+ "ry9SoTEGl",
451
+ "r1wsT6Efx"
452
+ ],
453
+ "minLength": 1
454
+ },
455
+ "id": {
456
+ "type": "string",
457
+ "minLength": 1
458
+ }
459
+ },
460
+ "required": [
461
+ "contentTypeId",
462
+ "id"
463
+ ]
464
+ },
465
+ "key": "HkiM6FO3x"
466
+ },
467
+ "_version": {
468
+ "title": "Version",
469
+ "type": "integer"
470
+ },
471
+ "_id": {
472
+ "title": "Id",
473
+ "type": "string"
474
+ },
475
+ "_createdAt": {
476
+ "title": "Created Date",
477
+ "type": "string",
478
+ "format": "date-time"
479
+ },
480
+ "_contentTypeName": {
481
+ "title": "Content Type Name",
482
+ "type": "string"
483
+ }
484
+ }
485
+ },
486
+ "single": true,
487
+ "name": "homepage",
488
+ "title": "Homepage",
489
+ "forms": {
490
+ "default": {
491
+ "properties": {
492
+ "relationship": {
493
+ "widget": "relationship"
494
+ },
495
+ "heading": {
496
+ "widget": "singleLineText"
497
+ }
498
+ },
499
+ "order": [
500
+ "heading",
501
+ "relationship"
502
+ ]
503
+ }
504
+ }
505
+ },
506
+ "ASSET": {
507
+ "name": "asset",
508
+ "title": "Asset",
509
+ "hidden": true,
510
+ "description": "The built-in TakeShape asset model",
511
+ "schema": {
512
+ "type": "object",
513
+ "properties": {
514
+ "_enabled": {
515
+ "title": "Enabled",
516
+ "type": "boolean"
517
+ },
518
+ "caption": {
519
+ "title": "Caption",
520
+ "key": "SyWVsd98x",
521
+ "type": "object",
522
+ "draftjs": true
523
+ },
524
+ "filename": {
525
+ "title": "Filename",
526
+ "key": "H1oYQOM9",
527
+ "type": "string"
528
+ },
529
+ "mimeType": {
530
+ "title": "MIME type",
531
+ "key": "SyCYX_Gq",
532
+ "type": "string"
533
+ },
534
+ "_updatedAt": {
535
+ "title": "Updated Date",
536
+ "type": "string",
537
+ "format": "date-time"
538
+ },
539
+ "_contentTypeId": {
540
+ "title": "Content Type Id",
541
+ "type": "string"
542
+ },
543
+ "uploadStatus": {
544
+ "title": "Upload status",
545
+ "key": "ByeAYXdG9",
546
+ "type": "string",
547
+ "enum": [
548
+ "PENDING",
549
+ "COMPLETE"
550
+ ]
551
+ },
552
+ "_enabledAt": {
553
+ "title": "Enabled Date",
554
+ "type": "string",
555
+ "format": "date-time"
556
+ },
557
+ "title": {
558
+ "title": "Title",
559
+ "key": "By5tQOMc",
560
+ "type": "string"
561
+ },
562
+ "credit": {
563
+ "title": "Credit",
564
+ "key": "Skn_i_5Ll",
565
+ "type": "object",
566
+ "draftjs": true
567
+ },
568
+ "_version": {
569
+ "title": "Version",
570
+ "type": "integer"
571
+ },
572
+ "_id": {
573
+ "title": "Id",
574
+ "type": "string"
575
+ },
576
+ "_createdAt": {
577
+ "title": "Created Date",
578
+ "type": "string",
579
+ "format": "date-time"
580
+ },
581
+ "description": {
582
+ "title": "Description",
583
+ "key": "B1Zsra3fx",
584
+ "type": "string"
585
+ },
586
+ "path": {
587
+ "title": "s3 key",
588
+ "key": "Hk6FQuz5",
589
+ "type": "string"
590
+ },
591
+ "_contentTypeName": {
592
+ "title": "Content Type Name",
593
+ "type": "string"
594
+ }
595
+ },
596
+ "required": [
597
+ "filename",
598
+ "path"
599
+ ]
600
+ },
601
+ "forms": {
602
+ "default": {
603
+ "order": [
604
+ "title",
605
+ "description",
606
+ "caption",
607
+ "credit"
608
+ ],
609
+ "properties": {
610
+ "title": {
611
+ "widget": "singleLineText"
612
+ },
613
+ "description": {
614
+ "widget": "paragraphText"
615
+ },
616
+ "caption": {
617
+ "widget": "wysiwygSingleLineText"
618
+ },
619
+ "credit": {
620
+ "widget": "wysiwygSingleLineText"
621
+ }
622
+ }
623
+ }
624
+ }
625
+ },
626
+ "SITE": {
627
+ "name": "tsStaticSite",
628
+ "title": "Static Site",
629
+ "hidden": true,
630
+ "description": "The built-in TakeShape static site model",
631
+ "schema": {
632
+ "type": "object",
633
+ "properties": {
634
+ "_enabled": {
635
+ "title": "Enabled",
636
+ "type": "boolean"
637
+ },
638
+ "environmentVariables": {
639
+ "title": "Environment Variables",
640
+ "type": "array",
641
+ "key": "9fj4UiNxY",
642
+ "items": {
643
+ "type": "object",
644
+ "properties": {
645
+ "name": {
646
+ "title": "Name",
647
+ "type": "string",
648
+ "key": "J8sbHgfdI"
649
+ },
650
+ "value": {
651
+ "title": "Value",
652
+ "type": "string",
653
+ "key": "ndhh88DvG"
654
+ }
655
+ }
656
+ }
657
+ },
658
+ "idKey": {
659
+ "title": "Id Key",
660
+ "type": "string",
661
+ "key": "SyRhi8_me",
662
+ "minLength": 1
663
+ },
664
+ "destination": {
665
+ "title": "Destination",
666
+ "type": "string",
667
+ "key": "Hk6TsIdXl"
668
+ },
669
+ "_updatedAt": {
670
+ "title": "Updated Date",
671
+ "type": "string",
672
+ "format": "date-time"
673
+ },
674
+ "secretKey": {
675
+ "title": "Secret Key",
676
+ "type": "string",
677
+ "key": "BkIajLdXl",
678
+ "minLength": 1,
679
+ "sensitive": true
680
+ },
681
+ "_contentTypeId": {
682
+ "title": "Content Type Id",
683
+ "type": "string"
684
+ },
685
+ "provider": {
686
+ "title": "Provider",
687
+ "type": "string",
688
+ "key": "SkwbT2hqe",
689
+ "default": "s3",
690
+ "oneOf": [
691
+ {
692
+ "enum": [
693
+ "s3"
694
+ ],
695
+ "title": "S3"
696
+ },
697
+ {
698
+ "enum": [
699
+ "gcs"
700
+ ],
701
+ "title": "Google Cloud Storage"
702
+ },
703
+ {
704
+ "enum": [
705
+ "ftp"
706
+ ],
707
+ "title": "FTP Client"
708
+ }
709
+ ]
710
+ },
711
+ "_enabledAt": {
712
+ "title": "Enabled Date",
713
+ "type": "string",
714
+ "format": "date-time"
715
+ },
716
+ "title": {
717
+ "title": "Title",
718
+ "type": "string",
719
+ "key": "Ski9jLuXg"
720
+ },
721
+ "_version": {
722
+ "title": "Version",
723
+ "type": "integer"
724
+ },
725
+ "_id": {
726
+ "title": "Id",
727
+ "type": "string"
728
+ },
729
+ "_createdAt": {
730
+ "title": "Created Date",
731
+ "type": "string",
732
+ "format": "date-time"
733
+ },
734
+ "_contentTypeName": {
735
+ "title": "Content Type Name",
736
+ "type": "string"
737
+ }
738
+ },
739
+ "required": [
740
+ "title",
741
+ "provider",
742
+ "destination",
743
+ "idKey",
744
+ "secretKey"
745
+ ]
746
+ },
747
+ "forms": {
748
+ "default": {
749
+ "order": [
750
+ "title",
751
+ "provider",
752
+ "destination",
753
+ "idKey",
754
+ "secretKey",
755
+ "environmentVariables"
756
+ ],
757
+ "properties": {
758
+ "title": {
759
+ "widget": "singleLineText"
760
+ },
761
+ "provider": {
762
+ "widget": "dropdown"
763
+ },
764
+ "destination": {
765
+ "widget": "singleLineText",
766
+ "instructions": "Deployment Bucket or FTP Host"
767
+ },
768
+ "idKey": {
769
+ "widget": "singleLineText",
770
+ "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username"
771
+ },
772
+ "secretKey": {
773
+ "widget": "sensitiveField",
774
+ "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
775
+ "multiline": true
776
+ },
777
+ "environmentVariables": {
778
+ "widget": "repeater",
779
+ "order": [
780
+ "name",
781
+ "value"
782
+ ],
783
+ "properties": {
784
+ "name": {
785
+ "widget": "singleLineText"
786
+ },
787
+ "value": {
788
+ "widget": "singleLineText"
789
+ }
790
+ }
791
+ }
792
+ }
793
+ }
794
+ }
795
+ }
796
+ }
797
+ }