webflow-api 2.2.1 → 2.3.2

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 (385) 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 +13 -2
  6. package/api/resources/collections/resources/items/client/Client.js +100 -18
  7. package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
  8. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +21 -0
  9. package/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
  10. package/api/resources/collections/resources/items/types/index.d.ts +0 -1
  11. package/api/resources/collections/resources/items/types/index.js +0 -1
  12. package/api/resources/ecommerce/client/Client.js +1 -1
  13. package/api/resources/forms/client/Client.js +5 -5
  14. package/api/resources/inventory/client/Client.js +2 -2
  15. package/api/resources/orders/client/Client.js +6 -6
  16. package/api/resources/pages/client/Client.d.ts +23 -14
  17. package/api/resources/pages/client/Client.js +28 -19
  18. package/api/resources/pages/client/requests/DomWrite.d.ts +10 -1
  19. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +12 -12
  20. package/api/resources/pages/resources/scripts/client/Client.js +3 -3
  21. package/api/resources/pages/types/DomWriteNodesItem.d.ts +1 -1
  22. package/api/resources/pages/types/UpdateStaticContentResponse.d.ts +7 -0
  23. package/api/resources/pages/types/index.d.ts +1 -0
  24. package/api/resources/pages/types/index.js +1 -0
  25. package/api/resources/products/client/Client.d.ts +34 -26
  26. package/api/resources/products/client/Client.js +41 -33
  27. package/api/resources/products/client/requests/ProductSkuCreate.d.ts +28 -5
  28. package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +38 -0
  29. package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +1 -0
  30. package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +1 -0
  31. package/api/resources/products/client/requests/index.d.ts +1 -1
  32. package/api/resources/products/types/index.d.ts +0 -11
  33. package/api/resources/products/types/index.js +0 -11
  34. package/api/resources/scripts/client/Client.d.ts +2 -2
  35. package/api/resources/scripts/client/Client.js +5 -5
  36. package/api/resources/sites/client/Client.d.ts +2 -1
  37. package/api/resources/sites/client/Client.js +6 -5
  38. package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -0
  39. package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
  40. package/api/resources/sites/resources/scripts/client/Client.js +4 -4
  41. package/api/resources/token/client/Client.js +2 -2
  42. package/api/resources/users/client/Client.js +5 -5
  43. package/api/resources/webhooks/client/Client.js +4 -4
  44. package/api/types/Asset.d.ts +8 -8
  45. package/api/types/AssetFolder.d.ts +2 -2
  46. package/api/types/AssetUpload.d.ts +5 -5
  47. package/api/types/AssetUploadUploadDetails.d.ts +2 -4
  48. package/api/types/AssetVariant.d.ts +4 -0
  49. package/{dist/api/types/CustomCodeResponse.d.ts → api/types/CustomCodeHostedResponse.d.ts} +9 -9
  50. package/api/types/{CustomCodeResponse.d.ts → CustomCodeInlineResponse.d.ts} +9 -9
  51. package/api/types/Form.d.ts +13 -8
  52. package/api/types/FormField.d.ts +3 -0
  53. package/api/types/FormFieldValue.d.ts +3 -0
  54. package/api/types/FormResponseSettings.d.ts +5 -2
  55. package/api/types/Locale.d.ts +21 -0
  56. package/api/types/Locales.d.ts +10 -0
  57. package/api/types/Node.d.ts +1 -0
  58. package/api/types/OauthScope.d.ts +9 -1
  59. package/api/types/OauthScope.js +2 -0
  60. package/api/types/Order.d.ts +5 -5
  61. package/api/types/OrderAddress.d.ts +1 -1
  62. package/api/types/OrderAddressJapanType.d.ts +1 -1
  63. package/api/types/OrderList.d.ts +1 -1
  64. package/api/types/OrderPurchasedItem.d.ts +2 -0
  65. package/api/types/Product.d.ts +2 -0
  66. package/api/types/ProductFieldData.d.ts +5 -4
  67. package/api/types/RegisteredScriptList.d.ts +4 -1
  68. package/api/types/ScriptApply.d.ts +1 -1
  69. package/api/types/ScriptApplyList.d.ts +1 -0
  70. package/api/types/Scripts.d.ts +3 -0
  71. package/api/types/Site.d.ts +3 -0
  72. package/api/types/Sites.d.ts +7 -0
  73. package/api/types/Sku.d.ts +2 -1
  74. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  75. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +11 -0
  76. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +12 -0
  77. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +11 -0
  78. package/api/types/index.d.ts +7 -1
  79. package/api/types/index.js +7 -1
  80. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  81. package/dist/api/resources/assets/client/Client.js +8 -8
  82. package/dist/api/resources/collections/client/Client.js +5 -5
  83. package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
  84. package/dist/api/resources/collections/resources/items/client/Client.d.ts +13 -2
  85. package/dist/api/resources/collections/resources/items/client/Client.js +100 -18
  86. package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
  87. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +21 -0
  88. package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
  89. package/dist/api/resources/collections/resources/items/types/index.d.ts +0 -1
  90. package/dist/api/resources/collections/resources/items/types/index.js +0 -1
  91. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  92. package/dist/api/resources/forms/client/Client.js +5 -5
  93. package/dist/api/resources/inventory/client/Client.js +2 -2
  94. package/dist/api/resources/orders/client/Client.js +6 -6
  95. package/dist/api/resources/pages/client/Client.d.ts +23 -14
  96. package/dist/api/resources/pages/client/Client.js +28 -19
  97. package/dist/api/resources/pages/client/requests/DomWrite.d.ts +10 -1
  98. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +12 -12
  99. package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
  100. package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +1 -1
  101. package/dist/api/resources/pages/types/UpdateStaticContentResponse.d.ts +7 -0
  102. package/dist/api/resources/pages/types/index.d.ts +1 -0
  103. package/dist/api/resources/pages/types/index.js +1 -0
  104. package/dist/api/resources/products/client/Client.d.ts +34 -26
  105. package/dist/api/resources/products/client/Client.js +41 -33
  106. package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +28 -5
  107. package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +38 -0
  108. package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +1 -0
  109. package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +1 -0
  110. package/dist/api/resources/products/client/requests/index.d.ts +1 -1
  111. package/dist/api/resources/products/types/index.d.ts +0 -11
  112. package/dist/api/resources/products/types/index.js +0 -11
  113. package/dist/api/resources/scripts/client/Client.d.ts +2 -2
  114. package/dist/api/resources/scripts/client/Client.js +5 -5
  115. package/dist/api/resources/sites/client/Client.d.ts +2 -1
  116. package/dist/api/resources/sites/client/Client.js +6 -5
  117. package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -0
  118. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
  119. package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
  120. package/dist/api/resources/token/client/Client.js +2 -2
  121. package/dist/api/resources/users/client/Client.js +5 -5
  122. package/dist/api/resources/webhooks/client/Client.js +4 -4
  123. package/dist/api/types/Asset.d.ts +8 -8
  124. package/dist/api/types/AssetFolder.d.ts +2 -2
  125. package/dist/api/types/AssetUpload.d.ts +5 -5
  126. package/dist/api/types/AssetUploadUploadDetails.d.ts +2 -4
  127. package/dist/api/types/AssetVariant.d.ts +4 -0
  128. package/dist/api/types/CustomCodeHostedResponse.d.ts +24 -0
  129. package/dist/api/types/CustomCodeInlineResponse.d.ts +24 -0
  130. package/dist/api/types/Form.d.ts +13 -8
  131. package/dist/api/types/FormField.d.ts +3 -0
  132. package/dist/api/types/FormFieldValue.d.ts +3 -0
  133. package/dist/api/types/FormResponseSettings.d.ts +5 -2
  134. package/dist/api/types/Locale.d.ts +21 -0
  135. package/dist/api/types/Locales.d.ts +10 -0
  136. package/dist/api/types/Node.d.ts +1 -0
  137. package/dist/api/types/OauthScope.d.ts +9 -1
  138. package/dist/api/types/OauthScope.js +2 -0
  139. package/dist/api/types/Order.d.ts +5 -5
  140. package/dist/api/types/OrderAddress.d.ts +1 -1
  141. package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
  142. package/dist/api/types/OrderList.d.ts +1 -1
  143. package/dist/api/types/OrderPurchasedItem.d.ts +2 -0
  144. package/dist/api/types/Product.d.ts +2 -0
  145. package/dist/api/types/ProductFieldData.d.ts +5 -4
  146. package/dist/api/types/RegisteredScriptList.d.ts +4 -1
  147. package/dist/api/types/ScriptApply.d.ts +1 -1
  148. package/dist/api/types/ScriptApplyList.d.ts +1 -0
  149. package/dist/api/types/Scripts.d.ts +3 -0
  150. package/dist/api/types/Site.d.ts +3 -0
  151. package/dist/api/types/Sites.d.ts +7 -0
  152. package/dist/api/types/Sku.d.ts +2 -1
  153. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  154. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +11 -0
  155. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +12 -0
  156. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +11 -0
  157. package/dist/api/types/index.d.ts +7 -1
  158. package/dist/api/types/index.js +7 -1
  159. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +0 -1
  160. package/dist/serialization/resources/collections/resources/items/types/index.js +0 -1
  161. package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +12 -0
  162. package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js → dist/serialization/resources/pages/types/UpdateStaticContentResponse.js} +4 -2
  163. package/dist/serialization/resources/pages/types/index.d.ts +1 -0
  164. package/dist/serialization/resources/pages/types/index.js +1 -0
  165. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
  166. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +2 -4
  167. package/dist/serialization/resources/products/client/requests/{ProductsUpdateRequest.d.ts → ProductSkuUpdate.d.ts} +4 -3
  168. package/{serialization/resources/products/client/requests/ProductsUpdateRequest.js → dist/serialization/resources/products/client/requests/ProductSkuUpdate.js} +4 -3
  169. package/dist/serialization/resources/products/client/requests/index.d.ts +1 -1
  170. package/dist/serialization/resources/products/client/requests/index.js +3 -3
  171. package/dist/serialization/resources/products/types/index.d.ts +0 -11
  172. package/dist/serialization/resources/products/types/index.js +0 -11
  173. package/dist/serialization/types/Asset.d.ts +4 -4
  174. package/dist/serialization/types/Asset.js +4 -4
  175. package/dist/serialization/types/AssetFolder.d.ts +1 -1
  176. package/dist/serialization/types/AssetFolder.js +1 -1
  177. package/dist/serialization/types/AssetUpload.d.ts +3 -3
  178. package/dist/serialization/types/AssetUpload.js +3 -3
  179. package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -3
  180. package/dist/serialization/types/AssetUploadUploadDetails.js +2 -3
  181. package/dist/serialization/types/{CustomCodeResponse.d.ts → CustomCodeHostedResponse.d.ts} +6 -6
  182. package/{serialization/types/CustomCodeResponse.js → dist/serialization/types/CustomCodeHostedResponse.js} +6 -6
  183. package/{serialization/types/CustomCodeResponse.d.ts → dist/serialization/types/CustomCodeInlineResponse.d.ts} +6 -6
  184. package/dist/serialization/types/{CustomCodeResponse.js → CustomCodeInlineResponse.js} +6 -6
  185. package/dist/serialization/types/Form.d.ts +5 -5
  186. package/dist/serialization/types/Form.js +5 -5
  187. package/dist/serialization/types/FormResponseSettings.d.ts +1 -1
  188. package/dist/serialization/types/FormResponseSettings.js +1 -1
  189. package/dist/serialization/types/Locale.d.ts +19 -0
  190. package/dist/serialization/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Locale.js} +11 -5
  191. package/dist/serialization/types/Locales.d.ts +13 -0
  192. package/dist/serialization/types/Locales.js +45 -0
  193. package/dist/serialization/types/OauthScope.d.ts +1 -1
  194. package/dist/serialization/types/OauthScope.js +2 -0
  195. package/dist/serialization/types/OrderList.d.ts +1 -1
  196. package/dist/serialization/types/OrderList.js +1 -1
  197. package/dist/serialization/types/OrderPurchasedItem.d.ts +1 -0
  198. package/dist/serialization/types/OrderPurchasedItem.js +1 -0
  199. package/dist/serialization/types/Product.d.ts +1 -0
  200. package/dist/serialization/types/Product.js +1 -0
  201. package/dist/serialization/types/ProductFieldData.d.ts +2 -3
  202. package/dist/serialization/types/ProductFieldData.js +2 -3
  203. package/dist/serialization/types/RegisteredScriptList.d.ts +1 -1
  204. package/dist/serialization/types/RegisteredScriptList.js +1 -1
  205. package/dist/serialization/types/Site.d.ts +2 -0
  206. package/dist/serialization/types/Site.js +2 -0
  207. package/dist/serialization/types/Sites.d.ts +12 -0
  208. package/dist/serialization/types/Sites.js +42 -0
  209. package/dist/serialization/types/Sku.d.ts +1 -0
  210. package/dist/serialization/types/Sku.js +1 -0
  211. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  212. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +3 -0
  213. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +14 -0
  214. package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +7 -7
  215. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +10 -0
  216. package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js → dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js} +3 -3
  217. package/dist/serialization/types/index.d.ts +7 -1
  218. package/dist/serialization/types/index.js +7 -1
  219. package/dist/wrapper/CollectionsClient.d.ts +8 -0
  220. package/dist/wrapper/CollectionsClient.js +18 -0
  221. package/dist/wrapper/ItemsClient.d.ts +30 -0
  222. package/dist/wrapper/ItemsClient.js +138 -0
  223. package/dist/wrapper/WebflowClient.d.ts +5 -0
  224. package/dist/wrapper/WebflowClient.js +11 -2
  225. package/package.json +1 -1
  226. package/serialization/resources/collections/resources/items/types/index.d.ts +0 -1
  227. package/serialization/resources/collections/resources/items/types/index.js +0 -1
  228. package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +12 -0
  229. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js → serialization/resources/pages/types/UpdateStaticContentResponse.js} +4 -2
  230. package/serialization/resources/pages/types/index.d.ts +1 -0
  231. package/serialization/resources/pages/types/index.js +1 -0
  232. package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
  233. package/serialization/resources/products/client/requests/ProductSkuCreate.js +2 -4
  234. package/serialization/resources/products/client/requests/{ProductsUpdateRequest.d.ts → ProductSkuUpdate.d.ts} +4 -3
  235. package/{dist/serialization/resources/products/client/requests/ProductsUpdateRequest.js → serialization/resources/products/client/requests/ProductSkuUpdate.js} +4 -3
  236. package/serialization/resources/products/client/requests/index.d.ts +1 -1
  237. package/serialization/resources/products/client/requests/index.js +3 -3
  238. package/serialization/resources/products/types/index.d.ts +0 -11
  239. package/serialization/resources/products/types/index.js +0 -11
  240. package/serialization/types/Asset.d.ts +4 -4
  241. package/serialization/types/Asset.js +4 -4
  242. package/serialization/types/AssetFolder.d.ts +1 -1
  243. package/serialization/types/AssetFolder.js +1 -1
  244. package/serialization/types/AssetUpload.d.ts +3 -3
  245. package/serialization/types/AssetUpload.js +3 -3
  246. package/serialization/types/AssetUploadUploadDetails.d.ts +2 -3
  247. package/serialization/types/AssetUploadUploadDetails.js +2 -3
  248. package/serialization/types/CustomCodeHostedResponse.d.ts +19 -0
  249. package/serialization/types/CustomCodeHostedResponse.js +40 -0
  250. package/serialization/types/CustomCodeInlineResponse.d.ts +19 -0
  251. package/serialization/types/CustomCodeInlineResponse.js +40 -0
  252. package/serialization/types/Form.d.ts +5 -5
  253. package/serialization/types/Form.js +5 -5
  254. package/serialization/types/FormResponseSettings.d.ts +1 -1
  255. package/serialization/types/FormResponseSettings.js +1 -1
  256. package/serialization/types/Locale.d.ts +19 -0
  257. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → serialization/types/Locale.js} +11 -6
  258. package/serialization/types/Locales.d.ts +13 -0
  259. package/serialization/types/Locales.js +45 -0
  260. package/serialization/types/OauthScope.d.ts +1 -1
  261. package/serialization/types/OauthScope.js +2 -0
  262. package/serialization/types/OrderList.d.ts +1 -1
  263. package/serialization/types/OrderList.js +1 -1
  264. package/serialization/types/OrderPurchasedItem.d.ts +1 -0
  265. package/serialization/types/OrderPurchasedItem.js +1 -0
  266. package/serialization/types/Product.d.ts +1 -0
  267. package/serialization/types/Product.js +1 -0
  268. package/serialization/types/ProductFieldData.d.ts +2 -3
  269. package/serialization/types/ProductFieldData.js +2 -3
  270. package/serialization/types/RegisteredScriptList.d.ts +1 -1
  271. package/serialization/types/RegisteredScriptList.js +1 -1
  272. package/serialization/types/Site.d.ts +2 -0
  273. package/serialization/types/Site.js +2 -0
  274. package/serialization/types/Sites.d.ts +12 -0
  275. package/serialization/types/Sites.js +42 -0
  276. package/serialization/types/Sku.d.ts +1 -0
  277. package/serialization/types/Sku.js +1 -0
  278. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
  279. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +3 -0
  280. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +14 -0
  281. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +7 -7
  282. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +10 -0
  283. package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js → serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js} +3 -3
  284. package/serialization/types/index.d.ts +7 -1
  285. package/serialization/types/index.js +7 -1
  286. package/wrapper/CollectionsClient.d.ts +8 -0
  287. package/wrapper/CollectionsClient.js +18 -0
  288. package/wrapper/ItemsClient.d.ts +30 -0
  289. package/wrapper/ItemsClient.js +138 -0
  290. package/wrapper/WebflowClient.d.ts +5 -0
  291. package/wrapper/WebflowClient.js +11 -2
  292. package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -7
  293. package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +0 -56
  294. package/api/resources/products/types/ProductSkuCreateProduct.d.ts +0 -22
  295. package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -23
  296. package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -13
  297. package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -12
  298. package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -38
  299. package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -37
  300. package/api/resources/products/types/ProductSkuCreateSku.d.ts +0 -19
  301. package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -26
  302. package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -12
  303. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -11
  304. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +0 -10
  305. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -15
  306. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -13
  307. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +0 -12
  308. package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -13
  309. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -7
  310. package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +0 -56
  311. package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +0 -22
  312. package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -23
  313. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -13
  314. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -12
  315. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -38
  316. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -37
  317. package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +0 -19
  318. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -26
  319. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -12
  320. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -11
  321. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +0 -10
  322. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -15
  323. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -13
  324. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +0 -12
  325. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -13
  326. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +0 -5
  327. package/dist/api/types/CustomCodeResponse.js +0 -5
  328. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -13
  329. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +0 -34
  330. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +0 -18
  331. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +0 -50
  332. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -20
  333. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +0 -56
  334. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -10
  335. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -36
  336. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -10
  337. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -61
  338. package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +0 -16
  339. package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +0 -48
  340. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -20
  341. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +0 -56
  342. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -13
  343. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -10
  344. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -14
  345. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -10
  346. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -14
  347. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -13
  348. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +0 -34
  349. package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +0 -18
  350. package/serialization/resources/products/types/ProductSkuCreateProduct.js +0 -50
  351. package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -20
  352. package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +0 -56
  353. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -10
  354. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -36
  355. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -10
  356. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -61
  357. package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +0 -16
  358. package/serialization/resources/products/types/ProductSkuCreateSku.js +0 -48
  359. package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -20
  360. package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +0 -56
  361. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -13
  362. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +0 -34
  363. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -10
  364. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -14
  365. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -10
  366. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -14
  367. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +0 -35
  368. /package/api/resources/collections/resources/items/{types/ItemsPublishItemResponse.js → client/requests/ItemsListItemsLiveRequest.js} +0 -0
  369. /package/api/resources/{products/client/requests/ProductsUpdateRequest.js → pages/types/UpdateStaticContentResponse.js} +0 -0
  370. /package/api/resources/products/{types/ProductSkuCreateProduct.js → client/requests/ProductSkuUpdate.js} +0 -0
  371. /package/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/CustomCodeHostedResponse.js} +0 -0
  372. /package/api/{resources/products/types/ProductSkuCreateSku.js → types/CustomCodeInlineResponse.js} +0 -0
  373. /package/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/Locale.js} +0 -0
  374. /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Locales.js} +0 -0
  375. /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → types/Sites.js} +0 -0
  376. /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
  377. /package/{api/types/CustomCodeResponse.js → dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js} +0 -0
  378. /package/dist/api/resources/{collections/resources/items/types/ItemsPublishItemResponse.js → pages/types/UpdateStaticContentResponse.js} +0 -0
  379. /package/dist/api/resources/products/client/requests/{ProductsUpdateRequest.js → ProductSkuUpdate.js} +0 -0
  380. /package/dist/api/{resources/products/types/ProductSkuCreateProduct.js → types/CustomCodeHostedResponse.js} +0 -0
  381. /package/dist/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/CustomCodeInlineResponse.js} +0 -0
  382. /package/dist/api/{resources/products/types/ProductSkuCreateSku.js → types/Locale.js} +0 -0
  383. /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/Locales.js} +0 -0
  384. /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Sites.js} +0 -0
  385. /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
