webflow-api 2.2.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.js +8 -8
- package/api/resources/collections/client/Client.js +5 -5
- package/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +13 -2
- package/api/resources/collections/resources/items/client/Client.js +100 -18
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +21 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.d.ts +0 -1
- package/api/resources/collections/resources/items/types/index.js +0 -1
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.js +5 -5
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.d.ts +23 -14
- package/api/resources/pages/client/Client.js +28 -19
- package/api/resources/pages/client/requests/DomWrite.d.ts +10 -1
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +12 -12
- package/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/api/resources/pages/types/DomWriteNodesItem.d.ts +1 -1
- package/api/resources/pages/types/UpdateStaticContentResponse.d.ts +7 -0
- package/api/resources/pages/types/index.d.ts +1 -0
- package/api/resources/pages/types/index.js +1 -0
- package/api/resources/products/client/Client.d.ts +34 -26
- package/api/resources/products/client/Client.js +41 -33
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +28 -5
- package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +38 -0
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +1 -0
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +1 -0
- package/api/resources/products/client/requests/index.d.ts +1 -1
- package/api/resources/products/types/index.d.ts +0 -11
- package/api/resources/products/types/index.js +0 -11
- package/api/resources/scripts/client/Client.d.ts +2 -2
- package/api/resources/scripts/client/Client.js +5 -5
- package/api/resources/sites/client/Client.d.ts +2 -1
- package/api/resources/sites/client/Client.js +6 -5
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/Asset.d.ts +8 -8
- package/api/types/AssetFolder.d.ts +2 -2
- package/api/types/AssetUpload.d.ts +5 -5
- package/api/types/AssetUploadUploadDetails.d.ts +2 -4
- package/api/types/AssetVariant.d.ts +4 -0
- package/{dist/api/types/CustomCodeResponse.d.ts → api/types/CustomCodeHostedResponse.d.ts} +9 -9
- package/api/types/{CustomCodeResponse.d.ts → CustomCodeInlineResponse.d.ts} +9 -9
- package/api/types/Form.d.ts +13 -8
- package/api/types/FormField.d.ts +3 -0
- package/api/types/FormFieldValue.d.ts +3 -0
- package/api/types/FormResponseSettings.d.ts +5 -2
- package/api/types/Locale.d.ts +21 -0
- package/api/types/Locales.d.ts +10 -0
- package/api/types/Node.d.ts +1 -0
- package/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- package/api/types/Order.d.ts +5 -5
- package/api/types/OrderAddress.d.ts +1 -1
- package/api/types/OrderAddressJapanType.d.ts +1 -1
- package/api/types/OrderList.d.ts +1 -1
- package/api/types/OrderPurchasedItem.d.ts +2 -0
- package/api/types/Product.d.ts +2 -0
- package/api/types/ProductFieldData.d.ts +5 -4
- package/api/types/RegisteredScriptList.d.ts +4 -1
- package/api/types/ScriptApply.d.ts +1 -1
- package/api/types/ScriptApplyList.d.ts +1 -0
- package/api/types/Scripts.d.ts +3 -0
- package/api/types/Site.d.ts +3 -0
- package/api/types/Sites.d.ts +7 -0
- package/api/types/Sku.d.ts +2 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +11 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +12 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +11 -0
- package/api/types/index.d.ts +7 -1
- package/api/types/index.js +7 -1
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.js +8 -8
- package/dist/api/resources/collections/client/Client.js +5 -5
- package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +13 -2
- package/dist/api/resources/collections/resources/items/client/Client.js +100 -18
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +21 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/items/types/index.js +0 -1
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.js +5 -5
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.d.ts +23 -14
- package/dist/api/resources/pages/client/Client.js +28 -19
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +10 -1
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +12 -12
- package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -3
- package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/pages/types/UpdateStaticContentResponse.d.ts +7 -0
- package/dist/api/resources/pages/types/index.d.ts +1 -0
- package/dist/api/resources/pages/types/index.js +1 -0
- package/dist/api/resources/products/client/Client.d.ts +34 -26
- package/dist/api/resources/products/client/Client.js +41 -33
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +28 -5
- package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +38 -0
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +1 -0
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +1 -0
- package/dist/api/resources/products/client/requests/index.d.ts +1 -1
- package/dist/api/resources/products/types/index.d.ts +0 -11
- package/dist/api/resources/products/types/index.js +0 -11
- package/dist/api/resources/scripts/client/Client.d.ts +2 -2
- package/dist/api/resources/scripts/client/Client.js +5 -5
- package/dist/api/resources/sites/client/Client.d.ts +2 -1
- package/dist/api/resources/sites/client/Client.js +6 -5
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.js +4 -4
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/types/Asset.d.ts +8 -8
- package/dist/api/types/AssetFolder.d.ts +2 -2
- package/dist/api/types/AssetUpload.d.ts +5 -5
- package/dist/api/types/AssetUploadUploadDetails.d.ts +2 -4
- package/dist/api/types/AssetVariant.d.ts +4 -0
- package/dist/api/types/CustomCodeHostedResponse.d.ts +24 -0
- package/dist/api/types/CustomCodeInlineResponse.d.ts +24 -0
- package/dist/api/types/Form.d.ts +13 -8
- package/dist/api/types/FormField.d.ts +3 -0
- package/dist/api/types/FormFieldValue.d.ts +3 -0
- package/dist/api/types/FormResponseSettings.d.ts +5 -2
- package/dist/api/types/Locale.d.ts +21 -0
- package/dist/api/types/Locales.d.ts +10 -0
- package/dist/api/types/Node.d.ts +1 -0
- package/dist/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/api/types/Order.d.ts +5 -5
- package/dist/api/types/OrderAddress.d.ts +1 -1
- package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
- package/dist/api/types/OrderList.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItem.d.ts +2 -0
- package/dist/api/types/Product.d.ts +2 -0
- package/dist/api/types/ProductFieldData.d.ts +5 -4
- package/dist/api/types/RegisteredScriptList.d.ts +4 -1
- package/dist/api/types/ScriptApply.d.ts +1 -1
- package/dist/api/types/ScriptApplyList.d.ts +1 -0
- package/dist/api/types/Scripts.d.ts +3 -0
- package/dist/api/types/Site.d.ts +3 -0
- package/dist/api/types/Sites.d.ts +7 -0
- package/dist/api/types/Sku.d.ts +2 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +11 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +12 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +11 -0
- package/dist/api/types/index.d.ts +7 -1
- package/dist/api/types/index.js +7 -1
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/items/types/index.js +0 -1
- package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +12 -0
- package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js → dist/serialization/resources/pages/types/UpdateStaticContentResponse.js} +4 -2
- package/dist/serialization/resources/pages/types/index.d.ts +1 -0
- package/dist/serialization/resources/pages/types/index.js +1 -0
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +2 -4
- package/dist/serialization/resources/products/client/requests/{ProductsUpdateRequest.d.ts → ProductSkuUpdate.d.ts} +4 -3
- package/{serialization/resources/products/client/requests/ProductsUpdateRequest.js → dist/serialization/resources/products/client/requests/ProductSkuUpdate.js} +4 -3
- 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/index.d.ts +0 -11
- package/dist/serialization/resources/products/types/index.js +0 -11
- package/dist/serialization/types/Asset.d.ts +4 -4
- package/dist/serialization/types/Asset.js +4 -4
- package/dist/serialization/types/AssetFolder.d.ts +1 -1
- package/dist/serialization/types/AssetFolder.js +1 -1
- package/dist/serialization/types/AssetUpload.d.ts +3 -3
- package/dist/serialization/types/AssetUpload.js +3 -3
- package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -3
- package/dist/serialization/types/AssetUploadUploadDetails.js +2 -3
- package/dist/serialization/types/{CustomCodeResponse.d.ts → CustomCodeHostedResponse.d.ts} +6 -6
- package/{serialization/types/CustomCodeResponse.js → dist/serialization/types/CustomCodeHostedResponse.js} +6 -6
- package/{serialization/types/CustomCodeResponse.d.ts → dist/serialization/types/CustomCodeInlineResponse.d.ts} +6 -6
- package/dist/serialization/types/{CustomCodeResponse.js → CustomCodeInlineResponse.js} +6 -6
- package/dist/serialization/types/Form.d.ts +5 -5
- package/dist/serialization/types/Form.js +5 -5
- package/dist/serialization/types/FormResponseSettings.d.ts +1 -1
- package/dist/serialization/types/FormResponseSettings.js +1 -1
- package/dist/serialization/types/Locale.d.ts +19 -0
- package/dist/serialization/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Locale.js} +11 -5
- package/dist/serialization/types/Locales.d.ts +13 -0
- package/dist/serialization/types/Locales.js +45 -0
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +2 -0
- package/dist/serialization/types/OrderList.d.ts +1 -1
- package/dist/serialization/types/OrderList.js +1 -1
- package/dist/serialization/types/OrderPurchasedItem.d.ts +1 -0
- package/dist/serialization/types/OrderPurchasedItem.js +1 -0
- package/dist/serialization/types/Product.d.ts +1 -0
- package/dist/serialization/types/Product.js +1 -0
- package/dist/serialization/types/ProductFieldData.d.ts +2 -3
- package/dist/serialization/types/ProductFieldData.js +2 -3
- package/dist/serialization/types/RegisteredScriptList.d.ts +1 -1
- package/dist/serialization/types/RegisteredScriptList.js +1 -1
- package/dist/serialization/types/Site.d.ts +2 -0
- package/dist/serialization/types/Site.js +2 -0
- package/dist/serialization/types/Sites.d.ts +12 -0
- package/dist/serialization/types/Sites.js +42 -0
- package/dist/serialization/types/Sku.d.ts +1 -0
- package/dist/serialization/types/Sku.js +1 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +3 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +14 -0
- package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +7 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +10 -0
- package/{serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js → dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js} +3 -3
- package/dist/serialization/types/index.d.ts +7 -1
- package/dist/serialization/types/index.js +7 -1
- package/dist/wrapper/CollectionsClient.d.ts +8 -0
- package/dist/wrapper/CollectionsClient.js +18 -0
- package/dist/wrapper/ItemsClient.d.ts +30 -0
- package/dist/wrapper/ItemsClient.js +138 -0
- package/dist/wrapper/WebflowClient.d.ts +5 -0
- package/dist/wrapper/WebflowClient.js +11 -2
- package/package.json +1 -1
- package/serialization/resources/collections/resources/items/types/index.d.ts +0 -1
- package/serialization/resources/collections/resources/items/types/index.js +0 -1
- package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +12 -0
- package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js → serialization/resources/pages/types/UpdateStaticContentResponse.js} +4 -2
- package/serialization/resources/pages/types/index.d.ts +1 -0
- package/serialization/resources/pages/types/index.js +1 -0
- package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
- package/serialization/resources/products/client/requests/ProductSkuCreate.js +2 -4
- package/serialization/resources/products/client/requests/{ProductsUpdateRequest.d.ts → ProductSkuUpdate.d.ts} +4 -3
- package/{dist/serialization/resources/products/client/requests/ProductsUpdateRequest.js → serialization/resources/products/client/requests/ProductSkuUpdate.js} +4 -3
- 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/index.d.ts +0 -11
- package/serialization/resources/products/types/index.js +0 -11
- package/serialization/types/Asset.d.ts +4 -4
- package/serialization/types/Asset.js +4 -4
- package/serialization/types/AssetFolder.d.ts +1 -1
- package/serialization/types/AssetFolder.js +1 -1
- package/serialization/types/AssetUpload.d.ts +3 -3
- package/serialization/types/AssetUpload.js +3 -3
- package/serialization/types/AssetUploadUploadDetails.d.ts +2 -3
- package/serialization/types/AssetUploadUploadDetails.js +2 -3
- package/serialization/types/CustomCodeHostedResponse.d.ts +19 -0
- package/serialization/types/CustomCodeHostedResponse.js +40 -0
- package/serialization/types/CustomCodeInlineResponse.d.ts +19 -0
- package/serialization/types/CustomCodeInlineResponse.js +40 -0
- package/serialization/types/Form.d.ts +5 -5
- package/serialization/types/Form.js +5 -5
- package/serialization/types/FormResponseSettings.d.ts +1 -1
- package/serialization/types/FormResponseSettings.js +1 -1
- package/serialization/types/Locale.d.ts +19 -0
- package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → serialization/types/Locale.js} +11 -6
- package/serialization/types/Locales.d.ts +13 -0
- package/serialization/types/Locales.js +45 -0
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +2 -0
- package/serialization/types/OrderList.d.ts +1 -1
- package/serialization/types/OrderList.js +1 -1
- package/serialization/types/OrderPurchasedItem.d.ts +1 -0
- package/serialization/types/OrderPurchasedItem.js +1 -0
- package/serialization/types/Product.d.ts +1 -0
- package/serialization/types/Product.js +1 -0
- package/serialization/types/ProductFieldData.d.ts +2 -3
- package/serialization/types/ProductFieldData.js +2 -3
- package/serialization/types/RegisteredScriptList.d.ts +1 -1
- package/serialization/types/RegisteredScriptList.js +1 -1
- package/serialization/types/Site.d.ts +2 -0
- package/serialization/types/Site.js +2 -0
- package/serialization/types/Sites.d.ts +12 -0
- package/serialization/types/Sites.js +42 -0
- package/serialization/types/Sku.d.ts +1 -0
- package/serialization/types/Sku.js +1 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +3 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +14 -0
- package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +7 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +10 -0
- package/{dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js → serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js} +3 -3
- package/serialization/types/index.d.ts +7 -1
- package/serialization/types/index.js +7 -1
- package/wrapper/CollectionsClient.d.ts +8 -0
- package/wrapper/CollectionsClient.js +18 -0
- package/wrapper/ItemsClient.d.ts +30 -0
- package/wrapper/ItemsClient.js +138 -0
- package/wrapper/WebflowClient.d.ts +5 -0
- package/wrapper/WebflowClient.js +11 -2
- package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -7
- package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +0 -56
- package/api/resources/products/types/ProductSkuCreateProduct.d.ts +0 -22
- package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -23
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -13
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -12
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -38
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -37
- package/api/resources/products/types/ProductSkuCreateSku.d.ts +0 -19
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -26
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -12
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -11
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +0 -10
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -15
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -13
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +0 -12
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -13
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -7
- package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +0 -56
- package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +0 -22
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -23
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -13
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -12
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -38
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -37
- package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +0 -19
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -26
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -12
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -11
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +0 -10
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -15
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -13
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +0 -12
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -13
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +0 -5
- package/dist/api/types/CustomCodeResponse.js +0 -5
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -13
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +0 -34
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +0 -18
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +0 -50
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -20
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +0 -56
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -10
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -36
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -10
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -61
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +0 -16
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +0 -48
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -20
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +0 -56
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -13
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -10
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -14
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -10
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -14
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +0 -34
- package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +0 -18
- package/serialization/resources/products/types/ProductSkuCreateProduct.js +0 -50
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +0 -20
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +0 -56
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +0 -10
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +0 -36
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +0 -10
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +0 -61
- package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +0 -16
- package/serialization/resources/products/types/ProductSkuCreateSku.js +0 -48
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +0 -20
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +0 -56
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +0 -13
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +0 -34
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +0 -10
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +0 -14
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +0 -10
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +0 -14
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +0 -35
- /package/api/resources/collections/resources/items/{types/ItemsPublishItemResponse.js → client/requests/ItemsListItemsLiveRequest.js} +0 -0
- /package/api/resources/{products/client/requests/ProductsUpdateRequest.js → pages/types/UpdateStaticContentResponse.js} +0 -0
- /package/api/resources/products/{types/ProductSkuCreateProduct.js → client/requests/ProductSkuUpdate.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/CustomCodeHostedResponse.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSku.js → types/CustomCodeInlineResponse.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/Locale.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Locales.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → types/Sites.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
- /package/{api/types/CustomCodeResponse.js → dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js} +0 -0
- /package/dist/api/resources/{collections/resources/items/types/ItemsPublishItemResponse.js → pages/types/UpdateStaticContentResponse.js} +0 -0
- /package/dist/api/resources/products/client/requests/{ProductsUpdateRequest.js → ProductSkuUpdate.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateProduct.js → types/CustomCodeHostedResponse.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/CustomCodeInlineResponse.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateSku.js → types/Locale.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/Locales.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Sites.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
|
@@ -82,7 +82,7 @@ class Products {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "
|
|
85
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -157,7 +157,32 @@ class Products {
|
|
|
157
157
|
* @throws {@link Webflow.InternalServerError}
|
|
158
158
|
*
|
|
159
159
|
* @example
|
|
160
|
-
* await webflow.products.create("site_id", {
|
|
160
|
+
* await webflow.products.create("site_id", {
|
|
161
|
+
* product: {
|
|
162
|
+
* id: "660eb7a486d1d6e0412292d7",
|
|
163
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
164
|
+
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
165
|
+
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
166
|
+
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
167
|
+
* isArchived: false,
|
|
168
|
+
* isDraft: false,
|
|
169
|
+
* fieldData: {
|
|
170
|
+
* name: "T-Shirt",
|
|
171
|
+
* slug: "t-shirt",
|
|
172
|
+
* description: "A plain cotton t-shirt.",
|
|
173
|
+
* shippable: true,
|
|
174
|
+
* skuProperties: [{
|
|
175
|
+
* id: "Color",
|
|
176
|
+
* name: "Color",
|
|
177
|
+
* enum: [{
|
|
178
|
+
* id: "id",
|
|
179
|
+
* name: "name",
|
|
180
|
+
* slug: "slug"
|
|
181
|
+
* }]
|
|
182
|
+
* }]
|
|
183
|
+
* }
|
|
184
|
+
* }
|
|
185
|
+
* })
|
|
161
186
|
*/
|
|
162
187
|
create(siteId, request = {}, requestOptions) {
|
|
163
188
|
var _a;
|
|
@@ -169,7 +194,7 @@ class Products {
|
|
|
169
194
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
195
|
"X-Fern-Language": "JavaScript",
|
|
171
196
|
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
-
"X-Fern-SDK-Version": "
|
|
197
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
173
198
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
199
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
200
|
},
|
|
@@ -250,7 +275,7 @@ class Products {
|
|
|
250
275
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
276
|
"X-Fern-Language": "JavaScript",
|
|
252
277
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "
|
|
278
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
254
279
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
280
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
281
|
},
|
|
@@ -320,10 +345,11 @@ class Products {
|
|
|
320
345
|
* @example
|
|
321
346
|
* await webflow.products.update("site_id", "product_id", {
|
|
322
347
|
* product: {
|
|
323
|
-
* id: "
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
348
|
+
* id: "660eb7a486d1d6e0412292d7",
|
|
349
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
350
|
+
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
351
|
+
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
352
|
+
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
327
353
|
* isArchived: false,
|
|
328
354
|
* isDraft: false,
|
|
329
355
|
* fieldData: {
|
|
@@ -332,26 +358,6 @@ class Products {
|
|
|
332
358
|
* description: "A plain cotton t-shirt.",
|
|
333
359
|
* shippable: true,
|
|
334
360
|
* skuProperties: [{
|
|
335
|
-
* id: "color",
|
|
336
|
-
* name: "Color",
|
|
337
|
-
* enum: [{
|
|
338
|
-
* id: "royal-blue",
|
|
339
|
-
* name: "Royal Blue",
|
|
340
|
-
* slug: "royal-blue"
|
|
341
|
-
* }, {
|
|
342
|
-
* id: "crimson-red",
|
|
343
|
-
* name: "Crimson Red",
|
|
344
|
-
* slug: "crimson-red"
|
|
345
|
-
* }, {
|
|
346
|
-
* id: "forrest-green",
|
|
347
|
-
* name: "name",
|
|
348
|
-
* slug: "slug"
|
|
349
|
-
* }, {
|
|
350
|
-
* id: "id",
|
|
351
|
-
* name: "name",
|
|
352
|
-
* slug: "slug"
|
|
353
|
-
* }]
|
|
354
|
-
* }, {
|
|
355
361
|
* id: "Color",
|
|
356
362
|
* name: "Color",
|
|
357
363
|
* enum: [{
|
|
@@ -364,7 +370,7 @@ class Products {
|
|
|
364
370
|
* }
|
|
365
371
|
* })
|
|
366
372
|
*/
|
|
367
|
-
update(siteId, productId, request, requestOptions) {
|
|
373
|
+
update(siteId, productId, request = {}, requestOptions) {
|
|
368
374
|
var _a;
|
|
369
375
|
return __awaiter(this, void 0, void 0, function* () {
|
|
370
376
|
const _response = yield core.fetcher({
|
|
@@ -374,12 +380,12 @@ class Products {
|
|
|
374
380
|
Authorization: yield this._getAuthorizationHeader(),
|
|
375
381
|
"X-Fern-Language": "JavaScript",
|
|
376
382
|
"X-Fern-SDK-Name": "webflow-api",
|
|
377
|
-
"X-Fern-SDK-Version": "
|
|
383
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
378
384
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
379
385
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
380
386
|
},
|
|
381
387
|
contentType: "application/json",
|
|
382
|
-
body: yield serializers.
|
|
388
|
+
body: yield serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
383
389
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
384
390
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
385
391
|
});
|
|
@@ -448,6 +454,7 @@ class Products {
|
|
|
448
454
|
* await webflow.products.createSku("site_id", "product_id", {
|
|
449
455
|
* skus: [{
|
|
450
456
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
457
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
451
458
|
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
452
459
|
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
453
460
|
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
@@ -473,7 +480,7 @@ class Products {
|
|
|
473
480
|
Authorization: yield this._getAuthorizationHeader(),
|
|
474
481
|
"X-Fern-Language": "JavaScript",
|
|
475
482
|
"X-Fern-SDK-Name": "webflow-api",
|
|
476
|
-
"X-Fern-SDK-Version": "
|
|
483
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
477
484
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
478
485
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
479
486
|
},
|
|
@@ -545,6 +552,7 @@ class Products {
|
|
|
545
552
|
* await webflow.products.updateSku("site_id", "product_id", "sku_id", {
|
|
546
553
|
* sku: {
|
|
547
554
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
555
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
548
556
|
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
549
557
|
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
550
558
|
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
@@ -570,7 +578,7 @@ class Products {
|
|
|
570
578
|
Authorization: yield this._getAuthorizationHeader(),
|
|
571
579
|
"X-Fern-Language": "JavaScript",
|
|
572
580
|
"X-Fern-SDK-Name": "webflow-api",
|
|
573
|
-
"X-Fern-SDK-Version": "
|
|
581
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
574
582
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
575
583
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
576
584
|
},
|
|
@@ -4,12 +4,35 @@
|
|
|
4
4
|
import * as Webflow from "../../../..";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* product: {
|
|
9
|
+
* id: "660eb7a486d1d6e0412292d7",
|
|
10
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
11
|
+
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
12
|
+
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
13
|
+
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
14
|
+
* isArchived: false,
|
|
15
|
+
* isDraft: false,
|
|
16
|
+
* fieldData: {
|
|
17
|
+
* name: "T-Shirt",
|
|
18
|
+
* slug: "t-shirt",
|
|
19
|
+
* description: "A plain cotton t-shirt.",
|
|
20
|
+
* shippable: true,
|
|
21
|
+
* skuProperties: [{
|
|
22
|
+
* id: "Color",
|
|
23
|
+
* name: "Color",
|
|
24
|
+
* enum: [{
|
|
25
|
+
* id: "id",
|
|
26
|
+
* name: "name",
|
|
27
|
+
* slug: "slug"
|
|
28
|
+
* }]
|
|
29
|
+
* }]
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
8
33
|
*/
|
|
9
34
|
export interface ProductSkuCreate {
|
|
10
35
|
publishStatus?: Webflow.PublishStatus;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/** The SKU object */
|
|
14
|
-
sku?: Webflow.ProductSkuCreateSku;
|
|
36
|
+
product?: Webflow.Product;
|
|
37
|
+
sku?: Webflow.Sku;
|
|
15
38
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* product: {
|
|
9
|
+
* id: "660eb7a486d1d6e0412292d7",
|
|
10
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
11
|
+
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
12
|
+
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
13
|
+
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
14
|
+
* isArchived: false,
|
|
15
|
+
* isDraft: false,
|
|
16
|
+
* fieldData: {
|
|
17
|
+
* name: "T-Shirt",
|
|
18
|
+
* slug: "t-shirt",
|
|
19
|
+
* description: "A plain cotton t-shirt.",
|
|
20
|
+
* shippable: true,
|
|
21
|
+
* skuProperties: [{
|
|
22
|
+
* id: "Color",
|
|
23
|
+
* name: "Color",
|
|
24
|
+
* enum: [{
|
|
25
|
+
* id: "id",
|
|
26
|
+
* name: "name",
|
|
27
|
+
* slug: "slug"
|
|
28
|
+
* }]
|
|
29
|
+
* }]
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
export interface ProductSkuUpdate {
|
|
35
|
+
publishStatus?: Webflow.PublishStatus;
|
|
36
|
+
product?: Webflow.Product;
|
|
37
|
+
sku?: Webflow.Sku;
|
|
38
|
+
}
|
|
@@ -7,6 +7,7 @@ import * as Webflow from "../../../..";
|
|
|
7
7
|
* {
|
|
8
8
|
* skus: [{
|
|
9
9
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
10
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
10
11
|
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
11
12
|
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
12
13
|
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
@@ -7,6 +7,7 @@ import * as Webflow from "../../../..";
|
|
|
7
7
|
* {
|
|
8
8
|
* sku: {
|
|
9
9
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
10
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
10
11
|
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
11
12
|
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
12
13
|
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ProductsListRequest } from "./ProductsListRequest";
|
|
2
2
|
export { ProductSkuCreate } from "./ProductSkuCreate";
|
|
3
|
-
export {
|
|
3
|
+
export { ProductSkuUpdate } from "./ProductSkuUpdate";
|
|
4
4
|
export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest";
|
|
5
5
|
export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export * from "./ProductSkuCreateProductFieldDataTaxCategory";
|
|
2
|
-
export * from "./ProductSkuCreateProductFieldDataEcProductType";
|
|
3
|
-
export * from "./ProductSkuCreateProductFieldData";
|
|
4
|
-
export * from "./ProductSkuCreateProduct";
|
|
5
|
-
export * from "./ProductSkuCreateSkuFieldDataPrice";
|
|
6
|
-
export * from "./ProductSkuCreateSkuFieldDataCompareAtPrice";
|
|
7
|
-
export * from "./ProductSkuCreateSkuFieldDataEcSkuBillingMethod";
|
|
8
|
-
export * from "./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval";
|
|
9
|
-
export * from "./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan";
|
|
10
|
-
export * from "./ProductSkuCreateSkuFieldData";
|
|
11
|
-
export * from "./ProductSkuCreateSku";
|
|
12
1
|
export * from "./ProductsCreateSkuResponse";
|
|
@@ -14,15 +14,4 @@ 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("./ProductSkuCreateProductFieldDataTaxCategory"), exports);
|
|
18
|
-
__exportStar(require("./ProductSkuCreateProductFieldDataEcProductType"), exports);
|
|
19
|
-
__exportStar(require("./ProductSkuCreateProductFieldData"), exports);
|
|
20
|
-
__exportStar(require("./ProductSkuCreateProduct"), exports);
|
|
21
|
-
__exportStar(require("./ProductSkuCreateSkuFieldDataPrice"), exports);
|
|
22
|
-
__exportStar(require("./ProductSkuCreateSkuFieldDataCompareAtPrice"), exports);
|
|
23
|
-
__exportStar(require("./ProductSkuCreateSkuFieldDataEcSkuBillingMethod"), exports);
|
|
24
|
-
__exportStar(require("./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval"), exports);
|
|
25
|
-
__exportStar(require("./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan"), exports);
|
|
26
|
-
__exportStar(require("./ProductSkuCreateSkuFieldData"), exports);
|
|
27
|
-
__exportStar(require("./ProductSkuCreateSku"), exports);
|
|
28
17
|
__exportStar(require("./ProductsCreateSkuResponse"), exports);
|
|
@@ -45,7 +45,7 @@ export declare class Scripts {
|
|
|
45
45
|
* displayName: "displayName"
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
registerHosted(siteId: string, request: Webflow.CustomCodeHostedRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.
|
|
48
|
+
registerHosted(siteId: string, request: Webflow.CustomCodeHostedRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.CustomCodeHostedResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
51
51
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -61,6 +61,6 @@ export declare class Scripts {
|
|
|
61
61
|
* displayName: "Alert"
|
|
62
62
|
* })
|
|
63
63
|
*/
|
|
64
|
-
registerInline(siteId: string, request: Webflow.CustomCodeInlineRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.
|
|
64
|
+
registerInline(siteId: string, request: Webflow.CustomCodeInlineRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.CustomCodeInlineResponse>;
|
|
65
65
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
66
66
|
}
|
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -147,7 +147,7 @@ class Scripts {
|
|
|
147
147
|
Authorization: yield this._getAuthorizationHeader(),
|
|
148
148
|
"X-Fern-Language": "JavaScript",
|
|
149
149
|
"X-Fern-SDK-Name": "webflow-api",
|
|
150
|
-
"X-Fern-SDK-Version": "
|
|
150
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
151
151
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
152
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
153
|
},
|
|
@@ -157,7 +157,7 @@ class Scripts {
|
|
|
157
157
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
158
158
|
});
|
|
159
159
|
if (_response.ok) {
|
|
160
|
-
return yield serializers.
|
|
160
|
+
return yield serializers.CustomCodeHostedResponse.parseOrThrow(_response.body, {
|
|
161
161
|
unrecognizedObjectKeys: "passthrough",
|
|
162
162
|
allowUnrecognizedUnionMembers: true,
|
|
163
163
|
allowUnrecognizedEnumValues: true,
|
|
@@ -224,7 +224,7 @@ class Scripts {
|
|
|
224
224
|
Authorization: yield this._getAuthorizationHeader(),
|
|
225
225
|
"X-Fern-Language": "JavaScript",
|
|
226
226
|
"X-Fern-SDK-Name": "webflow-api",
|
|
227
|
-
"X-Fern-SDK-Version": "
|
|
227
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
228
228
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
229
229
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
230
230
|
},
|
|
@@ -234,7 +234,7 @@ class Scripts {
|
|
|
234
234
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
235
235
|
});
|
|
236
236
|
if (_response.ok) {
|
|
237
|
-
return yield serializers.
|
|
237
|
+
return yield serializers.CustomCodeInlineResponse.parseOrThrow(_response.body, {
|
|
238
238
|
unrecognizedObjectKeys: "passthrough",
|
|
239
239
|
allowUnrecognizedUnionMembers: true,
|
|
240
240
|
allowUnrecognizedEnumValues: true,
|
|
@@ -30,7 +30,7 @@ export declare class Sites {
|
|
|
30
30
|
* @example
|
|
31
31
|
* await webflow.sites.list()
|
|
32
32
|
*/
|
|
33
|
-
list(requestOptions?: Sites.RequestOptions): Promise<Webflow.
|
|
33
|
+
list(requestOptions?: Sites.RequestOptions): Promise<Webflow.Sites>;
|
|
34
34
|
/**
|
|
35
35
|
* Get a site by site id </br></br> Required scope | `sites:read`
|
|
36
36
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -65,6 +65,7 @@ export declare class Sites {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* await webflow.sites.publish("site_id", {
|
|
68
|
+
* customDomains: ["589a331aa51e760df7ccb89d"],
|
|
68
69
|
* publishToWebflowSubdomain: false
|
|
69
70
|
* })
|
|
70
71
|
*/
|
|
@@ -72,7 +72,7 @@ class Sites {
|
|
|
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": "
|
|
75
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -81,7 +81,7 @@ class Sites {
|
|
|
81
81
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
82
|
});
|
|
83
83
|
if (_response.ok) {
|
|
84
|
-
return yield serializers.
|
|
84
|
+
return yield serializers.Sites.parseOrThrow(_response.body, {
|
|
85
85
|
unrecognizedObjectKeys: "passthrough",
|
|
86
86
|
allowUnrecognizedUnionMembers: true,
|
|
87
87
|
allowUnrecognizedEnumValues: true,
|
|
@@ -144,7 +144,7 @@ class Sites {
|
|
|
144
144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
145
145
|
"X-Fern-Language": "JavaScript",
|
|
146
146
|
"X-Fern-SDK-Name": "webflow-api",
|
|
147
|
-
"X-Fern-SDK-Version": "
|
|
147
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
148
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
149
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
150
150
|
},
|
|
@@ -216,7 +216,7 @@ class Sites {
|
|
|
216
216
|
Authorization: yield this._getAuthorizationHeader(),
|
|
217
217
|
"X-Fern-Language": "JavaScript",
|
|
218
218
|
"X-Fern-SDK-Name": "webflow-api",
|
|
219
|
-
"X-Fern-SDK-Version": "
|
|
219
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
220
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
221
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
222
222
|
},
|
|
@@ -277,6 +277,7 @@ class Sites {
|
|
|
277
277
|
*
|
|
278
278
|
* @example
|
|
279
279
|
* await webflow.sites.publish("site_id", {
|
|
280
|
+
* customDomains: ["589a331aa51e760df7ccb89d"],
|
|
280
281
|
* publishToWebflowSubdomain: false
|
|
281
282
|
* })
|
|
282
283
|
*/
|
|
@@ -290,7 +291,7 @@ class Sites {
|
|
|
290
291
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
292
|
"X-Fern-Language": "JavaScript",
|
|
292
293
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "
|
|
294
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
294
295
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
296
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
297
|
},
|
|
@@ -77,7 +77,7 @@ class ActivityLogs {
|
|
|
77
77
|
Authorization: yield this._getAuthorizationHeader(),
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "webflow-api",
|
|
80
|
-
"X-Fern-SDK-Version": "
|
|
80
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
81
81
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
82
82
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
83
83
|
},
|
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -159,7 +159,7 @@ class Scripts {
|
|
|
159
159
|
Authorization: yield this._getAuthorizationHeader(),
|
|
160
160
|
"X-Fern-Language": "JavaScript",
|
|
161
161
|
"X-Fern-SDK-Name": "webflow-api",
|
|
162
|
-
"X-Fern-SDK-Version": "
|
|
162
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
163
163
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
164
164
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
165
165
|
},
|
|
@@ -232,7 +232,7 @@ class Scripts {
|
|
|
232
232
|
Authorization: yield this._getAuthorizationHeader(),
|
|
233
233
|
"X-Fern-Language": "JavaScript",
|
|
234
234
|
"X-Fern-SDK-Name": "webflow-api",
|
|
235
|
-
"X-Fern-SDK-Version": "
|
|
235
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
236
236
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
237
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
238
238
|
},
|
|
@@ -306,7 +306,7 @@ class Scripts {
|
|
|
306
306
|
Authorization: yield this._getAuthorizationHeader(),
|
|
307
307
|
"X-Fern-Language": "JavaScript",
|
|
308
308
|
"X-Fern-SDK-Name": "webflow-api",
|
|
309
|
-
"X-Fern-SDK-Version": "
|
|
309
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
310
310
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
311
311
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
312
312
|
},
|
|
@@ -67,7 +67,7 @@ class Token {
|
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "webflow-api",
|
|
70
|
-
"X-Fern-SDK-Version": "
|
|
70
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
73
|
},
|
|
@@ -129,7 +129,7 @@ class Token {
|
|
|
129
129
|
Authorization: yield this._getAuthorizationHeader(),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "webflow-api",
|
|
132
|
-
"X-Fern-SDK-Version": "
|
|
132
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
133
133
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
134
134
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
135
135
|
},
|
|
@@ -82,7 +82,7 @@ class Users {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "
|
|
85
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -158,7 +158,7 @@ class Users {
|
|
|
158
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"X-Fern-SDK-Version": "
|
|
161
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
162
162
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
163
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
164
|
},
|
|
@@ -233,7 +233,7 @@ class Users {
|
|
|
233
233
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
234
|
"X-Fern-Language": "JavaScript",
|
|
235
235
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "
|
|
236
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
237
237
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
238
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
239
|
},
|
|
@@ -311,7 +311,7 @@ class Users {
|
|
|
311
311
|
Authorization: yield this._getAuthorizationHeader(),
|
|
312
312
|
"X-Fern-Language": "JavaScript",
|
|
313
313
|
"X-Fern-SDK-Name": "webflow-api",
|
|
314
|
-
"X-Fern-SDK-Version": "
|
|
314
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
315
315
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
316
316
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
317
317
|
},
|
|
@@ -391,7 +391,7 @@ class Users {
|
|
|
391
391
|
Authorization: yield this._getAuthorizationHeader(),
|
|
392
392
|
"X-Fern-Language": "JavaScript",
|
|
393
393
|
"X-Fern-SDK-Name": "webflow-api",
|
|
394
|
-
"X-Fern-SDK-Version": "
|
|
394
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
395
395
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
396
396
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
397
397
|
},
|
|
@@ -70,7 +70,7 @@ class Webhooks {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "
|
|
73
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -145,7 +145,7 @@ class Webhooks {
|
|
|
145
145
|
Authorization: yield this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "webflow-api",
|
|
148
|
-
"X-Fern-SDK-Version": "
|
|
148
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -218,7 +218,7 @@ class Webhooks {
|
|
|
218
218
|
Authorization: yield this._getAuthorizationHeader(),
|
|
219
219
|
"X-Fern-Language": "JavaScript",
|
|
220
220
|
"X-Fern-SDK-Name": "webflow-api",
|
|
221
|
-
"X-Fern-SDK-Version": "
|
|
221
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -290,7 +290,7 @@ class Webhooks {
|
|
|
290
290
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
291
|
"X-Fern-Language": "JavaScript",
|
|
292
292
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "
|
|
293
|
+
"X-Fern-SDK-Version": "2.3.2",
|
|
294
294
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
295
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
296
|
},
|
|
@@ -5,21 +5,21 @@ import * as Webflow from "..";
|
|
|
5
5
|
export interface Asset {
|
|
6
6
|
/** Unique identifier for this asset */
|
|
7
7
|
id?: string;
|
|
8
|
+
/** Original file name at the time of upload */
|
|
9
|
+
originalFileName?: string;
|
|
10
|
+
/** Display name of the asset */
|
|
11
|
+
displayName?: string;
|
|
8
12
|
/** File format type */
|
|
9
13
|
contentType?: string;
|
|
10
14
|
/** size in bytes */
|
|
11
15
|
size?: number;
|
|
12
16
|
/** Unique identifier for the site that hosts this asset */
|
|
13
17
|
siteId?: string;
|
|
14
|
-
/** Link to the asset */
|
|
15
|
-
hostedUrl?: string;
|
|
16
|
-
/** Original file name at the time of upload */
|
|
17
|
-
originalFileName?: string;
|
|
18
|
-
/** Display name of the asset */
|
|
19
|
-
displayName?: string;
|
|
20
|
-
/** Date the asset metadata was last updated */
|
|
21
|
-
lastUpdated?: Date;
|
|
22
18
|
/** Date the asset metadata was created */
|
|
23
19
|
createdOn?: Date;
|
|
20
|
+
/** Date the asset metadata was last updated */
|
|
21
|
+
lastUpdated?: Date;
|
|
22
|
+
/** Link to the asset */
|
|
23
|
+
hostedUrl?: string;
|
|
24
24
|
variants?: Webflow.AssetVariant[];
|
|
25
25
|
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Asset Folder details
|
|
6
6
|
*/
|
|
7
7
|
export interface AssetFolder {
|
|
8
|
-
/** User visible name for the Asset Folder */
|
|
9
|
-
displayName?: string;
|
|
10
8
|
/** Unique identifier for the Asset Folder */
|
|
11
9
|
id?: string;
|
|
10
|
+
/** User visible name for the Asset Folder */
|
|
11
|
+
displayName?: string;
|
|
12
12
|
/** Pointer to parent Asset Folder (or null if root) */
|
|
13
13
|
parentFolder?: string;
|
|
14
14
|
/** Array of Asset instances in the folder */
|