webflow-api 2.0.0 → 2.1.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 (612) hide show
  1. package/README.md +3 -0
  2. package/api/resources/accessGroups/client/Client.d.ts +1 -3
  3. package/api/resources/accessGroups/client/Client.js +5 -5
  4. package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
  5. package/api/resources/assets/client/Client.d.ts +21 -7
  6. package/api/resources/assets/client/Client.js +110 -21
  7. package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
  8. package/api/resources/assets/client/requests/index.d.ts +1 -0
  9. package/api/resources/collections/client/Client.d.ts +5 -5
  10. package/api/resources/collections/client/Client.js +25 -15
  11. package/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
  12. package/api/resources/collections/resources/fields/client/Client.js +19 -11
  13. package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
  14. package/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
  15. package/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
  16. package/api/resources/collections/resources/fields/index.d.ts +1 -0
  17. package/api/resources/collections/resources/fields/index.js +1 -0
  18. package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
  19. package/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
  20. package/api/resources/collections/resources/fields/types/index.d.ts +1 -0
  21. package/api/resources/collections/resources/fields/types/index.js +17 -0
  22. package/api/resources/collections/resources/index.d.ts +2 -1
  23. package/api/resources/collections/resources/index.js +3 -2
  24. package/api/resources/collections/resources/items/client/Client.d.ts +80 -16
  25. package/api/resources/collections/resources/items/client/Client.js +300 -29
  26. package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
  27. package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
  28. package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
  29. package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
  30. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
  31. package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
  32. package/api/resources/collections/resources/items/client/requests/index.d.ts +2 -0
  33. package/api/resources/ecommerce/client/Client.d.ts +1 -1
  34. package/api/resources/ecommerce/client/Client.js +5 -3
  35. package/api/resources/forms/client/Client.d.ts +6 -6
  36. package/api/resources/forms/client/Client.js +35 -16
  37. package/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
  38. package/api/resources/forms/client/requests/FormsListRequest.js +5 -0
  39. package/api/resources/forms/client/requests/index.d.ts +1 -0
  40. package/api/resources/index.d.ts +3 -1
  41. package/api/resources/index.js +4 -2
  42. package/api/resources/inventory/client/Client.d.ts +2 -2
  43. package/api/resources/inventory/client/Client.js +10 -6
  44. package/api/resources/orders/client/Client.d.ts +6 -10
  45. package/api/resources/orders/client/Client.js +30 -22
  46. package/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
  47. package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
  48. package/api/resources/pages/client/Client.d.ts +73 -4
  49. package/api/resources/pages/client/Client.js +312 -8
  50. package/api/resources/pages/client/index.d.ts +1 -1
  51. package/api/resources/pages/client/index.js +15 -0
  52. package/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
  53. package/api/resources/pages/client/requests/DomWrite.js +5 -0
  54. package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
  55. package/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
  56. package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
  57. package/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
  58. package/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
  59. package/api/resources/pages/client/requests/PagesListRequest.js +5 -0
  60. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
  61. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
  62. package/api/resources/pages/client/requests/index.d.ts +5 -0
  63. package/api/resources/pages/client/requests/index.js +2 -0
  64. package/api/resources/pages/index.d.ts +1 -0
  65. package/api/resources/pages/index.js +1 -0
  66. package/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
  67. package/api/resources/pages/resources/scripts/client/Client.js +23 -9
  68. package/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
  69. package/api/resources/pages/types/DomWriteNodesItem.js +5 -0
  70. package/api/resources/pages/types/index.d.ts +1 -0
  71. package/api/resources/pages/types/index.js +17 -0
  72. package/api/resources/products/client/Client.d.ts +54 -74
  73. package/api/resources/products/client/Client.js +79 -87
  74. package/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
  75. package/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
  76. package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
  77. package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
  78. package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
  79. package/api/resources/products/client/requests/index.d.ts +1 -1
  80. package/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
  81. package/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
  82. package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
  83. package/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
  84. package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
  85. package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
  86. package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
  87. package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
  88. package/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
  89. package/api/resources/products/types/ProductSkuCreateSku.js +5 -0
  90. package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
  91. package/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
  92. package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
  93. package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
  94. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
  95. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
  96. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
  97. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
  98. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
  99. package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
  100. package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
  101. package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
  102. package/api/resources/products/types/index.d.ts +11 -0
  103. package/api/resources/products/types/index.js +11 -0
  104. package/api/resources/scripts/client/Client.d.ts +9 -9
  105. package/api/resources/scripts/client/Client.js +21 -15
  106. package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
  107. package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
  108. package/api/resources/sites/client/Client.d.ts +6 -3
  109. package/api/resources/sites/client/Client.js +26 -13
  110. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
  111. package/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
  112. package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
  113. package/api/resources/sites/resources/activityLogs/client/index.js +17 -0
  114. package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
  115. package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
  116. package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
  117. package/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
  118. package/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
  119. package/api/resources/sites/resources/activityLogs/index.js +17 -0
  120. package/api/resources/sites/resources/index.d.ts +2 -0
  121. package/api/resources/sites/resources/index.js +3 -1
  122. package/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
  123. package/api/resources/sites/resources/scripts/client/Client.js +28 -12
  124. package/api/resources/token/client/Client.js +8 -4
  125. package/api/resources/users/client/Client.d.ts +13 -20
  126. package/api/resources/users/client/Client.js +34 -31
  127. package/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
  128. package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
  129. package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
  130. package/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
  131. package/api/resources/users/client/requests/index.d.ts +1 -0
  132. package/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
  133. package/api/resources/users/types/UsersUpdateRequestData.js +5 -0
  134. package/api/resources/users/types/index.d.ts +1 -0
  135. package/api/resources/users/types/index.js +1 -0
  136. package/api/resources/webhooks/client/Client.d.ts +4 -4
  137. package/api/resources/webhooks/client/Client.js +20 -12
  138. package/api/types/AssetFolder.d.ts +3 -0
  139. package/api/types/AssetFolderList.d.ts +2 -1
  140. package/api/types/CollectionItem.d.ts +2 -0
  141. package/api/types/Dom.d.ts +13 -0
  142. package/api/types/Dom.js +5 -0
  143. package/api/types/ImageNode.d.ts +10 -0
  144. package/api/types/ImageNode.js +5 -0
  145. package/api/types/InvalidScopes.d.ts +10 -0
  146. package/api/types/InvalidScopes.js +5 -0
  147. package/api/types/Node.d.ts +15 -0
  148. package/api/types/Node.js +5 -0
  149. package/api/types/NodeType.d.ts +8 -0
  150. package/api/types/NodeType.js +10 -0
  151. package/api/types/NotEnterprisePlanSite.d.ts +14 -0
  152. package/api/types/NotEnterprisePlanSite.js +5 -0
  153. package/api/types/OauthScope.d.ts +5 -1
  154. package/api/types/OauthScope.js +1 -0
  155. package/api/types/ProductAndSkUs.d.ts +1 -0
  156. package/api/types/ProductFieldData.d.ts +17 -3
  157. package/api/types/ProductFieldDataEcProductType.d.ts +13 -0
  158. package/api/types/ProductFieldDataEcProductType.js +12 -0
  159. package/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
  160. package/api/types/ProductFieldDataTaxCategory.js +37 -0
  161. package/api/types/PublishStatus.d.ts +1 -1
  162. package/api/types/SiteActivityLogItem.d.ts +1 -1
  163. package/api/types/SiteActivityLogItemUser.d.ts +7 -0
  164. package/api/types/SiteActivityLogItemUser.js +5 -0
  165. package/api/types/Sku.d.ts +1 -0
  166. package/api/types/SkuFieldData.d.ts +15 -4
  167. package/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
  168. package/api/types/SkuFieldDataCompareAtPrice.js +5 -0
  169. package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
  170. package/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
  171. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
  172. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
  173. package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
  174. package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
  175. package/api/types/SkuPropertyList.d.ts +6 -6
  176. package/api/types/SkuPropertyListEnumItem.d.ts +3 -3
  177. package/api/types/TextNode.d.ts +10 -0
  178. package/api/types/TextNode.js +5 -0
  179. package/api/types/index.d.ts +14 -0
  180. package/api/types/index.js +14 -0
  181. package/core/fetcher/Fetcher.d.ts +1 -1
  182. package/core/fetcher/Fetcher.js +8 -1
  183. package/core/index.d.ts +1 -0
  184. package/core/index.js +1 -0
  185. package/core/runtime/index.d.ts +1 -0
  186. package/core/runtime/index.js +5 -0
  187. package/core/runtime/runtime.d.ts +8 -0
  188. package/core/runtime/runtime.js +82 -0
  189. package/dist/api/resources/accessGroups/client/Client.d.ts +1 -3
  190. package/dist/api/resources/accessGroups/client/Client.js +5 -5
  191. package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
  192. package/dist/api/resources/assets/client/Client.d.ts +21 -7
  193. package/dist/api/resources/assets/client/Client.js +110 -21
  194. package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
  195. package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.js +5 -0
  196. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  197. package/dist/api/resources/collections/client/Client.d.ts +5 -5
  198. package/dist/api/resources/collections/client/Client.js +25 -15
  199. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
  200. package/dist/api/resources/collections/resources/fields/client/Client.js +19 -11
  201. package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
  202. package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js +5 -0
  203. package/dist/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
  204. package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
  205. package/dist/api/resources/collections/resources/fields/index.d.ts +1 -0
  206. package/dist/api/resources/collections/resources/fields/index.js +1 -0
  207. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
  208. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
  209. package/dist/api/resources/collections/resources/fields/types/index.d.ts +1 -0
  210. package/dist/api/resources/collections/resources/fields/types/index.js +17 -0
  211. package/dist/api/resources/collections/resources/index.d.ts +2 -1
  212. package/dist/api/resources/collections/resources/index.js +3 -2
  213. package/dist/api/resources/collections/resources/items/client/Client.d.ts +80 -16
  214. package/dist/api/resources/collections/resources/items/client/Client.js +300 -29
  215. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
  216. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
  217. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
  218. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
  219. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
  220. package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
  221. package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +2 -0
  222. package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
  223. package/dist/api/resources/ecommerce/client/Client.js +5 -3
  224. package/dist/api/resources/forms/client/Client.d.ts +6 -6
  225. package/dist/api/resources/forms/client/Client.js +35 -16
  226. package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
  227. package/dist/api/resources/forms/client/requests/FormsListRequest.js +5 -0
  228. package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
  229. package/dist/api/resources/index.d.ts +3 -1
  230. package/dist/api/resources/index.js +4 -2
  231. package/dist/api/resources/inventory/client/Client.d.ts +2 -2
  232. package/dist/api/resources/inventory/client/Client.js +10 -6
  233. package/dist/api/resources/orders/client/Client.d.ts +6 -10
  234. package/dist/api/resources/orders/client/Client.js +30 -22
  235. package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
  236. package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
  237. package/dist/api/resources/pages/client/Client.d.ts +73 -4
  238. package/dist/api/resources/pages/client/Client.js +312 -8
  239. package/dist/api/resources/pages/client/index.d.ts +1 -1
  240. package/dist/api/resources/pages/client/index.js +15 -0
  241. package/dist/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
  242. package/dist/api/resources/pages/client/requests/DomWrite.js +5 -0
  243. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
  244. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
  245. package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
  246. package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
  247. package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
  248. package/dist/api/resources/pages/client/requests/PagesListRequest.js +5 -0
  249. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
  250. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
  251. package/dist/api/resources/pages/client/requests/index.d.ts +5 -0
  252. package/dist/api/resources/pages/client/requests/index.js +2 -0
  253. package/dist/api/resources/pages/index.d.ts +1 -0
  254. package/dist/api/resources/pages/index.js +1 -0
  255. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
  256. package/dist/api/resources/pages/resources/scripts/client/Client.js +23 -9
  257. package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
  258. package/dist/api/resources/pages/types/DomWriteNodesItem.js +5 -0
  259. package/dist/api/resources/pages/types/index.d.ts +1 -0
  260. package/dist/api/resources/pages/types/index.js +17 -0
  261. package/dist/api/resources/products/client/Client.d.ts +54 -74
  262. package/dist/api/resources/products/client/Client.js +79 -87
  263. package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
  264. package/dist/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
  265. package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
  266. package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
  267. package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
  268. package/dist/api/resources/products/client/requests/index.d.ts +1 -1
  269. package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
  270. package/dist/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
  271. package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
  272. package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
  273. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
  274. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
  275. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
  276. package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
  277. package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
  278. package/dist/api/resources/products/types/ProductSkuCreateSku.js +5 -0
  279. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
  280. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
  281. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
  282. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
  283. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
  284. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
  285. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
  286. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
  287. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
  288. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
  289. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
  290. package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
  291. package/dist/api/resources/products/types/index.d.ts +11 -0
  292. package/dist/api/resources/products/types/index.js +11 -0
  293. package/dist/api/resources/scripts/client/Client.d.ts +9 -9
  294. package/dist/api/resources/scripts/client/Client.js +21 -15
  295. package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
  296. package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
  297. package/dist/api/resources/sites/client/Client.d.ts +6 -3
  298. package/dist/api/resources/sites/client/Client.js +26 -13
  299. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
  300. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
  301. package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
  302. package/dist/api/resources/sites/resources/activityLogs/client/index.js +17 -0
  303. package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
  304. package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
  305. package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
  306. package/dist/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
  307. package/dist/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
  308. package/dist/api/resources/sites/resources/activityLogs/index.js +17 -0
  309. package/dist/api/resources/sites/resources/index.d.ts +2 -0
  310. package/dist/api/resources/sites/resources/index.js +3 -1
  311. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
  312. package/dist/api/resources/sites/resources/scripts/client/Client.js +28 -12
  313. package/dist/api/resources/token/client/Client.js +8 -4
  314. package/dist/api/resources/users/client/Client.d.ts +13 -20
  315. package/dist/api/resources/users/client/Client.js +34 -31
  316. package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
  317. package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
  318. package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
  319. package/dist/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
  320. package/dist/api/resources/users/client/requests/index.d.ts +1 -0
  321. package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
  322. package/dist/api/resources/users/types/UsersUpdateRequestData.js +5 -0
  323. package/dist/api/resources/users/types/index.d.ts +1 -0
  324. package/dist/api/resources/users/types/index.js +1 -0
  325. package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
  326. package/dist/api/resources/webhooks/client/Client.js +20 -12
  327. package/dist/api/types/AssetFolder.d.ts +3 -0
  328. package/dist/api/types/AssetFolderList.d.ts +2 -1
  329. package/dist/api/types/CollectionItem.d.ts +2 -0
  330. package/dist/api/types/Dom.d.ts +13 -0
  331. package/dist/api/types/Dom.js +5 -0
  332. package/dist/api/types/ImageNode.d.ts +10 -0
  333. package/dist/api/types/ImageNode.js +5 -0
  334. package/dist/api/types/InvalidScopes.d.ts +10 -0
  335. package/dist/api/types/InvalidScopes.js +5 -0
  336. package/dist/api/types/Node.d.ts +15 -0
  337. package/dist/api/types/Node.js +5 -0
  338. package/dist/api/types/NodeType.d.ts +8 -0
  339. package/dist/api/types/NodeType.js +10 -0
  340. package/dist/api/types/NotEnterprisePlanSite.d.ts +14 -0
  341. package/dist/api/types/NotEnterprisePlanSite.js +5 -0
  342. package/dist/api/types/OauthScope.d.ts +5 -1
  343. package/dist/api/types/OauthScope.js +1 -0
  344. package/dist/api/types/ProductAndSkUs.d.ts +1 -0
  345. package/dist/api/types/ProductFieldData.d.ts +17 -3
  346. package/dist/api/types/ProductFieldDataEcProductType.d.ts +13 -0
  347. package/dist/api/types/ProductFieldDataEcProductType.js +12 -0
  348. package/dist/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
  349. package/dist/api/types/ProductFieldDataTaxCategory.js +37 -0
  350. package/dist/api/types/PublishStatus.d.ts +1 -1
  351. package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
  352. package/dist/api/types/SiteActivityLogItemUser.d.ts +7 -0
  353. package/dist/api/types/SiteActivityLogItemUser.js +5 -0
  354. package/dist/api/types/Sku.d.ts +1 -0
  355. package/dist/api/types/SkuFieldData.d.ts +15 -4
  356. package/dist/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
  357. package/dist/api/types/SkuFieldDataCompareAtPrice.js +5 -0
  358. package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
  359. package/dist/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
  360. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
  361. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
  362. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
  363. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
  364. package/dist/api/types/SkuPropertyList.d.ts +6 -6
  365. package/dist/api/types/SkuPropertyListEnumItem.d.ts +3 -3
  366. package/dist/api/types/TextNode.d.ts +10 -0
  367. package/dist/api/types/TextNode.js +5 -0
  368. package/dist/api/types/index.d.ts +14 -0
  369. package/dist/api/types/index.js +14 -0
  370. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  371. package/dist/core/fetcher/Fetcher.js +8 -1
  372. package/dist/core/index.d.ts +1 -0
  373. package/dist/core/index.js +1 -0
  374. package/dist/core/runtime/index.d.ts +1 -0
  375. package/dist/core/runtime/index.js +5 -0
  376. package/dist/core/runtime/runtime.d.ts +8 -0
  377. package/dist/core/runtime/runtime.js +82 -0
  378. package/dist/environments.d.ts +1 -1
  379. package/dist/environments.js +1 -1
  380. package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
  381. package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
  382. package/dist/serialization/resources/assets/client/requests/index.d.ts +1 -0
  383. package/dist/serialization/resources/assets/client/requests/index.js +3 -1
  384. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
  385. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
  386. package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
  387. package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
  388. package/dist/serialization/resources/collections/resources/fields/index.d.ts +1 -0
  389. package/dist/serialization/resources/collections/resources/fields/index.js +1 -0
  390. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
  391. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
  392. package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
  393. package/dist/serialization/resources/collections/resources/fields/types/index.js +17 -0
  394. package/dist/serialization/resources/collections/resources/index.d.ts +2 -1
  395. package/dist/serialization/resources/collections/resources/index.js +3 -2
  396. package/dist/serialization/resources/index.d.ts +3 -0
  397. package/dist/serialization/resources/index.js +4 -1
  398. package/dist/serialization/resources/pages/client/index.d.ts +1 -0
  399. package/dist/serialization/resources/pages/client/index.js +17 -0
  400. package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
  401. package/dist/serialization/resources/pages/client/requests/DomWrite.js +42 -0
  402. package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
  403. package/dist/serialization/resources/pages/client/requests/index.js +5 -0
  404. package/dist/serialization/resources/pages/index.d.ts +2 -0
  405. package/dist/serialization/resources/pages/index.js +18 -0
  406. package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
  407. package/dist/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
  408. package/dist/serialization/resources/pages/types/index.d.ts +1 -0
  409. package/dist/serialization/resources/pages/types/index.js +17 -0
  410. package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
  411. package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
  412. package/dist/serialization/resources/products/client/requests/index.d.ts +1 -1
  413. package/dist/serialization/resources/products/client/requests/index.js +3 -3
  414. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
  415. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
  416. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
  417. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
  418. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
  419. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
  420. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
  421. package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
  422. package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
  423. package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
  424. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
  425. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
  426. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
  427. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
  428. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
  429. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
  430. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
  431. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
  432. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
  433. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
  434. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
  435. package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
  436. package/dist/serialization/resources/products/types/index.d.ts +11 -0
  437. package/dist/serialization/resources/products/types/index.js +11 -0
  438. package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
  439. package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
  440. package/dist/serialization/resources/users/client/requests/index.d.ts +1 -0
  441. package/dist/serialization/resources/users/client/requests/index.js +3 -1
  442. package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
  443. package/dist/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
  444. package/dist/serialization/resources/users/types/index.d.ts +1 -0
  445. package/dist/serialization/resources/users/types/index.js +1 -0
  446. package/dist/serialization/types/AssetFolderList.d.ts +1 -1
  447. package/dist/serialization/types/AssetFolderList.js +2 -2
  448. package/dist/serialization/types/CollectionItem.d.ts +1 -0
  449. package/dist/serialization/types/CollectionItem.js +1 -0
  450. package/dist/serialization/types/Dom.d.ts +14 -0
  451. package/dist/serialization/types/Dom.js +44 -0
  452. package/dist/serialization/types/ImageNode.d.ts +13 -0
  453. package/dist/serialization/types/ImageNode.js +34 -0
  454. package/dist/serialization/types/InvalidScopes.d.ts +16 -0
  455. package/dist/serialization/types/InvalidScopes.js +37 -0
  456. package/dist/serialization/types/Node.d.ts +16 -0
  457. package/dist/serialization/types/Node.js +46 -0
  458. package/dist/serialization/types/NodeType.d.ts +10 -0
  459. package/dist/serialization/types/NodeType.js +31 -0
  460. package/dist/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
  461. package/dist/serialization/types/NotEnterprisePlanSite.js +48 -0
  462. package/dist/serialization/types/OauthScope.d.ts +1 -1
  463. package/dist/serialization/types/OauthScope.js +1 -0
  464. package/dist/serialization/types/ProductFieldData.d.ts +9 -2
  465. package/dist/serialization/types/ProductFieldData.js +9 -2
  466. package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
  467. package/dist/serialization/types/ProductFieldDataEcProductType.js +36 -0
  468. package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
  469. package/dist/serialization/types/ProductFieldDataTaxCategory.js +61 -0
  470. package/dist/serialization/types/SiteActivityLogItem.d.ts +1 -1
  471. package/dist/serialization/types/SiteActivityLogItem.js +1 -1
  472. package/dist/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
  473. package/dist/serialization/types/SiteActivityLogItemUser.js +34 -0
  474. package/dist/serialization/types/SkuFieldData.d.ts +8 -3
  475. package/dist/serialization/types/SkuFieldData.js +8 -3
  476. package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
  477. package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
  478. package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
  479. package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
  480. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
  481. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
  482. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
  483. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
  484. package/dist/serialization/types/SkuPropertyList.d.ts +3 -3
  485. package/dist/serialization/types/SkuPropertyList.js +3 -5
  486. package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
  487. package/dist/serialization/types/SkuPropertyListEnumItem.js +3 -3
  488. package/dist/serialization/types/TextNode.d.ts +13 -0
  489. package/dist/serialization/types/TextNode.js +34 -0
  490. package/dist/serialization/types/index.d.ts +14 -0
  491. package/dist/serialization/types/index.js +14 -0
  492. package/environments.d.ts +1 -1
  493. package/environments.js +1 -1
  494. package/jest.config.js +5 -0
  495. package/package.json +7 -3
  496. package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
  497. package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
  498. package/serialization/resources/assets/client/requests/index.d.ts +1 -0
  499. package/serialization/resources/assets/client/requests/index.js +3 -1
  500. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
  501. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
  502. package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
  503. package/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
  504. package/serialization/resources/collections/resources/fields/index.d.ts +1 -0
  505. package/serialization/resources/collections/resources/fields/index.js +1 -0
  506. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
  507. package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
  508. package/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
  509. package/serialization/resources/collections/resources/fields/types/index.js +17 -0
  510. package/serialization/resources/collections/resources/index.d.ts +2 -1
  511. package/serialization/resources/collections/resources/index.js +3 -2
  512. package/serialization/resources/index.d.ts +3 -0
  513. package/serialization/resources/index.js +4 -1
  514. package/serialization/resources/pages/client/index.d.ts +1 -0
  515. package/serialization/resources/pages/client/index.js +17 -0
  516. package/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
  517. package/serialization/resources/pages/client/requests/DomWrite.js +42 -0
  518. package/serialization/resources/pages/client/requests/index.d.ts +1 -0
  519. package/serialization/resources/pages/client/requests/index.js +5 -0
  520. package/serialization/resources/pages/index.d.ts +2 -0
  521. package/serialization/resources/pages/index.js +18 -0
  522. package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
  523. package/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
  524. package/serialization/resources/pages/types/index.d.ts +1 -0
  525. package/serialization/resources/pages/types/index.js +17 -0
  526. package/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
  527. package/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
  528. package/serialization/resources/products/client/requests/index.d.ts +1 -1
  529. package/serialization/resources/products/client/requests/index.js +3 -3
  530. package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
  531. package/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
  532. package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
  533. package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
  534. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
  535. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
  536. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
  537. package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
  538. package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
  539. package/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
  540. package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
  541. package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
  542. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
  543. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
  544. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
  545. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
  546. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
  547. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
  548. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
  549. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
  550. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
  551. package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
  552. package/serialization/resources/products/types/index.d.ts +11 -0
  553. package/serialization/resources/products/types/index.js +11 -0
  554. package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
  555. package/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
  556. package/serialization/resources/users/client/requests/index.d.ts +1 -0
  557. package/serialization/resources/users/client/requests/index.js +3 -1
  558. package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
  559. package/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
  560. package/serialization/resources/users/types/index.d.ts +1 -0
  561. package/serialization/resources/users/types/index.js +1 -0
  562. package/serialization/types/AssetFolderList.d.ts +1 -1
  563. package/serialization/types/AssetFolderList.js +2 -2
  564. package/serialization/types/CollectionItem.d.ts +1 -0
  565. package/serialization/types/CollectionItem.js +1 -0
  566. package/serialization/types/Dom.d.ts +14 -0
  567. package/serialization/types/Dom.js +44 -0
  568. package/serialization/types/ImageNode.d.ts +13 -0
  569. package/serialization/types/ImageNode.js +34 -0
  570. package/serialization/types/InvalidScopes.d.ts +16 -0
  571. package/serialization/types/InvalidScopes.js +37 -0
  572. package/serialization/types/Node.d.ts +16 -0
  573. package/serialization/types/Node.js +46 -0
  574. package/serialization/types/NodeType.d.ts +10 -0
  575. package/serialization/types/NodeType.js +31 -0
  576. package/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
  577. package/serialization/types/NotEnterprisePlanSite.js +48 -0
  578. package/serialization/types/OauthScope.d.ts +1 -1
  579. package/serialization/types/OauthScope.js +1 -0
  580. package/serialization/types/ProductFieldData.d.ts +9 -2
  581. package/serialization/types/ProductFieldData.js +9 -2
  582. package/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
  583. package/serialization/types/ProductFieldDataEcProductType.js +36 -0
  584. package/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
  585. package/serialization/types/ProductFieldDataTaxCategory.js +61 -0
  586. package/serialization/types/SiteActivityLogItem.d.ts +1 -1
  587. package/serialization/types/SiteActivityLogItem.js +1 -1
  588. package/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
  589. package/serialization/types/SiteActivityLogItemUser.js +34 -0
  590. package/serialization/types/SkuFieldData.d.ts +8 -3
  591. package/serialization/types/SkuFieldData.js +8 -3
  592. package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
  593. package/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
  594. package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
  595. package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
  596. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
  597. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
  598. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
  599. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
  600. package/serialization/types/SkuPropertyList.d.ts +3 -3
  601. package/serialization/types/SkuPropertyList.js +3 -5
  602. package/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
  603. package/serialization/types/SkuPropertyListEnumItem.js +3 -3
  604. package/serialization/types/TextNode.d.ts +13 -0
  605. package/serialization/types/TextNode.js +34 -0
  606. package/serialization/types/index.d.ts +14 -0
  607. package/serialization/types/index.js +14 -0
  608. package/tests/client.test.ts +11 -0
  609. package/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
  610. package/dist/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
  611. /package/api/resources/{products/client/requests/ProductsCreateRequest.js → assets/client/requests/AssetsUpdateRequest.js} +0 -0
  612. /package/{dist/api/resources/products/client/requests/ProductsCreateRequest.js → api/resources/collections/resources/fields/client/requests/FieldCreate.js} +0 -0
