@takeshape/schema 9.46.0 → 9.48.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 (450) hide show
  1. package/dist/content-schema-transform.d.ts +6 -6
  2. package/dist/content-schema-transform.d.ts.map +1 -1
  3. package/dist/create-input-schema.d.ts +2 -2
  4. package/dist/create-input-schema.d.ts.map +1 -1
  5. package/dist/flatten-templates.d.ts +2 -2
  6. package/dist/flatten-templates.d.ts.map +1 -1
  7. package/dist/get-is-leaf.d.ts +2 -2
  8. package/dist/get-is-leaf.d.ts.map +1 -1
  9. package/dist/interfaces.d.ts +6 -6
  10. package/dist/interfaces.d.ts.map +1 -1
  11. package/dist/layers/layers.d.ts +3 -3
  12. package/dist/layers/layers.d.ts.map +1 -1
  13. package/dist/layers/refs.d.ts +4 -4
  14. package/dist/layers/refs.d.ts.map +1 -1
  15. package/dist/migration/index.d.ts +43 -41
  16. package/dist/migration/index.d.ts.map +1 -1
  17. package/dist/migration/index.js +7 -1
  18. package/dist/migration/to/utils/v3.34.0-utils.d.ts +1 -0
  19. package/dist/migration/to/utils/v3.34.0-utils.d.ts.map +1 -0
  20. package/dist/migration/to/utils/v3.34.0-utils.js +1 -0
  21. package/dist/migration/to/v3.0.0.d.ts +2 -2
  22. package/dist/migration/to/v3.0.0.d.ts.map +1 -1
  23. package/dist/migration/to/v3.1.0.d.ts +2 -2
  24. package/dist/migration/to/v3.1.0.d.ts.map +1 -1
  25. package/dist/migration/to/v3.10.0.d.ts +2 -2
  26. package/dist/migration/to/v3.10.0.d.ts.map +1 -1
  27. package/dist/migration/to/v3.11.0.d.ts +2 -2
  28. package/dist/migration/to/v3.11.0.d.ts.map +1 -1
  29. package/dist/migration/to/v3.12.0.d.ts +2 -2
  30. package/dist/migration/to/v3.12.0.d.ts.map +1 -1
  31. package/dist/migration/to/v3.12.1.d.ts +2 -2
  32. package/dist/migration/to/v3.12.1.d.ts.map +1 -1
  33. package/dist/migration/to/v3.12.2.d.ts +2 -2
  34. package/dist/migration/to/v3.12.2.d.ts.map +1 -1
  35. package/dist/migration/to/v3.12.3.d.ts +2 -2
  36. package/dist/migration/to/v3.12.3.d.ts.map +1 -1
  37. package/dist/migration/to/v3.13.0.d.ts +2 -2
  38. package/dist/migration/to/v3.13.0.d.ts.map +1 -1
  39. package/dist/migration/to/v3.14.0.d.ts +2 -2
  40. package/dist/migration/to/v3.14.0.d.ts.map +1 -1
  41. package/dist/migration/to/v3.15.0.d.ts +2 -2
  42. package/dist/migration/to/v3.15.0.d.ts.map +1 -1
  43. package/dist/migration/to/v3.16.0.d.ts +2 -2
  44. package/dist/migration/to/v3.16.0.d.ts.map +1 -1
  45. package/dist/migration/to/v3.17.0.d.ts +2 -2
  46. package/dist/migration/to/v3.17.0.d.ts.map +1 -1
  47. package/dist/migration/to/v3.17.1.d.ts +2 -2
  48. package/dist/migration/to/v3.17.1.d.ts.map +1 -1
  49. package/dist/migration/to/v3.18.0.d.ts +2 -2
  50. package/dist/migration/to/v3.18.0.d.ts.map +1 -1
  51. package/dist/migration/to/v3.18.1.d.ts +2 -2
  52. package/dist/migration/to/v3.18.1.d.ts.map +1 -1
  53. package/dist/migration/to/v3.18.2.d.ts +2 -2
  54. package/dist/migration/to/v3.18.2.d.ts.map +1 -1
  55. package/dist/migration/to/v3.19.0.d.ts +2 -2
  56. package/dist/migration/to/v3.19.0.d.ts.map +1 -1
  57. package/dist/migration/to/v3.2.0.d.ts +2 -2
  58. package/dist/migration/to/v3.2.0.d.ts.map +1 -1
  59. package/dist/migration/to/v3.20.0.d.ts +2 -2
  60. package/dist/migration/to/v3.20.0.d.ts.map +1 -1
  61. package/dist/migration/to/v3.21.0.d.ts +2 -2
  62. package/dist/migration/to/v3.21.0.d.ts.map +1 -1
  63. package/dist/migration/to/v3.22.0.d.ts +2 -2
  64. package/dist/migration/to/v3.22.0.d.ts.map +1 -1
  65. package/dist/migration/to/v3.23.0.d.ts +2 -2
  66. package/dist/migration/to/v3.23.0.d.ts.map +1 -1
  67. package/dist/migration/to/v3.24.0.d.ts +2 -2
  68. package/dist/migration/to/v3.24.0.d.ts.map +1 -1
  69. package/dist/migration/to/v3.25.0.d.ts +2 -2
  70. package/dist/migration/to/v3.25.0.d.ts.map +1 -1
  71. package/dist/migration/to/v3.26.0.d.ts +2 -2
  72. package/dist/migration/to/v3.26.0.d.ts.map +1 -1
  73. package/dist/migration/to/v3.27.0.d.ts +2 -2
  74. package/dist/migration/to/v3.27.0.d.ts.map +1 -1
  75. package/dist/migration/to/v3.28.0.d.ts +2 -2
  76. package/dist/migration/to/v3.28.0.d.ts.map +1 -1
  77. package/dist/migration/to/v3.29.0.d.ts +2 -2
  78. package/dist/migration/to/v3.29.0.d.ts.map +1 -1
  79. package/dist/migration/to/v3.3.0.d.ts +2 -2
  80. package/dist/migration/to/v3.3.0.d.ts.map +1 -1
  81. package/dist/migration/to/v3.30.0.d.ts +2 -2
  82. package/dist/migration/to/v3.30.0.d.ts.map +1 -1
  83. package/dist/migration/to/v3.31.0.d.ts +2 -2
  84. package/dist/migration/to/v3.31.0.d.ts.map +1 -1
  85. package/dist/migration/to/v3.32.0.d.ts +2 -2
  86. package/dist/migration/to/v3.32.0.d.ts.map +1 -1
  87. package/dist/migration/to/v3.33.0.d.ts +2 -2
  88. package/dist/migration/to/v3.33.0.d.ts.map +1 -1
  89. package/dist/migration/to/v3.34.0.d.ts +7 -0
  90. package/dist/migration/to/v3.34.0.d.ts.map +1 -0
  91. package/dist/migration/to/v3.34.0.js +183 -0
  92. package/dist/migration/to/v3.35.0.d.ts +5 -0
  93. package/dist/migration/to/v3.35.0.d.ts.map +1 -0
  94. package/dist/migration/to/v3.35.0.js +18 -0
  95. package/dist/migration/to/v3.4.0.d.ts +2 -2
  96. package/dist/migration/to/v3.4.0.d.ts.map +1 -1
  97. package/dist/migration/to/v3.5.0.d.ts +2 -2
  98. package/dist/migration/to/v3.5.0.d.ts.map +1 -1
  99. package/dist/migration/to/v3.5.1.d.ts +2 -2
  100. package/dist/migration/to/v3.5.1.d.ts.map +1 -1
  101. package/dist/migration/to/v3.6.0.d.ts +2 -2
  102. package/dist/migration/to/v3.6.0.d.ts.map +1 -1
  103. package/dist/migration/to/v3.7.0.d.ts +2 -2
  104. package/dist/migration/to/v3.7.0.d.ts.map +1 -1
  105. package/dist/migration/to/v3.8.0.d.ts +2 -2
  106. package/dist/migration/to/v3.8.0.d.ts.map +1 -1
  107. package/dist/migration/to/v3.9.0.d.ts +2 -2
  108. package/dist/migration/to/v3.9.0.d.ts.map +1 -1
  109. package/dist/migration/types.d.ts +6 -6
  110. package/dist/migration/types.d.ts.map +1 -1
  111. package/dist/mocks.d.ts +5 -5
  112. package/dist/mocks.d.ts.map +1 -1
  113. package/dist/models/project-schema.d.ts +36 -0
  114. package/dist/models/project-schema.d.ts.map +1 -0
  115. package/dist/models/project-schema.js +132 -0
  116. package/dist/models/query.d.ts +18 -0
  117. package/dist/models/query.d.ts.map +1 -0
  118. package/dist/models/query.js +44 -0
  119. package/dist/models/service.d.ts +13 -0
  120. package/dist/models/service.d.ts.map +1 -0
  121. package/dist/models/service.js +34 -0
  122. package/dist/models/shape.d.ts +42 -0
  123. package/dist/models/shape.d.ts.map +1 -0
  124. package/dist/models/shape.js +116 -0
  125. package/dist/project-schema/index.d.ts +95 -89
  126. package/dist/project-schema/index.d.ts.map +1 -1
  127. package/dist/project-schema/index.js +168 -134
  128. package/dist/project-schema/latest.d.ts +145 -126
  129. package/dist/project-schema/latest.d.ts.map +1 -1
  130. package/dist/project-schema/migrate.d.ts +3 -3
  131. package/dist/project-schema/migrate.d.ts.map +1 -1
  132. package/dist/project-schema/migrate.js +52 -44
  133. package/dist/project-schema/v1.0.0.d.ts +13 -13
  134. package/dist/project-schema/v1.0.0.d.ts.map +1 -1
  135. package/dist/project-schema/v3.0.0.d.ts +23 -23
  136. package/dist/project-schema/v3.0.0.d.ts.map +1 -1
  137. package/dist/project-schema/v3.1.0.d.ts +35 -35
  138. package/dist/project-schema/v3.1.0.d.ts.map +1 -1
  139. package/dist/project-schema/v3.10.0.d.ts +104 -104
  140. package/dist/project-schema/v3.10.0.d.ts.map +1 -1
  141. package/dist/project-schema/v3.11.0.d.ts +104 -104
  142. package/dist/project-schema/v3.11.0.d.ts.map +1 -1
  143. package/dist/project-schema/v3.12.0.d.ts +104 -104
  144. package/dist/project-schema/v3.12.0.d.ts.map +1 -1
  145. package/dist/project-schema/v3.12.1.d.ts +110 -110
  146. package/dist/project-schema/v3.12.1.d.ts.map +1 -1
  147. package/dist/project-schema/v3.12.2.d.ts +111 -111
  148. package/dist/project-schema/v3.12.2.d.ts.map +1 -1
  149. package/dist/project-schema/v3.12.3.d.ts +114 -114
  150. package/dist/project-schema/v3.12.3.d.ts.map +1 -1
  151. package/dist/project-schema/v3.13.0.d.ts +115 -115
  152. package/dist/project-schema/v3.13.0.d.ts.map +1 -1
  153. package/dist/project-schema/v3.14.0.d.ts +116 -116
  154. package/dist/project-schema/v3.14.0.d.ts.map +1 -1
  155. package/dist/project-schema/v3.15.0.d.ts +119 -119
  156. package/dist/project-schema/v3.15.0.d.ts.map +1 -1
  157. package/dist/project-schema/v3.16.0.d.ts +119 -119
  158. package/dist/project-schema/v3.16.0.d.ts.map +1 -1
  159. package/dist/project-schema/v3.17.0.d.ts +119 -119
  160. package/dist/project-schema/v3.17.0.d.ts.map +1 -1
  161. package/dist/project-schema/v3.17.1.d.ts +119 -119
  162. package/dist/project-schema/v3.17.1.d.ts.map +1 -1
  163. package/dist/project-schema/v3.18.0.d.ts +117 -117
  164. package/dist/project-schema/v3.18.0.d.ts.map +1 -1
  165. package/dist/project-schema/v3.18.1.d.ts +117 -117
  166. package/dist/project-schema/v3.18.1.d.ts.map +1 -1
  167. package/dist/project-schema/v3.18.2.d.ts +117 -117
  168. package/dist/project-schema/v3.18.2.d.ts.map +1 -1
  169. package/dist/project-schema/v3.19.0.d.ts +117 -117
  170. package/dist/project-schema/v3.19.0.d.ts.map +1 -1
  171. package/dist/project-schema/v3.2.0.d.ts +36 -36
  172. package/dist/project-schema/v3.2.0.d.ts.map +1 -1
  173. package/dist/project-schema/v3.20.0.d.ts +117 -117
  174. package/dist/project-schema/v3.20.0.d.ts.map +1 -1
  175. package/dist/project-schema/v3.21.0.d.ts +117 -117
  176. package/dist/project-schema/v3.21.0.d.ts.map +1 -1
  177. package/dist/project-schema/v3.22.0.d.ts +118 -118
  178. package/dist/project-schema/v3.22.0.d.ts.map +1 -1
  179. package/dist/project-schema/v3.23.0.d.ts +120 -120
  180. package/dist/project-schema/v3.23.0.d.ts.map +1 -1
  181. package/dist/project-schema/v3.24.0.d.ts +120 -120
  182. package/dist/project-schema/v3.24.0.d.ts.map +1 -1
  183. package/dist/project-schema/v3.25.0.d.ts +120 -120
  184. package/dist/project-schema/v3.25.0.d.ts.map +1 -1
  185. package/dist/project-schema/v3.26.0.d.ts +121 -121
  186. package/dist/project-schema/v3.26.0.d.ts.map +1 -1
  187. package/dist/project-schema/v3.27.0.d.ts +122 -122
  188. package/dist/project-schema/v3.27.0.d.ts.map +1 -1
  189. package/dist/project-schema/v3.28.0.d.ts +123 -123
  190. package/dist/project-schema/v3.28.0.d.ts.map +1 -1
  191. package/dist/project-schema/v3.29.0.d.ts +124 -124
  192. package/dist/project-schema/v3.29.0.d.ts.map +1 -1
  193. package/dist/project-schema/v3.3.0.d.ts +36 -36
  194. package/dist/project-schema/v3.3.0.d.ts.map +1 -1
  195. package/dist/project-schema/v3.30.0.d.ts +123 -123
  196. package/dist/project-schema/v3.30.0.d.ts.map +1 -1
  197. package/dist/project-schema/v3.31.0.d.ts +125 -125
  198. package/dist/project-schema/v3.31.0.d.ts.map +1 -1
  199. package/dist/project-schema/v3.32.0.d.ts +124 -124
  200. package/dist/project-schema/v3.32.0.d.ts.map +1 -1
  201. package/dist/project-schema/v3.33.0.d.ts +125 -125
  202. package/dist/project-schema/v3.33.0.d.ts.map +1 -1
  203. package/dist/project-schema/v3.34.0.d.ts +1446 -0
  204. package/dist/project-schema/v3.34.0.d.ts.map +1 -0
  205. package/dist/project-schema/v3.34.0.js +5 -0
  206. package/dist/project-schema/v3.35.0.d.ts +1465 -0
  207. package/dist/project-schema/v3.35.0.d.ts.map +1 -0
  208. package/dist/project-schema/v3.35.0.js +5 -0
  209. package/dist/project-schema/v3.4.0.d.ts +36 -36
  210. package/dist/project-schema/v3.4.0.d.ts.map +1 -1
  211. package/dist/project-schema/v3.5.0.d.ts +36 -36
  212. package/dist/project-schema/v3.5.0.d.ts.map +1 -1
  213. package/dist/project-schema/v3.5.1.d.ts +36 -36
  214. package/dist/project-schema/v3.5.1.d.ts.map +1 -1
  215. package/dist/project-schema/v3.6.0.d.ts +37 -37
  216. package/dist/project-schema/v3.6.0.d.ts.map +1 -1
  217. package/dist/project-schema/v3.7.0.d.ts +37 -37
  218. package/dist/project-schema/v3.7.0.d.ts.map +1 -1
  219. package/dist/project-schema/v3.8.0.d.ts +39 -39
  220. package/dist/project-schema/v3.8.0.d.ts.map +1 -1
  221. package/dist/project-schema/v3.9.0.d.ts +39 -39
  222. package/dist/project-schema/v3.9.0.d.ts.map +1 -1
  223. package/dist/project-schema/v4.0.0.d.ts +113 -113
  224. package/dist/project-schema/v4.0.0.d.ts.map +1 -1
  225. package/dist/refs.d.ts +16 -13
  226. package/dist/refs.d.ts.map +1 -1
  227. package/dist/refs.js +21 -0
  228. package/dist/relationships.d.ts +5 -5
  229. package/dist/relationships.d.ts.map +1 -1
  230. package/dist/schema-util.d.ts +46 -40
  231. package/dist/schema-util.d.ts.map +1 -1
  232. package/dist/schema-util.js +34 -29
  233. package/dist/schemas/index.d.ts +2 -2
  234. package/dist/schemas/index.d.ts.map +1 -1
  235. package/dist/schemas/index.js +8 -4
  236. package/dist/schemas/index.ts +6 -2
  237. package/dist/schemas/project-schema/latest.json +43 -8
  238. package/dist/schemas/project-schema/meta-schema-v3.0.0.json +1 -1
  239. package/dist/schemas/project-schema/meta-schema-v3.1.0.json +1 -1
  240. package/dist/schemas/project-schema/meta-schema-v3.2.0.json +1 -1
  241. package/dist/schemas/project-schema/meta-schema-v3.3.0.json +1 -1
  242. package/dist/schemas/project-schema/meta-schema-v3.4.0.json +1 -1
  243. package/dist/schemas/project-schema/meta-schema-v3.5.0.json +1 -1
  244. package/dist/schemas/project-schema/meta-schema-v3.5.1.json +1 -1
  245. package/dist/schemas/project-schema/meta-schema-v3.6.0.json +1 -1
  246. package/dist/schemas/project-schema/meta-schema-v3.7.0.json +1 -1
  247. package/dist/schemas/project-schema/meta-schema-v3.8.0.json +1 -1
  248. package/dist/schemas/project-schema/meta-schema-v3.9.0.json +1 -1
  249. package/dist/schemas/project-schema/v1.0.0.json +1 -1
  250. package/dist/schemas/project-schema/v3.0.0.json +2 -2
  251. package/dist/schemas/project-schema/v3.1.0.json +4 -4
  252. package/dist/schemas/project-schema/v3.10.0.json +5 -5
  253. package/dist/schemas/project-schema/v3.11.0.json +5 -5
  254. package/dist/schemas/project-schema/v3.12.0.json +5 -5
  255. package/dist/schemas/project-schema/v3.12.1.json +5 -5
  256. package/dist/schemas/project-schema/v3.12.2.json +5 -5
  257. package/dist/schemas/project-schema/v3.12.3.json +5 -5
  258. package/dist/schemas/project-schema/v3.13.0.json +5 -5
  259. package/dist/schemas/project-schema/v3.14.0.json +5 -5
  260. package/dist/schemas/project-schema/v3.15.0.json +5 -5
  261. package/dist/schemas/project-schema/v3.16.0.json +5 -5
  262. package/dist/schemas/project-schema/v3.17.0.json +5 -5
  263. package/dist/schemas/project-schema/v3.17.1.json +5 -5
  264. package/dist/schemas/project-schema/v3.18.0.json +5 -5
  265. package/dist/schemas/project-schema/v3.18.1.json +5 -5
  266. package/dist/schemas/project-schema/v3.18.2.json +5 -5
  267. package/dist/schemas/project-schema/v3.19.0.json +5 -5
  268. package/dist/schemas/project-schema/v3.2.0.json +4 -4
  269. package/dist/schemas/project-schema/v3.20.0.json +5 -5
  270. package/dist/schemas/project-schema/v3.21.0.json +5 -5
  271. package/dist/schemas/project-schema/v3.22.0.json +5 -5
  272. package/dist/schemas/project-schema/v3.23.0.json +5 -5
  273. package/dist/schemas/project-schema/v3.24.0.json +5 -5
  274. package/dist/schemas/project-schema/v3.25.0.json +5 -5
  275. package/dist/schemas/project-schema/v3.26.0.json +6 -6
  276. package/dist/schemas/project-schema/v3.27.0.json +6 -6
  277. package/dist/schemas/project-schema/v3.28.0.json +5 -5
  278. package/dist/schemas/project-schema/v3.29.0.json +5 -5
  279. package/dist/schemas/project-schema/v3.3.0.json +4 -4
  280. package/dist/schemas/project-schema/v3.30.0.json +5 -5
  281. package/dist/schemas/project-schema/v3.31.0.json +6 -6
  282. package/dist/schemas/project-schema/v3.32.0.json +6 -6
  283. package/dist/schemas/project-schema/v3.33.0.json +6 -6
  284. package/dist/schemas/project-schema/v3.34.0.json +3088 -0
  285. package/dist/schemas/project-schema/v3.35.0.json +3123 -0
  286. package/dist/schemas/project-schema/v3.4.0.json +4 -4
  287. package/dist/schemas/project-schema/v3.5.0.json +4 -4
  288. package/dist/schemas/project-schema/v3.5.1.json +4 -4
  289. package/dist/schemas/project-schema/v3.6.0.json +4 -4
  290. package/dist/schemas/project-schema/v3.7.0.json +4 -4
  291. package/dist/schemas/project-schema/v3.8.0.json +4 -4
  292. package/dist/schemas/project-schema/v3.9.0.json +4 -4
  293. package/dist/schemas/project-schema/v4.0.0.json +5 -5
  294. package/dist/schemas/project-schema.json +6 -0
  295. package/dist/services.d.ts +12 -12
  296. package/dist/services.d.ts.map +1 -1
  297. package/dist/services.js +3 -3
  298. package/dist/taxonomies.d.ts +4 -4
  299. package/dist/taxonomies.d.ts.map +1 -1
  300. package/dist/template-shapes/index.d.ts +2 -2
  301. package/dist/template-shapes/index.d.ts.map +1 -1
  302. package/dist/template-shapes/templates.d.ts +21 -21
  303. package/dist/template-shapes/templates.d.ts.map +1 -1
  304. package/dist/template-shapes/types.d.ts +3 -3
  305. package/dist/template-shapes/types.d.ts.map +1 -1
  306. package/dist/template-shapes/where.d.ts +6 -6
  307. package/dist/template-shapes/where.d.ts.map +1 -1
  308. package/dist/types/types.d.ts +10 -9
  309. package/dist/types/types.d.ts.map +1 -1
  310. package/dist/types/utils.d.ts +5 -4
  311. package/dist/types/utils.d.ts.map +1 -1
  312. package/dist/types/utils.js +5 -0
  313. package/dist/unions.d.ts +8 -8
  314. package/dist/unions.d.ts.map +1 -1
  315. package/dist/util/api-indexing.d.ts +4 -4
  316. package/dist/util/api-indexing.d.ts.map +1 -1
  317. package/dist/util/detect-cycles.d.ts +3 -3
  318. package/dist/util/detect-cycles.d.ts.map +1 -1
  319. package/dist/util/find-shape-at-path.d.ts +3 -3
  320. package/dist/util/find-shape-at-path.d.ts.map +1 -1
  321. package/dist/util/form-config.d.ts +3 -3
  322. package/dist/util/form-config.d.ts.map +1 -1
  323. package/dist/util/get-conflicting-properties.d.ts +2 -2
  324. package/dist/util/get-conflicting-properties.d.ts.map +1 -1
  325. package/dist/util/get-return-shape.d.ts +4 -2
  326. package/dist/util/get-return-shape.d.ts.map +1 -1
  327. package/dist/util/get-return-shape.js +5 -0
  328. package/dist/util/has-arg.d.ts +2 -2
  329. package/dist/util/has-arg.d.ts.map +1 -1
  330. package/dist/util/merge.d.ts +3 -3
  331. package/dist/util/merge.d.ts.map +1 -1
  332. package/dist/util/patch-schema.d.ts +2 -2
  333. package/dist/util/patch-schema.d.ts.map +1 -1
  334. package/dist/validate.d.ts +3 -3
  335. package/dist/validate.d.ts.map +1 -1
  336. package/dist/validate.js +84 -5
  337. package/dist/workflows.d.ts +3 -3
  338. package/dist/workflows.d.ts.map +1 -1
  339. package/es/migration/index.js +5 -1
  340. package/es/migration/to/utils/v3.34.0-utils.js +0 -0
  341. package/es/migration/to/v3.34.0.js +161 -0
  342. package/es/migration/to/v3.35.0.js +10 -0
  343. package/es/models/project-schema.js +116 -0
  344. package/es/models/query.js +35 -0
  345. package/es/models/service.js +25 -0
  346. package/es/models/shape.js +105 -0
  347. package/es/project-schema/index.js +48 -44
  348. package/es/project-schema/migrate.js +53 -45
  349. package/es/project-schema/v3.34.0.js +1 -0
  350. package/es/project-schema/v3.35.0.js +1 -0
  351. package/es/refs.js +15 -0
  352. package/es/schema-util.js +32 -29
  353. package/es/schemas/index.js +5 -3
  354. package/es/schemas/index.ts +6 -2
  355. package/es/schemas/project-schema/latest.json +43 -8
  356. package/es/schemas/project-schema/meta-schema-v3.0.0.json +1 -1
  357. package/es/schemas/project-schema/meta-schema-v3.1.0.json +1 -1
  358. package/es/schemas/project-schema/meta-schema-v3.2.0.json +1 -1
  359. package/es/schemas/project-schema/meta-schema-v3.3.0.json +1 -1
  360. package/es/schemas/project-schema/meta-schema-v3.4.0.json +1 -1
  361. package/es/schemas/project-schema/meta-schema-v3.5.0.json +1 -1
  362. package/es/schemas/project-schema/meta-schema-v3.5.1.json +1 -1
  363. package/es/schemas/project-schema/meta-schema-v3.6.0.json +1 -1
  364. package/es/schemas/project-schema/meta-schema-v3.7.0.json +1 -1
  365. package/es/schemas/project-schema/meta-schema-v3.8.0.json +1 -1
  366. package/es/schemas/project-schema/meta-schema-v3.9.0.json +1 -1
  367. package/es/schemas/project-schema/v1.0.0.json +1 -1
  368. package/es/schemas/project-schema/v3.0.0.json +2 -2
  369. package/es/schemas/project-schema/v3.1.0.json +4 -4
  370. package/es/schemas/project-schema/v3.10.0.json +5 -5
  371. package/es/schemas/project-schema/v3.11.0.json +5 -5
  372. package/es/schemas/project-schema/v3.12.0.json +5 -5
  373. package/es/schemas/project-schema/v3.12.1.json +5 -5
  374. package/es/schemas/project-schema/v3.12.2.json +5 -5
  375. package/es/schemas/project-schema/v3.12.3.json +5 -5
  376. package/es/schemas/project-schema/v3.13.0.json +5 -5
  377. package/es/schemas/project-schema/v3.14.0.json +5 -5
  378. package/es/schemas/project-schema/v3.15.0.json +5 -5
  379. package/es/schemas/project-schema/v3.16.0.json +5 -5
  380. package/es/schemas/project-schema/v3.17.0.json +5 -5
  381. package/es/schemas/project-schema/v3.17.1.json +5 -5
  382. package/es/schemas/project-schema/v3.18.0.json +5 -5
  383. package/es/schemas/project-schema/v3.18.1.json +5 -5
  384. package/es/schemas/project-schema/v3.18.2.json +5 -5
  385. package/es/schemas/project-schema/v3.19.0.json +5 -5
  386. package/es/schemas/project-schema/v3.2.0.json +4 -4
  387. package/es/schemas/project-schema/v3.20.0.json +5 -5
  388. package/es/schemas/project-schema/v3.21.0.json +5 -5
  389. package/es/schemas/project-schema/v3.22.0.json +5 -5
  390. package/es/schemas/project-schema/v3.23.0.json +5 -5
  391. package/es/schemas/project-schema/v3.24.0.json +5 -5
  392. package/es/schemas/project-schema/v3.25.0.json +5 -5
  393. package/es/schemas/project-schema/v3.26.0.json +6 -6
  394. package/es/schemas/project-schema/v3.27.0.json +6 -6
  395. package/es/schemas/project-schema/v3.28.0.json +5 -5
  396. package/es/schemas/project-schema/v3.29.0.json +5 -5
  397. package/es/schemas/project-schema/v3.3.0.json +4 -4
  398. package/es/schemas/project-schema/v3.30.0.json +5 -5
  399. package/es/schemas/project-schema/v3.31.0.json +6 -6
  400. package/es/schemas/project-schema/v3.32.0.json +6 -6
  401. package/es/schemas/project-schema/v3.33.0.json +6 -6
  402. package/es/schemas/project-schema/v3.34.0.json +3088 -0
  403. package/es/schemas/project-schema/v3.35.0.json +3123 -0
  404. package/es/schemas/project-schema/v3.4.0.json +4 -4
  405. package/es/schemas/project-schema/v3.5.0.json +4 -4
  406. package/es/schemas/project-schema/v3.5.1.json +4 -4
  407. package/es/schemas/project-schema/v3.6.0.json +4 -4
  408. package/es/schemas/project-schema/v3.7.0.json +4 -4
  409. package/es/schemas/project-schema/v3.8.0.json +4 -4
  410. package/es/schemas/project-schema/v3.9.0.json +4 -4
  411. package/es/schemas/project-schema/v4.0.0.json +5 -5
  412. package/es/schemas/project-schema.json +6 -0
  413. package/es/services.js +3 -3
  414. package/es/types/utils.js +3 -0
  415. package/es/util/get-return-shape.js +3 -0
  416. package/es/validate.js +85 -6
  417. package/examples/latest/betzino.json +2012 -1756
  418. package/examples/latest/blog-schema.json +1 -1
  419. package/examples/latest/brewery-schema.json +31 -26
  420. package/examples/latest/complex-project-schema.json +645 -480
  421. package/examples/latest/complex-schema.json +866 -671
  422. package/examples/latest/fabric-ecommerce.json +7 -38
  423. package/examples/latest/frank-and-fred-schema.json +866 -671
  424. package/examples/latest/klirr-schema.json +1641 -1264
  425. package/examples/latest/massive-schema.json +897 -681
  426. package/examples/latest/mill-components-schema.json +1 -1
  427. package/examples/latest/one-earth.json +3012 -2462
  428. package/examples/latest/pet-oneof-array.json +1 -1
  429. package/examples/latest/post-schema.json +1 -1
  430. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  431. package/examples/latest/real-world-schema.json +19 -14
  432. package/examples/latest/recursive-repeater-schema.json +1 -1
  433. package/examples/latest/recursive-schema.json +1 -1
  434. package/examples/latest/rick-and-morty-ast.json +39 -226
  435. package/examples/latest/rick-and-morty-graphql.json +35 -222
  436. package/examples/latest/rick-and-morty-rest.json +1 -1
  437. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  438. package/examples/latest/shape-books-v3_2_0.json +19 -14
  439. package/examples/latest/shape-books.json +19 -14
  440. package/examples/latest/shape-editor-schema-edited.json +1 -1
  441. package/examples/latest/shape-editor-schema-initial.json +2 -2
  442. package/examples/latest/shopify-lookbook.json +9 -39
  443. package/examples/latest/shopify-product-2022-07.json +21 -213
  444. package/examples/latest/shopify-product-2023-04.json +21 -213
  445. package/examples/latest/shopify-store-with-widget.json +97 -360
  446. package/examples/latest/stripe-product-runtime-schema.json +21 -213
  447. package/examples/latest/stripe-starter-resolved.json +21 -213
  448. package/examples/latest/user-schema-no-required.json +1 -1
  449. package/examples/latest/user-schema-with-defaults.json +1 -1
  450. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_17_1, ProjectSchemaV3_18_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_17_1, ProjectSchemaV3_18_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.18.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.18.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAiExE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.18.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAiEhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_18_0, ProjectSchemaV3_18_1 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_18_0, ProjectSchemaJSONV3_18_1 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_18_0, ProjectSchemaV3_18_1>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_0, ProjectSchemaJSONV3_18_1>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.18.1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.18.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAE,oBAAoB,EAA6B,MAAM,sBAAsB,CAAC;AACjH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAUxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.18.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_18_1, ProjectSchemaV3_18_2 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_18_1, ProjectSchemaJSONV3_18_2 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_18_1, ProjectSchemaV3_18_2>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_1, ProjectSchemaJSONV3_18_2>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.18.2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAiB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAKxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAiB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAKhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_18_2, ProjectSchemaV3_19_0 } from '../..';
