webflow-api 2.0.0 → 2.1.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.
- package/README.md +3 -0
- package/api/resources/accessGroups/client/Client.d.ts +1 -3
- package/api/resources/accessGroups/client/Client.js +5 -5
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
- package/api/resources/assets/client/Client.d.ts +21 -7
- package/api/resources/assets/client/Client.js +110 -21
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +25 -15
- package/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
- package/api/resources/collections/resources/fields/client/Client.js +19 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/index.js +1 -0
- package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
- package/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
- package/api/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/types/index.js +17 -0
- package/api/resources/collections/resources/index.d.ts +2 -1
- package/api/resources/collections/resources/index.js +3 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +101 -16
- package/api/resources/collections/resources/items/client/Client.js +378 -29
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/client/requests/index.d.ts +3 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.js +1 -0
- package/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.js +5 -3
- package/api/resources/forms/client/Client.d.ts +6 -6
- package/api/resources/forms/client/Client.js +35 -16
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/FormsListRequest.js +5 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -1
- package/api/resources/index.js +4 -2
- package/api/resources/inventory/client/Client.d.ts +2 -2
- package/api/resources/inventory/client/Client.js +10 -6
- package/api/resources/orders/client/Client.d.ts +6 -10
- package/api/resources/orders/client/Client.js +30 -22
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
- package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
- package/api/resources/pages/client/Client.d.ts +73 -4
- package/api/resources/pages/client/Client.js +312 -8
- package/api/resources/pages/client/index.d.ts +1 -1
- package/api/resources/pages/client/index.js +15 -0
- package/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
- package/api/resources/pages/client/requests/DomWrite.js +5 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
- package/api/resources/pages/client/requests/PagesListRequest.js +5 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
- package/api/resources/pages/client/requests/index.d.ts +5 -0
- package/api/resources/pages/client/requests/index.js +2 -0
- package/api/resources/pages/index.d.ts +1 -0
- package/api/resources/pages/index.js +1 -0
- package/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
- package/api/resources/pages/resources/scripts/client/Client.js +23 -9
- package/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
- package/api/resources/pages/types/DomWriteNodesItem.js +5 -0
- package/api/resources/pages/types/index.d.ts +1 -0
- package/api/resources/pages/types/index.js +17 -0
- package/api/resources/products/client/Client.d.ts +54 -74
- package/api/resources/products/client/Client.js +79 -87
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
- package/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
- package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
- package/api/resources/products/client/requests/index.d.ts +1 -1
- package/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
- package/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
- package/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
- package/api/resources/products/types/ProductSkuCreateSku.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
- package/api/resources/products/types/index.d.ts +11 -0
- package/api/resources/products/types/index.js +11 -0
- package/api/resources/scripts/client/Client.d.ts +9 -9
- package/api/resources/scripts/client/Client.js +21 -15
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +6 -3
- package/api/resources/sites/client/Client.js +26 -13
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/index.js +17 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
- package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
- package/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/index.js +17 -0
- package/api/resources/sites/resources/index.d.ts +2 -0
- package/api/resources/sites/resources/index.js +3 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
- package/api/resources/sites/resources/scripts/client/Client.js +28 -12
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +13 -20
- package/api/resources/users/client/Client.js +34 -31
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
- package/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
- package/api/resources/users/types/UsersUpdateRequestData.js +5 -0
- package/api/resources/users/types/index.d.ts +1 -0
- package/api/resources/users/types/index.js +1 -0
- package/api/resources/webhooks/client/Client.d.ts +4 -4
- package/api/resources/webhooks/client/Client.js +20 -12
- package/api/types/AssetFolder.d.ts +3 -0
- package/api/types/AssetFolderList.d.ts +2 -1
- package/api/types/CollectionItem.d.ts +2 -0
- package/api/types/Dom.d.ts +13 -0
- package/api/types/Dom.js +5 -0
- package/api/types/ImageNode.d.ts +10 -0
- package/api/types/ImageNode.js +5 -0
- package/api/types/InvalidScopes.d.ts +10 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/Node.d.ts +15 -0
- package/api/types/Node.js +5 -0
- package/api/types/NodeType.d.ts +8 -0
- package/api/types/NodeType.js +10 -0
- package/api/types/NotEnterprisePlanSite.d.ts +14 -0
- package/api/types/NotEnterprisePlanSite.js +5 -0
- package/api/types/OauthScope.d.ts +5 -1
- package/api/types/OauthScope.js +1 -0
- package/api/types/ProductAndSkUs.d.ts +1 -0
- package/api/types/ProductFieldData.d.ts +17 -3
- package/api/types/ProductFieldDataEcProductType.d.ts +13 -0
- package/api/types/ProductFieldDataEcProductType.js +12 -0
- package/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
- package/api/types/ProductFieldDataTaxCategory.js +37 -0
- package/api/types/PublishStatus.d.ts +1 -1
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemUser.d.ts +7 -0
- package/api/types/SiteActivityLogItemUser.js +5 -0
- package/api/types/Sku.d.ts +1 -0
- package/api/types/SkuFieldData.d.ts +15 -4
- package/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
- package/api/types/SkuFieldDataCompareAtPrice.js +5 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/api/types/SkuPropertyList.d.ts +6 -6
- package/api/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/api/types/TextNode.d.ts +10 -0
- package/api/types/TextNode.js +5 -0
- package/api/types/index.d.ts +14 -0
- package/api/types/index.js +14 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +8 -1
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +82 -0
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -3
- package/dist/api/resources/accessGroups/client/Client.js +5 -5
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
- package/dist/api/resources/assets/client/Client.d.ts +21 -7
- package/dist/api/resources/assets/client/Client.js +110 -21
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +25 -15
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
- package/dist/api/resources/collections/resources/fields/client/Client.js +19 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js +5 -0
- package/dist/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/index.js +1 -0
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
- package/dist/api/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/types/index.js +17 -0
- package/dist/api/resources/collections/resources/index.d.ts +2 -1
- package/dist/api/resources/collections/resources/index.js +3 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +101 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +378 -29
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +3 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.js +1 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.js +5 -3
- package/dist/api/resources/forms/client/Client.d.ts +6 -6
- package/dist/api/resources/forms/client/Client.js +35 -16
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/FormsListRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -1
- package/dist/api/resources/index.js +4 -2
- package/dist/api/resources/inventory/client/Client.d.ts +2 -2
- package/dist/api/resources/inventory/client/Client.js +10 -6
- package/dist/api/resources/orders/client/Client.d.ts +6 -10
- package/dist/api/resources/orders/client/Client.js +30 -22
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
- package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
- package/dist/api/resources/pages/client/Client.d.ts +73 -4
- package/dist/api/resources/pages/client/Client.js +312 -8
- package/dist/api/resources/pages/client/index.d.ts +1 -1
- package/dist/api/resources/pages/client/index.js +15 -0
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
- package/dist/api/resources/pages/client/requests/DomWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
- package/dist/api/resources/pages/client/requests/PagesListRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/index.d.ts +5 -0
- package/dist/api/resources/pages/client/requests/index.js +2 -0
- package/dist/api/resources/pages/index.d.ts +1 -0
- package/dist/api/resources/pages/index.js +1 -0
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +23 -9
- package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
- package/dist/api/resources/pages/types/DomWriteNodesItem.js +5 -0
- package/dist/api/resources/pages/types/index.d.ts +1 -0
- package/dist/api/resources/pages/types/index.js +17 -0
- package/dist/api/resources/products/client/Client.d.ts +54 -74
- package/dist/api/resources/products/client/Client.js +79 -87
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
- package/dist/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
- package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
- package/dist/api/resources/products/client/requests/index.d.ts +1 -1
- package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
- package/dist/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
- package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
- package/dist/api/resources/products/types/ProductSkuCreateSku.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
- package/dist/api/resources/products/types/index.d.ts +11 -0
- package/dist/api/resources/products/types/index.js +11 -0
- package/dist/api/resources/scripts/client/Client.d.ts +9 -9
- package/dist/api/resources/scripts/client/Client.js +21 -15
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +6 -3
- package/dist/api/resources/sites/client/Client.js +26 -13
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/index.js +17 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
- package/dist/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/index.js +17 -0
- package/dist/api/resources/sites/resources/index.d.ts +2 -0
- package/dist/api/resources/sites/resources/index.js +3 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +28 -12
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +13 -20
- package/dist/api/resources/users/client/Client.js +34 -31
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
- package/dist/api/resources/users/types/UsersUpdateRequestData.js +5 -0
- package/dist/api/resources/users/types/index.d.ts +1 -0
- package/dist/api/resources/users/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/api/resources/webhooks/client/Client.js +20 -12
- package/dist/api/types/AssetFolder.d.ts +3 -0
- package/dist/api/types/AssetFolderList.d.ts +2 -1
- package/dist/api/types/CollectionItem.d.ts +2 -0
- package/dist/api/types/Dom.d.ts +13 -0
- package/dist/api/types/Dom.js +5 -0
- package/dist/api/types/ImageNode.d.ts +10 -0
- package/dist/api/types/ImageNode.js +5 -0
- package/dist/api/types/InvalidScopes.d.ts +10 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/Node.d.ts +15 -0
- package/dist/api/types/Node.js +5 -0
- package/dist/api/types/NodeType.d.ts +8 -0
- package/dist/api/types/NodeType.js +10 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +14 -0
- package/dist/api/types/NotEnterprisePlanSite.js +5 -0
- package/dist/api/types/OauthScope.d.ts +5 -1
- package/dist/api/types/OauthScope.js +1 -0
- package/dist/api/types/ProductAndSkUs.d.ts +1 -0
- package/dist/api/types/ProductFieldData.d.ts +17 -3
- package/dist/api/types/ProductFieldDataEcProductType.d.ts +13 -0
- package/dist/api/types/ProductFieldDataEcProductType.js +12 -0
- package/dist/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
- package/dist/api/types/ProductFieldDataTaxCategory.js +37 -0
- package/dist/api/types/PublishStatus.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemUser.d.ts +7 -0
- package/dist/api/types/SiteActivityLogItemUser.js +5 -0
- package/dist/api/types/Sku.d.ts +1 -0
- package/dist/api/types/SkuFieldData.d.ts +15 -4
- package/dist/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
- package/dist/api/types/SkuFieldDataCompareAtPrice.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/dist/api/types/SkuPropertyList.d.ts +6 -6
- package/dist/api/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/dist/api/types/TextNode.d.ts +10 -0
- package/dist/api/types/TextNode.js +5 -0
- package/dist/api/types/index.d.ts +14 -0
- package/dist/api/types/index.js +14 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +8 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +82 -0
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
- package/dist/serialization/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/assets/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/fields/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/index.js +1 -0
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
- package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/types/index.js +17 -0
- package/dist/serialization/resources/collections/resources/index.d.ts +2 -1
- package/dist/serialization/resources/collections/resources/index.js +3 -2
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +51 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/pages/client/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/index.js +17 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.js +42 -0
- package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/requests/index.js +5 -0
- package/dist/serialization/resources/pages/index.d.ts +2 -0
- package/dist/serialization/resources/pages/index.js +18 -0
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
- package/dist/serialization/resources/pages/types/index.d.ts +1 -0
- package/dist/serialization/resources/pages/types/index.js +17 -0
- package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
- package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
- package/dist/serialization/resources/products/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/products/client/requests/index.js +3 -3
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
- package/dist/serialization/resources/products/types/index.d.ts +11 -0
- package/dist/serialization/resources/products/types/index.js +11 -0
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/users/client/requests/index.js +3 -1
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
- package/dist/serialization/resources/users/types/index.d.ts +1 -0
- package/dist/serialization/resources/users/types/index.js +1 -0
- package/dist/serialization/types/AssetFolderList.d.ts +1 -1
- package/dist/serialization/types/AssetFolderList.js +2 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -0
- package/dist/serialization/types/CollectionItem.js +1 -0
- package/dist/serialization/types/Dom.d.ts +14 -0
- package/dist/serialization/types/Dom.js +44 -0
- package/dist/serialization/types/ImageNode.d.ts +13 -0
- package/dist/serialization/types/ImageNode.js +34 -0
- package/dist/serialization/types/InvalidScopes.d.ts +16 -0
- package/dist/serialization/types/InvalidScopes.js +37 -0
- package/dist/serialization/types/Node.d.ts +16 -0
- package/dist/serialization/types/Node.js +46 -0
- package/dist/serialization/types/NodeType.d.ts +10 -0
- package/dist/serialization/types/NodeType.js +31 -0
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
- package/dist/serialization/types/NotEnterprisePlanSite.js +48 -0
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +1 -0
- package/dist/serialization/types/ProductFieldData.d.ts +9 -2
- package/dist/serialization/types/ProductFieldData.js +9 -2
- package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
- package/dist/serialization/types/ProductFieldDataEcProductType.js +36 -0
- package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
- package/dist/serialization/types/ProductFieldDataTaxCategory.js +61 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItem.js +1 -1
- package/dist/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
- package/dist/serialization/types/SiteActivityLogItemUser.js +34 -0
- package/dist/serialization/types/SkuFieldData.d.ts +8 -3
- package/dist/serialization/types/SkuFieldData.js +8 -3
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/dist/serialization/types/SkuPropertyList.d.ts +3 -3
- package/dist/serialization/types/SkuPropertyList.js +3 -5
- package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/dist/serialization/types/SkuPropertyListEnumItem.js +3 -3
- package/dist/serialization/types/TextNode.d.ts +13 -0
- package/dist/serialization/types/TextNode.js +34 -0
- package/dist/serialization/types/index.d.ts +14 -0
- package/dist/serialization/types/index.js +14 -0
- package/environments.d.ts +1 -1
- package/environments.js +1 -1
- package/jest.config.js +5 -0
- package/package.json +7 -3
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
- package/serialization/resources/assets/client/requests/index.d.ts +1 -0
- package/serialization/resources/assets/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/fields/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/index.js +1 -0
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
- package/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/types/index.js +17 -0
- package/serialization/resources/collections/resources/index.d.ts +2 -1
- package/serialization/resources/collections/resources/index.js +3 -2
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +51 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/pages/client/index.d.ts +1 -0
- package/serialization/resources/pages/client/index.js +17 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
- package/serialization/resources/pages/client/requests/DomWrite.js +42 -0
- package/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/serialization/resources/pages/client/requests/index.js +5 -0
- package/serialization/resources/pages/index.d.ts +2 -0
- package/serialization/resources/pages/index.js +18 -0
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
- package/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
- package/serialization/resources/pages/types/index.d.ts +1 -0
- package/serialization/resources/pages/types/index.js +17 -0
- package/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
- package/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
- package/serialization/resources/products/client/requests/index.d.ts +1 -1
- package/serialization/resources/products/client/requests/index.js +3 -3
- package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
- package/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
- package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
- package/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
- package/serialization/resources/products/types/index.d.ts +11 -0
- package/serialization/resources/products/types/index.js +11 -0
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
- package/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/serialization/resources/users/client/requests/index.js +3 -1
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
- package/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
- package/serialization/resources/users/types/index.d.ts +1 -0
- package/serialization/resources/users/types/index.js +1 -0
- package/serialization/types/AssetFolderList.d.ts +1 -1
- package/serialization/types/AssetFolderList.js +2 -2
- package/serialization/types/CollectionItem.d.ts +1 -0
- package/serialization/types/CollectionItem.js +1 -0
- package/serialization/types/Dom.d.ts +14 -0
- package/serialization/types/Dom.js +44 -0
- package/serialization/types/ImageNode.d.ts +13 -0
- package/serialization/types/ImageNode.js +34 -0
- package/serialization/types/InvalidScopes.d.ts +16 -0
- package/serialization/types/InvalidScopes.js +37 -0
- package/serialization/types/Node.d.ts +16 -0
- package/serialization/types/Node.js +46 -0
- package/serialization/types/NodeType.d.ts +10 -0
- package/serialization/types/NodeType.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
- package/serialization/types/NotEnterprisePlanSite.js +48 -0
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +1 -0
- package/serialization/types/ProductFieldData.d.ts +9 -2
- package/serialization/types/ProductFieldData.js +9 -2
- package/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
- package/serialization/types/ProductFieldDataEcProductType.js +36 -0
- package/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
- package/serialization/types/ProductFieldDataTaxCategory.js +61 -0
- package/serialization/types/SiteActivityLogItem.d.ts +1 -1
- package/serialization/types/SiteActivityLogItem.js +1 -1
- package/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
- package/serialization/types/SiteActivityLogItemUser.js +34 -0
- package/serialization/types/SkuFieldData.d.ts +8 -3
- package/serialization/types/SkuFieldData.js +8 -3
- package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
- package/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/serialization/types/SkuPropertyList.d.ts +3 -3
- package/serialization/types/SkuPropertyList.js +3 -5
- package/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/serialization/types/SkuPropertyListEnumItem.js +3 -3
- package/serialization/types/TextNode.d.ts +13 -0
- package/serialization/types/TextNode.js +34 -0
- package/serialization/types/index.d.ts +14 -0
- package/serialization/types/index.js +14 -0
- package/tests/client.test.ts +11 -0
- package/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
- package/dist/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
- /package/api/resources/{products/client/requests/ProductsCreateRequest.js → assets/client/requests/AssetsUpdateRequest.js} +0 -0
- /package/{dist/api/resources/products/client/requests/ProductsCreateRequest.js → api/resources/collections/resources/fields/client/requests/FieldCreate.js} +0 -0
|
@@ -50,7 +50,7 @@ class Items {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* List of all Items within a Collection. </br></br> Required scope | `
|
|
53
|
+
* List of all Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
54
54
|
* @throws {@link Webflow.BadRequestError}
|
|
55
55
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
56
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -58,13 +58,21 @@ class Items {
|
|
|
58
58
|
* @throws {@link Webflow.InternalServerError}
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await webflow.collections.items.listItems("
|
|
61
|
+
* await webflow.collections.items.listItems("collection_id", {})
|
|
62
62
|
*/
|
|
63
63
|
listItems(collectionId, request = {}, requestOptions) {
|
|
64
64
|
var _a;
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const { offset, limit } = request;
|
|
66
|
+
const { cmsLocaleIds, offset, limit } = request;
|
|
67
67
|
const _queryParams = {};
|
|
68
|
+
if (cmsLocaleIds != null) {
|
|
69
|
+
if (Array.isArray(cmsLocaleIds)) {
|
|
70
|
+
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
68
76
|
if (offset != null) {
|
|
69
77
|
_queryParams["offset"] = offset.toString();
|
|
70
78
|
}
|
|
@@ -72,13 +80,15 @@ class Items {
|
|
|
72
80
|
_queryParams["limit"] = limit.toString();
|
|
73
81
|
}
|
|
74
82
|
const _response = yield core.fetcher({
|
|
75
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
83
|
+
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`),
|
|
76
84
|
method: "GET",
|
|
77
85
|
headers: {
|
|
78
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
87
|
"X-Fern-Language": "JavaScript",
|
|
80
88
|
"X-Fern-SDK-Name": "webflow-api",
|
|
81
|
-
"X-Fern-SDK-Version": "2.
|
|
89
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
90
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
82
92
|
},
|
|
83
93
|
contentType: "application/json",
|
|
84
94
|
queryParameters: _queryParams,
|
|
@@ -129,7 +139,7 @@ class Items {
|
|
|
129
139
|
});
|
|
130
140
|
}
|
|
131
141
|
/**
|
|
132
|
-
* Create Item in a Collection. </br></br> Required scope | `
|
|
142
|
+
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
133
143
|
* @throws {@link Webflow.BadRequestError}
|
|
134
144
|
* @throws {@link Webflow.UnauthorizedError}
|
|
135
145
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -137,25 +147,108 @@ class Items {
|
|
|
137
147
|
* @throws {@link Webflow.InternalServerError}
|
|
138
148
|
*
|
|
139
149
|
* @example
|
|
140
|
-
* await webflow.collections.items.createItem("
|
|
150
|
+
* await webflow.collections.items.createItem("collection_id", {
|
|
141
151
|
* id: "580e64008c9a982ac9b8b754",
|
|
152
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
142
153
|
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
143
154
|
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
144
155
|
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
145
|
-
* fieldData: {
|
|
156
|
+
* fieldData: {
|
|
157
|
+
* name: "My new item",
|
|
158
|
+
* slug: "my-new-item"
|
|
159
|
+
* }
|
|
146
160
|
* })
|
|
147
161
|
*/
|
|
148
162
|
createItem(collectionId, request, requestOptions) {
|
|
149
163
|
var _a;
|
|
150
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
165
|
const _response = yield core.fetcher({
|
|
152
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
166
|
+
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`),
|
|
167
|
+
method: "POST",
|
|
168
|
+
headers: {
|
|
169
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
170
|
+
"X-Fern-Language": "JavaScript",
|
|
171
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
173
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
|
+
},
|
|
176
|
+
contentType: "application/json",
|
|
177
|
+
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
178
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
179
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
180
|
+
});
|
|
181
|
+
if (_response.ok) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (_response.error.reason === "status-code") {
|
|
185
|
+
switch (_response.error.statusCode) {
|
|
186
|
+
case 400:
|
|
187
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
188
|
+
case 401:
|
|
189
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
190
|
+
case 404:
|
|
191
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
192
|
+
case 429:
|
|
193
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
194
|
+
case 500:
|
|
195
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
196
|
+
default:
|
|
197
|
+
throw new errors.WebflowError({
|
|
198
|
+
statusCode: _response.error.statusCode,
|
|
199
|
+
body: _response.error.body,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
switch (_response.error.reason) {
|
|
204
|
+
case "non-json":
|
|
205
|
+
throw new errors.WebflowError({
|
|
206
|
+
statusCode: _response.error.statusCode,
|
|
207
|
+
body: _response.error.rawBody,
|
|
208
|
+
});
|
|
209
|
+
case "timeout":
|
|
210
|
+
throw new errors.WebflowTimeoutError();
|
|
211
|
+
case "unknown":
|
|
212
|
+
throw new errors.WebflowError({
|
|
213
|
+
message: _response.error.errorMessage,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* 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`
|
|
220
|
+
* @throws {@link Webflow.BadRequestError}
|
|
221
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
222
|
+
* @throws {@link Webflow.NotFoundError}
|
|
223
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
224
|
+
* @throws {@link Webflow.InternalServerError}
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* await webflow.collections.items.createItemLive("collection_id", {
|
|
228
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
229
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
230
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
231
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
232
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
233
|
+
* fieldData: {
|
|
234
|
+
* name: "My new item",
|
|
235
|
+
* slug: "my-new-item"
|
|
236
|
+
* }
|
|
237
|
+
* })
|
|
238
|
+
*/
|
|
239
|
+
createItemLive(collectionId, request, requestOptions) {
|
|
240
|
+
var _a;
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
const _response = yield core.fetcher({
|
|
243
|
+
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`),
|
|
153
244
|
method: "POST",
|
|
154
245
|
headers: {
|
|
155
246
|
Authorization: yield this._getAuthorizationHeader(),
|
|
156
247
|
"X-Fern-Language": "JavaScript",
|
|
157
248
|
"X-Fern-SDK-Name": "webflow-api",
|
|
158
|
-
"X-Fern-SDK-Version": "2.
|
|
249
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
250
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
251
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
159
252
|
},
|
|
160
253
|
contentType: "application/json",
|
|
161
254
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -200,7 +293,7 @@ class Items {
|
|
|
200
293
|
});
|
|
201
294
|
}
|
|
202
295
|
/**
|
|
203
|
-
*
|
|
296
|
+
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
204
297
|
* @throws {@link Webflow.BadRequestError}
|
|
205
298
|
* @throws {@link Webflow.UnauthorizedError}
|
|
206
299
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -208,21 +301,107 @@ class Items {
|
|
|
208
301
|
* @throws {@link Webflow.InternalServerError}
|
|
209
302
|
*
|
|
210
303
|
* @example
|
|
211
|
-
* await webflow.collections.items.
|
|
304
|
+
* await webflow.collections.items.createItemForMultipleLocales("collection_id", {
|
|
305
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
306
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
307
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
308
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
309
|
+
* fieldData: {
|
|
310
|
+
* name: "My new item",
|
|
311
|
+
* slug: "my-new-item"
|
|
312
|
+
* }
|
|
313
|
+
* })
|
|
314
|
+
*/
|
|
315
|
+
createItemForMultipleLocales(collectionId, request, requestOptions) {
|
|
316
|
+
var _a;
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
const _response = yield core.fetcher({
|
|
319
|
+
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/bulk`),
|
|
320
|
+
method: "POST",
|
|
321
|
+
headers: {
|
|
322
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
323
|
+
"X-Fern-Language": "JavaScript",
|
|
324
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
325
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
326
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
327
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
328
|
+
},
|
|
329
|
+
contentType: "application/json",
|
|
330
|
+
body: yield serializers.collections.BulkCollectionItem.jsonOrThrow(request, {
|
|
331
|
+
unrecognizedObjectKeys: "strip",
|
|
332
|
+
}),
|
|
333
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
334
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
335
|
+
});
|
|
336
|
+
if (_response.ok) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
if (_response.error.reason === "status-code") {
|
|
340
|
+
switch (_response.error.statusCode) {
|
|
341
|
+
case 400:
|
|
342
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
343
|
+
case 401:
|
|
344
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
345
|
+
case 404:
|
|
346
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
347
|
+
case 429:
|
|
348
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
349
|
+
case 500:
|
|
350
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
351
|
+
default:
|
|
352
|
+
throw new errors.WebflowError({
|
|
353
|
+
statusCode: _response.error.statusCode,
|
|
354
|
+
body: _response.error.body,
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
switch (_response.error.reason) {
|
|
359
|
+
case "non-json":
|
|
360
|
+
throw new errors.WebflowError({
|
|
361
|
+
statusCode: _response.error.statusCode,
|
|
362
|
+
body: _response.error.rawBody,
|
|
363
|
+
});
|
|
364
|
+
case "timeout":
|
|
365
|
+
throw new errors.WebflowTimeoutError();
|
|
366
|
+
case "unknown":
|
|
367
|
+
throw new errors.WebflowError({
|
|
368
|
+
message: _response.error.errorMessage,
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
375
|
+
* @throws {@link Webflow.BadRequestError}
|
|
376
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
377
|
+
* @throws {@link Webflow.NotFoundError}
|
|
378
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
379
|
+
* @throws {@link Webflow.InternalServerError}
|
|
380
|
+
*
|
|
381
|
+
* @example
|
|
382
|
+
* await webflow.collections.items.getItem("collection_id", "item_id", {})
|
|
212
383
|
*/
|
|
213
|
-
getItem(collectionId, itemId, requestOptions) {
|
|
384
|
+
getItem(collectionId, itemId, request = {}, requestOptions) {
|
|
214
385
|
var _a;
|
|
215
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
const { cmsLocaleId } = request;
|
|
388
|
+
const _queryParams = {};
|
|
389
|
+
if (cmsLocaleId != null) {
|
|
390
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
391
|
+
}
|
|
216
392
|
const _response = yield core.fetcher({
|
|
217
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
393
|
+
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/${itemId}`),
|
|
218
394
|
method: "GET",
|
|
219
395
|
headers: {
|
|
220
396
|
Authorization: yield this._getAuthorizationHeader(),
|
|
221
397
|
"X-Fern-Language": "JavaScript",
|
|
222
398
|
"X-Fern-SDK-Name": "webflow-api",
|
|
223
|
-
"X-Fern-SDK-Version": "2.
|
|
399
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
400
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
401
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
402
|
},
|
|
225
403
|
contentType: "application/json",
|
|
404
|
+
queryParameters: _queryParams,
|
|
226
405
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
227
406
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
228
407
|
});
|
|
@@ -270,7 +449,7 @@ class Items {
|
|
|
270
449
|
});
|
|
271
450
|
}
|
|
272
451
|
/**
|
|
273
|
-
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `
|
|
452
|
+
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
|
|
274
453
|
* @throws {@link Webflow.BadRequestError}
|
|
275
454
|
* @throws {@link Webflow.UnauthorizedError}
|
|
276
455
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -278,21 +457,34 @@ class Items {
|
|
|
278
457
|
* @throws {@link Webflow.InternalServerError}
|
|
279
458
|
*
|
|
280
459
|
* @example
|
|
281
|
-
* await webflow.collections.items.deleteItem("
|
|
460
|
+
* await webflow.collections.items.deleteItem("collection_id", "item_id", {})
|
|
282
461
|
*/
|
|
283
|
-
deleteItem(collectionId, itemId, requestOptions) {
|
|
462
|
+
deleteItem(collectionId, itemId, request = {}, requestOptions) {
|
|
284
463
|
var _a;
|
|
285
464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
const { cmsLocaleIds } = request;
|
|
466
|
+
const _queryParams = {};
|
|
467
|
+
if (cmsLocaleIds != null) {
|
|
468
|
+
if (Array.isArray(cmsLocaleIds)) {
|
|
469
|
+
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
286
475
|
const _response = yield core.fetcher({
|
|
287
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
476
|
+
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/${itemId}`),
|
|
288
477
|
method: "DELETE",
|
|
289
478
|
headers: {
|
|
290
479
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
480
|
"X-Fern-Language": "JavaScript",
|
|
292
481
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "2.
|
|
482
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
483
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
484
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
294
485
|
},
|
|
295
486
|
contentType: "application/json",
|
|
487
|
+
queryParameters: _queryParams,
|
|
296
488
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
297
489
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
298
490
|
});
|
|
@@ -334,7 +526,7 @@ class Items {
|
|
|
334
526
|
});
|
|
335
527
|
}
|
|
336
528
|
/**
|
|
337
|
-
* Update a selected Item in a Collection. </br></br> Required scope | `
|
|
529
|
+
* Update a selected Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
338
530
|
* @throws {@link Webflow.BadRequestError}
|
|
339
531
|
* @throws {@link Webflow.UnauthorizedError}
|
|
340
532
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -342,25 +534,180 @@ class Items {
|
|
|
342
534
|
* @throws {@link Webflow.InternalServerError}
|
|
343
535
|
*
|
|
344
536
|
* @example
|
|
345
|
-
* await webflow.collections.items.updateItem("
|
|
537
|
+
* await webflow.collections.items.updateItem("collection_id", "item_id", {
|
|
346
538
|
* id: "580e64008c9a982ac9b8b754",
|
|
539
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
347
540
|
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
348
541
|
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
349
542
|
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
350
|
-
* fieldData: {
|
|
543
|
+
* fieldData: {
|
|
544
|
+
* name: "My new item",
|
|
545
|
+
* slug: "my-new-item"
|
|
546
|
+
* }
|
|
351
547
|
* })
|
|
352
548
|
*/
|
|
353
549
|
updateItem(collectionId, itemId, request, requestOptions) {
|
|
354
550
|
var _a;
|
|
355
551
|
return __awaiter(this, void 0, void 0, function* () {
|
|
356
552
|
const _response = yield core.fetcher({
|
|
357
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
553
|
+
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/${itemId}`),
|
|
554
|
+
method: "PATCH",
|
|
555
|
+
headers: {
|
|
556
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
557
|
+
"X-Fern-Language": "JavaScript",
|
|
558
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
559
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
560
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
561
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
562
|
+
},
|
|
563
|
+
contentType: "application/json",
|
|
564
|
+
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
565
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
566
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
567
|
+
});
|
|
568
|
+
if (_response.ok) {
|
|
569
|
+
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
570
|
+
unrecognizedObjectKeys: "passthrough",
|
|
571
|
+
allowUnrecognizedUnionMembers: true,
|
|
572
|
+
allowUnrecognizedEnumValues: true,
|
|
573
|
+
skipValidation: true,
|
|
574
|
+
breadcrumbsPrefix: ["response"],
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
if (_response.error.reason === "status-code") {
|
|
578
|
+
switch (_response.error.statusCode) {
|
|
579
|
+
case 400:
|
|
580
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
581
|
+
case 401:
|
|
582
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
583
|
+
case 404:
|
|
584
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
585
|
+
case 429:
|
|
586
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
587
|
+
case 500:
|
|
588
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
589
|
+
default:
|
|
590
|
+
throw new errors.WebflowError({
|
|
591
|
+
statusCode: _response.error.statusCode,
|
|
592
|
+
body: _response.error.body,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
switch (_response.error.reason) {
|
|
597
|
+
case "non-json":
|
|
598
|
+
throw new errors.WebflowError({
|
|
599
|
+
statusCode: _response.error.statusCode,
|
|
600
|
+
body: _response.error.rawBody,
|
|
601
|
+
});
|
|
602
|
+
case "timeout":
|
|
603
|
+
throw new errors.WebflowTimeoutError();
|
|
604
|
+
case "unknown":
|
|
605
|
+
throw new errors.WebflowError({
|
|
606
|
+
message: _response.error.errorMessage,
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* 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`
|
|
613
|
+
* @throws {@link Webflow.BadRequestError}
|
|
614
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
615
|
+
* @throws {@link Webflow.NotFoundError}
|
|
616
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
617
|
+
* @throws {@link Webflow.InternalServerError}
|
|
618
|
+
*
|
|
619
|
+
* @example
|
|
620
|
+
* await webflow.collections.items.deleteItemLive("collection_id", "item_id")
|
|
621
|
+
*/
|
|
622
|
+
deleteItemLive(collectionId, itemId, requestOptions) {
|
|
623
|
+
var _a;
|
|
624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
625
|
+
const _response = yield core.fetcher({
|
|
626
|
+
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/${itemId}/live`),
|
|
627
|
+
method: "DELETE",
|
|
628
|
+
headers: {
|
|
629
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
630
|
+
"X-Fern-Language": "JavaScript",
|
|
631
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
632
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
633
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
634
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
635
|
+
},
|
|
636
|
+
contentType: "application/json",
|
|
637
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
638
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
639
|
+
});
|
|
640
|
+
if (_response.ok) {
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
if (_response.error.reason === "status-code") {
|
|
644
|
+
switch (_response.error.statusCode) {
|
|
645
|
+
case 400:
|
|
646
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
647
|
+
case 401:
|
|
648
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
649
|
+
case 404:
|
|
650
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
651
|
+
case 429:
|
|
652
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
653
|
+
case 500:
|
|
654
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
655
|
+
default:
|
|
656
|
+
throw new errors.WebflowError({
|
|
657
|
+
statusCode: _response.error.statusCode,
|
|
658
|
+
body: _response.error.body,
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
switch (_response.error.reason) {
|
|
663
|
+
case "non-json":
|
|
664
|
+
throw new errors.WebflowError({
|
|
665
|
+
statusCode: _response.error.statusCode,
|
|
666
|
+
body: _response.error.rawBody,
|
|
667
|
+
});
|
|
668
|
+
case "timeout":
|
|
669
|
+
throw new errors.WebflowTimeoutError();
|
|
670
|
+
case "unknown":
|
|
671
|
+
throw new errors.WebflowError({
|
|
672
|
+
message: _response.error.errorMessage,
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* 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`
|
|
679
|
+
* @throws {@link Webflow.BadRequestError}
|
|
680
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
681
|
+
* @throws {@link Webflow.NotFoundError}
|
|
682
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
683
|
+
* @throws {@link Webflow.InternalServerError}
|
|
684
|
+
*
|
|
685
|
+
* @example
|
|
686
|
+
* await webflow.collections.items.updateItemLive("collection_id", "item_id", {
|
|
687
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
688
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
689
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
690
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
691
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
692
|
+
* fieldData: {
|
|
693
|
+
* name: "My new item",
|
|
694
|
+
* slug: "my-new-item"
|
|
695
|
+
* }
|
|
696
|
+
* })
|
|
697
|
+
*/
|
|
698
|
+
updateItemLive(collectionId, itemId, request, requestOptions) {
|
|
699
|
+
var _a;
|
|
700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
701
|
+
const _response = yield core.fetcher({
|
|
702
|
+
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/${itemId}/live`),
|
|
358
703
|
method: "PATCH",
|
|
359
704
|
headers: {
|
|
360
705
|
Authorization: yield this._getAuthorizationHeader(),
|
|
361
706
|
"X-Fern-Language": "JavaScript",
|
|
362
707
|
"X-Fern-SDK-Name": "webflow-api",
|
|
363
|
-
"X-Fern-SDK-Version": "2.
|
|
708
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
709
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
710
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
364
711
|
},
|
|
365
712
|
contentType: "application/json",
|
|
366
713
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -419,21 +766,23 @@ class Items {
|
|
|
419
766
|
* @throws {@link Webflow.InternalServerError}
|
|
420
767
|
*
|
|
421
768
|
* @example
|
|
422
|
-
* await webflow.collections.items.publishItem("
|
|
423
|
-
* itemIds: []
|
|
769
|
+
* await webflow.collections.items.publishItem("collection_id", {
|
|
770
|
+
* itemIds: ["itemIds"]
|
|
424
771
|
* })
|
|
425
772
|
*/
|
|
426
773
|
publishItem(collectionId, request, requestOptions) {
|
|
427
774
|
var _a;
|
|
428
775
|
return __awaiter(this, void 0, void 0, function* () {
|
|
429
776
|
const _response = yield core.fetcher({
|
|
430
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
777
|
+
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/publish`),
|
|
431
778
|
method: "POST",
|
|
432
779
|
headers: {
|
|
433
780
|
Authorization: yield this._getAuthorizationHeader(),
|
|
434
781
|
"X-Fern-Language": "JavaScript",
|
|
435
782
|
"X-Fern-SDK-Name": "webflow-api",
|
|
436
|
-
"X-Fern-SDK-Version": "2.
|
|
783
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
784
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
785
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
437
786
|
},
|
|
438
787
|
contentType: "application/json",
|
|
439
788
|
body: yield serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
|
package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
9
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
10
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
11
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
12
|
+
* fieldData: {
|
|
13
|
+
* name: "My new item",
|
|
14
|
+
* slug: "my-new-item"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface BulkCollectionItem {
|
|
19
|
+
/** Unique identifier for the Item */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Array of identifiers for the locales where the item will be crated */
|
|
22
|
+
cmsLocaleIds?: string[];
|
|
23
|
+
/** The date the item was last published */
|
|
24
|
+
lastPublished?: string;
|
|
25
|
+
/** The date the item was last updated */
|
|
26
|
+
lastUpdated?: string;
|
|
27
|
+
/** The date the item was created */
|
|
28
|
+
createdOn?: string;
|
|
29
|
+
/** Boolean determining if the Item is set to archived */
|
|
30
|
+
isArchived?: boolean;
|
|
31
|
+
/** Boolean determining if the Item is set to draft */
|
|
32
|
+
isDraft?: boolean;
|
|
33
|
+
fieldData?: Webflow.collections.BulkCollectionItemFieldData;
|
|
34
|
+
}
|
package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ItemsDeleteItemRequest {
|
|
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
|
+
}
|
package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ItemsGetItemRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for a CMS Locale. These UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
|
|
11
|
+
*/
|
|
12
|
+
cmsLocaleId?: string;
|
|
13
|
+
}
|
package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface ItemsListItemsRequest {
|
|
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[];
|
|
9
13
|
/**
|
|
10
14
|
* Offset used for pagination if the results have more than limit records
|
|
11
15
|
*/
|