webflow-api 2.2.1 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1 -2
- package/api/resources/collections/resources/items/client/Client.js +11 -18
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
- 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/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 +1 -2
- package/dist/api/resources/collections/resources/items/client/Client.js +11 -18
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +0 -1
- 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/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/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/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/ProductSkuCreateSkuFieldDataCompareAtPrice.js +0 -5
- 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/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +0 -5
- 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 → pages/types/UpdateStaticContentResponse.js} +0 -0
- /package/api/resources/products/client/requests/{ProductsUpdateRequest.js → ProductSkuUpdate.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateProduct.js → types/CustomCodeHostedResponse.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/CustomCodeInlineResponse.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSku.js → types/Locale.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/Locales.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js → types/Sites.js} +0 -0
- /package/api/{resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
- /package/{api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js → dist/api/resources/pages/types/UpdateStaticContentResponse.js} +0 -0
- /package/{api/types/CustomCodeResponse.js → dist/api/resources/products/client/requests/ProductSkuUpdate.js} +0 -0
- /package/dist/api/{resources/collections/resources/items/types/ItemsPublishItemResponse.js → types/CustomCodeHostedResponse.js} +0 -0
- /package/dist/api/{resources/products/client/requests/ProductsUpdateRequest.js → types/CustomCodeInlineResponse.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateProduct.js → types/Locale.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateProductFieldData.js → types/Locales.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateSku.js → types/Sites.js} +0 -0
- /package/dist/api/{resources/products/types/ProductSkuCreateSkuFieldData.js → types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.Client = void 0;
|
|
39
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
40
|
+
const Webflow = __importStar(require("../api"));
|
|
41
|
+
const Client_1 = require("../api/resources/collections/resources/items/client/Client");
|
|
42
|
+
const core = __importStar(require("../core"));
|
|
43
|
+
const environments = __importStar(require("../environments"));
|
|
44
|
+
const errors = __importStar(require("../errors"));
|
|
45
|
+
const serializers = __importStar(require("../serialization"));
|
|
46
|
+
// Client adapts the base client to permit extra properties in
|
|
47
|
+
// the client.Collections.Items.createItem request.
|
|
48
|
+
class Client extends Client_1.Items {
|
|
49
|
+
constructor(_options) {
|
|
50
|
+
super(_options);
|
|
51
|
+
this._options = _options;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
55
|
+
* @throws {@link Webflow.BadRequestError}
|
|
56
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
57
|
+
* @throws {@link Webflow.NotFoundError}
|
|
58
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
59
|
+
* @throws {@link Webflow.InternalServerError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await webflow.collections.items.createItem("collection_id", {
|
|
63
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
64
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
65
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
66
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
67
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
68
|
+
* isArchived: false,
|
|
69
|
+
* isDraft: false,
|
|
70
|
+
* fieldData: {
|
|
71
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
72
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
73
|
+
* }
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
createItem(collectionId, request, requestOptions) {
|
|
77
|
+
var _a;
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const _response = yield core.fetcher({
|
|
80
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items`),
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers: {
|
|
83
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
84
|
+
"X-Fern-Language": "JavaScript",
|
|
85
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
86
|
+
"X-Fern-SDK-Version": "v2.2.1",
|
|
87
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
88
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
89
|
+
},
|
|
90
|
+
contentType: "application/json",
|
|
91
|
+
body: yield serializers.CollectionItem.jsonOrThrow(request, {
|
|
92
|
+
unrecognizedObjectKeys: "passthrough",
|
|
93
|
+
allowUnrecognizedUnionMembers: true,
|
|
94
|
+
allowUnrecognizedEnumValues: true,
|
|
95
|
+
skipValidation: true,
|
|
96
|
+
}),
|
|
97
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
98
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
99
|
+
});
|
|
100
|
+
if (_response.ok) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (_response.error.reason === "status-code") {
|
|
104
|
+
switch (_response.error.statusCode) {
|
|
105
|
+
case 400:
|
|
106
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
107
|
+
case 401:
|
|
108
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
109
|
+
case 404:
|
|
110
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
111
|
+
case 429:
|
|
112
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
113
|
+
case 500:
|
|
114
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
115
|
+
default:
|
|
116
|
+
throw new errors.WebflowError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.body,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
switch (_response.error.reason) {
|
|
123
|
+
case "non-json":
|
|
124
|
+
throw new errors.WebflowError({
|
|
125
|
+
statusCode: _response.error.statusCode,
|
|
126
|
+
body: _response.error.rawBody,
|
|
127
|
+
});
|
|
128
|
+
case "timeout":
|
|
129
|
+
throw new errors.WebflowTimeoutError();
|
|
130
|
+
case "unknown":
|
|
131
|
+
throw new errors.WebflowError({
|
|
132
|
+
message: _response.error.errorMessage,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.Client = Client;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { WebflowClient as FernClient } from "../Client";
|
|
2
2
|
import { OauthScope } from "../api/types";
|
|
3
|
+
import { Client as Collections } from "./CollectionsClient";
|
|
3
4
|
export declare class WebflowClient extends FernClient {
|
|
5
|
+
protected readonly _options: FernClient.Options;
|
|
6
|
+
constructor(_options: FernClient.Options);
|
|
7
|
+
protected _collections: Collections | undefined;
|
|
8
|
+
get collections(): Collections;
|
|
4
9
|
/**
|
|
5
10
|
* @param clientId The OAuth client ID
|
|
6
11
|
* @param state The state
|
|
@@ -36,11 +36,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.WebflowClient = void 0;
|
|
39
|
+
const qs_1 = __importDefault(require("qs"));
|
|
39
40
|
const Client_1 = require("../Client");
|
|
40
|
-
const errors = __importStar(require("../errors"));
|
|
41
41
|
const core = __importStar(require("../core"));
|
|
42
|
-
const
|
|
42
|
+
const errors = __importStar(require("../errors"));
|
|
43
|
+
const CollectionsClient_1 = require("./CollectionsClient");
|
|
43
44
|
class WebflowClient extends Client_1.WebflowClient {
|
|
45
|
+
constructor(_options) {
|
|
46
|
+
super(_options);
|
|
47
|
+
this._options = _options;
|
|
48
|
+
}
|
|
49
|
+
get collections() {
|
|
50
|
+
var _a;
|
|
51
|
+
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new CollectionsClient_1.Client(this._options)));
|
|
52
|
+
}
|
|
44
53
|
/**
|
|
45
54
|
* @param clientId The OAuth client ID
|
|
46
55
|
* @param state The state
|
package/package.json
CHANGED
|
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BulkCollectionItemFieldData"), exports);
|
|
18
|
-
__exportStar(require("./ItemsPublishItemResponse"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../..";
|
|
5
|
+
import * as Webflow from "../../../../api";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const UpdateStaticContentResponse: core.serialization.ObjectSchema<serializers.UpdateStaticContentResponse.Raw, Webflow.UpdateStaticContentResponse>;
|
|
8
|
+
export declare namespace UpdateStaticContentResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
errors: string[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -26,6 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.UpdateStaticContentResponse = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.UpdateStaticContentResponse = core.serialization.object({
|
|
32
|
+
errors: core.serialization.list(core.serialization.string()),
|
|
33
|
+
});
|
|
@@ -8,7 +8,7 @@ export declare const ProductSkuCreate: core.serialization.Schema<serializers.Pro
|
|
|
8
8
|
export declare namespace ProductSkuCreate {
|
|
9
9
|
interface Raw {
|
|
10
10
|
publishStatus?: serializers.PublishStatus.Raw | null;
|
|
11
|
-
product?: serializers.
|
|
12
|
-
sku?: serializers.
|
|
11
|
+
product?: serializers.Product.Raw | null;
|
|
12
|
+
sku?: serializers.Sku.Raw | null;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,8 +39,6 @@ exports.ProductSkuCreate = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../core"));
|
|
40
40
|
exports.ProductSkuCreate = core.serialization.object({
|
|
41
41
|
publishStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).PublishStatus; })).optional(),
|
|
42
|
-
product: core.serialization
|
|
43
|
-
|
|
44
|
-
.optional(),
|
|
45
|
-
sku: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).ProductSkuCreateSku; })).optional(),
|
|
42
|
+
product: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).Product; })).optional(),
|
|
43
|
+
sku: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).Sku; })).optional(),
|
|
46
44
|
});
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../..";
|
|
5
5
|
import * as Webflow from "../../../../../api";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ProductSkuUpdate: core.serialization.Schema<serializers.ProductSkuUpdate.Raw, Webflow.ProductSkuUpdate>;
|
|
8
|
+
export declare namespace ProductSkuUpdate {
|
|
9
9
|
interface Raw {
|
|
10
10
|
publishStatus?: serializers.PublishStatus.Raw | null;
|
|
11
|
-
product
|
|
11
|
+
product?: serializers.Product.Raw | null;
|
|
12
|
+
sku?: serializers.Sku.Raw | null;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -35,9 +35,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.ProductSkuUpdate = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../../core"));
|
|
40
|
-
exports.
|
|
40
|
+
exports.ProductSkuUpdate = core.serialization.object({
|
|
41
41
|
publishStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).PublishStatus; })).optional(),
|
|
42
|
-
product: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).Product; })),
|
|
42
|
+
product: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).Product; })).optional(),
|
|
43
|
+
sku: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).Sku; })).optional(),
|
|
43
44
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ProductSkuCreate } from "./ProductSkuCreate";
|
|
2
|
-
export {
|
|
2
|
+
export { ProductSkuUpdate } from "./ProductSkuUpdate";
|
|
3
3
|
export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest";
|
|
4
4
|
export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductsUpdateSkuRequest = exports.ProductsCreateSkuRequest = exports.
|
|
3
|
+
exports.ProductsUpdateSkuRequest = exports.ProductsCreateSkuRequest = exports.ProductSkuUpdate = exports.ProductSkuCreate = void 0;
|
|
4
4
|
var ProductSkuCreate_1 = require("./ProductSkuCreate");
|
|
5
5
|
Object.defineProperty(exports, "ProductSkuCreate", { enumerable: true, get: function () { return ProductSkuCreate_1.ProductSkuCreate; } });
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var ProductSkuUpdate_1 = require("./ProductSkuUpdate");
|
|
7
|
+
Object.defineProperty(exports, "ProductSkuUpdate", { enumerable: true, get: function () { return ProductSkuUpdate_1.ProductSkuUpdate; } });
|
|
8
8
|
var ProductsCreateSkuRequest_1 = require("./ProductsCreateSkuRequest");
|
|
9
9
|
Object.defineProperty(exports, "ProductsCreateSkuRequest", { enumerable: true, get: function () { return ProductsCreateSkuRequest_1.ProductsCreateSkuRequest; } });
|
|
10
10
|
var ProductsUpdateSkuRequest_1 = require("./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);
|
|
@@ -8,14 +8,14 @@ export declare const Asset: core.serialization.ObjectSchema<serializers.Asset.Ra
|
|
|
8
8
|
export declare namespace Asset {
|
|
9
9
|
interface Raw {
|
|
10
10
|
id?: string | null;
|
|
11
|
+
originalFileName?: string | null;
|
|
12
|
+
displayName?: string | null;
|
|
11
13
|
contentType?: string | null;
|
|
12
14
|
size?: number | null;
|
|
13
15
|
siteId?: string | null;
|
|
14
|
-
hostedUrl?: string | null;
|
|
15
|
-
originalFileName?: string | null;
|
|
16
|
-
displayName?: string | null;
|
|
17
|
-
lastUpdated?: string | null;
|
|
18
16
|
createdOn?: string | null;
|
|
17
|
+
lastUpdated?: string | null;
|
|
18
|
+
hostedUrl?: string | null;
|
|
19
19
|
variants?: serializers.AssetVariant.Raw[] | null;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -39,14 +39,14 @@ exports.Asset = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
40
|
exports.Asset = core.serialization.object({
|
|
41
41
|
id: core.serialization.string().optional(),
|
|
42
|
+
originalFileName: core.serialization.string().optional(),
|
|
43
|
+
displayName: core.serialization.string().optional(),
|
|
42
44
|
contentType: core.serialization.string().optional(),
|
|
43
45
|
size: core.serialization.number().optional(),
|
|
44
46
|
siteId: core.serialization.string().optional(),
|
|
45
|
-
hostedUrl: core.serialization.string().optional(),
|
|
46
|
-
originalFileName: core.serialization.string().optional(),
|
|
47
|
-
displayName: core.serialization.string().optional(),
|
|
48
|
-
lastUpdated: core.serialization.date().optional(),
|
|
49
47
|
createdOn: core.serialization.date().optional(),
|
|
48
|
+
lastUpdated: core.serialization.date().optional(),
|
|
49
|
+
hostedUrl: core.serialization.string().optional(),
|
|
50
50
|
variants: core.serialization
|
|
51
51
|
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AssetVariant; })))
|
|
52
52
|
.optional(),
|
|
@@ -7,8 +7,8 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const AssetFolder: core.serialization.ObjectSchema<serializers.AssetFolder.Raw, Webflow.AssetFolder>;
|
|
8
8
|
export declare namespace AssetFolder {
|
|
9
9
|
interface Raw {
|
|
10
|
-
displayName?: string | null;
|
|
11
10
|
id?: string | null;
|
|
11
|
+
displayName?: string | null;
|
|
12
12
|
parentFolder?: string | null;
|
|
13
13
|
assets?: string[] | null;
|
|
14
14
|
siteId?: string | null;
|
|
@@ -29,8 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.AssetFolder = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.AssetFolder = core.serialization.object({
|
|
32
|
-
displayName: core.serialization.string().optional(),
|
|
33
32
|
id: core.serialization.string().optional(),
|
|
33
|
+
displayName: core.serialization.string().optional(),
|
|
34
34
|
parentFolder: core.serialization.string().optional(),
|
|
35
35
|
assets: core.serialization.list(core.serialization.string()).optional(),
|
|
36
36
|
siteId: core.serialization.string().optional(),
|
|
@@ -8,14 +8,14 @@ export declare const AssetUpload: core.serialization.ObjectSchema<serializers.As
|
|
|
8
8
|
export declare namespace AssetUpload {
|
|
9
9
|
interface Raw {
|
|
10
10
|
uploadDetails?: serializers.AssetUploadUploadDetails.Raw | null;
|
|
11
|
-
id?: string | null;
|
|
12
11
|
contentType?: string | null;
|
|
12
|
+
id?: string | null;
|
|
13
13
|
parentFolder?: string | null;
|
|
14
|
-
hostedUrl?: string | null;
|
|
15
14
|
uploadUrl?: string | null;
|
|
16
15
|
assetUrl?: string | null;
|
|
16
|
+
hostedUrl?: string | null;
|
|
17
17
|
originalFileName?: string | null;
|
|
18
|
-
lastUpdated?: string | null;
|
|
19
18
|
createdOn?: string | null;
|
|
19
|
+
lastUpdated?: string | null;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -41,13 +41,13 @@ exports.AssetUpload = core.serialization.object({
|
|
|
41
41
|
uploadDetails: core.serialization
|
|
42
42
|
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AssetUploadUploadDetails; }))
|
|
43
43
|
.optional(),
|
|
44
|
-
id: core.serialization.string().optional(),
|
|
45
44
|
contentType: core.serialization.string().optional(),
|
|
45
|
+
id: core.serialization.string().optional(),
|
|
46
46
|
parentFolder: core.serialization.string().optional(),
|
|
47
|
-
hostedUrl: core.serialization.string().optional(),
|
|
48
47
|
uploadUrl: core.serialization.string().optional(),
|
|
49
48
|
assetUrl: core.serialization.string().optional(),
|
|
49
|
+
hostedUrl: core.serialization.string().optional(),
|
|
50
50
|
originalFileName: core.serialization.string().optional(),
|
|
51
|
-
lastUpdated: core.serialization.date().optional(),
|
|
52
51
|
createdOn: core.serialization.date().optional(),
|
|
52
|
+
lastUpdated: core.serialization.date().optional(),
|
|
53
53
|
});
|
|
@@ -9,12 +9,11 @@ export declare namespace AssetUploadUploadDetails {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
acl?: string | null;
|
|
11
11
|
bucket?: string | null;
|
|
12
|
-
key?: string | null;
|
|
13
|
-
Policy?: string | null;
|
|
14
12
|
"X-Amz-Algorithm"?: string | null;
|
|
15
13
|
"X-Amz-Credential"?: string | null;
|
|
16
14
|
"X-Amz-Date"?: string | null;
|
|
17
|
-
|
|
15
|
+
key?: string | null;
|
|
16
|
+
Policy?: string | null;
|
|
18
17
|
"X-Amz-Signature"?: string | null;
|
|
19
18
|
success_action_status?: string | null;
|
|
20
19
|
"content-type"?: string | null;
|
|
@@ -31,12 +31,11 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.AssetUploadUploadDetails = core.serialization.object({
|
|
32
32
|
acl: core.serialization.string().optional(),
|
|
33
33
|
bucket: core.serialization.string().optional(),
|
|
34
|
-
key: core.serialization.string().optional(),
|
|
35
|
-
policy: core.serialization.property("Policy", core.serialization.string().optional()),
|
|
36
34
|
xAmzAlgorithm: core.serialization.property("X-Amz-Algorithm", core.serialization.string().optional()),
|
|
37
35
|
xAmzCredential: core.serialization.property("X-Amz-Credential", core.serialization.string().optional()),
|
|
38
36
|
xAmzDate: core.serialization.property("X-Amz-Date", core.serialization.string().optional()),
|
|
39
|
-
|
|
37
|
+
key: core.serialization.string().optional(),
|
|
38
|
+
policy: core.serialization.property("Policy", core.serialization.string().optional()),
|
|
40
39
|
xAmzSignature: core.serialization.property("X-Amz-Signature", core.serialization.string().optional()),
|
|
41
40
|
successActionStatus: core.serialization.property("success_action_status", core.serialization.string().optional()),
|
|
42
41
|
contentType: core.serialization.property("content-type", core.serialization.string().optional()),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Webflow from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CustomCodeHostedResponse: core.serialization.ObjectSchema<serializers.CustomCodeHostedResponse.Raw, Webflow.CustomCodeHostedResponse>;
|
|
8
|
+
export declare namespace CustomCodeHostedResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
canCopy?: boolean | null;
|
|
12
|
+
displayName?: string | null;
|
|
13
|
+
hostedLocation?: string | null;
|
|
14
|
+
integrityHash?: string | null;
|
|
15
|
+
createdOn?: string | null;
|
|
16
|
+
lastUpdated?: string | null;
|
|
17
|
+
version?: string | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CustomCodeHostedResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.CustomCodeHostedResponse = core.serialization.object({
|
|
32
|
+
id: core.serialization.string().optional(),
|
|
33
|
+
canCopy: core.serialization.boolean().optional(),
|
|
34
|
+
displayName: core.serialization.string().optional(),
|
|
35
|
+
hostedLocation: core.serialization.string().optional(),
|
|
36
|
+
integrityHash: core.serialization.string().optional(),
|
|
37
|
+
createdOn: core.serialization.string().optional(),
|
|
38
|
+
lastUpdated: core.serialization.string().optional(),
|
|
39
|
+
version: core.serialization.string().optional(),
|
|
40
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Webflow from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CustomCodeInlineResponse: core.serialization.ObjectSchema<serializers.CustomCodeInlineResponse.Raw, Webflow.CustomCodeInlineResponse>;
|
|
8
|
+
export declare namespace CustomCodeInlineResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
canCopy?: boolean | null;
|
|
12
|
+
displayName?: string | null;
|
|
13
|
+
hostedLocation?: string | null;
|
|
14
|
+
integrityHash?: string | null;
|
|
15
|
+
createdOn?: string | null;
|
|
16
|
+
lastUpdated?: string | null;
|
|
17
|
+
version?: string | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CustomCodeInlineResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.CustomCodeInlineResponse = core.serialization.object({
|
|
32
|
+
id: core.serialization.string().optional(),
|
|
33
|
+
canCopy: core.serialization.boolean().optional(),
|
|
34
|
+
displayName: core.serialization.string().optional(),
|
|
35
|
+
hostedLocation: core.serialization.string().optional(),
|
|
36
|
+
integrityHash: core.serialization.string().optional(),
|
|
37
|
+
createdOn: core.serialization.string().optional(),
|
|
38
|
+
lastUpdated: core.serialization.string().optional(),
|
|
39
|
+
version: core.serialization.string().optional(),
|
|
40
|
+
});
|
|
@@ -7,16 +7,16 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const Form: core.serialization.ObjectSchema<serializers.Form.Raw, Webflow.Form>;
|
|
8
8
|
export declare namespace Form {
|
|
9
9
|
interface Raw {
|
|
10
|
-
id?: string | null;
|
|
11
10
|
displayName?: string | null;
|
|
11
|
+
createdOn?: string | null;
|
|
12
|
+
lastUpdated?: string | null;
|
|
13
|
+
fields?: serializers.FormField.Raw[] | null;
|
|
14
|
+
responseSettings?: serializers.FormResponseSettings.Raw | null;
|
|
15
|
+
id?: string | null;
|
|
12
16
|
siteId?: string | null;
|
|
13
17
|
siteDomainId?: string | null;
|
|
14
18
|
pageId?: string | null;
|
|
15
19
|
pageName?: string | null;
|
|
16
20
|
workspaceId?: string | null;
|
|
17
|
-
createdOn?: string | null;
|
|
18
|
-
lastUpdated?: string | null;
|
|
19
|
-
fields?: serializers.FormField.Raw[] | null;
|
|
20
|
-
responseSettings?: serializers.FormResponseSettings.Raw | null;
|
|
21
21
|
}
|
|
22
22
|
}
|