@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,1172 @@
1
+ {
2
+ "apiVersion": "2",
3
+ "projectId": "fc50424f-6421-4023-a52f-f95dd900a069",
4
+ "version": 21,
5
+ "created": "2021-02-04T15:45:32.300Z",
6
+ "updated": "2021-03-05T16:11:41.972Z",
7
+ "defaultLocale": "en-us",
8
+ "locales": ["en-us"],
9
+ "schemaVersion": "3",
10
+ "queries": {
11
+ "getProduct": {
12
+ "shape": "Product",
13
+ "resolver": {
14
+ "name": "takeshape:get",
15
+ "service": "takeshape:local",
16
+ "options": {
17
+ "model": "Product"
18
+ }
19
+ },
20
+ "description": "Get a Product by ID",
21
+ "args": "TSGetArgs<Product>"
22
+ },
23
+ "getProductList": {
24
+ "shape": "PaginatedList<Product>",
25
+ "resolver": {
26
+ "name": "takeshape:list",
27
+ "service": "takeshape:local",
28
+ "options": {
29
+ "model": "Product"
30
+ }
31
+ },
32
+ "description": "Returns a list Product in natural order.",
33
+ "args": "TSListArgs<Product>"
34
+ },
35
+ "getLook": {
36
+ "shape": "Look",
37
+ "resolver": {
38
+ "name": "takeshape:get",
39
+ "service": "takeshape:local",
40
+ "options": {
41
+ "model": "Look"
42
+ }
43
+ },
44
+ "description": "Get a Look by ID",
45
+ "args": "TSGetArgs<Look>"
46
+ },
47
+ "getLookList": {
48
+ "shape": "PaginatedList<Look>",
49
+ "resolver": {
50
+ "name": "takeshape:list",
51
+ "service": "takeshape:local",
52
+ "options": {
53
+ "model": "Look"
54
+ }
55
+ },
56
+ "description": "Returns a list Look in natural order.",
57
+ "args": "TSListArgs<Look>"
58
+ }
59
+ },
60
+ "mutations": {
61
+ "updateProduct": {
62
+ "shape": "UpdateResult<Product>",
63
+ "resolver": {
64
+ "compose": [
65
+ {
66
+ "id": "createNewShopifyObject",
67
+ "if": "isEmpty(args.input.takeshapeIoShopId) && !isEmpty(args.input.takeshapeIoShop)",
68
+ "argsMapping": {
69
+ "input.descriptionHtml": [
70
+ [
71
+ "get",
72
+ {
73
+ "path": "args.input.takeshapeIoShop.descriptionHtml"
74
+ }
75
+ ]
76
+ ],
77
+ "input.handle": [
78
+ [
79
+ "get",
80
+ {
81
+ "path": "args.input.takeshapeIoShop.handle"
82
+ }
83
+ ]
84
+ ],
85
+ "input.redirectNewHandle": [
86
+ [
87
+ "get",
88
+ {
89
+ "path": "args.input.takeshapeIoShop.redirectNewHandle"
90
+ }
91
+ ]
92
+ ],
93
+ "input.productType": [
94
+ [
95
+ "get",
96
+ {
97
+ "path": "args.input.takeshapeIoShop.productType"
98
+ }
99
+ ]
100
+ ],
101
+ "input.tags": [
102
+ [
103
+ "get",
104
+ {
105
+ "path": "args.input.takeshapeIoShop.tags"
106
+ }
107
+ ]
108
+ ],
109
+ "input.templateSuffix": [
110
+ [
111
+ "get",
112
+ {
113
+ "path": "args.input.takeshapeIoShop.templateSuffix"
114
+ }
115
+ ]
116
+ ],
117
+ "input.giftCard": [
118
+ [
119
+ "get",
120
+ {
121
+ "path": "args.input.takeshapeIoShop.giftCard"
122
+ }
123
+ ]
124
+ ],
125
+ "input.giftCardTemplateSuffix": [
126
+ [
127
+ "get",
128
+ {
129
+ "path": "args.input.takeshapeIoShop.giftCardTemplateSuffix"
130
+ }
131
+ ]
132
+ ],
133
+ "input.title": [
134
+ [
135
+ "get",
136
+ {
137
+ "path": "args.input.takeshapeIoShop.title"
138
+ }
139
+ ]
140
+ ],
141
+ "input.vendor": [
142
+ [
143
+ "get",
144
+ {
145
+ "path": "args.input.takeshapeIoShop.vendor"
146
+ }
147
+ ]
148
+ ],
149
+ "input.bodyHtml": [
150
+ [
151
+ "get",
152
+ {
153
+ "path": "args.input.takeshapeIoShop.bodyHtml"
154
+ }
155
+ ]
156
+ ]
157
+ },
158
+ "name": "graphql:mutation",
159
+ "service": "shopify:takeshape-io-shop",
160
+ "options": {
161
+ "fieldName": "productCreate",
162
+ "selectionSet": "{ product { id } }"
163
+ }
164
+ },
165
+ {
166
+ "id": "editTakeshape",
167
+ "argsMapping": {
168
+ "input": [
169
+ [
170
+ "get",
171
+ {
172
+ "path": "args.input"
173
+ }
174
+ ]
175
+ ],
176
+ "input.takeshapeIoShopId": [
177
+ [
178
+ "get",
179
+ {
180
+ "path": "steps.createNewShopifyObject.product.id"
181
+ }
182
+ ],
183
+ [
184
+ "get",
185
+ {
186
+ "path": "args.input.takeshapeIoShopId"
187
+ }
188
+ ]
189
+ ]
190
+ },
191
+ "name": "takeshape:update",
192
+ "service": "takeshape:local",
193
+ "options": {
194
+ "model": "Product"
195
+ }
196
+ },
197
+ {
198
+ "id": "updateExistingShopifyObject",
199
+ "if": "!isEmpty(args.input.takeshapeIoShopId) && !isEmpty(args.input.takeshapeIoShop)",
200
+ "argsMapping": {
201
+ "input.descriptionHtml": [
202
+ [
203
+ "get",
204
+ {
205
+ "path": "args.input.takeshapeIoShop.descriptionHtml"
206
+ }
207
+ ]
208
+ ],
209
+ "input.handle": [
210
+ [
211
+ "get",
212
+ {
213
+ "path": "args.input.takeshapeIoShop.handle"
214
+ }
215
+ ]
216
+ ],
217
+ "input.redirectNewHandle": [
218
+ [
219
+ "get",
220
+ {
221
+ "path": "args.input.takeshapeIoShop.redirectNewHandle"
222
+ }
223
+ ]
224
+ ],
225
+ "input.productType": [
226
+ [
227
+ "get",
228
+ {
229
+ "path": "args.input.takeshapeIoShop.productType"
230
+ }
231
+ ]
232
+ ],
233
+ "input.tags": [
234
+ [
235
+ "get",
236
+ {
237
+ "path": "args.input.takeshapeIoShop.tags"
238
+ }
239
+ ]
240
+ ],
241
+ "input.templateSuffix": [
242
+ [
243
+ "get",
244
+ {
245
+ "path": "args.input.takeshapeIoShop.templateSuffix"
246
+ }
247
+ ]
248
+ ],
249
+ "input.giftCard": [
250
+ [
251
+ "get",
252
+ {
253
+ "path": "args.input.takeshapeIoShop.giftCard"
254
+ }
255
+ ]
256
+ ],
257
+ "input.giftCardTemplateSuffix": [
258
+ [
259
+ "get",
260
+ {
261
+ "path": "args.input.takeshapeIoShop.giftCardTemplateSuffix"
262
+ }
263
+ ]
264
+ ],
265
+ "input.title": [
266
+ [
267
+ "get",
268
+ {
269
+ "path": "args.input.takeshapeIoShop.title"
270
+ }
271
+ ]
272
+ ],
273
+ "input.vendor": [
274
+ [
275
+ "get",
276
+ {
277
+ "path": "args.input.takeshapeIoShop.vendor"
278
+ }
279
+ ]
280
+ ],
281
+ "input.bodyHtml": [
282
+ [
283
+ "get",
284
+ {
285
+ "path": "args.input.takeshapeIoShop.bodyHtml"
286
+ }
287
+ ]
288
+ ],
289
+ "input.id": [
290
+ [
291
+ "get",
292
+ {
293
+ "path": "args.input.takeshapeIoShopId"
294
+ }
295
+ ]
296
+ ]
297
+ },
298
+ "name": "graphql:mutation",
299
+ "service": "shopify:takeshape-io-shop",
300
+ "options": {
301
+ "fieldName": "productUpdate",
302
+ "selectionSet": "{ product { id } }"
303
+ }
304
+ }
305
+ ],
306
+ "resultsMapping": {
307
+ "result": [
308
+ [
309
+ "get",
310
+ {
311
+ "path": "steps.editTakeshape.result"
312
+ }
313
+ ]
314
+ ]
315
+ }
316
+ },
317
+ "description": "Update Product. If the input has Shopify values and a Shopify ID, the Shopify product with that ID is updated.\nIf the input has Shopify values and no Shopify ID, a Shopify product is created.",
318
+ "args": "UpdateArgs<ProductInterface>"
319
+ },
320
+ "createProduct": {
321
+ "shape": "CreateResult<Product>",
322
+ "resolver": {
323
+ "compose": [
324
+ {
325
+ "id": "shopifyCreate",
326
+ "if": "!isEmpty(args.input.takeshapeIoShop)",
327
+ "argsMapping": {
328
+ "input.descriptionHtml": [
329
+ [
330
+ "get",
331
+ {
332
+ "path": "args.input.takeshapeIoShop.descriptionHtml"
333
+ }
334
+ ]
335
+ ],
336
+ "input.handle": [
337
+ [
338
+ "get",
339
+ {
340
+ "path": "args.input.takeshapeIoShop.handle"
341
+ }
342
+ ]
343
+ ],
344
+ "input.redirectNewHandle": [
345
+ [
346
+ "get",
347
+ {
348
+ "path": "args.input.takeshapeIoShop.redirectNewHandle"
349
+ }
350
+ ]
351
+ ],
352
+ "input.productType": [
353
+ [
354
+ "get",
355
+ {
356
+ "path": "args.input.takeshapeIoShop.productType"
357
+ }
358
+ ]
359
+ ],
360
+ "input.tags": [
361
+ [
362
+ "get",
363
+ {
364
+ "path": "args.input.takeshapeIoShop.tags"
365
+ }
366
+ ]
367
+ ],
368
+ "input.templateSuffix": [
369
+ [
370
+ "get",
371
+ {
372
+ "path": "args.input.takeshapeIoShop.templateSuffix"
373
+ }
374
+ ]
375
+ ],
376
+ "input.giftCard": [
377
+ [
378
+ "get",
379
+ {
380
+ "path": "args.input.takeshapeIoShop.giftCard"
381
+ }
382
+ ]
383
+ ],
384
+ "input.giftCardTemplateSuffix": [
385
+ [
386
+ "get",
387
+ {
388
+ "path": "args.input.takeshapeIoShop.giftCardTemplateSuffix"
389
+ }
390
+ ]
391
+ ],
392
+ "input.title": [
393
+ [
394
+ "get",
395
+ {
396
+ "path": "args.input.takeshapeIoShop.title"
397
+ }
398
+ ]
399
+ ],
400
+ "input.vendor": [
401
+ [
402
+ "get",
403
+ {
404
+ "path": "args.input.takeshapeIoShop.vendor"
405
+ }
406
+ ]
407
+ ],
408
+ "input.bodyHtml": [
409
+ [
410
+ "get",
411
+ {
412
+ "path": "args.input.takeshapeIoShop.bodyHtml"
413
+ }
414
+ ]
415
+ ]
416
+ },
417
+ "name": "graphql:mutation",
418
+ "service": "shopify:takeshape-io-shop",
419
+ "options": {
420
+ "fieldName": "productCreate",
421
+ "selectionSet": "{ product { id } }"
422
+ }
423
+ },
424
+ {
425
+ "id": "creatingShopifyObject",
426
+ "if": "!isEmpty(args.input.takeshapeIoShop)",
427
+ "argsMapping": {
428
+ "input": [
429
+ [
430
+ "get",
431
+ {
432
+ "path": "args.input"
433
+ }
434
+ ]
435
+ ],
436
+ "input.takeshapeIoShopId": [
437
+ [
438
+ "get",
439
+ {
440
+ "path": "steps.shopifyCreate.product.id"
441
+ }
442
+ ]
443
+ ]
444
+ },
445
+ "name": "takeshape:create",
446
+ "service": "takeshape:local",
447
+ "options": {
448
+ "model": "Product"
449
+ }
450
+ },
451
+ {
452
+ "id": "notCreatingShopifyObject",
453
+ "if": "isEmpty(args.input.takeshapeIoShop)",
454
+ "argsMapping": {
455
+ "input": [
456
+ [
457
+ "get",
458
+ {
459
+ "path": "args.input"
460
+ }
461
+ ]
462
+ ]
463
+ },
464
+ "name": "takeshape:create",
465
+ "service": "takeshape:local",
466
+ "options": {
467
+ "model": "Product"
468
+ }
469
+ }
470
+ ],
471
+ "resultsMapping": {
472
+ "result": [
473
+ [
474
+ "get",
475
+ {
476
+ "path": "steps.creatingShopifyObject.result"
477
+ }
478
+ ],
479
+ [
480
+ "get",
481
+ {
482
+ "path": "steps.notCreatingShopifyObject.result"
483
+ }
484
+ ]
485
+ ]
486
+ }
487
+ },
488
+ "description": "Create Product. If Shopify values are provided, a Shopify product is also created and the new product ID is saved.",
489
+ "args": "CreateArgs<ProductInterface>"
490
+ },
491
+ "duplicateProduct": {
492
+ "shape": "DuplicateResult<Product>",
493
+ "resolver": {
494
+ "name": "takeshape:duplicate",
495
+ "service": "takeshape:local",
496
+ "options": {
497
+ "model": "Product"
498
+ }
499
+ },
500
+ "description": "Duplicate Product",
501
+ "args": "DuplicateArgs<Product>"
502
+ },
503
+ "deleteProduct": {
504
+ "shape": "DeleteResult<Product>",
505
+ "resolver": {
506
+ "name": "takeshape:delete",
507
+ "service": "takeshape:local",
508
+ "options": {
509
+ "model": "Product"
510
+ }
511
+ },
512
+ "description": "Delete Product",
513
+ "args": "DeleteArgs<Product>"
514
+ },
515
+ "createProductAndServiceObject": {
516
+ "shape": "CreateResult<Product>",
517
+ "resolver": {
518
+ "compose": [
519
+ {
520
+ "argsMapping": {
521
+ "input.descriptionHtml": [
522
+ [
523
+ "jsonPath",
524
+ {
525
+ "path": "$.args.input.takeshapeIoShop.descriptionHtml"
526
+ }
527
+ ]
528
+ ],
529
+ "input.handle": [
530
+ [
531
+ "jsonPath",
532
+ {
533
+ "path": "$.args.input.takeshapeIoShop.handle"
534
+ }
535
+ ]
536
+ ],
537
+ "input.redirectNewHandle": [
538
+ [
539
+ "jsonPath",
540
+ {
541
+ "path": "$.args.input.takeshapeIoShop.redirectNewHandle"
542
+ }
543
+ ]
544
+ ],
545
+ "input.productType": [
546
+ [
547
+ "jsonPath",
548
+ {
549
+ "path": "$.args.input.takeshapeIoShop.productType"
550
+ }
551
+ ]
552
+ ],
553
+ "input.tags": [
554
+ [
555
+ "jsonPath",
556
+ {
557
+ "path": "$.args.input.takeshapeIoShop.tags"
558
+ }
559
+ ]
560
+ ],
561
+ "input.templateSuffix": [
562
+ [
563
+ "jsonPath",
564
+ {
565
+ "path": "$.args.input.takeshapeIoShop.templateSuffix"
566
+ }
567
+ ]
568
+ ],
569
+ "input.giftCard": [
570
+ [
571
+ "jsonPath",
572
+ {
573
+ "path": "$.args.input.takeshapeIoShop.giftCard"
574
+ }
575
+ ]
576
+ ],
577
+ "input.giftCardTemplateSuffix": [
578
+ [
579
+ "jsonPath",
580
+ {
581
+ "path": "$.args.input.takeshapeIoShop.giftCardTemplateSuffix"
582
+ }
583
+ ]
584
+ ],
585
+ "input.title": [
586
+ [
587
+ "jsonPath",
588
+ {
589
+ "path": "$.args.input.takeshapeIoShop.title"
590
+ }
591
+ ]
592
+ ],
593
+ "input.vendor": [
594
+ [
595
+ "jsonPath",
596
+ {
597
+ "path": "$.args.input.takeshapeIoShop.vendor"
598
+ }
599
+ ]
600
+ ],
601
+ "input.bodyHtml": [
602
+ [
603
+ "jsonPath",
604
+ {
605
+ "path": "$.args.input.takeshapeIoShop.bodyHtml"
606
+ }
607
+ ]
608
+ ]
609
+ },
610
+ "name": "graphql:mutation",
611
+ "service": "shopify:takeshape-io-shop",
612
+ "options": {
613
+ "fieldName": "productCreate",
614
+ "selectionSet": "{ product { id } }"
615
+ }
616
+ },
617
+ {
618
+ "argsMapping": {
619
+ "input": [
620
+ [
621
+ "jsonPath",
622
+ {
623
+ "path": "$.args.input"
624
+ }
625
+ ]
626
+ ],
627
+ "input.takeshapeIoShopId": [
628
+ [
629
+ "jsonPath",
630
+ {
631
+ "path": "$.results[0].product.id"
632
+ }
633
+ ]
634
+ ]
635
+ },
636
+ "name": "takeshape:create",
637
+ "service": "takeshape:local",
638
+ "options": {
639
+ "model": "Product"
640
+ }
641
+ }
642
+ ],
643
+ "resultsMapping": [
644
+ [
645
+ "jsonPath",
646
+ {
647
+ "path": "$.results[1]"
648
+ }
649
+ ]
650
+ ]
651
+ },
652
+ "description": "Create Product",
653
+ "args": "CreateArgs<ProductInterface>"
654
+ },
655
+ "updateProductAndCreateServiceObject": {
656
+ "shape": "UpdateResult<Product>",
657
+ "resolver": {
658
+ "compose": [
659
+ {
660
+ "argsMapping": {
661
+ "input.descriptionHtml": [
662
+ [
663
+ "jsonPath",
664
+ {
665
+ "path": "$.args.input.takeshapeIoShop.descriptionHtml"
666
+ }
667
+ ]
668
+ ],
669
+ "input.handle": [
670
+ [
671
+ "jsonPath",
672
+ {
673
+ "path": "$.args.input.takeshapeIoShop.handle"
674
+ }
675
+ ]
676
+ ],
677
+ "input.redirectNewHandle": [
678
+ [
679
+ "jsonPath",
680
+ {
681
+ "path": "$.args.input.takeshapeIoShop.redirectNewHandle"
682
+ }
683
+ ]
684
+ ],
685
+ "input.productType": [
686
+ [
687
+ "jsonPath",
688
+ {
689
+ "path": "$.args.input.takeshapeIoShop.productType"
690
+ }
691
+ ]
692
+ ],
693
+ "input.tags": [
694
+ [
695
+ "jsonPath",
696
+ {
697
+ "path": "$.args.input.takeshapeIoShop.tags"
698
+ }
699
+ ]
700
+ ],
701
+ "input.templateSuffix": [
702
+ [
703
+ "jsonPath",
704
+ {
705
+ "path": "$.args.input.takeshapeIoShop.templateSuffix"
706
+ }
707
+ ]
708
+ ],
709
+ "input.giftCard": [
710
+ [
711
+ "jsonPath",
712
+ {
713
+ "path": "$.args.input.takeshapeIoShop.giftCard"
714
+ }
715
+ ]
716
+ ],
717
+ "input.giftCardTemplateSuffix": [
718
+ [
719
+ "jsonPath",
720
+ {
721
+ "path": "$.args.input.takeshapeIoShop.giftCardTemplateSuffix"
722
+ }
723
+ ]
724
+ ],
725
+ "input.title": [
726
+ [
727
+ "jsonPath",
728
+ {
729
+ "path": "$.args.input.takeshapeIoShop.title"
730
+ }
731
+ ]
732
+ ],
733
+ "input.vendor": [
734
+ [
735
+ "jsonPath",
736
+ {
737
+ "path": "$.args.input.takeshapeIoShop.vendor"
738
+ }
739
+ ]
740
+ ],
741
+ "input.bodyHtml": [
742
+ [
743
+ "jsonPath",
744
+ {
745
+ "path": "$.args.input.takeshapeIoShop.bodyHtml"
746
+ }
747
+ ]
748
+ ]
749
+ },
750
+ "name": "graphql:mutation",
751
+ "service": "shopify:takeshape-io-shop",
752
+ "options": {
753
+ "fieldName": "productCreate",
754
+ "selectionSet": "{ product { id } }"
755
+ }
756
+ },
757
+ {
758
+ "argsMapping": {
759
+ "input": [
760
+ [
761
+ "jsonPath",
762
+ {
763
+ "path": "$.args.input"
764
+ }
765
+ ]
766
+ ],
767
+ "input.takeshapeIoShopId": [
768
+ [
769
+ "jsonPath",
770
+ {
771
+ "path": "$.results[0].product.id"
772
+ }
773
+ ]
774
+ ]
775
+ },
776
+ "name": "takeshape:update",
777
+ "service": "takeshape:local",
778
+ "options": {
779
+ "model": "Product"
780
+ }
781
+ }
782
+ ],
783
+ "resultsMapping": [
784
+ [
785
+ "jsonPath",
786
+ {
787
+ "path": "$.results[1]"
788
+ }
789
+ ]
790
+ ]
791
+ },
792
+ "description": "Update Product",
793
+ "args": "UpdateArgs<ProductInterface>"
794
+ },
795
+ "updateLook": {
796
+ "shape": "UpdateResult<Look>",
797
+ "resolver": {
798
+ "name": "takeshape:update",
799
+ "service": "takeshape:local",
800
+ "options": {
801
+ "model": "Look"
802
+ }
803
+ },
804
+ "description": "Update Look",
805
+ "args": "UpdateArgs<Look>"
806
+ },
807
+ "createLook": {
808
+ "shape": "CreateResult<Look>",
809
+ "resolver": {
810
+ "name": "takeshape:create",
811
+ "service": "takeshape:local",
812
+ "options": {
813
+ "model": "Look"
814
+ }
815
+ },
816
+ "description": "Create Look",
817
+ "args": "CreateArgs<Look>"
818
+ },
819
+ "duplicateLook": {
820
+ "shape": "DuplicateResult<Look>",
821
+ "resolver": {
822
+ "name": "takeshape:duplicate",
823
+ "service": "takeshape:local",
824
+ "options": {
825
+ "model": "Look"
826
+ }
827
+ },
828
+ "description": "Duplicate Look",
829
+ "args": "DuplicateArgs<Look>"
830
+ },
831
+ "deleteLook": {
832
+ "shape": "DeleteResult<Look>",
833
+ "resolver": {
834
+ "name": "takeshape:delete",
835
+ "service": "takeshape:local",
836
+ "options": {
837
+ "model": "Look"
838
+ }
839
+ },
840
+ "description": "Delete Look",
841
+ "args": "DeleteArgs<Look>"
842
+ }
843
+ },
844
+ "shapes": {
845
+ "ProductInterface": {
846
+ "id": "ProductInterface",
847
+ "name": "ProductInterface",
848
+ "title": "ProductInterface",
849
+ "description": "ProductInterface",
850
+ "schema": {
851
+ "type": "object",
852
+ "properties": {
853
+ "_id": {
854
+ "type": "string"
855
+ },
856
+ "_version": {
857
+ "type": "number"
858
+ },
859
+ "_status": {
860
+ "type": "string",
861
+ "@workflow": "default"
862
+ },
863
+ "name": {
864
+ "type": "string",
865
+ "title": "Name"
866
+ },
867
+ "takeshapeIoShopId": {
868
+ "title": "Service ID",
869
+ "type": "string"
870
+ },
871
+ "takeshapeIoShop": {
872
+ "$ref": "#/shapes/Shopify_ProductInput/schema"
873
+ }
874
+ },
875
+ "required": []
876
+ }
877
+ },
878
+ "Product": {
879
+ "id": "0DeHE3eJn",
880
+ "name": "Product",
881
+ "title": "Product",
882
+ "workflow": "default",
883
+ "model": {
884
+ "type": "multiple"
885
+ },
886
+ "schema": {
887
+ "type": "object",
888
+ "properties": {
889
+ "name": {
890
+ "minLength": 0,
891
+ "type": "string",
892
+ "description": "",
893
+ "title": "Name",
894
+ "@mapping": "takeshape:local:Product.Fv5HIHo4_"
895
+ },
896
+ "takeshapeIoShopId": {
897
+ "type": "string",
898
+ "@mapping": "takeshape:local:Product.WOK1Xvcb5",
899
+ "title": "takeshape-io-shop",
900
+ "minLength": 1,
901
+ "pattern": "(^gid://shopify/Product/\\d+$)"
902
+ },
903
+ "takeshapeIoShop": {
904
+ "$ref": "#/shapes/Shopify_Product/schema",
905
+ "@resolver": {
906
+ "name": "graphql:query",
907
+ "service": "shopify:takeshape-io-shop",
908
+ "options": {
909
+ "fieldName": "product"
910
+ },
911
+ "argsMapping": {
912
+ "id": [
913
+ [
914
+ "get",
915
+ {
916
+ "path": "source.takeshapeIoShopId"
917
+ }
918
+ ]
919
+ ]
920
+ }
921
+ },
922
+ "@tag": "pattern:service-object:1"
923
+ }
924
+ }
925
+ }
926
+ },
927
+ "Look": {
928
+ "id": "0qzGxgSCJ",
929
+ "name": "Look",
930
+ "title": "Look",
931
+ "description": "Each look features a photograph, the products being shown off, and optional accompanying text.",
932
+ "workflow": "default",
933
+ "model": {
934
+ "type": "multiple"
935
+ },
936
+ "schema": {
937
+ "type": "object",
938
+ "properties": {
939
+ "name": {
940
+ "minLength": 1,
941
+ "type": "string",
942
+ "description": "",
943
+ "title": "Name",
944
+ "@mapping": "takeshape:local:Look.LDCYL9XU5"
945
+ },
946
+ "photo": {
947
+ "description": "",
948
+ "$ref": "#/shapes/TSRelationship/schema",
949
+ "@relationship": {
950
+ "shapeIds": ["ASSET"]
951
+ },
952
+ "title": "Photo",
953
+ "@mapping": "takeshape:local:Look.4WzSq3aHx"
954
+ },
955
+ "text": {
956
+ "type": "object",
957
+ "@tag": "draftjs",
958
+ "description": "",
959
+ "title": "Text",
960
+ "@mapping": "takeshape:local:Look._qzcnRoKD"
961
+ },
962
+ "products": {
963
+ "description": "",
964
+ "type": "array",
965
+ "items": {
966
+ "$ref": "#/shapes/TSRelationship/schema"
967
+ },
968
+ "@relationship": {
969
+ "shapeIds": ["0DeHE3eJn"],
970
+ "type": "multiple",
971
+ "relatedName": "looks"
972
+ },
973
+ "title": "Products",
974
+ "@mapping": "takeshape:local:Look.dGVaGVDct"
975
+ }
976
+ },
977
+ "required": ["name", "photo"]
978
+ }
979
+ },
980
+ "CollectionInterface": {
981
+ "id": "CollectionInterface",
982
+ "name": "CollectionInterface",
983
+ "title": "CollectionInterface",
984
+ "description": "CollectionInterface",
985
+ "schema": {
986
+ "type": "object",
987
+ "properties": {
988
+ "_id": {
989
+ "type": "string"
990
+ },
991
+ "_version": {
992
+ "type": "number"
993
+ },
994
+ "_status": {
995
+ "type": "string"
996
+ },
997
+ "takeshapeIoShopId": {
998
+ "title": "Service ID",
999
+ "type": "string"
1000
+ },
1001
+ "takeshapeIoShop": {
1002
+ "$ref": "#/shapes/Shopify_CollectionInput/schema"
1003
+ }
1004
+ },
1005
+ "required": []
1006
+ }
1007
+ },
1008
+ "ProductVariantInterface": {
1009
+ "id": "ProductVariantInterface",
1010
+ "name": "ProductVariantInterface",
1011
+ "title": "ProductVariantInterface",
1012
+ "description": "ProductVariantInterface",
1013
+ "schema": {
1014
+ "type": "object",
1015
+ "properties": {
1016
+ "_id": {
1017
+ "type": "string"
1018
+ },
1019
+ "_version": {
1020
+ "type": "number"
1021
+ },
1022
+ "_status": {
1023
+ "type": "string"
1024
+ },
1025
+ "singleLine": {
1026
+ "type": "string",
1027
+ "title": "Single Line"
1028
+ },
1029
+ "takeshapeIoShopId": {
1030
+ "title": "Service ID",
1031
+ "type": "string"
1032
+ },
1033
+ "takeshapeIoShop": {
1034
+ "$ref": "#/shapes/Shopify_ProductVariantInput/schema"
1035
+ }
1036
+ },
1037
+ "required": []
1038
+ }
1039
+ }
1040
+ },
1041
+ "workflows": {},
1042
+ "forms": {
1043
+ "Product": {
1044
+ "default": {
1045
+ "properties": {
1046
+ "name": {
1047
+ "widget": "singleLineText"
1048
+ },
1049
+ "takeshapeIoShop": {
1050
+ "properties": {
1051
+ "descriptionHtml": {
1052
+ "widget": "serviceObjectProperty",
1053
+ "provider": "shopify"
1054
+ },
1055
+ "handle": {
1056
+ "widget": "serviceObjectProperty",
1057
+ "provider": "shopify"
1058
+ },
1059
+ "redirectNewHandle": {
1060
+ "widget": "serviceObjectProperty",
1061
+ "provider": "shopify"
1062
+ },
1063
+ "productType": {
1064
+ "widget": "serviceObjectProperty",
1065
+ "provider": "shopify"
1066
+ },
1067
+ "tags": {
1068
+ "widget": "serviceObjectProperty",
1069
+ "provider": "shopify"
1070
+ },
1071
+ "templateSuffix": {
1072
+ "widget": "serviceObjectProperty",
1073
+ "provider": "shopify"
1074
+ },
1075
+ "giftCard": {
1076
+ "widget": "serviceObjectProperty",
1077
+ "provider": "shopify"
1078
+ },
1079
+ "giftCardTemplateSuffix": {
1080
+ "widget": "serviceObjectProperty",
1081
+ "provider": "shopify"
1082
+ },
1083
+ "title": {
1084
+ "widget": "serviceObjectProperty",
1085
+ "provider": "shopify"
1086
+ },
1087
+ "vendor": {
1088
+ "widget": "serviceObjectProperty",
1089
+ "provider": "shopify"
1090
+ },
1091
+ "bodyHtml": {
1092
+ "widget": "serviceObjectProperty",
1093
+ "provider": "shopify"
1094
+ },
1095
+ "images": {
1096
+ "widget": "shopifyProductImages",
1097
+ "provider": "shopify"
1098
+ },
1099
+ "publishedAt": {
1100
+ "widget": "serviceObjectProperty",
1101
+ "provider": "shopify"
1102
+ },
1103
+ "variants": {
1104
+ "widget": "shopifyRelationshipSummary",
1105
+ "provider": "shopify"
1106
+ }
1107
+ },
1108
+ "widget": "shopify",
1109
+ "wrapper": "shopifyServiceWrapper",
1110
+ "order": [
1111
+ "title",
1112
+ "handle",
1113
+ "descriptionHtml",
1114
+ "bodyHtml",
1115
+ "tags",
1116
+ "vendor",
1117
+ "publishedAt",
1118
+ "variants",
1119
+ "images",
1120
+ "redirectNewHandle",
1121
+ "productType",
1122
+ "templateSuffix",
1123
+ "giftCard",
1124
+ "giftCardTemplateSuffix"
1125
+ ]
1126
+ },
1127
+ "takeshapeIoShopId": {
1128
+ "instructions": "Format: gid://shopify/Product/1111111111111",
1129
+ "label": "product ID",
1130
+ "widget": "serviceObjectId",
1131
+ "provider": "shopify",
1132
+ "serviceObjectType": "product",
1133
+ "service": "takeshape-io-shop"
1134
+ }
1135
+ },
1136
+ "order": ["name", "takeshapeIoShopId", "takeshapeIoShop"]
1137
+ }
1138
+ },
1139
+ "Look": {
1140
+ "default": {
1141
+ "properties": {
1142
+ "name": {
1143
+ "widget": "singleLineText"
1144
+ },
1145
+ "photo": {
1146
+ "widget": "image"
1147
+ },
1148
+ "text": {
1149
+ "widget": "wysiwygText"
1150
+ },
1151
+ "products": {
1152
+ "widget": "relationship"
1153
+ }
1154
+ },
1155
+ "order": ["name", "photo", "text", "products"]
1156
+ }
1157
+ }
1158
+ },
1159
+ "services": {
1160
+ "shopify:takeshape-io-shop": {
1161
+ "params": {
1162
+ "type": "graphql",
1163
+ "namespace": "Shopify",
1164
+ "shop": "takeshape-io-shop",
1165
+ "authHeader": "X-Shopify-Access-Token",
1166
+ "endpoint": "https://takeshape-io-shop.myshopify.com/admin/api/2020-07/graphql.json",
1167
+ "name": "Shopify Lookbook"
1168
+ }
1169
+ }
1170
+ },
1171
+ "dataKey": "AQIDAHhcZWXOdlBglkxBhI23ElO/clC/kuw5ynjXDSqJgfTz8gF9PtUhhmj99Nwuy3NTUSw0AAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMyc4d40JF8HULr2wWAgEQgDs9q/z7QObGJa+nOpS1GDYB9HYK9EcHEiZjhiGhQyAhxZLvqEwQj7+1Zn1LHykh3NJE1BQLQqF8AlQkkQ=="
1172
+ }