webflow-api 2.0.0-beta → 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 +33 -2
- 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 +11 -4
- package/api/resources/collections/client/Client.js +31 -14
- package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +8 -0
- package/api/resources/collections/resources/fields/client/Client.d.ts +16 -1
- package/api/resources/collections/resources/fields/client/Client.js +24 -5
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +8 -0
- 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 +82 -16
- package/api/resources/collections/resources/items/client/Client.js +302 -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 +20 -3
- package/api/resources/pages/resources/scripts/client/Client.js +32 -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 +16 -1
- package/api/resources/scripts/client/Client.js +28 -7
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +9 -0
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +8 -0
- 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 +21 -4
- package/api/resources/sites/resources/scripts/client/Client.js +37 -12
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +14 -18
- package/api/resources/users/client/Client.js +35 -29
- 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 +26 -18
- 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 +11 -4
- package/dist/api/resources/collections/client/Client.js +31 -14
- package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +8 -0
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +16 -1
- package/dist/api/resources/collections/resources/fields/client/Client.js +24 -5
- 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 +8 -0
- 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 +82 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +302 -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 +20 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +32 -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 +16 -1
- package/dist/api/resources/scripts/client/Client.js +28 -7
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +9 -0
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +8 -0
- 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 +21 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +37 -12
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +14 -18
- package/dist/api/resources/users/client/Client.js +35 -29
- 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 +26 -18
- 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/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/{serialization/resources/products/client/requests/ProductsCreateRequest.js → dist/serialization/resources/products/client/requests/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/jest.config.js +5 -0
- package/package.json +6 -4
- 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/{dist/serialization/resources/products/client/requests/ProductsCreateRequest.js → serialization/resources/products/client/requests/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/dist/oauth.d.ts +0 -27
- package/dist/oauth.js +0 -113
- package/oauth.d.ts +0 -27
- package/oauth.js +0 -113
- /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
|
@@ -34,6 +34,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
38
|
+
var t = {};
|
|
39
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
40
|
+
t[p] = s[p];
|
|
41
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
42
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
43
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
44
|
+
t[p[i]] = s[p[i]];
|
|
45
|
+
}
|
|
46
|
+
return t;
|
|
47
|
+
};
|
|
37
48
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
49
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
50
|
};
|
|
@@ -59,21 +70,35 @@ class Pages {
|
|
|
59
70
|
* @throws {@link Webflow.InternalServerError}
|
|
60
71
|
*
|
|
61
72
|
* @example
|
|
62
|
-
* await webflow.pages.list("
|
|
73
|
+
* await webflow.pages.list("site_id", {})
|
|
63
74
|
*/
|
|
64
|
-
list(siteId, requestOptions) {
|
|
75
|
+
list(siteId, request = {}, requestOptions) {
|
|
65
76
|
var _a;
|
|
66
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const { locale, limit, offset } = request;
|
|
79
|
+
const _queryParams = {};
|
|
80
|
+
if (locale != null) {
|
|
81
|
+
_queryParams["locale"] = locale;
|
|
82
|
+
}
|
|
83
|
+
if (limit != null) {
|
|
84
|
+
_queryParams["limit"] = limit.toString();
|
|
85
|
+
}
|
|
86
|
+
if (offset != null) {
|
|
87
|
+
_queryParams["offset"] = offset.toString();
|
|
88
|
+
}
|
|
67
89
|
const _response = yield core.fetcher({
|
|
68
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
90
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/pages`),
|
|
69
91
|
method: "GET",
|
|
70
92
|
headers: {
|
|
71
93
|
Authorization: yield this._getAuthorizationHeader(),
|
|
72
94
|
"X-Fern-Language": "JavaScript",
|
|
73
95
|
"X-Fern-SDK-Name": "webflow-api",
|
|
74
|
-
"X-Fern-SDK-Version": "
|
|
96
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
97
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
98
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
99
|
},
|
|
76
100
|
contentType: "application/json",
|
|
101
|
+
queryParameters: _queryParams,
|
|
77
102
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
78
103
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
79
104
|
});
|
|
@@ -129,21 +154,29 @@ class Pages {
|
|
|
129
154
|
* @throws {@link Webflow.InternalServerError}
|
|
130
155
|
*
|
|
131
156
|
* @example
|
|
132
|
-
* await webflow.pages.getMetadata("
|
|
157
|
+
* await webflow.pages.getMetadata("page_id", {})
|
|
133
158
|
*/
|
|
134
|
-
getMetadata(pageId, requestOptions) {
|
|
159
|
+
getMetadata(pageId, request = {}, requestOptions) {
|
|
135
160
|
var _a;
|
|
136
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const { locale } = request;
|
|
163
|
+
const _queryParams = {};
|
|
164
|
+
if (locale != null) {
|
|
165
|
+
_queryParams["locale"] = locale;
|
|
166
|
+
}
|
|
137
167
|
const _response = yield core.fetcher({
|
|
138
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
168
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${pageId}`),
|
|
139
169
|
method: "GET",
|
|
140
170
|
headers: {
|
|
141
171
|
Authorization: yield this._getAuthorizationHeader(),
|
|
142
172
|
"X-Fern-Language": "JavaScript",
|
|
143
173
|
"X-Fern-SDK-Name": "webflow-api",
|
|
144
|
-
"X-Fern-SDK-Version": "
|
|
174
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
175
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
145
177
|
},
|
|
146
178
|
contentType: "application/json",
|
|
179
|
+
queryParameters: _queryParams,
|
|
147
180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
148
181
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
149
182
|
});
|
|
@@ -190,6 +223,277 @@ class Pages {
|
|
|
190
223
|
}
|
|
191
224
|
});
|
|
192
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Update Page-level metadata, including SEO and Open Graph fields. </br></br> Required scope | `pages:write`
|
|
228
|
+
* @throws {@link Webflow.BadRequestError}
|
|
229
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
230
|
+
* @throws {@link Webflow.NotFoundError}
|
|
231
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
232
|
+
* @throws {@link Webflow.InternalServerError}
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* await webflow.pages.updatePageSettings("page_id", {
|
|
236
|
+
* body: {
|
|
237
|
+
* id: "6390c49774a71f0e3c1a08ee",
|
|
238
|
+
* siteId: "6390c49674a71f84b51a08d8",
|
|
239
|
+
* title: "Blog Categories Template",
|
|
240
|
+
* slug: "detail_blog-category",
|
|
241
|
+
* parentId: "6419db964a9c435aa3af6251",
|
|
242
|
+
* collectionId: "6390c49774a71f12831a08e3",
|
|
243
|
+
* createdOn: new Date("2018-10-14T21:55:49.000Z"),
|
|
244
|
+
* lastUpdated: new Date("2022-12-07T16:51:37.000Z"),
|
|
245
|
+
* archived: false,
|
|
246
|
+
* draft: false,
|
|
247
|
+
* canBranch: true,
|
|
248
|
+
* isMembersOnly: false,
|
|
249
|
+
* seo: {
|
|
250
|
+
* title: "CoffeeStyle eCommerce - Webflow HTML website template",
|
|
251
|
+
* description: "This Webflow template offers a quick start into an e-commerce / memberships site"
|
|
252
|
+
* },
|
|
253
|
+
* openGraph: {
|
|
254
|
+
* title: "CoffeeStyle eCommerce - Webflow HTML website template",
|
|
255
|
+
* titleCopied: true,
|
|
256
|
+
* description: "This Webflow template offers a quick start into an e-commerce / memberships site",
|
|
257
|
+
* descriptionCopied: true
|
|
258
|
+
* }
|
|
259
|
+
* }
|
|
260
|
+
* })
|
|
261
|
+
*/
|
|
262
|
+
updatePageSettings(pageId, request, requestOptions) {
|
|
263
|
+
var _a;
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
const { locale, body: _body } = request;
|
|
266
|
+
const _queryParams = {};
|
|
267
|
+
if (locale != null) {
|
|
268
|
+
_queryParams["locale"] = locale;
|
|
269
|
+
}
|
|
270
|
+
const _response = yield core.fetcher({
|
|
271
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${pageId}`),
|
|
272
|
+
method: "PUT",
|
|
273
|
+
headers: {
|
|
274
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
275
|
+
"X-Fern-Language": "JavaScript",
|
|
276
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
277
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
278
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
279
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
280
|
+
},
|
|
281
|
+
contentType: "application/json",
|
|
282
|
+
queryParameters: _queryParams,
|
|
283
|
+
body: yield serializers.Page.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
284
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
285
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
286
|
+
});
|
|
287
|
+
if (_response.ok) {
|
|
288
|
+
return yield serializers.Page.parseOrThrow(_response.body, {
|
|
289
|
+
unrecognizedObjectKeys: "passthrough",
|
|
290
|
+
allowUnrecognizedUnionMembers: true,
|
|
291
|
+
allowUnrecognizedEnumValues: true,
|
|
292
|
+
skipValidation: true,
|
|
293
|
+
breadcrumbsPrefix: ["response"],
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
if (_response.error.reason === "status-code") {
|
|
297
|
+
switch (_response.error.statusCode) {
|
|
298
|
+
case 400:
|
|
299
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
300
|
+
case 401:
|
|
301
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
302
|
+
case 404:
|
|
303
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
304
|
+
case 429:
|
|
305
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
306
|
+
case 500:
|
|
307
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
308
|
+
default:
|
|
309
|
+
throw new errors.WebflowError({
|
|
310
|
+
statusCode: _response.error.statusCode,
|
|
311
|
+
body: _response.error.body,
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
switch (_response.error.reason) {
|
|
316
|
+
case "non-json":
|
|
317
|
+
throw new errors.WebflowError({
|
|
318
|
+
statusCode: _response.error.statusCode,
|
|
319
|
+
body: _response.error.rawBody,
|
|
320
|
+
});
|
|
321
|
+
case "timeout":
|
|
322
|
+
throw new errors.WebflowTimeoutError();
|
|
323
|
+
case "unknown":
|
|
324
|
+
throw new errors.WebflowError({
|
|
325
|
+
message: _response.error.errorMessage,
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Get static content from a static page. </br> If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale</br></br> Required scope | `pages:read`
|
|
332
|
+
* @throws {@link Webflow.BadRequestError}
|
|
333
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
334
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
335
|
+
* @throws {@link Webflow.NotFoundError}
|
|
336
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
337
|
+
* @throws {@link Webflow.InternalServerError}
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* await webflow.pages.getContent("page_id", {})
|
|
341
|
+
*/
|
|
342
|
+
getContent(pageId, request = {}, requestOptions) {
|
|
343
|
+
var _a;
|
|
344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
+
const { locale } = request;
|
|
346
|
+
const _queryParams = {};
|
|
347
|
+
if (locale != null) {
|
|
348
|
+
_queryParams["locale"] = locale;
|
|
349
|
+
}
|
|
350
|
+
const _response = yield core.fetcher({
|
|
351
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${pageId}/dom`),
|
|
352
|
+
method: "GET",
|
|
353
|
+
headers: {
|
|
354
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
355
|
+
"X-Fern-Language": "JavaScript",
|
|
356
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
357
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
358
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
359
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
360
|
+
},
|
|
361
|
+
contentType: "application/json",
|
|
362
|
+
queryParameters: _queryParams,
|
|
363
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
364
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
365
|
+
});
|
|
366
|
+
if (_response.ok) {
|
|
367
|
+
return yield serializers.Dom.parseOrThrow(_response.body, {
|
|
368
|
+
unrecognizedObjectKeys: "passthrough",
|
|
369
|
+
allowUnrecognizedUnionMembers: true,
|
|
370
|
+
allowUnrecognizedEnumValues: true,
|
|
371
|
+
skipValidation: true,
|
|
372
|
+
breadcrumbsPrefix: ["response"],
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
if (_response.error.reason === "status-code") {
|
|
376
|
+
switch (_response.error.statusCode) {
|
|
377
|
+
case 400:
|
|
378
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
379
|
+
case 401:
|
|
380
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
381
|
+
case 403:
|
|
382
|
+
throw new Webflow.ForbiddenError(_response.error.body);
|
|
383
|
+
case 404:
|
|
384
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
385
|
+
case 429:
|
|
386
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
387
|
+
case 500:
|
|
388
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
389
|
+
default:
|
|
390
|
+
throw new errors.WebflowError({
|
|
391
|
+
statusCode: _response.error.statusCode,
|
|
392
|
+
body: _response.error.body,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
switch (_response.error.reason) {
|
|
397
|
+
case "non-json":
|
|
398
|
+
throw new errors.WebflowError({
|
|
399
|
+
statusCode: _response.error.statusCode,
|
|
400
|
+
body: _response.error.rawBody,
|
|
401
|
+
});
|
|
402
|
+
case "timeout":
|
|
403
|
+
throw new errors.WebflowTimeoutError();
|
|
404
|
+
case "unknown":
|
|
405
|
+
throw new errors.WebflowError({
|
|
406
|
+
message: _response.error.errorMessage,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Update static content on a static page. This endpoint supports sending 1000 nodes per request. </br></br> Required scope | `pages:write`
|
|
413
|
+
* @throws {@link Webflow.BadRequestError}
|
|
414
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
415
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
416
|
+
* @throws {@link Webflow.NotFoundError}
|
|
417
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
418
|
+
* @throws {@link Webflow.InternalServerError}
|
|
419
|
+
*
|
|
420
|
+
* @example
|
|
421
|
+
* await webflow.pages.updateStaticContent("page_id", {
|
|
422
|
+
* locale: "locale",
|
|
423
|
+
* nodes: [{
|
|
424
|
+
* nodeId: "guide-title-id",
|
|
425
|
+
* text: "<h1>Hello world</h1>"
|
|
426
|
+
* }]
|
|
427
|
+
* })
|
|
428
|
+
*/
|
|
429
|
+
updateStaticContent(pageId, request, requestOptions) {
|
|
430
|
+
var _a;
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
const { locale } = request, _body = __rest(request, ["locale"]);
|
|
433
|
+
const _queryParams = {};
|
|
434
|
+
_queryParams["locale"] = locale;
|
|
435
|
+
const _response = yield core.fetcher({
|
|
436
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${pageId}/dom`),
|
|
437
|
+
method: "POST",
|
|
438
|
+
headers: {
|
|
439
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
440
|
+
"X-Fern-Language": "JavaScript",
|
|
441
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
442
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
443
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
444
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
445
|
+
},
|
|
446
|
+
contentType: "application/json",
|
|
447
|
+
queryParameters: _queryParams,
|
|
448
|
+
body: yield serializers.DomWrite.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
449
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
450
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
451
|
+
});
|
|
452
|
+
if (_response.ok) {
|
|
453
|
+
return yield serializers.Dom.parseOrThrow(_response.body, {
|
|
454
|
+
unrecognizedObjectKeys: "passthrough",
|
|
455
|
+
allowUnrecognizedUnionMembers: true,
|
|
456
|
+
allowUnrecognizedEnumValues: true,
|
|
457
|
+
skipValidation: true,
|
|
458
|
+
breadcrumbsPrefix: ["response"],
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
if (_response.error.reason === "status-code") {
|
|
462
|
+
switch (_response.error.statusCode) {
|
|
463
|
+
case 400:
|
|
464
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
465
|
+
case 401:
|
|
466
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
467
|
+
case 403:
|
|
468
|
+
throw new Webflow.ForbiddenError(_response.error.body);
|
|
469
|
+
case 404:
|
|
470
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
471
|
+
case 429:
|
|
472
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
473
|
+
case 500:
|
|
474
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
475
|
+
default:
|
|
476
|
+
throw new errors.WebflowError({
|
|
477
|
+
statusCode: _response.error.statusCode,
|
|
478
|
+
body: _response.error.body,
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
switch (_response.error.reason) {
|
|
483
|
+
case "non-json":
|
|
484
|
+
throw new errors.WebflowError({
|
|
485
|
+
statusCode: _response.error.statusCode,
|
|
486
|
+
body: _response.error.rawBody,
|
|
487
|
+
});
|
|
488
|
+
case "timeout":
|
|
489
|
+
throw new errors.WebflowTimeoutError();
|
|
490
|
+
case "unknown":
|
|
491
|
+
throw new errors.WebflowError({
|
|
492
|
+
message: _response.error.errorMessage,
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
}
|
|
193
497
|
get scripts() {
|
|
194
498
|
var _a;
|
|
195
499
|
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_1.Scripts(this._options)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* locale: "locale",
|
|
9
|
+
* nodes: [{
|
|
10
|
+
* nodeId: "guide-title-id",
|
|
11
|
+
* text: "<h1>Hello world</h1>"
|
|
12
|
+
* }]
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface DomWrite {
|
|
16
|
+
/**
|
|
17
|
+
* The locale identifier.
|
|
18
|
+
*/
|
|
19
|
+
locale: string;
|
|
20
|
+
nodes: Webflow.DomWriteNodesItem[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface PagesGetContentRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
11
|
+
*/
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface PagesGetMetadataRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
11
|
+
*/
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface PagesListRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
11
|
+
*/
|
|
12
|
+
locale?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Offset used for pagination if the results have more than limit records
|
|
19
|
+
*/
|
|
20
|
+
offset?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* body: {
|
|
9
|
+
* id: "6390c49774a71f0e3c1a08ee",
|
|
10
|
+
* siteId: "6390c49674a71f84b51a08d8",
|
|
11
|
+
* title: "Blog Categories Template",
|
|
12
|
+
* slug: "detail_blog-category",
|
|
13
|
+
* parentId: "6419db964a9c435aa3af6251",
|
|
14
|
+
* collectionId: "6390c49774a71f12831a08e3",
|
|
15
|
+
* createdOn: new Date("2018-10-14T21:55:49.000Z"),
|
|
16
|
+
* lastUpdated: new Date("2022-12-07T16:51:37.000Z"),
|
|
17
|
+
* archived: false,
|
|
18
|
+
* draft: false,
|
|
19
|
+
* canBranch: true,
|
|
20
|
+
* isMembersOnly: false,
|
|
21
|
+
* seo: {
|
|
22
|
+
* title: "CoffeeStyle eCommerce - Webflow HTML website template",
|
|
23
|
+
* description: "This Webflow template offers a quick start into an e-commerce / memberships site"
|
|
24
|
+
* },
|
|
25
|
+
* openGraph: {
|
|
26
|
+
* title: "CoffeeStyle eCommerce - Webflow HTML website template",
|
|
27
|
+
* titleCopied: true,
|
|
28
|
+
* description: "This Webflow template offers a quick start into an e-commerce / memberships site",
|
|
29
|
+
* descriptionCopied: true
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
export interface UpdatePageSettingsRequest {
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
37
|
+
*/
|
|
38
|
+
locale?: string;
|
|
39
|
+
body: Webflow.Page;
|
|
40
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { PagesListRequest } from "./PagesListRequest";
|
|
2
|
+
export { PagesGetMetadataRequest } from "./PagesGetMetadataRequest";
|
|
3
|
+
export { UpdatePageSettingsRequest } from "./UpdatePageSettingsRequest";
|
|
4
|
+
export { PagesGetContentRequest } from "./PagesGetContentRequest";
|
|
5
|
+
export { DomWrite } from "./DomWrite";
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -26,7 +26,7 @@ export declare class Scripts {
|
|
|
26
26
|
* @throws {@link Webflow.InternalServerError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* await webflow.pages.scripts.getCustomCode("
|
|
29
|
+
* await webflow.pages.scripts.getCustomCode("page_id")
|
|
30
30
|
*/
|
|
31
31
|
getCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
32
32
|
/**
|
|
@@ -38,7 +38,24 @@ export declare class Scripts {
|
|
|
38
38
|
* @throws {@link Webflow.InternalServerError}
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await webflow.pages.scripts.upsertCustomCode("
|
|
41
|
+
* await webflow.pages.scripts.upsertCustomCode("page_id", {
|
|
42
|
+
* scripts: [{
|
|
43
|
+
* id: "cms_slider",
|
|
44
|
+
* location: Webflow.ScriptApplyLocation.Header,
|
|
45
|
+
* version: "1.0.0",
|
|
46
|
+
* attributes: {
|
|
47
|
+
* "my-attribute": "some-value"
|
|
48
|
+
* }
|
|
49
|
+
* }, {
|
|
50
|
+
* id: "alert",
|
|
51
|
+
* location: Webflow.ScriptApplyLocation.Header,
|
|
52
|
+
* version: "0.0.1"
|
|
53
|
+
* }, {
|
|
54
|
+
* id: "id",
|
|
55
|
+
* location: Webflow.ScriptApplyLocation.Header,
|
|
56
|
+
* version: "version"
|
|
57
|
+
* }]
|
|
58
|
+
* })
|
|
42
59
|
*/
|
|
43
60
|
upsertCustomCode(pageId: string, request: Webflow.ScriptApplyList, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
44
61
|
/**
|
|
@@ -50,7 +67,7 @@ export declare class Scripts {
|
|
|
50
67
|
* @throws {@link Webflow.InternalServerError}
|
|
51
68
|
*
|
|
52
69
|
* @example
|
|
53
|
-
* await webflow.pages.scripts.deleteCustomCode("
|
|
70
|
+
* await webflow.pages.scripts.deleteCustomCode("page_id")
|
|
54
71
|
*/
|
|
55
72
|
deleteCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<void>;
|
|
56
73
|
protected _getAuthorizationHeader(): Promise<string>;
|