@@ -60,19 +60,21 @@ class Collections {
60
60
  * @throws {@link Webflow.InternalServerError}
61
61
  *
62
62
  * @example
63
- * await webflow.collections.list("string")
63
+ * await webflow.collections.list("site_id")
64
64
  */
65
65
  list(siteId, requestOptions) {
66
66
  var _a;
67
67
  return __awaiter(this, void 0, void 0, function* () {
68
68
  const _response = yield core.fetcher({
69
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/sites/${siteId}/collections`),
69
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/collections`),
70
70
  method: "GET",
71
71
  headers: {
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": "2.0.0-beta",
75
+ "X-Fern-SDK-Version": "v2.1.1",
76
+ "X-Fern-Runtime": core.RUNTIME.type,
77
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
76
78
  },
77
79
  contentType: "application/json",
78
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +132,7 @@ class Collections {
130
132
  * @throws {@link Webflow.InternalServerError}
131
133
  *
132
134
  * @example
133
- * await webflow.collections.create("string", {
135
+ * await webflow.collections.create("site_id", {
134
136
  * displayName: "Blog Posts",
135
137
  * singularName: "Blog Post",
136
138
  * slug: "posts"
@@ -140,13 +142,15 @@ class Collections {
140
142
  var _a;
141
143
  return __awaiter(this, void 0, void 0, function* () {
142
144
  const _response = yield core.fetcher({
143
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/sites/${siteId}/collections`),
145
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/collections`),
144
146
  method: "POST",
145
147
  headers: {
146
148
  Authorization: yield this._getAuthorizationHeader(),
147
149
  "X-Fern-Language": "JavaScript",
148
150
  "X-Fern-SDK-Name": "webflow-api",
149
- "X-Fern-SDK-Version": "2.0.0-beta",
151
+ "X-Fern-SDK-Version": "v2.1.1",
152
+ "X-Fern-Runtime": core.RUNTIME.type,
153
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
150
154
  },
151
155
  contentType: "application/json",
152
156
  body: yield serializers.CollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -205,19 +209,21 @@ class Collections {
205
209
  * @throws {@link Webflow.InternalServerError}
206
210
  *
207
211
  * @example
208
- * await webflow.collections.get("string")
212
+ * await webflow.collections.get("collection_id")
209
213
  */
210
214
  get(collectionId, requestOptions) {
211
215
  var _a;
212
216
  return __awaiter(this, void 0, void 0, function* () {
213
217
  const _response = yield core.fetcher({
214
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/collections/${collectionId}`),
218
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}`),
215
219
  method: "GET",
216
220
  headers: {
217
221
  Authorization: yield this._getAuthorizationHeader(),
218
222
  "X-Fern-Language": "JavaScript",
219
223
  "X-Fern-SDK-Name": "webflow-api",
220
- "X-Fern-SDK-Version": "2.0.0-beta",
224
+ "X-Fern-SDK-Version": "v2.1.1",
225
+ "X-Fern-Runtime": core.RUNTIME.type,
226
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
221
227
  },
222
228
  contentType: "application/json",
223
229
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -275,19 +281,21 @@ class Collections {
275
281
  * @throws {@link Webflow.InternalServerError}
276
282
  *
277
283
  * @example
278
- * await webflow.collections.deleteCollection("string")
284
+ * await webflow.collections.deleteCollection("collection_id")
279
285
  */
280
286
  deleteCollection(collectionId, requestOptions) {
281
287
  var _a;
282
288
  return __awaiter(this, void 0, void 0, function* () {
283
289
  const _response = yield core.fetcher({
284
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/collections/${collectionId}`),
290
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}`),
285
291
  method: "DELETE",
286
292
  headers: {
287
293
  Authorization: yield this._getAuthorizationHeader(),
288
294
  "X-Fern-Language": "JavaScript",
289
295
  "X-Fern-SDK-Name": "webflow-api",
290
- "X-Fern-SDK-Version": "2.0.0-beta",
296
+ "X-Fern-SDK-Version": "v2.1.1",
297
+ "X-Fern-Runtime": core.RUNTIME.type,
298
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
291
299
  },
292
300
  contentType: "application/json",
293
301
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -339,19 +347,21 @@ class Collections {
339
347
  * @throws {@link Webflow.InternalServerError}
340
348
  *
341
349
  * @example
342
- * await webflow.collections.delete("string", "string")
350
+ * await webflow.collections.delete("collection_id", "field_id")
343
351
  */
344
352
  delete(collectionId, fieldId, requestOptions) {
345
353
  var _a;
346
354
  return __awaiter(this, void 0, void 0, function* () {
347
355
  const _response = yield core.fetcher({
348
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/collections/${collectionId}/fields/${fieldId}`),
356
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/fields/${fieldId}`),
349
357
  method: "DELETE",
350
358
  headers: {
351
359
  Authorization: yield this._getAuthorizationHeader(),
352
360
  "X-Fern-Language": "JavaScript",
353
361
  "X-Fern-SDK-Name": "webflow-api",
354
- "X-Fern-SDK-Version": "2.0.0-beta",
362
+ "X-Fern-SDK-Version": "v2.1.1",
363
+ "X-Fern-Runtime": core.RUNTIME.type,
364
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
355
365
  },
356
366
  contentType: "application/json",
357
367
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -26,14 +26,14 @@ export declare class Fields {
26
26
  * @throws {@link Webflow.InternalServerError}
27
27
  *
28
28
  * @example
29
- * await webflow.collections.fields.create("string", {
30
- * id: "string",
31
- * isRequired: true,
32
- * type: Webflow.FieldType.PlainText,
33
- * displayName: "string"
29
+ * await webflow.collections.fields.create("collection_id", {
30
+ * isRequired: false,
31
+ * type: Webflow.collections.FieldCreateType.RichText,
32
+ * displayName: "Post Body",
33
+ * helpText: "Add the body of your post here"
34
34
  * })
35
35
  */
36
- create(collectionId: string, request: Webflow.Field, requestOptions?: Fields.RequestOptions): Promise<Webflow.Field>;
36
+ create(collectionId: string, request: Webflow.collections.FieldCreate, requestOptions?: Fields.RequestOptions): Promise<Webflow.Field>;
37
37
  /**
38
38
  * Update a custom field in a collection. </br></br> Required scope | `cms:write`
39
39
  * @throws {@link Webflow.BadRequestError}
@@ -43,7 +43,11 @@ export declare class Fields {
43
43
  * @throws {@link Webflow.InternalServerError}
44
44
  *
45
45
  * @example
46
- * await webflow.collections.fields.update("string", "string", {})
46
+ * await webflow.collections.fields.update("collection_id", "field_id", {
47
+ * isRequired: false,
48
+ * displayName: "Post Body",
49
+ * helpText: "Add the body of your post here"
50
+ * })
47
51
  */
48
52
  update(collectionId: string, fieldId: string, request?: Webflow.collections.FieldUpdate, requestOptions?: Fields.RequestOptions): Promise<Webflow.Field>;
49
53
  protected _getAuthorizationHeader(): Promise<string>;
@@ -58,27 +58,29 @@ class Fields {
58
58
  * @throws {@link Webflow.InternalServerError}
59
59
  *
60
60
  * @example
61
- * await webflow.collections.fields.create("string", {
62
- * id: "string",
63
- * isRequired: true,
64
- * type: Webflow.FieldType.PlainText,
65
- * displayName: "string"
61
+ * await webflow.collections.fields.create("collection_id", {
62
+ * isRequired: false,
63
+ * type: Webflow.collections.FieldCreateType.RichText,
64
+ * displayName: "Post Body",
65
+ * helpText: "Add the body of your post here"
66
66
  * })
67
67
  */
68
68
  create(collectionId, request, requestOptions) {
69
69
  var _a;
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
71
  const _response = yield core.fetcher({
72
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/collections/${collectionId}/fields`),
72
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/fields`),
73
73
  method: "POST",
74
74
  headers: {
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": "2.0.0-beta",
78
+ "X-Fern-SDK-Version": "v2.1.1",
79
+ "X-Fern-Runtime": core.RUNTIME.type,
80
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
79
81
  },
80
82
  contentType: "application/json",
81
- body: yield serializers.Field.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
83
+ body: yield serializers.collections.FieldCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
82
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
85
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
86
  });
@@ -134,19 +136,25 @@ class Fields {
134
136
  * @throws {@link Webflow.InternalServerError}
135
137
  *
136
138
  * @example
137
- * await webflow.collections.fields.update("string", "string", {})
139
+ * await webflow.collections.fields.update("collection_id", "field_id", {
140
+ * isRequired: false,
141
+ * displayName: "Post Body",
142
+ * helpText: "Add the body of your post here"
143
+ * })
138
144
  */
139
145
  update(collectionId, fieldId, request = {}, requestOptions) {
140
146
  var _a;
141
147
  return __awaiter(this, void 0, void 0, function* () {
142
148
  const _response = yield core.fetcher({
143
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `v2/collections/${collectionId}/fields/${fieldId}`),
149
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/fields/${fieldId}`),
144
150
  method: "PATCH",
145
151
  headers: {
146
152
  Authorization: yield this._getAuthorizationHeader(),
147
153
  "X-Fern-Language": "JavaScript",
148
154
  "X-Fern-SDK-Name": "webflow-api",
149
- "X-Fern-SDK-Version": "2.0.0-beta",
155
+ "X-Fern-SDK-Version": "v2.1.1",
156
+ "X-Fern-Runtime": core.RUNTIME.type,
157
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
150
158
  },
151
159
  contentType: "application/json",
152
160
  body: yield serializers.collections.FieldUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Webflow from "../../../../../..";
5
+ /**
6
+ * @example
7
+ * {
8
+ * isRequired: false,
9
+ * type: Webflow.collections.FieldCreateType.RichText,
10
+ * displayName: "Post Body",
11
+ * helpText: "Add the body of your post here"
12
+ * }
13
+ */
14
+ export interface FieldCreate {
15
+ /** define whether a field is required in a collection */
16
+ isRequired?: boolean;
17
+ /** Choose these appropriate field type for your collection data */
18
+ type: Webflow.collections.FieldCreateType;
19
+ /** The name of a field */
20
+ displayName: string;
21
+ /** Additional text to help anyone filling out this field */
22
+ helpText?: string;
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * isRequired: false,
8
+ * displayName: "Post Body",
9
+ * helpText: "Add the body of your post here"
10
+ * }
7
11
  */
8
12
  export interface FieldUpdate {
9
13
  /** Define whether a field is required in a collection */
@@ -1 +1,2 @@
1
+ export { FieldCreate } from "./FieldCreate";
1
2
  export { FieldUpdate } from "./FieldUpdate";
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Choose these appropriate field type for your collection data
6
+ */
7
+ export declare type FieldCreateType = "PlainText" | "RichText" | "Image" | "MultiImage" | "Video" | "Link" | "Email" | "Phone" | "Number" | "DateTime" | "Boolean" | "Color" | "File";
8
+ export declare const FieldCreateType: {
9
+ readonly PlainText: "PlainText";
10
+ readonly RichText: "RichText";
11
+ readonly Image: "Image";
12
+ readonly MultiImage: "MultiImage";
13
+ readonly Video: "Video";
14
+ readonly Link: "Link";
15
+ readonly Email: "Email";
16
+ readonly Phone: "Phone";
17
+ readonly Number: "Number";
18
+ readonly DateTime: "DateTime";
19
+ readonly Boolean: "Boolean";
20
+ readonly Color: "Color";
21
+ readonly File: "File";
22
+ };
@@ -0,0 +1,21 @@
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.FieldCreateType = void 0;
7
+ exports.FieldCreateType = {
8
+ PlainText: "PlainText",
9
+ RichText: "RichText",
10
+ Image: "Image",
11
+ MultiImage: "MultiImage",
12
+ Video: "Video",
13
+ Link: "Link",
14
+ Email: "Email",
15
+ Phone: "Phone",
16
+ Number: "Number",
17
+ DateTime: "DateTime",
18
+ Boolean: "Boolean",
19
+ Color: "Color",
20
+ File: "File",
21
+ };
@@ -0,0 +1 @@
1
+ export * from "./FieldCreateType";
@@ -0,0 +1,17 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./FieldCreateType"), exports);
@@ -1,5 +1,6 @@
1
+ export * as fields from "./fields";
2
+ export * from "./fields/types";
1
3
  export * as items from "./items";
2
4
  export * from "./items/types";
3
- export * as fields from "./fields";
4
5
  export * from "./fields/client/requests";
5
6
  export * from "./items/client/requests";
@@ -26,9 +26,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.fields = exports.items = void 0;
29
+ exports.items = exports.fields = void 0;
30
+ exports.fields = __importStar(require("./fields"));
31
+ __exportStar(require("./fields/types"), exports);
30
32
  exports.items = __importStar(require("./items"));
31
33
  __exportStar(require("./items/types"), exports);
32
- exports.fields = __importStar(require("./fields"));
33
34
  __exportStar(require("./fields/client/requests"), exports);
34
35
  __exportStar(require("./items/client/requests"), exports);
@@ -18,7 +18,7 @@ export declare class Items {
18
18
  protected readonly _options: Items.Options;
19
19
  constructor(_options: Items.Options);
20
20
  /**
21
- * List of all Items within a Collection. </br></br> Required scope | `cms:read`
21
+ * List of all Items within a Collection. </br></br> Required scope | `CMS:read`
22
22
  * @throws {@link Webflow.BadRequestError}
23
23
  * @throws {@link Webflow.UnauthorizedError}
24
24
  * @throws {@link Webflow.NotFoundError}
@@ -26,11 +26,11 @@ export declare class Items {
26
26
  * @throws {@link Webflow.InternalServerError}
27
27
  *
28
28
  * @example
29
- * await webflow.collections.items.listItems("string", {})
29
+ * await webflow.collections.items.listItems("collection_id", {})
30
30
  */
31
31
  listItems(collectionId: string, request?: Webflow.collections.ItemsListItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
32
32
  /**
33
- * Create Item in a Collection. </br></br> Required scope | `cms:write`
33
+ * Create Item in a Collection. </br></br> Required scope | `CMS:write`
34
34
  * @throws {@link Webflow.BadRequestError}
35
35
  * @throws {@link Webflow.UnauthorizedError}
36
36
  * @throws {@link Webflow.NotFoundError}
@@ -38,17 +38,21 @@ export declare class Items {
38
38
  * @throws {@link Webflow.InternalServerError}
39
39
  *
40
40
  * @example
41
- * await webflow.collections.items.createItem("string", {
41
+ * await webflow.collections.items.createItem("collection_id", {
42
42
  * id: "580e64008c9a982ac9b8b754",
43
+ * cmsLocaleId: "653ad57de882f528b32e810e",
43
44
  * lastPublished: "2023-03-17T18:47:35.560Z",
44
45
  * lastUpdated: "2023-03-17T18:47:35.560Z",
45
46
  * createdOn: "2023-03-17T18:47:35.560Z",
46
- * fieldData: {}
47
+ * fieldData: {
48
+ * name: "My new item",
49
+ * slug: "my-new-item"
50
+ * }
47
51
  * })
48
52
  */
49
53
  createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
50
54
  /**
51
- * Get details of a selected Collection Item. </br></br> Required scope | `cms:read`
55
+ * Create live Item in a Collection. This Item will be published to the live site. </br></br> Required scope | `CMS:write`
52
56
  * @throws {@link Webflow.BadRequestError}
53
57
  * @throws {@link Webflow.UnauthorizedError}
54
58
  * @throws {@link Webflow.NotFoundError}
@@ -56,11 +60,21 @@ export declare class Items {
56
60
  * @throws {@link Webflow.InternalServerError}
57
61
  *
58
62
  * @example
59
- * await webflow.collections.items.getItem("string", "string")
63
+ * await webflow.collections.items.createItemLive("collection_id", {
64
+ * id: "580e64008c9a982ac9b8b754",
65
+ * cmsLocaleId: "653ad57de882f528b32e810e",
66
+ * lastPublished: "2023-03-17T18:47:35.560Z",
67
+ * lastUpdated: "2023-03-17T18:47:35.560Z",
68
+ * createdOn: "2023-03-17T18:47:35.560Z",
69
+ * fieldData: {
70
+ * name: "My new item",
71
+ * slug: "my-new-item"
72
+ * }
73
+ * })
60
74
  */
61
- getItem(collectionId: string, itemId: string, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
75
+ createItemLive(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
62
76
  /**
63
- * Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `cms:write`
77
+ * Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
64
78
  * @throws {@link Webflow.BadRequestError}
65
79
  * @throws {@link Webflow.UnauthorizedError}
66
80
  * @throws {@link Webflow.NotFoundError}
@@ -68,11 +82,11 @@ export declare class Items {
68
82
  * @throws {@link Webflow.InternalServerError}
69
83
  *
70
84
  * @example
71
- * await webflow.collections.items.deleteItem("string", "string")
85
+ * await webflow.collections.items.getItem("collection_id", "item_id", {})
72
86
  */
73
- deleteItem(collectionId: string, itemId: string, requestOptions?: Items.RequestOptions): Promise<void>;
87
+ getItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsGetItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
74
88
  /**
75
- * Update a selected Item in a Collection. </br></br> Required scope | `cms:write`
89
+ * Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
76
90
  * @throws {@link Webflow.BadRequestError}
77
91
  * @throws {@link Webflow.UnauthorizedError}
78
92
  * @throws {@link Webflow.NotFoundError}
@@ -80,15 +94,65 @@ export declare class Items {
80
94
  * @throws {@link Webflow.InternalServerError}
81
95
  *
82
96
  * @example
83
- * await webflow.collections.items.updateItem("string", "string", {
97
+ * await webflow.collections.items.deleteItem("collection_id", "item_id", {})
98
+ */
99
+ deleteItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsDeleteItemRequest, requestOptions?: Items.RequestOptions): Promise<void>;
100
+ /**
101
+ * Update a selected Item in a Collection. </br></br> Required scope | `CMS:write`
102
+ * @throws {@link Webflow.BadRequestError}
103
+ * @throws {@link Webflow.UnauthorizedError}
104
+ * @throws {@link Webflow.NotFoundError}
105
+ * @throws {@link Webflow.TooManyRequestsError}
106
+ * @throws {@link Webflow.InternalServerError}
107
+ *
108
+ * @example
109
+ * await webflow.collections.items.updateItem("collection_id", "item_id", {
84
110
  * id: "580e64008c9a982ac9b8b754",
111
+ * cmsLocaleId: "653ad57de882f528b32e810e",
85
112
  * lastPublished: "2023-03-17T18:47:35.560Z",
86
113
  * lastUpdated: "2023-03-17T18:47:35.560Z",
87
114
  * createdOn: "2023-03-17T18:47:35.560Z",
88
- * fieldData: {}
115
+ * fieldData: {
116
+ * name: "My new item",
117
+ * slug: "my-new-item"
118
+ * }
89
119
  * })
90
120
  */
91
121
  updateItem(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
122
+ /**
123
+ * Delete a live Item from a Collection. The Item will be unpublished from the live site. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
124
+ * @throws {@link Webflow.BadRequestError}
125
+ * @throws {@link Webflow.UnauthorizedError}
126
+ * @throws {@link Webflow.NotFoundError}
127
+ * @throws {@link Webflow.TooManyRequestsError}
128
+ * @throws {@link Webflow.InternalServerError}
129
+ *
130
+ * @example
131
+ * await webflow.collections.items.deleteItemLive("collection_id", "item_id")
132
+ */
133
+ deleteItemLive(collectionId: string, itemId: string, requestOptions?: Items.RequestOptions): Promise<void>;
134
+ /**
135
+ * Update a selected live Item in a Collection. The updates for this Item will be published to the live site. </br></br> Required scope | `CMS:write`
136
+ * @throws {@link Webflow.BadRequestError}
137
+ * @throws {@link Webflow.UnauthorizedError}
138
+ * @throws {@link Webflow.NotFoundError}
139
+ * @throws {@link Webflow.TooManyRequestsError}
140
+ * @throws {@link Webflow.InternalServerError}
141
+ *
142
+ * @example
143
+ * await webflow.collections.items.updateItemLive("collection_id", "item_id", {
144
+ * id: "580e64008c9a982ac9b8b754",
145
+ * cmsLocaleId: "653ad57de882f528b32e810e",
146
+ * lastPublished: "2023-03-17T18:47:35.560Z",
147
+ * lastUpdated: "2023-03-17T18:47:35.560Z",
148
+ * createdOn: "2023-03-17T18:47:35.560Z",
149
+ * fieldData: {
150
+ * name: "My new item",
151
+ * slug: "my-new-item"
152
+ * }
153
+ * })
154
+ */
155
+ updateItemLive(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
92
156
  /**
93
157
  * Publish an item or multiple items. </br></br> Required scope | `cms:write`
94
158
  * @throws {@link Webflow.BadRequestError}
@@ -98,8 +162,8 @@ export declare class Items {
98
162
  * @throws {@link Webflow.InternalServerError}
99
163
  *
100
164
  * @example
101
- * await webflow.collections.items.publishItem("string", {
102
- * itemIds: []
165
+ * await webflow.collections.items.publishItem("collection_id", {
166
+ * itemIds: ["itemIds"]
103
167
  * })
104
168
  */
105
169
  publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.collections.ItemsPublishItemResponse>;