@@ -82,7 +82,7 @@ class AccessGroups {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "webflow-api",
85
- "X-Fern-SDK-Version": "v2.2.1",
85
+ "X-Fern-SDK-Version": "2.3.2",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -70,7 +70,7 @@ class Assets {
70
70
  Authorization: yield this._getAuthorizationHeader(),
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "webflow-api",
73
- "X-Fern-SDK-Version": "v2.2.1",
73
+ "X-Fern-SDK-Version": "2.3.2",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -146,7 +146,7 @@ class Assets {
146
146
  Authorization: yield this._getAuthorizationHeader(),
147
147
  "X-Fern-Language": "JavaScript",
148
148
  "X-Fern-SDK-Name": "webflow-api",
149
- "X-Fern-SDK-Version": "v2.2.1",
149
+ "X-Fern-SDK-Version": "2.3.2",
150
150
  "X-Fern-Runtime": core.RUNTIME.type,
151
151
  "X-Fern-Runtime-Version": core.RUNTIME.version,
152
152
  },
@@ -219,7 +219,7 @@ class Assets {
219
219
  Authorization: yield this._getAuthorizationHeader(),
220
220
  "X-Fern-Language": "JavaScript",
221
221
  "X-Fern-SDK-Name": "webflow-api",
222
- "X-Fern-SDK-Version": "v2.2.1",
222
+ "X-Fern-SDK-Version": "2.3.2",
223
223
  "X-Fern-Runtime": core.RUNTIME.type,
224
224
  "X-Fern-Runtime-Version": core.RUNTIME.version,
225
225
  },
@@ -291,7 +291,7 @@ class Assets {
291
291
  Authorization: yield this._getAuthorizationHeader(),
292
292
  "X-Fern-Language": "JavaScript",
293
293
  "X-Fern-SDK-Name": "webflow-api",
294
- "X-Fern-SDK-Version": "v2.2.1",
294
+ "X-Fern-SDK-Version": "2.3.2",
295
295
  "X-Fern-Runtime": core.RUNTIME.type,
296
296
  "X-Fern-Runtime-Version": core.RUNTIME.version,
297
297
  },
@@ -359,7 +359,7 @@ class Assets {
359
359
  Authorization: yield this._getAuthorizationHeader(),
360
360
  "X-Fern-Language": "JavaScript",
361
361
  "X-Fern-SDK-Name": "webflow-api",
362
- "X-Fern-SDK-Version": "v2.2.1",
362
+ "X-Fern-SDK-Version": "2.3.2",
363
363
  "X-Fern-Runtime": core.RUNTIME.type,
364
364
  "X-Fern-Runtime-Version": core.RUNTIME.version,
365
365
  },
@@ -432,7 +432,7 @@ class Assets {
432
432
  Authorization: yield this._getAuthorizationHeader(),
433
433
  "X-Fern-Language": "JavaScript",
434
434
  "X-Fern-SDK-Name": "webflow-api",
435
- "X-Fern-SDK-Version": "v2.2.1",
435
+ "X-Fern-SDK-Version": "2.3.2",
436
436
  "X-Fern-Runtime": core.RUNTIME.type,
437
437
  "X-Fern-Runtime-Version": core.RUNTIME.version,
438
438
  },
@@ -507,7 +507,7 @@ class Assets {
507
507
  Authorization: yield this._getAuthorizationHeader(),
508
508
  "X-Fern-Language": "JavaScript",
509
509
  "X-Fern-SDK-Name": "webflow-api",
510
- "X-Fern-SDK-Version": "v2.2.1",
510
+ "X-Fern-SDK-Version": "2.3.2",
511
511
  "X-Fern-Runtime": core.RUNTIME.type,
512
512
  "X-Fern-Runtime-Version": core.RUNTIME.version,
513
513
  },
@@ -580,7 +580,7 @@ class Assets {
580
580
  Authorization: yield this._getAuthorizationHeader(),
581
581
  "X-Fern-Language": "JavaScript",
582
582
  "X-Fern-SDK-Name": "webflow-api",
583
- "X-Fern-SDK-Version": "v2.2.1",
583
+ "X-Fern-SDK-Version": "2.3.2",
584
584
  "X-Fern-Runtime": core.RUNTIME.type,
585
585
  "X-Fern-Runtime-Version": core.RUNTIME.version,
586
586
  },
@@ -72,7 +72,7 @@ class Collections {
72
72
  Authorization: yield this._getAuthorizationHeader(),
73
73
  "X-Fern-Language": "JavaScript",
74
74
  "X-Fern-SDK-Name": "webflow-api",
75
- "X-Fern-SDK-Version": "v2.2.1",
75
+ "X-Fern-SDK-Version": "2.3.2",
76
76
  "X-Fern-Runtime": core.RUNTIME.type,
77
77
  "X-Fern-Runtime-Version": core.RUNTIME.version,
78
78
  },
@@ -148,7 +148,7 @@ class Collections {
148
148
  Authorization: yield this._getAuthorizationHeader(),
149
149
  "X-Fern-Language": "JavaScript",
150
150
  "X-Fern-SDK-Name": "webflow-api",
151
- "X-Fern-SDK-Version": "v2.2.1",
151
+ "X-Fern-SDK-Version": "2.3.2",
152
152
  "X-Fern-Runtime": core.RUNTIME.type,
153
153
  "X-Fern-Runtime-Version": core.RUNTIME.version,
154
154
  },
@@ -221,7 +221,7 @@ class Collections {
221
221
  Authorization: yield this._getAuthorizationHeader(),
222
222
  "X-Fern-Language": "JavaScript",
223
223
  "X-Fern-SDK-Name": "webflow-api",
224
- "X-Fern-SDK-Version": "v2.2.1",
224
+ "X-Fern-SDK-Version": "2.3.2",
225
225
  "X-Fern-Runtime": core.RUNTIME.type,
226
226
  "X-Fern-Runtime-Version": core.RUNTIME.version,
227
227
  },
@@ -293,7 +293,7 @@ class Collections {
293
293
  Authorization: yield this._getAuthorizationHeader(),
294
294
  "X-Fern-Language": "JavaScript",
295
295
  "X-Fern-SDK-Name": "webflow-api",
296
- "X-Fern-SDK-Version": "v2.2.1",
296
+ "X-Fern-SDK-Version": "2.3.2",
297
297
  "X-Fern-Runtime": core.RUNTIME.type,
298
298
  "X-Fern-Runtime-Version": core.RUNTIME.version,
299
299
  },
@@ -359,7 +359,7 @@ class Collections {
359
359
  Authorization: yield this._getAuthorizationHeader(),
360
360
  "X-Fern-Language": "JavaScript",
361
361
  "X-Fern-SDK-Name": "webflow-api",
362
- "X-Fern-SDK-Version": "v2.2.1",
362
+ "X-Fern-SDK-Version": "2.3.2",
363
363
  "X-Fern-Runtime": core.RUNTIME.type,
364
364
  "X-Fern-Runtime-Version": core.RUNTIME.version,
365
365
  },
@@ -75,7 +75,7 @@ class Fields {
75
75
  Authorization: yield this._getAuthorizationHeader(),
76
76
  "X-Fern-Language": "JavaScript",
77
77
  "X-Fern-SDK-Name": "webflow-api",
78
- "X-Fern-SDK-Version": "v2.2.1",
78
+ "X-Fern-SDK-Version": "2.3.2",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -152,7 +152,7 @@ class Fields {
152
152
  Authorization: yield this._getAuthorizationHeader(),
153
153
  "X-Fern-Language": "JavaScript",
154
154
  "X-Fern-SDK-Name": "webflow-api",
155
- "X-Fern-SDK-Version": "v2.2.1",
155
+ "X-Fern-SDK-Version": "2.3.2",
156
156
  "X-Fern-Runtime": core.RUNTIME.type,
157
157
  "X-Fern-Runtime-Version": core.RUNTIME.version,
158
158
  },
@@ -53,6 +53,18 @@ export declare class Items {
53
53
  * })
54
54
  */
55
55
  createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
56
+ /**
57
+ * List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
58
+ * @throws {@link Webflow.BadRequestError}
59
+ * @throws {@link Webflow.UnauthorizedError}
60
+ * @throws {@link Webflow.NotFoundError}
61
+ * @throws {@link Webflow.TooManyRequestsError}
62
+ * @throws {@link Webflow.InternalServerError}
63
+ *
64
+ * @example
65
+ * await webflow.collections.items.listItemsLive("collection_id", {})
66
+ */
67
+ listItemsLive(collectionId: string, request?: Webflow.collections.ItemsListItemsLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
56
68
  /**
57
69
  * Create live Item in a Collection. This Item will be published to the live site. </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`
58
70
  * @throws {@link Webflow.BadRequestError}
@@ -88,7 +100,6 @@ export declare class Items {
88
100
  * @example
89
101
  * await webflow.collections.items.createItemForMultipleLocales("collection_id", {
90
102
  * id: "580e64008c9a982ac9b8b754",
91
- * lastPublished: "2023-03-17T18:47:35.560Z",
92
103
  * lastUpdated: "2023-03-17T18:47:35.560Z",
93
104
  * createdOn: "2023-03-17T18:47:35.560Z",
94
105
  * fieldData: {
@@ -195,6 +206,6 @@ export declare class Items {
195
206
  * itemIds: ["itemIds"]
196
207
  * })
197
208
  */
198
- publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.collections.ItemsPublishItemResponse>;
209
+ publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): Promise<void>;
199
210
  protected _getAuthorizationHeader(): Promise<string>;
200
211
  }
@@ -86,7 +86,7 @@ class Items {
86
86
  Authorization: yield this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "webflow-api",
89
- "X-Fern-SDK-Version": "v2.2.1",
89
+ "X-Fern-SDK-Version": "2.3.2",
90
90
  "X-Fern-Runtime": core.RUNTIME.type,
91
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
92
  },
@@ -171,7 +171,7 @@ class Items {
171
171
  Authorization: yield this._getAuthorizationHeader(),
172
172
  "X-Fern-Language": "JavaScript",
173
173
  "X-Fern-SDK-Name": "webflow-api",
174
- "X-Fern-SDK-Version": "v2.2.1",
174
+ "X-Fern-SDK-Version": "2.3.2",
175
175
  "X-Fern-Runtime": core.RUNTIME.type,
176
176
  "X-Fern-Runtime-Version": core.RUNTIME.version,
177
177
  },
@@ -217,6 +217,95 @@ class Items {
217
217
  }
218
218
  });
