webflow-api 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/api/resources/accessGroups/client/Client.d.ts +1 -3
- package/api/resources/accessGroups/client/Client.js +5 -5
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
- package/api/resources/assets/client/Client.d.ts +21 -7
- package/api/resources/assets/client/Client.js +110 -21
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +25 -15
- package/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
- package/api/resources/collections/resources/fields/client/Client.js +19 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/index.js +1 -0
- package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
- package/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
- package/api/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/types/index.js +17 -0
- package/api/resources/collections/resources/index.d.ts +2 -1
- package/api/resources/collections/resources/index.js +3 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +80 -16
- package/api/resources/collections/resources/items/client/Client.js +300 -29
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/client/requests/index.d.ts +2 -0
- package/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.js +5 -3
- package/api/resources/forms/client/Client.d.ts +6 -6
- package/api/resources/forms/client/Client.js +35 -16
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/FormsListRequest.js +5 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -1
- package/api/resources/index.js +4 -2
- package/api/resources/inventory/client/Client.d.ts +2 -2
- package/api/resources/inventory/client/Client.js +10 -6
- package/api/resources/orders/client/Client.d.ts +6 -10
- package/api/resources/orders/client/Client.js +30 -22
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
- package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
- package/api/resources/pages/client/Client.d.ts +73 -4
- package/api/resources/pages/client/Client.js +312 -8
- package/api/resources/pages/client/index.d.ts +1 -1
- package/api/resources/pages/client/index.js +15 -0
- package/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
- package/api/resources/pages/client/requests/DomWrite.js +5 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
- package/api/resources/pages/client/requests/PagesListRequest.js +5 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
- package/api/resources/pages/client/requests/index.d.ts +5 -0
- package/api/resources/pages/client/requests/index.js +2 -0
- package/api/resources/pages/index.d.ts +1 -0
- package/api/resources/pages/index.js +1 -0
- package/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
- package/api/resources/pages/resources/scripts/client/Client.js +23 -9
- package/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
- package/api/resources/pages/types/DomWriteNodesItem.js +5 -0
- package/api/resources/pages/types/index.d.ts +1 -0
- package/api/resources/pages/types/index.js +17 -0
- package/api/resources/products/client/Client.d.ts +54 -74
- package/api/resources/products/client/Client.js +79 -87
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
- package/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
- package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
- package/api/resources/products/client/requests/index.d.ts +1 -1
- package/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
- package/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
- package/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
- package/api/resources/products/types/ProductSkuCreateSku.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
- package/api/resources/products/types/index.d.ts +11 -0
- package/api/resources/products/types/index.js +11 -0
- package/api/resources/scripts/client/Client.d.ts +9 -9
- package/api/resources/scripts/client/Client.js +21 -15
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +6 -3
- package/api/resources/sites/client/Client.js +26 -13
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/index.js +17 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
- package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
- package/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/index.js +17 -0
- package/api/resources/sites/resources/index.d.ts +2 -0
- package/api/resources/sites/resources/index.js +3 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
- package/api/resources/sites/resources/scripts/client/Client.js +28 -12
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +13 -20
- package/api/resources/users/client/Client.js +34 -31
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
- package/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
- package/api/resources/users/types/UsersUpdateRequestData.js +5 -0
- package/api/resources/users/types/index.d.ts +1 -0
- package/api/resources/users/types/index.js +1 -0
- package/api/resources/webhooks/client/Client.d.ts +4 -4
- package/api/resources/webhooks/client/Client.js +20 -12
- package/api/types/AssetFolder.d.ts +3 -0
- package/api/types/AssetFolderList.d.ts +2 -1
- package/api/types/CollectionItem.d.ts +2 -0
- package/api/types/Dom.d.ts +13 -0
- package/api/types/Dom.js +5 -0
- package/api/types/ImageNode.d.ts +10 -0
- package/api/types/ImageNode.js +5 -0
- package/api/types/InvalidScopes.d.ts +10 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/Node.d.ts +15 -0
- package/api/types/Node.js +5 -0
- package/api/types/NodeType.d.ts +8 -0
- package/api/types/NodeType.js +10 -0
- package/api/types/NotEnterprisePlanSite.d.ts +14 -0
- package/api/types/NotEnterprisePlanSite.js +5 -0
- package/api/types/OauthScope.d.ts +5 -1
- package/api/types/OauthScope.js +1 -0
- package/api/types/ProductAndSkUs.d.ts +1 -0
- package/api/types/ProductFieldData.d.ts +17 -3
- package/api/types/ProductFieldDataEcProductType.d.ts +13 -0
- package/api/types/ProductFieldDataEcProductType.js +12 -0
- package/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
- package/api/types/ProductFieldDataTaxCategory.js +37 -0
- package/api/types/PublishStatus.d.ts +1 -1
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemUser.d.ts +7 -0
- package/api/types/SiteActivityLogItemUser.js +5 -0
- package/api/types/Sku.d.ts +1 -0
- package/api/types/SkuFieldData.d.ts +15 -4
- package/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
- package/api/types/SkuFieldDataCompareAtPrice.js +5 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/api/types/SkuPropertyList.d.ts +6 -6
- package/api/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/api/types/TextNode.d.ts +10 -0
- package/api/types/TextNode.js +5 -0
- package/api/types/index.d.ts +14 -0
- package/api/types/index.js +14 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +8 -1
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +82 -0
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -3
- package/dist/api/resources/accessGroups/client/Client.js +5 -5
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
- package/dist/api/resources/assets/client/Client.d.ts +21 -7
- package/dist/api/resources/assets/client/Client.js +110 -21
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +25 -15
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
- package/dist/api/resources/collections/resources/fields/client/Client.js +19 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js +5 -0
- package/dist/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/index.js +1 -0
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
- package/dist/api/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/types/index.js +17 -0
- package/dist/api/resources/collections/resources/index.d.ts +2 -1
- package/dist/api/resources/collections/resources/index.js +3 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +80 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +300 -29
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +2 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.js +5 -3
- package/dist/api/resources/forms/client/Client.d.ts +6 -6
- package/dist/api/resources/forms/client/Client.js +35 -16
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/FormsListRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -1
- package/dist/api/resources/index.js +4 -2
- package/dist/api/resources/inventory/client/Client.d.ts +2 -2
- package/dist/api/resources/inventory/client/Client.js +10 -6
- package/dist/api/resources/orders/client/Client.d.ts +6 -10
- package/dist/api/resources/orders/client/Client.js +30 -22
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
- package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
- package/dist/api/resources/pages/client/Client.d.ts +73 -4
- package/dist/api/resources/pages/client/Client.js +312 -8
- package/dist/api/resources/pages/client/index.d.ts +1 -1
- package/dist/api/resources/pages/client/index.js +15 -0
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
- package/dist/api/resources/pages/client/requests/DomWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
- package/dist/api/resources/pages/client/requests/PagesListRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/index.d.ts +5 -0
- package/dist/api/resources/pages/client/requests/index.js +2 -0
- package/dist/api/resources/pages/index.d.ts +1 -0
- package/dist/api/resources/pages/index.js +1 -0
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +23 -9
- package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
- package/dist/api/resources/pages/types/DomWriteNodesItem.js +5 -0
- package/dist/api/resources/pages/types/index.d.ts +1 -0
- package/dist/api/resources/pages/types/index.js +17 -0
- package/dist/api/resources/products/client/Client.d.ts +54 -74
- package/dist/api/resources/products/client/Client.js +79 -87
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
- package/dist/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
- package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
- package/dist/api/resources/products/client/requests/index.d.ts +1 -1
- package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
- package/dist/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
- package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
- package/dist/api/resources/products/types/ProductSkuCreateSku.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
- package/dist/api/resources/products/types/index.d.ts +11 -0
- package/dist/api/resources/products/types/index.js +11 -0
- package/dist/api/resources/scripts/client/Client.d.ts +9 -9
- package/dist/api/resources/scripts/client/Client.js +21 -15
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +6 -3
- package/dist/api/resources/sites/client/Client.js +26 -13
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/index.js +17 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
- package/dist/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/index.js +17 -0
- package/dist/api/resources/sites/resources/index.d.ts +2 -0
- package/dist/api/resources/sites/resources/index.js +3 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +28 -12
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +13 -20
- package/dist/api/resources/users/client/Client.js +34 -31
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
- package/dist/api/resources/users/types/UsersUpdateRequestData.js +5 -0
- package/dist/api/resources/users/types/index.d.ts +1 -0
- package/dist/api/resources/users/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/api/resources/webhooks/client/Client.js +20 -12
- package/dist/api/types/AssetFolder.d.ts +3 -0
- package/dist/api/types/AssetFolderList.d.ts +2 -1
- package/dist/api/types/CollectionItem.d.ts +2 -0
- package/dist/api/types/Dom.d.ts +13 -0
- package/dist/api/types/Dom.js +5 -0
- package/dist/api/types/ImageNode.d.ts +10 -0
- package/dist/api/types/ImageNode.js +5 -0
- package/dist/api/types/InvalidScopes.d.ts +10 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/Node.d.ts +15 -0
- package/dist/api/types/Node.js +5 -0
- package/dist/api/types/NodeType.d.ts +8 -0
- package/dist/api/types/NodeType.js +10 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +14 -0
- package/dist/api/types/NotEnterprisePlanSite.js +5 -0
- package/dist/api/types/OauthScope.d.ts +5 -1
- package/dist/api/types/OauthScope.js +1 -0
- package/dist/api/types/ProductAndSkUs.d.ts +1 -0
- package/dist/api/types/ProductFieldData.d.ts +17 -3
- package/dist/api/types/ProductFieldDataEcProductType.d.ts +13 -0
- package/dist/api/types/ProductFieldDataEcProductType.js +12 -0
- package/dist/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
- package/dist/api/types/ProductFieldDataTaxCategory.js +37 -0
- package/dist/api/types/PublishStatus.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemUser.d.ts +7 -0
- package/dist/api/types/SiteActivityLogItemUser.js +5 -0
- package/dist/api/types/Sku.d.ts +1 -0
- package/dist/api/types/SkuFieldData.d.ts +15 -4
- package/dist/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
- package/dist/api/types/SkuFieldDataCompareAtPrice.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/dist/api/types/SkuPropertyList.d.ts +6 -6
- package/dist/api/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/dist/api/types/TextNode.d.ts +10 -0
- package/dist/api/types/TextNode.js +5 -0
- package/dist/api/types/index.d.ts +14 -0
- package/dist/api/types/index.js +14 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +8 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +82 -0
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
- package/dist/serialization/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/assets/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/fields/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/index.js +1 -0
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
- package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/types/index.js +17 -0
- package/dist/serialization/resources/collections/resources/index.d.ts +2 -1
- package/dist/serialization/resources/collections/resources/index.js +3 -2
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/pages/client/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/index.js +17 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.js +42 -0
- package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/requests/index.js +5 -0
- package/dist/serialization/resources/pages/index.d.ts +2 -0
- package/dist/serialization/resources/pages/index.js +18 -0
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
- package/dist/serialization/resources/pages/types/index.d.ts +1 -0
- package/dist/serialization/resources/pages/types/index.js +17 -0
- package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
- package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
- package/dist/serialization/resources/products/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/products/client/requests/index.js +3 -3
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
- package/dist/serialization/resources/products/types/index.d.ts +11 -0
- package/dist/serialization/resources/products/types/index.js +11 -0
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/users/client/requests/index.js +3 -1
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
- package/dist/serialization/resources/users/types/index.d.ts +1 -0
- package/dist/serialization/resources/users/types/index.js +1 -0
- package/dist/serialization/types/AssetFolderList.d.ts +1 -1
- package/dist/serialization/types/AssetFolderList.js +2 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -0
- package/dist/serialization/types/CollectionItem.js +1 -0
- package/dist/serialization/types/Dom.d.ts +14 -0
- package/dist/serialization/types/Dom.js +44 -0
- package/dist/serialization/types/ImageNode.d.ts +13 -0
- package/dist/serialization/types/ImageNode.js +34 -0
- package/dist/serialization/types/InvalidScopes.d.ts +16 -0
- package/dist/serialization/types/InvalidScopes.js +37 -0
- package/dist/serialization/types/Node.d.ts +16 -0
- package/dist/serialization/types/Node.js +46 -0
- package/dist/serialization/types/NodeType.d.ts +10 -0
- package/dist/serialization/types/NodeType.js +31 -0
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
- package/dist/serialization/types/NotEnterprisePlanSite.js +48 -0
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +1 -0
- package/dist/serialization/types/ProductFieldData.d.ts +9 -2
- package/dist/serialization/types/ProductFieldData.js +9 -2
- package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
- package/dist/serialization/types/ProductFieldDataEcProductType.js +36 -0
- package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
- package/dist/serialization/types/ProductFieldDataTaxCategory.js +61 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItem.js +1 -1
- package/dist/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
- package/dist/serialization/types/SiteActivityLogItemUser.js +34 -0
- package/dist/serialization/types/SkuFieldData.d.ts +8 -3
- package/dist/serialization/types/SkuFieldData.js +8 -3
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/dist/serialization/types/SkuPropertyList.d.ts +3 -3
- package/dist/serialization/types/SkuPropertyList.js +3 -5
- package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/dist/serialization/types/SkuPropertyListEnumItem.js +3 -3
- package/dist/serialization/types/TextNode.d.ts +13 -0
- package/dist/serialization/types/TextNode.js +34 -0
- package/dist/serialization/types/index.d.ts +14 -0
- package/dist/serialization/types/index.js +14 -0
- package/environments.d.ts +1 -1
- package/environments.js +1 -1
- package/jest.config.js +5 -0
- package/package.json +7 -3
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
- package/serialization/resources/assets/client/requests/index.d.ts +1 -0
- package/serialization/resources/assets/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/fields/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/index.js +1 -0
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
- package/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/types/index.js +17 -0
- package/serialization/resources/collections/resources/index.d.ts +2 -1
- package/serialization/resources/collections/resources/index.js +3 -2
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/pages/client/index.d.ts +1 -0
- package/serialization/resources/pages/client/index.js +17 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
- package/serialization/resources/pages/client/requests/DomWrite.js +42 -0
- package/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/serialization/resources/pages/client/requests/index.js +5 -0
- package/serialization/resources/pages/index.d.ts +2 -0
- package/serialization/resources/pages/index.js +18 -0
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
- package/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
- package/serialization/resources/pages/types/index.d.ts +1 -0
- package/serialization/resources/pages/types/index.js +17 -0
- package/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
- package/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
- package/serialization/resources/products/client/requests/index.d.ts +1 -1
- package/serialization/resources/products/client/requests/index.js +3 -3
- package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
- package/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
- package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
- package/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
- package/serialization/resources/products/types/index.d.ts +11 -0
- package/serialization/resources/products/types/index.js +11 -0
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
- package/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/serialization/resources/users/client/requests/index.js +3 -1
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
- package/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
- package/serialization/resources/users/types/index.d.ts +1 -0
- package/serialization/resources/users/types/index.js +1 -0
- package/serialization/types/AssetFolderList.d.ts +1 -1
- package/serialization/types/AssetFolderList.js +2 -2
- package/serialization/types/CollectionItem.d.ts +1 -0
- package/serialization/types/CollectionItem.js +1 -0
- package/serialization/types/Dom.d.ts +14 -0
- package/serialization/types/Dom.js +44 -0
- package/serialization/types/ImageNode.d.ts +13 -0
- package/serialization/types/ImageNode.js +34 -0
- package/serialization/types/InvalidScopes.d.ts +16 -0
- package/serialization/types/InvalidScopes.js +37 -0
- package/serialization/types/Node.d.ts +16 -0
- package/serialization/types/Node.js +46 -0
- package/serialization/types/NodeType.d.ts +10 -0
- package/serialization/types/NodeType.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
- package/serialization/types/NotEnterprisePlanSite.js +48 -0
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +1 -0
- package/serialization/types/ProductFieldData.d.ts +9 -2
- package/serialization/types/ProductFieldData.js +9 -2
- package/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
- package/serialization/types/ProductFieldDataEcProductType.js +36 -0
- package/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
- package/serialization/types/ProductFieldDataTaxCategory.js +61 -0
- package/serialization/types/SiteActivityLogItem.d.ts +1 -1
- package/serialization/types/SiteActivityLogItem.js +1 -1
- package/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
- package/serialization/types/SiteActivityLogItemUser.js +34 -0
- package/serialization/types/SkuFieldData.d.ts +8 -3
- package/serialization/types/SkuFieldData.js +8 -3
- package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
- package/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/serialization/types/SkuPropertyList.d.ts +3 -3
- package/serialization/types/SkuPropertyList.js +3 -5
- package/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/serialization/types/SkuPropertyListEnumItem.js +3 -3
- package/serialization/types/TextNode.d.ts +13 -0
- package/serialization/types/TextNode.js +34 -0
- package/serialization/types/index.d.ts +14 -0
- package/serialization/types/index.js +14 -0
- package/tests/client.test.ts +11 -0
- package/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
- package/dist/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
- /package/api/resources/{products/client/requests/ProductsCreateRequest.js → assets/client/requests/AssetsUpdateRequest.js} +0 -0
- /package/{dist/api/resources/products/client/requests/ProductsCreateRequest.js → api/resources/collections/resources/fields/client/requests/FieldCreate.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The DOM (Document Object Model) schema represents the content structure of a web page. It captures various content nodes, such as text and images, along with their associated attributes. Each node has a unique identifier and can be of different types like text or image. The schema also provides pagination details for scenarios where the content nodes are too many to be fetched in a single request.
|
|
7
|
+
*/
|
|
8
|
+
export interface Dom {
|
|
9
|
+
/** Page ID */
|
|
10
|
+
pageId?: string;
|
|
11
|
+
nodes?: Webflow.Node[];
|
|
12
|
+
pagination?: Webflow.Pagination;
|
|
13
|
+
}
|
package/api/types/Dom.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Represents an image within the DOM. It contains details about the image, such as its alternative text (alt) for accessibility and an asset identifier for fetching the actual image resource. Additional attributes can be associated with the image for styling or other purposes.
|
|
6
|
+
*/
|
|
7
|
+
export interface ImageNode {
|
|
8
|
+
alt?: string;
|
|
9
|
+
assetId?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A generic representation of a content element within the Document Object Model (DOM). Each node has a unique identifier and a specific type that determines its content structure and attributes.
|
|
7
|
+
*/
|
|
8
|
+
export interface Node {
|
|
9
|
+
/** Node UUID */
|
|
10
|
+
id?: string;
|
|
11
|
+
type?: Webflow.NodeType;
|
|
12
|
+
text?: Webflow.TextNode;
|
|
13
|
+
image?: Webflow.ImageNode;
|
|
14
|
+
attributes?: Record<string, string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "..";
|
|
5
|
+
export interface NotEnterprisePlanSite {
|
|
6
|
+
code?: "missing_scopes";
|
|
7
|
+
type?: string;
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
|
@@ -34,7 +34,10 @@ export declare type OauthScope =
|
|
|
34
34
|
| "ecommerce:read"
|
|
35
35
|
/**
|
|
36
36
|
* edit ecommerce data */
|
|
37
|
-
| "ecommerce:write"
|
|
37
|
+
| "ecommerce:write"
|
|
38
|
+
/**
|
|
39
|
+
* read site activity logs */
|
|
40
|
+
| "site_activity:read";
|
|
38
41
|
export declare const OauthScope: {
|
|
39
42
|
readonly AuthorizedUserRead: "authorized_user:read";
|
|
40
43
|
readonly ReadPages: "read:pages";
|
|
@@ -47,4 +50,5 @@ export declare const OauthScope: {
|
|
|
47
50
|
readonly UsersWrite: "users:write";
|
|
48
51
|
readonly EcommerceRead: "ecommerce:read";
|
|
49
52
|
readonly EcommerceWrite: "ecommerce:write";
|
|
53
|
+
readonly SiteActivityRead: "site_activity:read";
|
|
50
54
|
};
|
package/api/types/OauthScope.js
CHANGED
|
@@ -4,9 +4,23 @@
|
|
|
4
4
|
import * as Webflow from "..";
|
|
5
5
|
export interface ProductFieldData {
|
|
6
6
|
/** Name of the Product */
|
|
7
|
-
name
|
|
7
|
+
name: string;
|
|
8
8
|
/** URL structure of the Product in your site. */
|
|
9
|
-
slug
|
|
10
|
-
/**
|
|
9
|
+
slug: string;
|
|
10
|
+
/** A description of your product */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Boolean determining if the Product is shippable */
|
|
13
|
+
shippable?: boolean;
|
|
14
|
+
/** Variant types to include in SKUs */
|
|
11
15
|
skuProperties?: Webflow.SkuPropertyList[];
|
|
16
|
+
/** The categories your product belongs to. */
|
|
17
|
+
categories?: string[];
|
|
18
|
+
/** Product tax class */
|
|
19
|
+
taxCategory?: Webflow.ProductFieldDataTaxCategory;
|
|
20
|
+
/** The default SKU associated with this product. */
|
|
21
|
+
defaultSku?: string;
|
|
22
|
+
/** <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced" */
|
|
23
|
+
ecProductType?: Webflow.ProductFieldDataEcProductType;
|
|
24
|
+
/** Custom fields for your product. */
|
|
25
|
+
additionalProperties?: string;
|
|
12
26
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced"
|
|
6
|
+
*/
|
|
7
|
+
export declare type ProductFieldDataEcProductType = "ff42fee0113744f693a764e3431a9cc2" | "f22027db68002190aef89a4a2b7ac8a1" | "c599e43b1a1c34d5a323aedf75d3adf6" | "b6ccc1830db4b1babeb06a9ac5f6dd76";
|
|
8
|
+
export declare const ProductFieldDataEcProductType: {
|
|
9
|
+
readonly Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2";
|
|
10
|
+
readonly F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1";
|
|
11
|
+
readonly C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6";
|
|
12
|
+
readonly B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProductFieldDataEcProductType = void 0;
|
|
7
|
+
exports.ProductFieldDataEcProductType = {
|
|
8
|
+
Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2",
|
|
9
|
+
F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1",
|
|
10
|
+
C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6",
|
|
11
|
+
B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76",
|
|
12
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Product tax class
|
|
6
|
+
*/
|
|
7
|
+
export declare type ProductFieldDataTaxCategory = "standard-taxable" | "standard-exempt" | "books-religious" | "books-textbook" | "clothing" | "clothing-swimwear" | "digital-goods" | "digital-service" | "drugs-non-prescription" | "drugs-prescription" | "food-bottled-water" | "food-candy" | "food-groceries" | "food-prepared" | "food-soda" | "food-supplements" | "magazine-individual" | "magazine-subscription" | "service-admission" | "service-advertising" | "service-dry-cleaning" | "service-hairdressing" | "service-installation" | "service-miscellaneous" | "service-parking" | "service-printing" | "service-professional" | "service-repair" | "service-training";
|
|
8
|
+
export declare const ProductFieldDataTaxCategory: {
|
|
9
|
+
readonly StandardTaxable: "standard-taxable";
|
|
10
|
+
readonly StandardExempt: "standard-exempt";
|
|
11
|
+
readonly BooksReligious: "books-religious";
|
|
12
|
+
readonly BooksTextbook: "books-textbook";
|
|
13
|
+
readonly Clothing: "clothing";
|
|
14
|
+
readonly ClothingSwimwear: "clothing-swimwear";
|
|
15
|
+
readonly DigitalGoods: "digital-goods";
|
|
16
|
+
readonly DigitalService: "digital-service";
|
|
17
|
+
readonly DrugsNonPrescription: "drugs-non-prescription";
|
|
18
|
+
readonly DrugsPrescription: "drugs-prescription";
|
|
19
|
+
readonly FoodBottledWater: "food-bottled-water";
|
|
20
|
+
readonly FoodCandy: "food-candy";
|
|
21
|
+
readonly FoodGroceries: "food-groceries";
|
|
22
|
+
readonly FoodPrepared: "food-prepared";
|
|
23
|
+
readonly FoodSoda: "food-soda";
|
|
24
|
+
readonly FoodSupplements: "food-supplements";
|
|
25
|
+
readonly MagazineIndividual: "magazine-individual";
|
|
26
|
+
readonly MagazineSubscription: "magazine-subscription";
|
|
27
|
+
readonly ServiceAdmission: "service-admission";
|
|
28
|
+
readonly ServiceAdvertising: "service-advertising";
|
|
29
|
+
readonly ServiceDryCleaning: "service-dry-cleaning";
|
|
30
|
+
readonly ServiceHairdressing: "service-hairdressing";
|
|
31
|
+
readonly ServiceInstallation: "service-installation";
|
|
32
|
+
readonly ServiceMiscellaneous: "service-miscellaneous";
|
|
33
|
+
readonly ServiceParking: "service-parking";
|
|
34
|
+
readonly ServicePrinting: "service-printing";
|
|
35
|
+
readonly ServiceProfessional: "service-professional";
|
|
36
|
+
readonly ServiceRepair: "service-repair";
|
|
37
|
+
readonly ServiceTraining: "service-training";
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProductFieldDataTaxCategory = void 0;
|
|
7
|
+
exports.ProductFieldDataTaxCategory = {
|
|
8
|
+
StandardTaxable: "standard-taxable",
|
|
9
|
+
StandardExempt: "standard-exempt",
|
|
10
|
+
BooksReligious: "books-religious",
|
|
11
|
+
BooksTextbook: "books-textbook",
|
|
12
|
+
Clothing: "clothing",
|
|
13
|
+
ClothingSwimwear: "clothing-swimwear",
|
|
14
|
+
DigitalGoods: "digital-goods",
|
|
15
|
+
DigitalService: "digital-service",
|
|
16
|
+
DrugsNonPrescription: "drugs-non-prescription",
|
|
17
|
+
DrugsPrescription: "drugs-prescription",
|
|
18
|
+
FoodBottledWater: "food-bottled-water",
|
|
19
|
+
FoodCandy: "food-candy",
|
|
20
|
+
FoodGroceries: "food-groceries",
|
|
21
|
+
FoodPrepared: "food-prepared",
|
|
22
|
+
FoodSoda: "food-soda",
|
|
23
|
+
FoodSupplements: "food-supplements",
|
|
24
|
+
MagazineIndividual: "magazine-individual",
|
|
25
|
+
MagazineSubscription: "magazine-subscription",
|
|
26
|
+
ServiceAdmission: "service-admission",
|
|
27
|
+
ServiceAdvertising: "service-advertising",
|
|
28
|
+
ServiceDryCleaning: "service-dry-cleaning",
|
|
29
|
+
ServiceHairdressing: "service-hairdressing",
|
|
30
|
+
ServiceInstallation: "service-installation",
|
|
31
|
+
ServiceMiscellaneous: "service-miscellaneous",
|
|
32
|
+
ServiceParking: "service-parking",
|
|
33
|
+
ServicePrinting: "service-printing",
|
|
34
|
+
ServiceProfessional: "service-professional",
|
|
35
|
+
ServiceRepair: "service-repair",
|
|
36
|
+
ServiceTraining: "service-training",
|
|
37
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Indicate whether your Product should be set as "staging" or "live"
|
|
6
6
|
*/
|
|
7
7
|
export declare type PublishStatus = "staging" | "live";
|
|
8
8
|
export declare const PublishStatus: {
|
|
@@ -8,7 +8,7 @@ export interface SiteActivityLogItem {
|
|
|
8
8
|
lastUpdated?: Date;
|
|
9
9
|
event?: string;
|
|
10
10
|
resourceOperation?: Webflow.SiteActivityLogItemResourceOperation;
|
|
11
|
-
user?:
|
|
11
|
+
user?: Webflow.SiteActivityLogItemUser;
|
|
12
12
|
resourceId?: string;
|
|
13
13
|
resourceName?: string;
|
|
14
14
|
newValue?: string;
|
package/api/types/Sku.d.ts
CHANGED
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Standard and Custom fields for a SKU
|
|
7
|
+
*/
|
|
5
8
|
export interface SkuFieldData {
|
|
9
|
+
skuValues?: Webflow.SkuValueList;
|
|
6
10
|
/** Name of the Product */
|
|
7
|
-
name
|
|
11
|
+
name: string;
|
|
8
12
|
/** URL structure of the Product in your site. */
|
|
9
|
-
slug
|
|
13
|
+
slug: string;
|
|
10
14
|
/** price of SKU */
|
|
11
|
-
price
|
|
12
|
-
|
|
15
|
+
price: Webflow.SkuFieldDataPrice;
|
|
16
|
+
/** comparison price of SKU */
|
|
17
|
+
compareAtPrice?: Webflow.SkuFieldDataCompareAtPrice;
|
|
18
|
+
ecSkuBillingMethod?: Webflow.SkuFieldDataEcSkuBillingMethod;
|
|
19
|
+
ecSkuSubscriptionPlan?: Webflow.SkuFieldDataEcSkuSubscriptionPlan;
|
|
20
|
+
/** A boolean indicating whether inventory for this product should be tracked. */
|
|
21
|
+
trackInventory?: boolean;
|
|
22
|
+
/** Quantity of SKU that will be tracked as items are ordered. */
|
|
23
|
+
quantity?: number;
|
|
13
24
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type SkuFieldDataEcSkuBillingMethod = "one-time" | "subscription";
|
|
5
|
+
export declare const SkuFieldDataEcSkuBillingMethod: {
|
|
6
|
+
readonly OneTime: "one-time";
|
|
7
|
+
readonly Subscription: "subscription";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SkuFieldDataEcSkuBillingMethod = void 0;
|
|
7
|
+
exports.SkuFieldDataEcSkuBillingMethod = {
|
|
8
|
+
OneTime: "one-time",
|
|
9
|
+
Subscription: "subscription",
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "..";
|
|
5
|
+
export interface SkuFieldDataEcSkuSubscriptionPlan {
|
|
6
|
+
/** Interval of subscription renewal */
|
|
7
|
+
interval?: Webflow.SkuFieldDataEcSkuSubscriptionPlanInterval;
|
|
8
|
+
/** Frequncy of billing within interval */
|
|
9
|
+
frequency?: number;
|
|
10
|
+
/** Number of days of a trial */
|
|
11
|
+
trial?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Interval of subscription renewal
|
|
6
|
+
*/
|
|
7
|
+
export declare type SkuFieldDataEcSkuSubscriptionPlanInterval = "day" | "week" | "month" | "year";
|
|
8
|
+
export declare const SkuFieldDataEcSkuSubscriptionPlanInterval: {
|
|
9
|
+
readonly Day: "day";
|
|
10
|
+
readonly Week: "week";
|
|
11
|
+
readonly Month: "month";
|
|
12
|
+
readonly Year: "year";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SkuFieldDataEcSkuSubscriptionPlanInterval = void 0;
|
|
7
|
+
exports.SkuFieldDataEcSkuSubscriptionPlanInterval = {
|
|
8
|
+
Day: "day",
|
|
9
|
+
Week: "week",
|
|
10
|
+
Month: "month",
|
|
11
|
+
Year: "year",
|
|
12
|
+
};
|
|
@@ -6,10 +6,10 @@ import * as Webflow from "..";
|
|
|
6
6
|
* A variant/option type for a SKU
|
|
7
7
|
*/
|
|
8
8
|
export interface SkuPropertyList {
|
|
9
|
-
/** Unique identifier for a collection of Product
|
|
10
|
-
id
|
|
11
|
-
/** Name of the collection of Product
|
|
12
|
-
name
|
|
13
|
-
/** The individual Product variants
|
|
14
|
-
enum
|
|
9
|
+
/** Unique identifier for a collection of Product Variants */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Name of the collection of Product Variants */
|
|
12
|
+
name: string;
|
|
13
|
+
/** The individual Product variants that are contained within the collection */
|
|
14
|
+
enum: Webflow.SkuPropertyListEnumItem[];
|
|
15
15
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SkuPropertyListEnumItem {
|
|
8
8
|
/** Unique identifier for a Product variant/Option */
|
|
9
|
-
id
|
|
9
|
+
id: string;
|
|
10
10
|
/** Name of the Product variant/Option */
|
|
11
|
-
name
|
|
11
|
+
name: string;
|
|
12
12
|
/** Slug for the Product variant/Option in the Site URL structure */
|
|
13
|
-
slug
|
|
13
|
+
slug: string;
|
|
14
14
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Represents textual content within the DOM. It contains both the raw text and its HTML representation, allowing for flexibility in rendering and processing. Additional attributes can be associated with the text for styling or other purposes.
|
|
6
|
+
*/
|
|
7
|
+
export interface TextNode {
|
|
8
|
+
html?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./AuthorizationAuthorization";
|
|
|
5
5
|
export * from "./Authorization";
|
|
6
6
|
export * from "./Pagination";
|
|
7
7
|
export * from "./PublishStatus";
|
|
8
|
+
export * from "./InvalidScopes";
|
|
8
9
|
export * from "./CustomCodeResponse";
|
|
9
10
|
export * from "./RegisteredScriptList";
|
|
10
11
|
export * from "./ScriptApplyList";
|
|
@@ -23,6 +24,11 @@ export * from "./PageDeletedWebhook";
|
|
|
23
24
|
export * from "./PageSeoGraphDataSeo";
|
|
24
25
|
export * from "./PageSeoGraphDataOpenGraph";
|
|
25
26
|
export * from "./PageSeoGraphData";
|
|
27
|
+
export * from "./Dom";
|
|
28
|
+
export * from "./NodeType";
|
|
29
|
+
export * from "./Node";
|
|
30
|
+
export * from "./TextNode";
|
|
31
|
+
export * from "./ImageNode";
|
|
26
32
|
export * from "./CollectionList";
|
|
27
33
|
export * from "./CollectionListArrayItem";
|
|
28
34
|
export * from "./Collection";
|
|
@@ -44,6 +50,7 @@ export * from "./SitePublishPayload";
|
|
|
44
50
|
export * from "./SitePublish";
|
|
45
51
|
export * from "./SiteActivityLogResponse";
|
|
46
52
|
export * from "./SiteActivityLogItemResourceOperation";
|
|
53
|
+
export * from "./SiteActivityLogItemUser";
|
|
47
54
|
export * from "./SiteActivityLogItem";
|
|
48
55
|
export * from "./Assets";
|
|
49
56
|
export * from "./Asset";
|
|
@@ -82,9 +89,16 @@ export * from "./UsersNotEnabled";
|
|
|
82
89
|
export * from "./DuplicateUserEmail";
|
|
83
90
|
export * from "./UserLimitReached";
|
|
84
91
|
export * from "./MissingScopes";
|
|
92
|
+
export * from "./NotEnterprisePlanSite";
|
|
93
|
+
export * from "./ProductFieldDataTaxCategory";
|
|
94
|
+
export * from "./ProductFieldDataEcProductType";
|
|
85
95
|
export * from "./ProductFieldData";
|
|
86
96
|
export * from "./Product";
|
|
87
97
|
export * from "./SkuFieldDataPrice";
|
|
98
|
+
export * from "./SkuFieldDataCompareAtPrice";
|
|
99
|
+
export * from "./SkuFieldDataEcSkuBillingMethod";
|
|
100
|
+
export * from "./SkuFieldDataEcSkuSubscriptionPlanInterval";
|
|
101
|
+
export * from "./SkuFieldDataEcSkuSubscriptionPlan";
|
|
88
102
|
export * from "./SkuFieldData";
|
|
89
103
|
export * from "./Sku";
|
|
90
104
|
export * from "./ProductAndSkUs";
|
package/api/types/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AuthorizationAuthorization"), exports);
|
|
|
21
21
|
__exportStar(require("./Authorization"), exports);
|
|
22
22
|
__exportStar(require("./Pagination"), exports);
|
|
23
23
|
__exportStar(require("./PublishStatus"), exports);
|
|
24
|
+
__exportStar(require("./InvalidScopes"), exports);
|
|
24
25
|
__exportStar(require("./CustomCodeResponse"), exports);
|
|
25
26
|
__exportStar(require("./RegisteredScriptList"), exports);
|
|
26
27
|
__exportStar(require("./ScriptApplyList"), exports);
|
|
@@ -39,6 +40,11 @@ __exportStar(require("./PageDeletedWebhook"), exports);
|
|
|
39
40
|
__exportStar(require("./PageSeoGraphDataSeo"), exports);
|
|
40
41
|
__exportStar(require("./PageSeoGraphDataOpenGraph"), exports);
|
|
41
42
|
__exportStar(require("./PageSeoGraphData"), exports);
|
|
43
|
+
__exportStar(require("./Dom"), exports);
|
|
44
|
+
__exportStar(require("./NodeType"), exports);
|
|
45
|
+
__exportStar(require("./Node"), exports);
|
|
46
|
+
__exportStar(require("./TextNode"), exports);
|
|
47
|
+
__exportStar(require("./ImageNode"), exports);
|
|
42
48
|
__exportStar(require("./CollectionList"), exports);
|
|
43
49
|
__exportStar(require("./CollectionListArrayItem"), exports);
|
|
44
50
|
__exportStar(require("./Collection"), exports);
|
|
@@ -60,6 +66,7 @@ __exportStar(require("./SitePublishPayload"), exports);
|
|
|
60
66
|
__exportStar(require("./SitePublish"), exports);
|
|
61
67
|
__exportStar(require("./SiteActivityLogResponse"), exports);
|
|
62
68
|
__exportStar(require("./SiteActivityLogItemResourceOperation"), exports);
|
|
69
|
+
__exportStar(require("./SiteActivityLogItemUser"), exports);
|
|
63
70
|
__exportStar(require("./SiteActivityLogItem"), exports);
|
|
64
71
|
__exportStar(require("./Assets"), exports);
|
|
65
72
|
__exportStar(require("./Asset"), exports);
|
|
@@ -98,9 +105,16 @@ __exportStar(require("./UsersNotEnabled"), exports);
|
|
|
98
105
|
__exportStar(require("./DuplicateUserEmail"), exports);
|
|
99
106
|
__exportStar(require("./UserLimitReached"), exports);
|
|
100
107
|
__exportStar(require("./MissingScopes"), exports);
|
|
108
|
+
__exportStar(require("./NotEnterprisePlanSite"), exports);
|
|
109
|
+
__exportStar(require("./ProductFieldDataTaxCategory"), exports);
|
|
110
|
+
__exportStar(require("./ProductFieldDataEcProductType"), exports);
|
|
101
111
|
__exportStar(require("./ProductFieldData"), exports);
|
|
102
112
|
__exportStar(require("./Product"), exports);
|
|
103
113
|
__exportStar(require("./SkuFieldDataPrice"), exports);
|
|
114
|
+
__exportStar(require("./SkuFieldDataCompareAtPrice"), exports);
|
|
115
|
+
__exportStar(require("./SkuFieldDataEcSkuBillingMethod"), exports);
|
|
116
|
+
__exportStar(require("./SkuFieldDataEcSkuSubscriptionPlanInterval"), exports);
|
|
117
|
+
__exportStar(require("./SkuFieldDataEcSkuSubscriptionPlan"), exports);
|
|
104
118
|
__exportStar(require("./SkuFieldData"), exports);
|
|
105
119
|
__exportStar(require("./Sku"), exports);
|
|
106
120
|
__exportStar(require("./ProductAndSkUs"), exports);
|
|
@@ -6,7 +6,7 @@ export declare namespace Fetcher {
|
|
|
6
6
|
method: string;
|
|
7
7
|
contentType?: string;
|
|
8
8
|
headers?: Record<string, string | undefined>;
|
|
9
|
-
queryParameters?: Record<string, string | string[]>;
|
|
9
|
+
queryParameters?: Record<string, string | string[] | object | object[]>;
|
|
10
10
|
body?: unknown;
|
|
11
11
|
timeoutMs?: number;
|
|
12
12
|
maxRetries?: number;
|
package/core/fetcher/Fetcher.js
CHANGED
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.fetcher = void 0;
|
|
16
16
|
const form_data_1 = __importDefault(require("form-data"));
|
|
17
17
|
const qs_1 = __importDefault(require("qs"));
|
|
18
|
+
const runtime_1 = require("../runtime");
|
|
18
19
|
const INITIAL_RETRY_DELAY = 1;
|
|
19
20
|
const MAX_RETRY_DELAY = 60;
|
|
20
21
|
const DEFAULT_MAX_RETRIES = 2;
|
|
@@ -40,10 +41,16 @@ function fetcherImpl(args) {
|
|
|
40
41
|
// @ts-expect-error
|
|
41
42
|
body = args.body;
|
|
42
43
|
}
|
|
44
|
+
else if (args.body instanceof Uint8Array) {
|
|
45
|
+
body = args.body;
|
|
46
|
+
}
|
|
43
47
|
else {
|
|
44
48
|
body = JSON.stringify(args.body);
|
|
45
49
|
}
|
|
46
|
-
|
|
50
|
+
// In Node.js environments, the SDK always uses`node-fetch`.
|
|
51
|
+
// If not in Node.js the SDK uses global fetch if available,
|
|
52
|
+
// and falls back to node-fetch.
|
|
53
|
+
const fetchFn = runtime_1.RUNTIME.type === "node" ? require("node-fetch") : typeof fetch == "function" ? fetch : require("node-fetch");
|
|
47
54
|
const makeRequest = () => __awaiter(this, void 0, void 0, function* () {
|
|
48
55
|
const controller = new AbortController();
|
|
49
56
|
let abortId = undefined;
|
package/core/index.d.ts
CHANGED