1
+ import { ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0 } from '../..';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_18_2, ProjectSchemaV3_19_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.19.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.19.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.19.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.19.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.19.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_1_0, ProjectSchemaV3_2_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_1_0, ProjectSchemaJSONV3_2_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_1_0, ProjectSchemaV3_2_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_1_0, ProjectSchemaJSONV3_2_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.2.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.2.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.2.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAQtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.2.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.2.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_19_0, ProjectSchemaV3_20_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_19_0, ProjectSchemaJSONV3_20_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_19_0, ProjectSchemaV3_20_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_19_0, ProjectSchemaJSONV3_20_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.20.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAmB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAKxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAmB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAKhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_20_0, ProjectSchemaV3_21_0 } from '../..';
1
+ import { ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0 } from '../..';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_20_0, ProjectSchemaV3_21_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.21.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.21.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.21.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.21.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.21.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_21_0, ProjectSchemaV3_22_0 } from '../..';
1
+ import { ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0 } from '../..';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_21_0, ProjectSchemaV3_22_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.22.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.22.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.22.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,OAAO,CAAC;AAC5F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAI9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAwBxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.22.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.22.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACpG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAI9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_22_0, ProjectSchemaV3_23_0 } from '../..';
1
+ import { ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0 } from '../..';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_22_0, ProjectSchemaV3_23_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.23.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.23.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.23.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.23.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.23.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_23_0, ProjectSchemaV3_24_0 } from '../..';
1
+ import { ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0 } from '../..';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_23_0, ProjectSchemaV3_24_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.24.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.24.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.24.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAUxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.24.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.24.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_24_0, ProjectSchemaV3_25_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_24_0, ProjectSchemaV3_25_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.25.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.25.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.25.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAUxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.25.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.25.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_25_0, ProjectSchemaV3_26_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_25_0, ProjectSchemaV3_26_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.26.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.26.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.26.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.26.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.26.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_26_0, ProjectSchemaV3_27_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_26_0, ProjectSchemaV3_27_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.27.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.27.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.27.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.27.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.27.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_27_0, ProjectSchemaV3_28_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_27_0, ProjectSchemaV3_28_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.28.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.28.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.28.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.28.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.28.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_28_0, ProjectSchemaV3_29_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_28_0, ProjectSchemaV3_29_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.29.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.29.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.29.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.29.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.29.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_2_0, ProjectSchemaV3_3_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_2_0, ProjectSchemaJSONV3_3_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_2_0, ProjectSchemaV3_3_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_2_0, ProjectSchemaJSONV3_3_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.3.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.3.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.3.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAYtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.3.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.3.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAY9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_29_0, ProjectSchemaV3_30_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_29_0, ProjectSchemaV3_30_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.30.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.30.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.30.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.30.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.30.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_30_0, ProjectSchemaV3_31_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_30_0, ProjectSchemaJSONV3_31_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_30_0, ProjectSchemaV3_31_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_30_0, ProjectSchemaJSONV3_31_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.31.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.31.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.31.0.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAW9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAwBxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.31.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.31.0.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAW9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_31_0, ProjectSchemaV3_32_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_31_0, ProjectSchemaJSONV3_32_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_31_0, ProjectSchemaV3_32_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_31_0, ProjectSchemaJSONV3_32_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.32.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.32.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.32.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,oBAAoB,EACpB,oBAAoB,EAKrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAoC9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAgCxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.32.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.32.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,wBAAwB,EACxB,wBAAwB,EAKzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAoC9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAgChF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ProjectSchemaV3_32_0, ProjectSchemaV3_33_0 } from '../../project-schema';
1
+ import { ProjectSchemaJSONV3_32_0, ProjectSchemaJSONV3_33_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_32_0, ProjectSchemaV3_33_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_32_0, ProjectSchemaJSONV3_33_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.33.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.33.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.33.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAQxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.33.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.33.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FormMapV3_33_0, ProjectSchemaJSONV3_33_0, ProjectSchemaJSONV3_34_0 } from '../../project-schema';
2
+ import type { MigrateFunction } from '../types';
3
+ export declare function normalizeForms(projectSchema: ProjectSchemaJSONV3_33_0): FormMapV3_33_0;
4
+ export declare function migrateInterfaceShapes(projectSchema: ProjectSchemaJSONV3_33_0): ProjectSchemaJSONV3_33_0;
5
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_33_0, ProjectSchemaJSONV3_34_0>;
6
+ export default migrate;
7
+ //# sourceMappingURL=v3.34.0.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.34.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.34.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAsB9C,wBAAgB,cAAc,CAAC,aAAa,EAAE,wBAAwB,GAAG,cAAc,CAiDtF;AAED,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,wBAAwB,GAAG,wBAAwB,CAoDxG;AAED,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ exports.migrateInterfaceShapes = migrateInterfaceShapes;
8
+ exports.normalizeForms = normalizeForms;
9
+
10
+ var _util = require("@takeshape/util");
11
+
12
+ var _schemaUtil = require("../../schema-util");
13
+
14
+ var _refs = require("../../refs");
15
+
16
+ var _upperFirst = _interopRequireDefault(require("lodash/upperFirst"));
17
+
18
+ var _set = _interopRequireDefault(require("lodash/fp/set"));
19
+
20
+ var _unset = _interopRequireDefault(require("lodash/fp/unset"));
21
+
22
+ var _services = require("../../services");
23
+
24
+ var _schemas = require("../../schemas");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
+
28
+ // Inline utilities for posterity
29
+ function refItemToShapeName(refItem) {
30
+ const {
31
+ serviceNamespace,
32
+ typeName
33
+ } = refItem;
34
+ return serviceNamespace ? `${serviceNamespace}_${typeName}` : typeName;
35
+ } // Map of form studio widgets and their replacements in the shape editor
36
+
37
+
38
+ const widgetMigrations = {
39
+ object: 'shapeObject',
40
+ repeater: 'shapeArray'
41
+ };
42
+
43
+ function normalizeForms(projectSchema) {
44
+ const normalizedForms = {};
45
+ const {
46
+ forms = {}
47
+ } = projectSchema;
48
+
49
+ const storeSourceForm = (shapeName, formConfig, propName) => {
50
+ if (!normalizedForms[shapeName]) {
51
+ normalizedForms[shapeName] = {
52
+ default: (0, _util.deepClone)(formConfig)
53
+ };
54
+ }
55
+
56
+ const propConfig = normalizedForms[shapeName].default.properties[propName];
57
+ delete propConfig.properties;
58
+ delete propConfig.order;
59
+ propConfig.widget = widgetMigrations[propConfig.widget] ?? propConfig.widget;
60
+ };
61
+
62
+ const normalizeNested = (shapeName, formConfig) => {
63
+ const shape = projectSchema.shapes[shapeName];
64
+
65
+ if (!shape || !formConfig.properties) {
66
+ return;
67
+ }
68
+
69
+ const propertyAccessor = (0, _schemaUtil.createSchemaPropertyAccessor)(projectSchema, shape);
70
+
71
+ for (const propName of Object.keys(formConfig.properties)) {
72
+ const propConfig = formConfig.properties[propName];
73
+ const propSchema = propertyAccessor.getValue(propName);
74
+
75
+ if (propSchema) {
76
+ const ref = (0, _refs.getRefOrItemsRef)(projectSchema, propSchema);
77
+
78
+ if (ref && propConfig.properties && propConfig.widget !== 'shopify') {
79
+ const nestedShapeName = refItemToShapeName(ref);
80
+ normalizedForms[nestedShapeName] = {
81
+ default: (0, _util.deepClone)(propConfig)
82
+ };
83
+ storeSourceForm(shapeName, formConfig, propName);
84
+ normalizeNested(nestedShapeName, propConfig);
85
+ }
86
+ }
87
+ }
88
+ };
89
+
90
+ if (forms) {
91
+ for (const shapeName of Object.keys(forms)) {
92
+ normalizeNested(shapeName, forms[shapeName].default); // copy forms with no changes
93
+
94
+ if (!normalizedForms[shapeName]) {
95
+ normalizedForms[shapeName] = forms[shapeName];
96
+ }
97
+ }
98
+ }
99
+
100
+ return normalizedForms;
101
+ }
102
+
103
+ function migrateInterfaceShapes(projectSchema) {
104
+ let updatedProjectSchema = projectSchema;
105
+
106
+ for (const shape of Object.values(projectSchema.shapes)) {
107
+ if (!shape.model) {
108
+ continue;
109
+ } // Set the schema version to the current to appease type check this line will eventually break as the schema diverges
110
+
111
+
112
+ const serviceObjectFields = (0, _services.getServiceObjectFields)({ ...projectSchema,
113
+ schemaVersion: _schemas.CURRENT_SCHEMA_VERSION
114
+ }, shape, 'shopify');
115
+
116
+ for (const field of serviceObjectFields) {
117
+ const {
118
+ fieldName,
119
+ service
120
+ } = field;
121
+ const {
122
+ serviceObjectType
123
+ } = field.generators[_schemaUtil.SERVICE_OBJECT_PATTERN_NAME];
124
+ const serviceShapeName = (0, _upperFirst.default)(serviceObjectType);
125
+ const interfaceShapeName = `${serviceShapeName}Interface`;
126
+ updatedProjectSchema = (0, _unset.default)(['shapes', interfaceShapeName], updatedProjectSchema);
127
+
128
+ if ('type' in shape.schema && shape.schema.type === 'object') {
129
+ const prop = shape.schema.properties[fieldName];
130
+
131
+ if (prop) {
132
+ updatedProjectSchema = (0, _set.default)(['shapes', shape.name, 'schema', 'properties', fieldName, '@input'], {
133
+ '@ref': `${service}:${serviceShapeName}Input`
134
+ }, updatedProjectSchema);
135
+ }
136
+ }
137
+
138
+ for (const [mutationName, mutation] of Object.entries(projectSchema.mutations)) {
139
+ if (!mutation || typeof mutation.args !== 'string') {
140
+ continue;
141
+ }
142
+
143
+ for (const template of ['CreateArgs', 'UpdateArgs']) {
144
+ if (mutation.args === `${template}<${interfaceShapeName}>`) {
145
+ updatedProjectSchema = (0, _set.default)(['mutations', mutationName], { ...mutation,
146
+ args: `${template}<${serviceShapeName}>`
147
+ }, updatedProjectSchema);
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+
154
+ return updatedProjectSchema;
155
+ }
156
+
157
+ const migrate = async (_, projectSchema) => {
158
+ let normalized = projectSchema;
159
+
160
+ try {
161
+ normalized = { ...projectSchema,
162
+ forms: normalizeForms(projectSchema)
163
+ };
164
+ } catch (e) {
165
+ // TODO remove console.log when a formal warning mechanism is added https://app.shortcut.com/takeshape/story/11533/return-warnings-from-schema-migration
166
+ // eslint-disable-next-line no-console
167
+ console.log(`v3.34.0 migration warning: Failed to normalize forms`, e.message);
168
+ }
169
+
170
+ try {
171
+ normalized = migrateInterfaceShapes(normalized);
172
+ } catch (e) {
173
+ // eslint-disable-next-line no-console
174
+ console.log(`v3.34.0 migration warning: Failed to migrate interface shapes`, e.message);
175
+ }
176
+
177
+ return { ...normalized,
178
+ schemaVersion: '3.34.0'
179
+ };
180
+ };
181
+
182
+ var _default = migrate;
183
+ exports.default = _default;
@@ -0,0 +1,5 @@
1
+ import { ProjectSchemaJSONV3_34_0, ProjectSchemaJSONV3_35_0 } from '../../project-schema';
2
+ import type { MigrateFunction } from '../types';
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_34_0, ProjectSchemaJSONV3_35_0>;
4
+ export default migrate;
5
+ //# sourceMappingURL=v3.35.0.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.35.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.35.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ const migrate = async (_, projectSchema) => {
9
+ /**
10
+ * No migration needed all changes are backwards compatible.
11
+ */
12
+ return { ...projectSchema,
13
+ schemaVersion: '3.35.0'
14
+ };
15
+ };
16
+
17
+ var _default = migrate;
18
+ exports.default = _default;
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_3_0, ProjectSchemaV3_4_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_3_0, ProjectSchemaJSONV3_4_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_3_0, ProjectSchemaV3_4_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_3_0, ProjectSchemaJSONV3_4_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.4.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.4.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.4.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAQtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.4.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.4.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_4_0, ProjectSchemaV3_5_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_4_0, ProjectSchemaJSONV3_5_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_4_0, ProjectSchemaV3_5_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_4_0, ProjectSchemaJSONV3_5_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.5.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.5.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAQtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.5.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_5_0, ProjectSchemaV3_5_1 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_5_0, ProjectSchemaJSONV3_5_1 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_5_0, ProjectSchemaV3_5_1>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_5_0, ProjectSchemaJSONV3_5_1>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.5.1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.5.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAQtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.5.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.5.1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_5_1, ProjectSchemaV3_6_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_5_1, ProjectSchemaJSONV3_6_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_5_1, ProjectSchemaV3_6_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_5_1, ProjectSchemaJSONV3_6_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.6.0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v3.6.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.6.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAQtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"v3.6.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.6.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAQ9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProjectSchemaV3_6_0, ProjectSchemaV3_7_0 } from '../../project-schema';
1
+ import type { ProjectSchemaJSONV3_6_0, ProjectSchemaJSONV3_7_0 } from '../../project-schema';
2
2
  import type { MigrateFunction } from '../types';
3
- declare const migrate: MigrateFunction<ProjectSchemaV3_6_0, ProjectSchemaV3_7_0>;
3
+ declare const migrate: MigrateFunction<ProjectSchemaJSONV3_6_0, ProjectSchemaJSONV3_7_0>;
4
4
  export default migrate;
5
5
  //# sourceMappingURL=v3.7.0.d.ts.map