219
219
  }
220
+ /**
221
+ * List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
222
+ * @throws {@link Webflow.BadRequestError}
223
+ * @throws {@link Webflow.UnauthorizedError}
224
+ * @throws {@link Webflow.NotFoundError}
225
+ * @throws {@link Webflow.TooManyRequestsError}
226
+ * @throws {@link Webflow.InternalServerError}
227
+ *
228
+ * @example
229
+ * await webflow.collections.items.listItemsLive("collection_id", {})
230
+ */
231
+ listItemsLive(collectionId, request = {}, requestOptions) {
232
+ var _a;
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ const { cmsLocaleIds, offset, limit } = request;
235
+ const _queryParams = {};
236
+ if (cmsLocaleIds != null) {
237
+ if (Array.isArray(cmsLocaleIds)) {
238
+ _queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
239
+ }
240
+ else {
241
+ _queryParams["cmsLocaleIds"] = cmsLocaleIds;
242
+ }
243
+ }
244
+ if (offset != null) {
245
+ _queryParams["offset"] = offset.toString();
246
+ }
247
+ if (limit != null) {
248
+ _queryParams["limit"] = limit.toString();
249
+ }
250
+ const _response = yield core.fetcher({
251
+ 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/live`),
252
+ method: "GET",
253
+ headers: {
254
+ Authorization: yield this._getAuthorizationHeader(),
255
+ "X-Fern-Language": "JavaScript",
256
+ "X-Fern-SDK-Name": "webflow-api",
257
+ "X-Fern-SDK-Version": "2.3.2",
258
+ "X-Fern-Runtime": core.RUNTIME.type,
259
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
260
+ },
261
+ contentType: "application/json",
262
+ queryParameters: _queryParams,
263
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
265
+ });
266
+ if (_response.ok) {
267
+ return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
268
+ unrecognizedObjectKeys: "passthrough",
269
+ allowUnrecognizedUnionMembers: true,
270
+ allowUnrecognizedEnumValues: true,
271
+ skipValidation: true,
272
+ breadcrumbsPrefix: ["response"],
273
+ });
274
+ }
275
+ if (_response.error.reason === "status-code") {
276
+ switch (_response.error.statusCode) {
277
+ case 400:
278
+ throw new Webflow.BadRequestError(_response.error.body);
279
+ case 401:
280
+ throw new Webflow.UnauthorizedError(_response.error.body);
281
+ case 404:
282
+ throw new Webflow.NotFoundError(_response.error.body);
283
+ case 429:
284
+ throw new Webflow.TooManyRequestsError(_response.error.body);
285
+ case 500:
286
+ throw new Webflow.InternalServerError(_response.error.body);
287
+ default:
288
+ throw new errors.WebflowError({
289
+ statusCode: _response.error.statusCode,
290
+ body: _response.error.body,
291
+ });
292
+ }
293
+ }
294
+ switch (_response.error.reason) {
295
+ case "non-json":
296
+ throw new errors.WebflowError({
297
+ statusCode: _response.error.statusCode,
298
+ body: _response.error.rawBody,
299
+ });
300
+ case "timeout":
301
+ throw new errors.WebflowTimeoutError();
302
+ case "unknown":
303
+ throw new errors.WebflowError({
304
+ message: _response.error.errorMessage,
305
+ });
306
+ }
307
+ });
308
+ }
220
309
  /**
221
310
  * Create live Item in a Collection. This Item will be published to the live site. </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`
222
311
  * @throws {@link Webflow.BadRequestError}
@@ -250,7 +339,7 @@ class Items {
250
339
  Authorization: yield this._getAuthorizationHeader(),
251
340
  "X-Fern-Language": "JavaScript",
252
341
  "X-Fern-SDK-Name": "webflow-api",
253
- "X-Fern-SDK-Version": "v2.2.1",
342
+ "X-Fern-SDK-Version": "2.3.2",
254
343
  "X-Fern-Runtime": core.RUNTIME.type,
255
344
  "X-Fern-Runtime-Version": core.RUNTIME.version,
256
345
  },
@@ -307,7 +396,6 @@ class Items {
307
396
  * @example
308
397
  * await webflow.collections.items.createItemForMultipleLocales("collection_id", {
309
398
  * id: "580e64008c9a982ac9b8b754",
310
- * lastPublished: "2023-03-17T18:47:35.560Z",
311
399
  * lastUpdated: "2023-03-17T18:47:35.560Z",
312
400
  * createdOn: "2023-03-17T18:47:35.560Z",
313
401
  * fieldData: {
@@ -326,7 +414,7 @@ class Items {
326
414
  Authorization: yield this._getAuthorizationHeader(),
327
415
  "X-Fern-Language": "JavaScript",
328
416
  "X-Fern-SDK-Name": "webflow-api",
329
- "X-Fern-SDK-Version": "v2.2.1",
417
+ "X-Fern-SDK-Version": "2.3.2",
330
418
  "X-Fern-Runtime": core.RUNTIME.type,
331
419
  "X-Fern-Runtime-Version": core.RUNTIME.version,
332
420
  },
@@ -400,7 +488,7 @@ class Items {
400
488
  Authorization: yield this._getAuthorizationHeader(),
401
489
  "X-Fern-Language": "JavaScript",
402
490
  "X-Fern-SDK-Name": "webflow-api",
403
- "X-Fern-SDK-Version": "v2.2.1",
491
+ "X-Fern-SDK-Version": "2.3.2",
404
492
  "X-Fern-Runtime": core.RUNTIME.type,
405
493
  "X-Fern-Runtime-Version": core.RUNTIME.version,
406
494
  },
@@ -483,7 +571,7 @@ class Items {
483
571
  Authorization: yield this._getAuthorizationHeader(),
484
572
  "X-Fern-Language": "JavaScript",
485
573
  "X-Fern-SDK-Name": "webflow-api",
486
- "X-Fern-SDK-Version": "v2.2.1",
574
+ "X-Fern-SDK-Version": "2.3.2",
487
575
  "X-Fern-Runtime": core.RUNTIME.type,
488
576
  "X-Fern-Runtime-Version": core.RUNTIME.version,
489
577
  },
@@ -562,7 +650,7 @@ class Items {
562
650
  Authorization: yield this._getAuthorizationHeader(),
563
651
  "X-Fern-Language": "JavaScript",
564
652
  "X-Fern-SDK-Name": "webflow-api",
565
- "X-Fern-SDK-Version": "v2.2.1",
653
+ "X-Fern-SDK-Version": "2.3.2",
566
654
  "X-Fern-Runtime": core.RUNTIME.type,
567
655
  "X-Fern-Runtime-Version": core.RUNTIME.version,
568
656
  },
@@ -635,7 +723,7 @@ class Items {
635
723
  Authorization: yield this._getAuthorizationHeader(),
636
724
  "X-Fern-Language": "JavaScript",
637
725
  "X-Fern-SDK-Name": "webflow-api",
638
- "X-Fern-SDK-Version": "v2.2.1",
726
+ "X-Fern-SDK-Version": "2.3.2",
639
727
  "X-Fern-Runtime": core.RUNTIME.type,
640
728
  "X-Fern-Runtime-Version": core.RUNTIME.version,
641
729
  },
@@ -713,7 +801,7 @@ class Items {
713
801
  Authorization: yield this._getAuthorizationHeader(),
714
802
  "X-Fern-Language": "JavaScript",
715
803
  "X-Fern-SDK-Name": "webflow-api",
716
- "X-Fern-SDK-Version": "v2.2.1",
804
+ "X-Fern-SDK-Version": "2.3.2",
717
805
  "X-Fern-Runtime": core.RUNTIME.type,
718
806
  "X-Fern-Runtime-Version": core.RUNTIME.version,
719
807
  },
@@ -788,7 +876,7 @@ class Items {
788
876
  Authorization: yield this._getAuthorizationHeader(),
789
877
  "X-Fern-Language": "JavaScript",
790
878
  "X-Fern-SDK-Name": "webflow-api",
791
- "X-Fern-SDK-Version": "v2.2.1",
879
+ "X-Fern-SDK-Version": "2.3.2",
792
880
  "X-Fern-Runtime": core.RUNTIME.type,
793
881
  "X-Fern-Runtime-Version": core.RUNTIME.version,
794
882
  },
@@ -800,13 +888,7 @@ class Items {
800
888
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
801
889
  });
802
890
  if (_response.ok) {
803
- return yield serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
804
- unrecognizedObjectKeys: "passthrough",
805
- allowUnrecognizedUnionMembers: true,
806
- allowUnrecognizedEnumValues: true,
807
- skipValidation: true,
808
- breadcrumbsPrefix: ["response"],
809
- });
891
+ return;
810
892
  }
811
893
  if (_response.error.reason === "status-code") {
812
894
  switch (_response.error.statusCode) {
@@ -6,7 +6,6 @@ import * as Webflow from "../../../../../..";
6
6
  * @example
7
7
  * {
8
8
  * id: "580e64008c9a982ac9b8b754",
9
- * lastPublished: "2023-03-17T18:47:35.560Z",
10
9
  * lastUpdated: "2023-03-17T18:47:35.560Z",
11
10
  * createdOn: "2023-03-17T18:47:35.560Z",
12
11
  * fieldData: {
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ItemsListItemsLiveRequest {
9
+ /**
10
+ * Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
11
+ */
12
+ cmsLocaleIds?: string | string[];
13
+ /**
14
+ * Offset used for pagination if the results have more than limit records
15
+ */
16
+ offset?: number;
17
+ /**
18
+ * Maximum number of records to be returned (max limit: 100)
19
+ */
20
+ limit?: number;
21
+ }
@@ -1,4 +1,5 @@
1
1
  export { ItemsListItemsRequest } from "./ItemsListItemsRequest";
2
+ export { ItemsListItemsLiveRequest } from "./ItemsListItemsLiveRequest";
2
3
  export { BulkCollectionItem } from "./BulkCollectionItem";
3
4
  export { ItemsGetItemRequest } from "./ItemsGetItemRequest";
4
5
  export { ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
@@ -1,2 +1 @@
1
1
  export * from "./BulkCollectionItemFieldData";
2
- export * from "./ItemsPublishItemResponse";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BulkCollectionItemFieldData"), exports);
18
- __exportStar(require("./ItemsPublishItemResponse"), exports);
@@ -74,7 +74,7 @@ class Ecommerce {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "webflow-api",
77
- "X-Fern-SDK-Version": "v2.2.1",
77
+ "X-Fern-SDK-Version": "2.3.2",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -80,7 +80,7 @@ class Forms {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "webflow-api",
83
- "X-Fern-SDK-Version": "v2.2.1",
83
+ "X-Fern-SDK-Version": "2.3.2",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -158,7 +158,7 @@ class Forms {
158
158
  Authorization: yield this._getAuthorizationHeader(),
159
159
  "X-Fern-Language": "JavaScript",
160
160
  "X-Fern-SDK-Name": "webflow-api",
161
- "X-Fern-SDK-Version": "v2.2.1",
161
+ "X-Fern-SDK-Version": "2.3.2",
162
162
  "X-Fern-Runtime": core.RUNTIME.type,
163
163
  "X-Fern-Runtime-Version": core.RUNTIME.version,
164
164
  },
@@ -233,7 +233,7 @@ class Forms {
233
233
  Authorization: yield this._getAuthorizationHeader(),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "webflow-api",
236
- "X-Fern-SDK-Version": "v2.2.1",
236
+ "X-Fern-SDK-Version": "2.3.2",
237
237
  "X-Fern-Runtime": core.RUNTIME.type,
238
238
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
239
  },
@@ -308,7 +308,7 @@ class Forms {
308
308
  Authorization: yield this._getAuthorizationHeader(),
309
309
  "X-Fern-Language": "JavaScript",
310
310
  "X-Fern-SDK-Name": "webflow-api",
311
- "X-Fern-SDK-Version": "v2.2.1",
311
+ "X-Fern-SDK-Version": "2.3.2",
312
312
  "X-Fern-Runtime": core.RUNTIME.type,
313
313
  "X-Fern-Runtime-Version": core.RUNTIME.version,
314
314
  },
@@ -384,7 +384,7 @@ class Forms {
384
384
  Authorization: yield this._getAuthorizationHeader(),
385
385
  "X-Fern-Language": "JavaScript",
386
386
  "X-Fern-SDK-Name": "webflow-api",
387
- "X-Fern-SDK-Version": "v2.2.1",
387
+ "X-Fern-SDK-Version": "2.3.2",
388
388
  "X-Fern-Runtime": core.RUNTIME.type,
389
389
  "X-Fern-Runtime-Version": core.RUNTIME.version,
390
390
  },
@@ -74,7 +74,7 @@ class Inventory {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "webflow-api",
77
- "X-Fern-SDK-Version": "v2.2.1",
77
+ "X-Fern-SDK-Version": "2.3.2",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -158,7 +158,7 @@ class Inventory {
158
158
  Authorization: yield this._getAuthorizationHeader(),
159
159
  "X-Fern-Language": "JavaScript",
160
160
  "X-Fern-SDK-Name": "webflow-api",
161
- "X-Fern-SDK-Version": "v2.2.1",
161
+ "X-Fern-SDK-Version": "2.3.2",
162
162
  "X-Fern-Runtime": core.RUNTIME.type,
163
163
  "X-Fern-Runtime-Version": core.RUNTIME.version,
164
164
  },
@@ -85,7 +85,7 @@ class Orders {
85
85
  Authorization: yield this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "webflow-api",
88
- "X-Fern-SDK-Version": "v2.2.1",
88
+ "X-Fern-SDK-Version": "2.3.2",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -166,7 +166,7 @@ class Orders {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "webflow-api",
169
- "X-Fern-SDK-Version": "v2.2.1",
169
+ "X-Fern-SDK-Version": "2.3.2",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -251,7 +251,7 @@ class Orders {
251
251
  Authorization: yield this._getAuthorizationHeader(),
252
252
  "X-Fern-Language": "JavaScript",
253
253
  "X-Fern-SDK-Name": "webflow-api",
254
- "X-Fern-SDK-Version": "v2.2.1",
254
+ "X-Fern-SDK-Version": "2.3.2",
255
255
  "X-Fern-Runtime": core.RUNTIME.type,
256
256
  "X-Fern-Runtime-Version": core.RUNTIME.version,
257
257
  },
@@ -332,7 +332,7 @@ class Orders {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "webflow-api",
335
- "X-Fern-SDK-Version": "v2.2.1",
335
+ "X-Fern-SDK-Version": "2.3.2",
336
336
  "X-Fern-Runtime": core.RUNTIME.type,
337
337
  "X-Fern-Runtime-Version": core.RUNTIME.version,
338
338
  },
@@ -415,7 +415,7 @@ class Orders {
415
415
  Authorization: yield this._getAuthorizationHeader(),
416
416
  "X-Fern-Language": "JavaScript",
417
417
  "X-Fern-SDK-Name": "webflow-api",
418
- "X-Fern-SDK-Version": "v2.2.1",
418
+ "X-Fern-SDK-Version": "2.3.2",
419
419
  "X-Fern-Runtime": core.RUNTIME.type,
420
420
  "X-Fern-Runtime-Version": core.RUNTIME.version,
421
421
  },
@@ -496,7 +496,7 @@ class Orders {
496
496
  Authorization: yield this._getAuthorizationHeader(),
497
497
  "X-Fern-Language": "JavaScript",
498
498
  "X-Fern-SDK-Name": "webflow-api",
499
- "X-Fern-SDK-Version": "v2.2.1",
499
+ "X-Fern-SDK-Version": "2.3.2",
500
500
  "X-Fern-Runtime": core.RUNTIME.type,
501
501
  "X-Fern-Runtime-Version": core.RUNTIME.version,
502
502
  },
@@ -53,27 +53,27 @@ export declare class Pages {
53
53
  * @example
54
54
  * await webflow.pages.updatePageSettings("page_id", {
55
55
  * body: {
56
- * id: "6390c49774a71f0e3c1a08ee",
57
- * siteId: "6390c49674a71f84b51a08d8",
58
- * title: "Blog Categories Template",
59
- * slug: "detail_blog-category",
56
+ * id: "6596da6045e56dee495bcbba",
57
+ * siteId: "6258612d1ee792848f805dcf",
58
+ * title: "Guide to the Galaxy",
59
+ * slug: "guide-to-the-galaxy",
60
60
  * parentId: "6419db964a9c435aa3af6251",
61
61
  * collectionId: "6390c49774a71f12831a08e3",
62
- * createdOn: new Date("2018-10-14T21:55:49.000Z"),
63
- * lastUpdated: new Date("2022-12-07T16:51:37.000Z"),
62
+ * createdOn: new Date("2024-03-11T10:42:00.000Z"),
63
+ * lastUpdated: new Date("2024-03-11T10:42:42.000Z"),
64
64
  * archived: false,
65
65
  * draft: false,
66
66
  * canBranch: true,
67
67
  * isMembersOnly: false,
68
68
  * seo: {
69
- * title: "CoffeeStyle eCommerce - Webflow HTML website template",
70
- * description: "This Webflow template offers a quick start into an e-commerce / memberships site"
69
+ * title: "The Ultimate Hitchhiker's Guide to the Galaxy",
70
+ * description: "Everything you need to know about the galaxy, from avoiding Vogon poetry to the importance of towels."
71
71
  * },
72
72
  * openGraph: {
73
- * title: "CoffeeStyle eCommerce - Webflow HTML website template",
74
- * titleCopied: true,
75
- * description: "This Webflow template offers a quick start into an e-commerce / memberships site",
76
- * descriptionCopied: true
73
+ * title: "Explore the Cosmos with The Ultimate Guide",
74
+ * titleCopied: false,
75
+ * description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
76
+ * descriptionCopied: false
77
77
  * }
78
78
  * }
79
79
  * })
@@ -105,12 +105,21 @@ export declare class Pages {
105
105
  * await webflow.pages.updateStaticContent("page_id", {
106
106
  * locale: "locale",
107
107
  * nodes: [{
108
- * nodeId: "guide-title-id",
108
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
109
+ * text: "<h1>The Hitchhiker's Guide to the Galaxy</h1>"
110
+ * }, {
111
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad627",
112
+ * text: "<div><h3>Don't Panic!</h3><p>Always know where your towel is.</p></div>"
113
+ * }, {
114
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629",
115
+ * text: "<img alt='Marvin, the Paranoid Android' src='path/to/image/with/assetId/659595234426a9fcbad57043'/>"
116
+ * }, {
117
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
109
118
  * text: "<h1>Hello world</h1>"
110
119
  * }]
111
120
  * })
112
121
  */
113
- updateStaticContent(pageId: string, request: Webflow.DomWrite, requestOptions?: Pages.RequestOptions): Promise<Webflow.Dom>;
122
+ updateStaticContent(pageId: string, request: Webflow.DomWrite, requestOptions?: Pages.RequestOptions): Promise<Webflow.UpdateStaticContentResponse>;
114
123
  protected _scripts: Scripts | undefined;
115
124
  get scripts(): Scripts;
116
125
  protected _getAuthorizationHeader(): Promise<string>;