webflow-api 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/api/resources/accessGroups/client/Client.js +1 -1
  2. package/api/resources/assets/client/Client.js +8 -8
  3. package/api/resources/collections/client/Client.js +5 -5
  4. package/api/resources/collections/resources/fields/client/Client.js +2 -2
  5. package/api/resources/collections/resources/items/client/Client.d.ts +1 -2
  6. package/api/resources/collections/resources/items/client/Client.js +11 -18
  7. package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
  8. package/api/resources/collections/resources/items/types/index.d.ts +0 -1
  9. package/api/resources/collections/resources/items/types/index.js +0 -1
  10. package/api/resources/ecommerce/client/Client.js +1 -1
  11. package/api/resources/forms/client/Client.js +5 -5
  12. package/api/resources/inventory/client/Client.js +2 -2
  13. package/api/resources/orders/client/Client.js +6 -6
  14. package/api/resources/pages/client/Client.d.ts +23 -14
  15. package/api/resources/pages/client/Client.js +28 -19
  16. package/api/resources/pages/client/requests/DomWrite.d.ts +10 -1
  17. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +12 -12
  18. package/api/resources/pages/resources/scripts/client/Client.js +3 -3
  19. package/api/resources/pages/types/DomWriteNodesItem.d.ts +1 -1
  20. package/api/resources/pages/types/UpdateStaticContentResponse.d.ts +7 -0
  21. package/api/resources/pages/types/index.d.ts +1 -0
  22. package/api/resources/pages/types/index.js +1 -0
  23. package/api/resources/products/client/Client.d.ts +34 -26
  24. package/api/resources/products/client/Client.js +41 -33
  25. package/api/resources/products/client/requests/ProductSkuCreate.d.ts +28 -5
  26. package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +38 -0
  27. package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +1 -0
  28. package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +1 -0
  29. package/api/resources/products/client/requests/index.d.ts +1 -1
  30. package/api/resources/products/types/index.d.ts +0 -11
  31. package/api/resources/products/types/index.js +0 -11
  32. package/api/resources/scripts/client/Client.d.ts +2 -2
  33. package/api/resources/scripts/client/Client.js +5 -5
  34. package/api/resources/sites/client/Client.d.ts +2 -1
  35. package/api/resources/sites/client/Client.js +6 -5
  36. package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -0
  37. package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
  38. package/api/resources/sites/resources/scripts/client/Client.js +4 -4
  39. package/api/resources/token/client/Client.js +2 -2
  40. package/api/resources/users/client/Client.js +5 -5
  41. package/api/resources/webhooks/client/Client.js +4 -4
  42. package/api/types/Asset.d.ts +8 -8
  43. package/api/types/AssetFolder.d.ts +2 -2
  44. package/api/types/AssetUpload.d.ts +5 -5
  45. package/api/types/AssetUploadUploadDetails.d.ts +2 -4
  46. package/api/types/AssetVariant.d.ts +4 -0
  47. package/{dist/api/types/CustomCodeResponse.d.ts → api/types/CustomCodeHostedResponse.d.ts} +9 -9
  48. package/api/types/{CustomCodeResponse.d.ts → CustomCodeInlineResponse.d.ts} +9 -9
  49. package/api/types/Form.d.ts +13 -8
  50. package/api/types/FormField.d.ts +3 -0
  51. package/api/types/FormFieldValue.d.ts +3 -0
  52. package/api/types/FormResponseSettings.d.ts +5 -2
  53. package/api/types/Locale.d.ts +21 -0
  54. package/api/types/Locales.d.ts +10 -0
  55. package/api/types/Node.d.ts +1 -0
  56. package/api/types/Order.d.ts +5 -5
  57. package/api/types/OrderAddress.d.ts +1 -1
  58. package/api/types/OrderAddressJapanType.d.ts +1 -1
  59. package/api/types/OrderList.d.ts +1 -1
  60. package/api/types/OrderPurchasedItem.d.ts +2 -0
  61. package/api/types/Product.d.ts +2 -0
  62. package/api/types/ProductFieldData.d.ts +5 -4
  63. package/api/types/RegisteredScriptList.d.ts +4 -1
  64. package/api/types/ScriptApply.d.ts +1 -1
  65. package/api/types/ScriptApplyList.d.ts +1 -0
  66. package/api/types/Scripts.d.ts +3 -0
  67. package/api/types/Site.d.ts +3 -0
  68. package/api/types/Sites.d.ts +7 -0
  69. package/api/types/Sku.d.ts +2 -1
  70. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  71. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +11 -0
  72. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +12 -0
  73. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +11 -0
  74. package/api/types/index.d.ts +7 -1
  75. package/api/types/index.js +7 -1
  76. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  77. package/dist/api/resources/assets/client/Client.js +8 -8
  78. package/dist/api/resources/collections/client/Client.js +5 -5
  79. package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
  80. package/dist/api/resources/collections/resources/items/client/Client.d.ts +1 -2
  81. package/dist/api/resources/collections/resources/items/client/Client.js +11 -18
  82. package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
  83. package/dist/api/resources/collections/resources/items/types/index.d.ts +0 -1
  84. package/dist/api/resources/collections/resources/items/types/index.js +0 -1
  85. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  86. package/dist/api/resources/forms/client/Client.js +5 -5
  87. package/dist/api/resources/inventory/client/Client.js +2 -2
  88. package/dist/api/resources/orders/client/Client.js +6 -6
  89. package/dist/api/resources/pages/client/Client.d.ts +23 -14
  90. package/dist/api/resources/pages/client/Client.js +28 -19
  91. package/dist/api/resources/pages/client/requests/DomWrite.d.ts +10 -1
  92. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +12 -12
  93. package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
  94. package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +1 -1
  95. package/dist/api/resources/pages/types/UpdateStaticContentResponse.d.ts +7 -0
  96. package/dist/api/resources/pages/types/index.d.ts +1 -0
  97. package/dist/api/resources/pages/types/index.js +1 -0
  98. package/dist/api/resources/products/client/Client.d.ts +34 -26
  99. package/dist/api/resources/products/client/Client.js +41 -33
  100. package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +28 -5
  101. package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +38 -0
  102. package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +1 -0
  103. package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +1 -0
  104. package/dist/api/resources/products/client/requests/index.d.ts +1 -1
  105. package/dist/api/resources/products/types/index.d.ts +0 -11
  106. package/dist/api/resources/products/types/index.js +0 -11
  107. package/dist/api/resources/scripts/client/Client.d.ts +2 -2
  108. package/dist/api/resources/scripts/client/Client.js +5 -5
  109. package/dist/api/resources/sites/client/Client.d.ts +2 -1
  110. package/dist/api/resources/sites/client/Client.js +6 -5
  111. package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -0
  112. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
  113. package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
  114. package/dist/api/resources/token/client/Client.js +2 -2
  115. package/dist/api/resources/users/client/Client.js +5 -5
  116. package/dist/api/resources/webhooks/client/Client.js +4 -4
  117. package/dist/api/types/Asset.d.ts +8 -8
  118. package/dist/api/types/AssetFolder.d.ts +2 -2
  119. package/dist/api/types/AssetUpload.d.ts +5 -5
  120. package/dist/api/types/AssetUploadUploadDetails.d.ts +2 -4
  121. package/dist/api/types/AssetVariant.d.ts +4 -0
  122. package/dist/api/types/CustomCodeHostedResponse.d.ts +24 -0
  123. package/dist/api/types/CustomCodeInlineResponse.d.ts +24 -0
  124. package/dist/api/types/Form.d.ts +13 -8
  125. package/dist/api/types/FormField.d.ts +3 -0
  126. package/dist/api/types/FormFieldValue.d.ts +3 -0
  127. package/dist/api/types/FormResponseSettings.d.ts +5 -2
  128. package/dist/api/types/Locale.d.ts +21 -0
  129. package/dist/api/types/Locales.d.ts +10 -0
  130. package/dist/api/types/Node.d.ts +1 -0
  131. package/dist/api/types/Order.d.ts +5 -5
  132. package/dist/api/types/OrderAddress.d.ts +1 -1
  133. package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
  134. package/dist/api/types/OrderList.d.ts +1 -1
  135. package/dist/api/types/OrderPurchasedItem.d.ts +2 -0
  136. package/dist/api/types/Product.d.ts +2 -0
  137. package/dist/api/types/ProductFieldData.d.ts +5 -4
  138. package/dist/api/types/RegisteredScriptList.d.ts +4 -1
  139. package/dist/api/types/ScriptApply.d.ts +1 -1
  140. package/dist/api/types/ScriptApplyList.d.ts +1 -0
  141. package/dist/api/types/Scripts.d.ts +3 -0
  142. package/dist/api/types/Site.d.ts +3 -0
  143. package/dist/api/types/Sites.d.ts +7 -0
  144. package/dist/api/types/Sku.d.ts +2 -1
  145. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  146. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +11 -0
  147. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +12 -0
  148. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +11 -0
  149. package/dist/api/types/index.d.ts +7 -1
  150. package/dist/api/types/index.js +7 -1
  151. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +0 -1
  152. package/dist/serialization/resources/collections/resources/items/types/index.js +0 -1
  153. package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +12 -0
  154. package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js → dist/serialization/resources/pages/types/UpdateStaticContentResponse.js} +4 -2
  155. package/dist/serialization/resources/pages/types/index.d.ts +1 -0
  156. package/dist/serialization/resources/pages/types/index.js +1 -0
  157. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
  158. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +2 -4
  159. package/dist/serialization/resources/products/client/requests/{ProductsUpdateRequest.d.ts → ProductSkuUpdate.d.ts} +4 -3
  160. package/{serialization/resources/products/client/requests/ProductsUpdateRequest.js → dist/serialization/resources/products/client/requests/ProductSkuUpdate.js} +4 -3
  161. package/dist/serialization/resources/products/client/requests/index.d.ts +1 -1
  162. package/dist/serialization/resources/products/client/requests/index.js +3 -3
  163. package/dist/serialization/resources/products/types/index.d.ts +0 -11
  164. package/dist/serialization/resources/products/types/index.js +0 -11
  165. package/dist/serialization/types/Asset.d.ts +4 -4
  166. package/dist/serialization/types/Asset.js +4 -4
  167. package/dist/serialization/types/AssetFolder.d.ts +1 -1
  168. package/dist/serialization/types/AssetFolder.js +1 -1
  169. package/dist/serialization/types/AssetUpload.d.ts +3 -3
  170. package/dist/serialization/types/AssetUpload.js +3 -3
  171. package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -3
  172. package/dist/serialization/types/AssetUploadUploadDetails.js +2 -3
  173. package/dist/serialization/types/{CustomCodeResponse.d.ts → CustomCodeHostedResponse.d.ts} +6 -6
  174. package/{serialization/types/CustomCodeResponse.js → dist/serialization/types/CustomCodeHostedResponse.js} +6 -6
  175. package/{serialization/types/CustomCodeResponse.d.ts → dist/serialization/types/CustomCodeInlineResponse.d.ts} +6 -6
  176. package/dist/serialization/types/{CustomCodeResponse.js → CustomCodeInlineResponse.js} +6 -6
  177. package/dist/serialization/types/Form.d.ts +5 -5
  178. package/dist/serialization/types/Form.js +5 -5
  179. package/dist/serialization/types/FormResponseSettings.d.ts +1 -1
  180. package/dist/serialization/types/FormResponseSettings.js +1 -1
  181. package/dist/serialization/types/Locale.d.ts +19 -0
  182. package/dist/serialization/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Locale.js} +11 -5
  183. package/dist/serialization/types/Locales.d.ts +13 -0
  184. package/dist/serialization/types/Locales.js +45 -0
  185. package/dist/serialization/types/OrderList.d.ts +1 -1
  186. package/dist/serialization/types/OrderList.js +1 -1
  187. package/dist/serialization/types/OrderPurchasedItem.d.ts +1 -0
  188. package/dist/serialization/types/OrderPurchasedItem.js +1 -0
  189. package/dist/serialization/types/Product.d.ts +1 -0
  190. package/dist/serialization/types/Product.js +1 -0
  191. package/dist/serialization/types/ProductFieldData.d.ts +2 -3
  192. package/dist/serialization/types/ProductFieldData.js +2 -3
  193. package/dist/serialization/types/RegisteredScriptList.d.ts +1 -1
  194. package/dist/serialization/types/RegisteredScriptList.js +1 -1
  195. package/dist/serialization/types/Site.d.ts +2 -0
  196. package/dist/serialization/types/Site.js +2 -0
  197. package/dist/serialization/types/Sites.d.ts +12 -0
  198. package/dist/serialization/types/Sites.js +42 -0
  199. package/dist/serialization/types/Sku.d.ts +1 -0
  200. package/dist/serialization/types/Sku.js +1 -0
  201. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  202. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +3 -0
  203. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +14 -0
  204. package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +7 -7
  205. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +10 -0
  206. package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js → dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js} +3 -3
  207. package/dist/serialization/types/index.d.ts +7 -1
  208. package/dist/serialization/types/index.js +7 -1
  209. package/dist/wrapper/CollectionsClient.d.ts +8 -0
  210. package/dist/wrapper/CollectionsClient.js +18 -0
  211. package/dist/wrapper/ItemsClient.d.ts +30 -0
  212. package/dist/wrapper/ItemsClient.js +138 -0
  213. package/dist/wrapper/WebflowClient.d.ts +5 -0
  214. package/dist/wrapper/WebflowClient.js +11 -2
  215. package/package.json +1 -1
  216. package/serialization/resources/collections/resources/items/types/index.d.ts +0 -1
  217. package/serialization/resources/collections/resources/items/types/index.js +0 -1
  218. package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +12 -0
  219. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js → serialization/resources/pages/types/UpdateStaticContentResponse.js} +4 -2
  220. package/serialization/resources/pages/types/index.d.ts +1 -0
  221. package/serialization/resources/pages/types/index.js +1 -0
  222. package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
  223. package/serialization/resources/products/client/requests/ProductSkuCreate.js +2 -4
  224. package/serialization/resources/products/client/requests/{ProductsUpdateRequest.d.ts → ProductSkuUpdate.d.ts} +4 -3
  225. package/{dist/serialization/resources/products/client/requests/ProductsUpdateRequest.js → serialization/resources/products/client/requests/ProductSkuUpdate.js} +4 -3
  226. package/serialization/resources/products/client/requests/index.d.ts +1 -1
  227. package/serialization/resources/products/client/requests/index.js +3 -3
  228. package/serialization/resources/products/types/index.d.ts +0 -11
  229. package/serialization/resources/products/types/index.js +0 -11
  230. package/serialization/types/Asset.d.ts +4 -4
  231. package/serialization/types/Asset.js +4 -4
  232. package/serialization/types/AssetFolder.d.ts +1 -1
  233. package/serialization/types/AssetFolder.js +1 -1
  234. package/serialization/types/AssetUpload.d.ts +3 -3
  235. package/serialization/types/AssetUpload.js +3 -3
  236. package/serialization/types/AssetUploadUploadDetails.d.ts +2 -3
  237. package/serialization/types/AssetUploadUploadDetails.js +2 -3
  238. package/serialization/types/CustomCodeHostedResponse.d.ts +19 -0
  239. package/serialization/types/CustomCodeHostedResponse.js +40 -0
  240. package/serialization/types/CustomCodeInlineResponse.d.ts +19 -0
  241. package/serialization/types/CustomCodeInlineResponse.js +40 -0
  242. package/serialization/types/Form.d.ts +5 -5
  243. package/serialization/types/Form.js +5 -5
  244. package/serialization/types/FormResponseSettings.d.ts +1 -1
  245. package/serialization/types/FormResponseSettings.js +1 -1
  246. package/serialization/types/Locale.d.ts +19 -0
  247. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → serialization/types/Locale.js} +11 -6
  248. package/serialization/types/Locales.d.ts +13 -0
  249. package/serialization/types/Locales.js +45 -0
  250. package/serialization/types/OrderList.d.ts +1 -1
  251. package/serialization/types/OrderList.js +1 -1
  252. package/serialization/types/OrderPurchasedItem.d.ts +1 -0
  253. package/serialization/types/OrderPurchasedItem.js +1 -0
  254. package/serialization/types/Product.d.ts +1 -0
  255. package/serialization/types/Product.js +1 -0
  256. package/serialization/types/ProductFieldData.d.ts +2 -3
  257. package/serialization/types/ProductFieldData.js +2 -3
  258. package/serialization/types/RegisteredScriptList.d.ts +1 -1
  259. package/serialization/types/RegisteredScriptList.js +1 -1
  260. package/serialization/types/Site.d.ts +2 -0
  261. package/serialization/types/Site.js +2 -0
  262. package/serialization/types/Sites.d.ts +12 -0
  263. package/serialization/types/Sites.js +42 -0
  264. package/serialization/types/Sku.d.ts +1 -0
  265. package/serialization/types/Sku.js +1 -0
  266. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  267. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +3 -0
  268. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +14 -0
  269. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +7 -7
  270. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +10 -0
  271. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js → serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js} +3 -3
  272. package/serialization/types/index.d.ts +7 -1
  273. package/serialization/types/index.js +7 -1
  274. package/wrapper/CollectionsClient.d.ts +8 -0
  275. package/wrapper/CollectionsClient.js +18 -0
  276. package/wrapper/ItemsClient.d.ts +30 -0
  277. package/wrapper/ItemsClient.js +138 -0
  278. package/wrapper/WebflowClient.d.ts +5 -0
  279. package/wrapper/WebflowClient.js +11 -2
  280. package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -7
  281. package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +0 -56
  282. package/api/resources/products/types/ProductSkuCreateProduct.d.ts +0 -22
  283. package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -23
  284. package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -13
  285. package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -12
  286. package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -38
  287. package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -37
  288. package/api/resources/products/types/ProductSkuCreateSku.d.ts +0 -19
  289. package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -26
  290. package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -12
  291. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -11
  292. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +0 -10
  293. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -15
  294. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -13
  295. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +0 -12
  296. package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -13
  297. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -7
  298. package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +0 -56
  299. package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +0 -22
  300. package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -23
  301. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -13
  302. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -12
  303. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -38
  304. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -37
  305. package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +0 -19
  306. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -26
  307. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -12
  308. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +0 -5
  309. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -11
  310. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +0 -10
  311. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -15
  312. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +0 -5
  313. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -13
  314. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +0 -12
  315. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -13
  316. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +0 -5
  317. package/dist/api/types/CustomCodeResponse.js +0 -5
  318. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -13
  319. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +0 -34
  320. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +0 -18
  321. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +0 -50
  322. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -20
  323. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +0 -56
  324. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -10
  325. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -36
  326. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -10
  327. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -61
  328. package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +0 -16
  329. package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +0 -48
  330. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -20
  331. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +0 -56
  332. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -13
  333. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -10
  334. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -14
  335. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -10
  336. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -14
  337. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -13
  338. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +0 -34
  339. package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +0 -18
  340. package/serialization/resources/products/types/ProductSkuCreateProduct.js +0 -50
  341. package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -20
  342. package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +0 -56
  343. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -10
  344. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -36
  345. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -10
  346. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -61
  347. package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +0 -16
  348. package/serialization/resources/products/types/ProductSkuCreateSku.js +0 -48
  349. package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -20
  350. package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +0 -56
  351. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -13
  352. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +0 -34
  353. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -10
  354. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -14
  355. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -10
  356. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -14
  357. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +0 -35
  358. /package/api/resources/{collections/resources/items/types/ItemsPublishItemResponse.js → pages/types/UpdateStaticContentResponse.js} +0 -0
  359. /package/api/resources/products/client/requests/{ProductsUpdateRequest.js → ProductSkuUpdate.js} +0 -0
  360. /package/api/{resources/products/types/ProductSkuCreateProduct.js → types/CustomCodeHostedResponse.js} +0 -0
  361. /package/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/CustomCodeInlineResponse.js} +0 -0
  362. /package/api/{resources/products/types/ProductSkuCreateSku.js → types/Locale.js} +0 -0
  363. /package/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/Locales.js} +0 -0
  364. /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Sites.js} +0 -0
  365. /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
  366. /package/{api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → dist/api/resources/pages/types/UpdateStaticContentResponse.js} +0 -0
  367. /package/{api/types/CustomCodeResponse.js → dist/api/resources/products/client/requests/ProductSkuUpdate.js} +0 -0
  368. /package/dist/api/{resources/collections/resources/items/types/ItemsPublishItemResponse.js → types/CustomCodeHostedResponse.js} +0 -0
  369. /package/dist/api/{resources/products/client/requests/ProductsUpdateRequest.js → types/CustomCodeInlineResponse.js} +0 -0
  370. /package/dist/api/{resources/products/types/ProductSkuCreateProduct.js → types/Locale.js} +0 -0
  371. /package/dist/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/Locales.js} +0 -0
  372. /package/dist/api/{resources/products/types/ProductSkuCreateSku.js → types/Sites.js} +0 -0
  373. /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Client = void 0;
39
+ const url_join_1 = __importDefault(require("url-join"));
40
+ const Webflow = __importStar(require("../api"));
41
+ const Client_1 = require("../api/resources/collections/resources/items/client/Client");
42
+ const core = __importStar(require("../core"));
43
+ const environments = __importStar(require("../environments"));
44
+ const errors = __importStar(require("../errors"));
45
+ const serializers = __importStar(require("../serialization"));
46
+ // Client adapts the base client to permit extra properties in
47
+ // the client.Collections.Items.createItem request.
48
+ class Client extends Client_1.Items {
49
+ constructor(_options) {
50
+ super(_options);
51
+ this._options = _options;
52
+ }
53
+ /**
54
+ * Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
55
+ * @throws {@link Webflow.BadRequestError}
56
+ * @throws {@link Webflow.UnauthorizedError}
57
+ * @throws {@link Webflow.NotFoundError}
58
+ * @throws {@link Webflow.TooManyRequestsError}
59
+ * @throws {@link Webflow.InternalServerError}
60
+ *
61
+ * @example
62
+ * await webflow.collections.items.createItem("collection_id", {
63
+ * id: "42b720ef280c7a7a3be8cabe",
64
+ * cmsLocaleId: "653ad57de882f528b32e810e",
65
+ * lastPublished: "2022-11-29T16:22:43.159Z",
66
+ * lastUpdated: "2022-11-17T17:19:43.282Z",
67
+ * createdOn: "2022-11-17T17:11:57.148Z",
68
+ * isArchived: false,
69
+ * isDraft: false,
70
+ * fieldData: {
71
+ * name: "Pan Galactic Gargle Blaster Recipe",
72
+ * slug: "pan-galactic-gargle-blaster"
73
+ * }
74
+ * })
75
+ */
76
+ createItem(collectionId, request, requestOptions) {
77
+ var _a;
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ const _response = yield core.fetcher({
80
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items`),
81
+ method: "POST",
82
+ headers: {
83
+ Authorization: yield this._getAuthorizationHeader(),
84
+ "X-Fern-Language": "JavaScript",
85
+ "X-Fern-SDK-Name": "webflow-api",
86
+ "X-Fern-SDK-Version": "v2.2.1",
87
+ "X-Fern-Runtime": core.RUNTIME.type,
88
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
89
+ },
90
+ contentType: "application/json",
91
+ body: yield serializers.CollectionItem.jsonOrThrow(request, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ skipValidation: true,
96
+ }),
97
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
98
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
99
+ });
100
+ if (_response.ok) {
101
+ return;
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 400:
106
+ throw new Webflow.BadRequestError(_response.error.body);
107
+ case 401:
108
+ throw new Webflow.UnauthorizedError(_response.error.body);
109
+ case 404:
110
+ throw new Webflow.NotFoundError(_response.error.body);
111
+ case 429:
112
+ throw new Webflow.TooManyRequestsError(_response.error.body);
113
+ case 500:
114
+ throw new Webflow.InternalServerError(_response.error.body);
115
+ default:
116
+ throw new errors.WebflowError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ });
120
+ }
121
+ }
122
+ switch (_response.error.reason) {
123
+ case "non-json":
124
+ throw new errors.WebflowError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.rawBody,
127
+ });
128
+ case "timeout":
129
+ throw new errors.WebflowTimeoutError();
130
+ case "unknown":
131
+ throw new errors.WebflowError({
132
+ message: _response.error.errorMessage,
133
+ });
134
+ }
135
+ });
136
+ }
137
+ }
138
+ exports.Client = Client;
@@ -1,6 +1,11 @@
1
1
  import { WebflowClient as FernClient } from "../Client";
2
2
  import { OauthScope } from "../api/types";
3
+ import { Client as Collections } from "./CollectionsClient";
3
4
  export declare class WebflowClient extends FernClient {
5
+ protected readonly _options: FernClient.Options;
6
+ constructor(_options: FernClient.Options);
7
+ protected _collections: Collections | undefined;
8
+ get collections(): Collections;
4
9
  /**
5
10
  * @param clientId The OAuth client ID
6
11
  * @param state The state
@@ -36,11 +36,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.WebflowClient = void 0;
39
+ const qs_1 = __importDefault(require("qs"));
39
40
  const Client_1 = require("../Client");
40
- const errors = __importStar(require("../errors"));
41
41
  const core = __importStar(require("../core"));
42
- const qs_1 = __importDefault(require("qs"));
42
+ const errors = __importStar(require("../errors"));
43
+ const CollectionsClient_1 = require("./CollectionsClient");
43
44
  class WebflowClient extends Client_1.WebflowClient {
45
+ constructor(_options) {
46
+ super(_options);
47
+ this._options = _options;
48
+ }
49
+ get collections() {
50
+ var _a;
51
+ return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new CollectionsClient_1.Client(this._options)));
52
+ }
44
53
  /**
45
54
  * @param clientId The OAuth client ID
46
55
  * @param state The state
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ItemsPublishItemResponse {
5
- publishedItemIds?: string[];
6
- errors?: string[];
7
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../../..";
5
- /**
6
- * @example
7
- * {
8
- * product: {
9
- * id: "580e63fc8c9a982ac9b8b745",
10
- * lastPublished: new Date("2023-03-17T18:47:35.000Z"),
11
- * lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
12
- * createdOn: new Date("2023-03-17T18:47:35.000Z"),
13
- * isArchived: false,
14
- * isDraft: false,
15
- * fieldData: {
16
- * name: "T-Shirt",
17
- * slug: "t-shirt",
18
- * description: "A plain cotton t-shirt.",
19
- * shippable: true,
20
- * skuProperties: [{
21
- * id: "color",
22
- * name: "Color",
23
- * enum: [{
24
- * id: "royal-blue",
25
- * name: "Royal Blue",
26
- * slug: "royal-blue"
27
- * }, {
28
- * id: "crimson-red",
29
- * name: "Crimson Red",
30
- * slug: "crimson-red"
31
- * }, {
32
- * id: "forrest-green",
33
- * name: "name",
34
- * slug: "slug"
35
- * }, {
36
- * id: "id",
37
- * name: "name",
38
- * slug: "slug"
39
- * }]
40
- * }, {
41
- * id: "Color",
42
- * name: "Color",
43
- * enum: [{
44
- * id: "id",
45
- * name: "name",
46
- * slug: "slug"
47
- * }]
48
- * }]
49
- * }
50
- * }
51
- * }
52
- */
53
- export interface ProductsUpdateRequest {
54
- publishStatus?: Webflow.PublishStatus;
55
- product: Webflow.Product;
56
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- /**
6
- * The Product Object
7
- */
8
- export interface ProductSkuCreateProduct {
9
- /** Unique identifier for the Product */
10
- id?: string;
11
- /** The date the Product was last published */
12
- lastPublished?: Date;
13
- /** The date the Product was last updated */
14
- lastUpdated?: Date;
15
- /** The date the Product was created */
16
- createdOn?: Date;
17
- /** Boolean determining if the Product is set to archived */
18
- isArchived?: boolean;
19
- /** Boolean determining if the Product is set to draft */
20
- isDraft?: boolean;
21
- fieldData?: Webflow.ProductSkuCreateProductFieldData;
22
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- export interface ProductSkuCreateProductFieldData {
6
- /** Name of the Product */
7
- name: string;
8
- /** URL structure of the Product in your site. */
9
- slug: string;
10
- /** A description of your product */
11
- description?: string;
12
- /** Boolean determining if the Product is shippable */
13
- shippable?: boolean;
14
- /** Variant types to include in SKUs */
15
- skuProperties?: Webflow.SkuPropertyList[];
16
- /** The categories your product belongs to. */
17
- categories?: unknown[];
18
- /** Product tax class */
19
- taxCategory?: Webflow.ProductSkuCreateProductFieldDataTaxCategory;
20
- /** <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced" */
21
- ecProductType?: Webflow.ProductSkuCreateProductFieldDataEcProductType;
22
- additionalProperties?: unknown;
23
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced"
6
- */
7
- export declare type ProductSkuCreateProductFieldDataEcProductType = "ff42fee0113744f693a764e3431a9cc2" | "f22027db68002190aef89a4a2b7ac8a1" | "c599e43b1a1c34d5a323aedf75d3adf6" | "b6ccc1830db4b1babeb06a9ac5f6dd76";
8
- export declare const ProductSkuCreateProductFieldDataEcProductType: {
9
- readonly Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2";
10
- readonly F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1";
11
- readonly C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6";
12
- readonly B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76";
13
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProductSkuCreateProductFieldDataEcProductType = void 0;
7
- exports.ProductSkuCreateProductFieldDataEcProductType = {
8
- Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2",
9
- F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1",
10
- C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6",
11
- B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76",
12
- };
@@ -1,38 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Product tax class
6
- */
7
- export declare type ProductSkuCreateProductFieldDataTaxCategory = "standard-taxable" | "standard-exempt" | "books-religious" | "books-textbook" | "clothing" | "clothing-swimwear" | "digital-goods" | "digital-service" | "drugs-non-prescription" | "drugs-prescription" | "food-bottled-water" | "food-candy" | "food-groceries" | "food-prepared" | "food-soda" | "food-supplements" | "magazine-individual" | "magazine-subscription" | "service-admission" | "service-advertising" | "service-dry-cleaning" | "service-hairdressing" | "service-installation" | "service-miscellaneous" | "service-parking" | "service-printing" | "service-professional" | "service-repair" | "service-training";
8
- export declare const ProductSkuCreateProductFieldDataTaxCategory: {
9
- readonly StandardTaxable: "standard-taxable";
10
- readonly StandardExempt: "standard-exempt";
11
- readonly BooksReligious: "books-religious";
12
- readonly BooksTextbook: "books-textbook";
13
- readonly Clothing: "clothing";
14
- readonly ClothingSwimwear: "clothing-swimwear";
15
- readonly DigitalGoods: "digital-goods";
16
- readonly DigitalService: "digital-service";
17
- readonly DrugsNonPrescription: "drugs-non-prescription";
18
- readonly DrugsPrescription: "drugs-prescription";
19
- readonly FoodBottledWater: "food-bottled-water";
20
- readonly FoodCandy: "food-candy";
21
- readonly FoodGroceries: "food-groceries";
22
- readonly FoodPrepared: "food-prepared";
23
- readonly FoodSoda: "food-soda";
24
- readonly FoodSupplements: "food-supplements";
25
- readonly MagazineIndividual: "magazine-individual";
26
- readonly MagazineSubscription: "magazine-subscription";
27
- readonly ServiceAdmission: "service-admission";
28
- readonly ServiceAdvertising: "service-advertising";
29
- readonly ServiceDryCleaning: "service-dry-cleaning";
30
- readonly ServiceHairdressing: "service-hairdressing";
31
- readonly ServiceInstallation: "service-installation";
32
- readonly ServiceMiscellaneous: "service-miscellaneous";
33
- readonly ServiceParking: "service-parking";
34
- readonly ServicePrinting: "service-printing";
35
- readonly ServiceProfessional: "service-professional";
36
- readonly ServiceRepair: "service-repair";
37
- readonly ServiceTraining: "service-training";
38
- };
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProductSkuCreateProductFieldDataTaxCategory = void 0;
7
- exports.ProductSkuCreateProductFieldDataTaxCategory = {
8
- StandardTaxable: "standard-taxable",
9
- StandardExempt: "standard-exempt",
10
- BooksReligious: "books-religious",
11
- BooksTextbook: "books-textbook",
12
- Clothing: "clothing",
13
- ClothingSwimwear: "clothing-swimwear",
14
- DigitalGoods: "digital-goods",
15
- DigitalService: "digital-service",
16
- DrugsNonPrescription: "drugs-non-prescription",
17
- DrugsPrescription: "drugs-prescription",
18
- FoodBottledWater: "food-bottled-water",
19
- FoodCandy: "food-candy",
20
- FoodGroceries: "food-groceries",
21
- FoodPrepared: "food-prepared",
22
- FoodSoda: "food-soda",
23
- FoodSupplements: "food-supplements",
24
- MagazineIndividual: "magazine-individual",
25
- MagazineSubscription: "magazine-subscription",
26
- ServiceAdmission: "service-admission",
27
- ServiceAdvertising: "service-advertising",
28
- ServiceDryCleaning: "service-dry-cleaning",
29
- ServiceHairdressing: "service-hairdressing",
30
- ServiceInstallation: "service-installation",
31
- ServiceMiscellaneous: "service-miscellaneous",
32
- ServiceParking: "service-parking",
33
- ServicePrinting: "service-printing",
34
- ServiceProfessional: "service-professional",
35
- ServiceRepair: "service-repair",
36
- ServiceTraining: "service-training",
37
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- /**
6
- * The SKU object
7
- */
8
- export interface ProductSkuCreateSku {
9
- /** Unique identifier for the Product */
10
- id?: string;
11
- /** The date the Product was last published */
12
- lastPublished?: Date;
13
- /** The date the Product was last updated */
14
- lastUpdated?: Date;
15
- /** The date the Product was created */
16
- createdOn?: Date;
17
- /** Standard and Custom fields for a SKU */
18
- fieldData?: Webflow.ProductSkuCreateSkuFieldData;
19
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- /**
6
- * Standard and Custom fields for a SKU
7
- */
8
- export interface ProductSkuCreateSkuFieldData {
9
- skuValues?: Webflow.SkuValueList;
10
- /** Name of the Product */
11
- name: string;
12
- /** URL structure of the Product in your site. */
13
- slug: string;
14
- /** price of SKU */
15
- price: Webflow.ProductSkuCreateSkuFieldDataPrice;
16
- /** comparison price of SKU */
17
- compareAtPrice?: Webflow.ProductSkuCreateSkuFieldDataCompareAtPrice;
18
- /** The billing method for your SKU */
19
- ecSkuBillingMethod?: Webflow.ProductSkuCreateSkuFieldDataEcSkuBillingMethod;
20
- /** If your billing method is a Subscription Plan, outline the type and frequency of the subscription. */
21
- ecSkuSubscriptionPlan?: Webflow.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan;
22
- /** A boolean indicating whether inventory for this product should be tracked. */
23
- trackInventory?: boolean;
24
- /** Quantity of SKU that will be tracked as items are ordered. */
25
- quantity?: number;
26
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * comparison price of SKU
6
- */
7
- export interface ProductSkuCreateSkuFieldDataCompareAtPrice {
8
- /** Price of SKU */
9
- value?: number;
10
- /** Currency of Item */
11
- unit?: string;
12
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * The billing method for your SKU
6
- */
7
- export declare type ProductSkuCreateSkuFieldDataEcSkuBillingMethod = "one-time" | "subscription";
8
- export declare const ProductSkuCreateSkuFieldDataEcSkuBillingMethod: {
9
- readonly OneTime: "one-time";
10
- readonly Subscription: "subscription";
11
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProductSkuCreateSkuFieldDataEcSkuBillingMethod = void 0;
7
- exports.ProductSkuCreateSkuFieldDataEcSkuBillingMethod = {
8
- OneTime: "one-time",
9
- Subscription: "subscription",
10
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- /**
6
- * If your billing method is a Subscription Plan, outline the type and frequency of the subscription.
7
- */
8
- export interface ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan {
9
- /** Interval of subscription renewal */
10
- interval?: Webflow.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval;
11
- /** Frequncy of billing within interval */
12
- frequency?: number;
13
- /** Number of days of a trial */
14
- trial?: number;
15
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Interval of subscription renewal
6
- */
7
- export declare type ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval = "day" | "week" | "month" | "year";
8
- export declare const ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval: {
9
- readonly Day: "day";
10
- readonly Week: "week";
11
- readonly Month: "month";
12
- readonly Year: "year";
13
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval = void 0;
7
- exports.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval = {
8
- Day: "day",
9
- Week: "week",
10
- Month: "month",
11
- Year: "year",
12
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * price of SKU
6
- */
7
- export interface ProductSkuCreateSkuFieldDataPrice {
8
- required?: unknown;
9
- /** Price of SKU */
10
- value?: number;
11
- /** Currency of Item */
12
- unit?: string;
13
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ItemsPublishItemResponse {
5
- publishedItemIds?: string[];
6
- errors?: string[];
7
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../../..";
5
- /**
6
- * @example
7
- * {
8
- * product: {
9
- * id: "580e63fc8c9a982ac9b8b745",
10
- * lastPublished: new Date("2023-03-17T18:47:35.000Z"),
11
- * lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
12
- * createdOn: new Date("2023-03-17T18:47:35.000Z"),
13
- * isArchived: false,
14
- * isDraft: false,
15
- * fieldData: {
16
- * name: "T-Shirt",
17
- * slug: "t-shirt",
18
- * description: "A plain cotton t-shirt.",
19
- * shippable: true,
20
- * skuProperties: [{
21
- * id: "color",
22
- * name: "Color",
23
- * enum: [{
24
- * id: "royal-blue",
25
- * name: "Royal Blue",
26
- * slug: "royal-blue"
27
- * }, {
28
- * id: "crimson-red",
29
- * name: "Crimson Red",
30
- * slug: "crimson-red"
31
- * }, {
32
- * id: "forrest-green",
33
- * name: "name",
34
- * slug: "slug"
35
- * }, {
36
- * id: "id",
37
- * name: "name",
38
- * slug: "slug"
39
- * }]
40
- * }, {
41
- * id: "Color",
42
- * name: "Color",
43
- * enum: [{
44
- * id: "id",
45
- * name: "name",
46
- * slug: "slug"
47
- * }]
48
- * }]
49
- * }
50
- * }
51
- * }
52
- */
53
- export interface ProductsUpdateRequest {
54
- publishStatus?: Webflow.PublishStatus;
55
- product: Webflow.Product;
56
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- /**
6
- * The Product Object
7
- */
8
- export interface ProductSkuCreateProduct {
9
- /** Unique identifier for the Product */
10
- id?: string;
11
- /** The date the Product was last published */
12
- lastPublished?: Date;
13
- /** The date the Product was last updated */
14
- lastUpdated?: Date;
15
- /** The date the Product was created */
16
- createdOn?: Date;
17
- /** Boolean determining if the Product is set to archived */
18
- isArchived?: boolean;
19
- /** Boolean determining if the Product is set to draft */
20
- isDraft?: boolean;
21
- fieldData?: Webflow.ProductSkuCreateProductFieldData;
22
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Webflow from "../../..";
5
- export interface ProductSkuCreateProductFieldData {
6
- /** Name of the Product */
7
- name: string;
8
- /** URL structure of the Product in your site. */
9
- slug: string;
10
- /** A description of your product */
11
- description?: string;
12
- /** Boolean determining if the Product is shippable */
13
- shippable?: boolean;
14
- /** Variant types to include in SKUs */
15
- skuProperties?: Webflow.SkuPropertyList[];
16
- /** The categories your product belongs to. */
17
- categories?: unknown[];
18
- /** Product tax class */
19
- taxCategory?: Webflow.ProductSkuCreateProductFieldDataTaxCategory;
20
- /** <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced" */
21
- ecProductType?: Webflow.ProductSkuCreateProductFieldDataEcProductType;
22
- additionalProperties?: unknown;
23
- }