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
|
@@ -28,7 +28,7 @@ export declare class Collections {
|
|
|
28
28
|
* @throws {@link Webflow.InternalServerError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await webflow.collections.list("
|
|
31
|
+
* await webflow.collections.list("site_id")
|
|
32
32
|
*/
|
|
33
33
|
list(siteId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.CollectionList>;
|
|
34
34
|
/**
|
|
@@ -38,6 +38,13 @@ export declare class Collections {
|
|
|
38
38
|
* @throws {@link Webflow.NotFoundError}
|
|
39
39
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
40
40
|
* @throws {@link Webflow.InternalServerError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await webflow.collections.create("site_id", {
|
|
44
|
+
* displayName: "Blog Posts",
|
|
45
|
+
* singularName: "Blog Post",
|
|
46
|
+
* slug: "posts"
|
|
47
|
+
* })
|
|
41
48
|
*/
|
|
42
49
|
create(siteId: string, request: Webflow.CollectionsCreateRequest, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
|
|
43
50
|
/**
|
|
@@ -49,7 +56,7 @@ export declare class Collections {
|
|
|
49
56
|
* @throws {@link Webflow.InternalServerError}
|
|
50
57
|
*
|
|
51
58
|
* @example
|
|
52
|
-
* await webflow.collections.get("
|
|
59
|
+
* await webflow.collections.get("collection_id")
|
|
53
60
|
*/
|
|
54
61
|
get(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
|
|
55
62
|
/**
|
|
@@ -61,7 +68,7 @@ export declare class Collections {
|
|
|
61
68
|
* @throws {@link Webflow.InternalServerError}
|
|
62
69
|
*
|
|
63
70
|
* @example
|
|
64
|
-
* await webflow.collections.deleteCollection("
|
|
71
|
+
* await webflow.collections.deleteCollection("collection_id")
|
|
65
72
|
*/
|
|
66
73
|
deleteCollection(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
|
|
67
74
|
/**
|
|
@@ -73,7 +80,7 @@ export declare class Collections {
|
|
|
73
80
|
* @throws {@link Webflow.InternalServerError}
|
|
74
81
|
*
|
|
75
82
|
* @example
|
|
76
|
-
* await webflow.collections.delete("
|
|
83
|
+
* await webflow.collections.delete("collection_id", "field_id")
|
|
77
84
|
*/
|
|
78
85
|
delete(collectionId: string, fieldId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
|
|
79
86
|
protected _fields: Fields | undefined;
|
|
@@ -60,19 +60,21 @@ class Collections {
|
|
|
60
60
|
* @throws {@link Webflow.InternalServerError}
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await webflow.collections.list("
|
|
63
|
+
* await webflow.collections.list("site_id")
|
|
64
64
|
*/
|
|
65
65
|
list(siteId, requestOptions) {
|
|
66
66
|
var _a;
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
68
|
const _response = yield core.fetcher({
|
|
69
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
69
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/collections`),
|
|
70
70
|
method: "GET",
|
|
71
71
|
headers: {
|
|
72
72
|
Authorization: yield this._getAuthorizationHeader(),
|
|
73
73
|
"X-Fern-Language": "JavaScript",
|
|
74
74
|
"X-Fern-SDK-Name": "webflow-api",
|
|
75
|
-
"X-Fern-SDK-Version": "
|
|
75
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
76
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
78
|
},
|
|
77
79
|
contentType: "application/json",
|
|
78
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,18 +130,27 @@ class Collections {
|
|
|
128
130
|
* @throws {@link Webflow.NotFoundError}
|
|
129
131
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
130
132
|
* @throws {@link Webflow.InternalServerError}
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* await webflow.collections.create("site_id", {
|
|
136
|
+
* displayName: "Blog Posts",
|
|
137
|
+
* singularName: "Blog Post",
|
|
138
|
+
* slug: "posts"
|
|
139
|
+
* })
|
|
131
140
|
*/
|
|
132
141
|
create(siteId, request, requestOptions) {
|
|
133
142
|
var _a;
|
|
134
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
144
|
const _response = yield core.fetcher({
|
|
136
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
145
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/collections`),
|
|
137
146
|
method: "POST",
|
|
138
147
|
headers: {
|
|
139
148
|
Authorization: yield this._getAuthorizationHeader(),
|
|
140
149
|
"X-Fern-Language": "JavaScript",
|
|
141
150
|
"X-Fern-SDK-Name": "webflow-api",
|
|
142
|
-
"X-Fern-SDK-Version": "
|
|
151
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
152
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
153
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
143
154
|
},
|
|
144
155
|
contentType: "application/json",
|
|
145
156
|
body: yield serializers.CollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -198,19 +209,21 @@ class Collections {
|
|
|
198
209
|
* @throws {@link Webflow.InternalServerError}
|
|
199
210
|
*
|
|
200
211
|
* @example
|
|
201
|
-
* await webflow.collections.get("
|
|
212
|
+
* await webflow.collections.get("collection_id")
|
|
202
213
|
*/
|
|
203
214
|
get(collectionId, requestOptions) {
|
|
204
215
|
var _a;
|
|
205
216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
217
|
const _response = yield core.fetcher({
|
|
207
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
218
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}`),
|
|
208
219
|
method: "GET",
|
|
209
220
|
headers: {
|
|
210
221
|
Authorization: yield this._getAuthorizationHeader(),
|
|
211
222
|
"X-Fern-Language": "JavaScript",
|
|
212
223
|
"X-Fern-SDK-Name": "webflow-api",
|
|
213
|
-
"X-Fern-SDK-Version": "
|
|
224
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
225
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
214
227
|
},
|
|
215
228
|
contentType: "application/json",
|
|
216
229
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -268,19 +281,21 @@ class Collections {
|
|
|
268
281
|
* @throws {@link Webflow.InternalServerError}
|
|
269
282
|
*
|
|
270
283
|
* @example
|
|
271
|
-
* await webflow.collections.deleteCollection("
|
|
284
|
+
* await webflow.collections.deleteCollection("collection_id")
|
|
272
285
|
*/
|
|
273
286
|
deleteCollection(collectionId, requestOptions) {
|
|
274
287
|
var _a;
|
|
275
288
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
289
|
const _response = yield core.fetcher({
|
|
277
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
290
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}`),
|
|
278
291
|
method: "DELETE",
|
|
279
292
|
headers: {
|
|
280
293
|
Authorization: yield this._getAuthorizationHeader(),
|
|
281
294
|
"X-Fern-Language": "JavaScript",
|
|
282
295
|
"X-Fern-SDK-Name": "webflow-api",
|
|
283
|
-
"X-Fern-SDK-Version": "
|
|
296
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
297
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
298
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
284
299
|
},
|
|
285
300
|
contentType: "application/json",
|
|
286
301
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -332,19 +347,21 @@ class Collections {
|
|
|
332
347
|
* @throws {@link Webflow.InternalServerError}
|
|
333
348
|
*
|
|
334
349
|
* @example
|
|
335
|
-
* await webflow.collections.delete("
|
|
350
|
+
* await webflow.collections.delete("collection_id", "field_id")
|
|
336
351
|
*/
|
|
337
352
|
delete(collectionId, fieldId, requestOptions) {
|
|
338
353
|
var _a;
|
|
339
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
340
355
|
const _response = yield core.fetcher({
|
|
341
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
356
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/fields/${fieldId}`),
|
|
342
357
|
method: "DELETE",
|
|
343
358
|
headers: {
|
|
344
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
345
360
|
"X-Fern-Language": "JavaScript",
|
|
346
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
347
|
-
"X-Fern-SDK-Version": "
|
|
362
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
363
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
348
365
|
},
|
|
349
366
|
contentType: "application/json",
|
|
350
367
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* displayName: "Blog Posts",
|
|
8
|
+
* singularName: "Blog Post",
|
|
9
|
+
* slug: "posts"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
4
12
|
export interface CollectionsCreateRequest {
|
|
5
13
|
/** Name of the collection. Each collection name must be distinct. */
|
|
6
14
|
displayName: string;
|
|
@@ -24,8 +24,16 @@ export declare class Fields {
|
|
|
24
24
|
* @throws {@link Webflow.NotFoundError}
|
|
25
25
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
26
26
|
* @throws {@link Webflow.InternalServerError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await webflow.collections.fields.create("collection_id", {
|
|
30
|
+
* isRequired: false,
|
|
31
|
+
* type: Webflow.collections.FieldCreateType.RichText,
|
|
32
|
+
* displayName: "Post Body",
|
|
33
|
+
* helpText: "Add the body of your post here"
|
|
34
|
+
* })
|
|
27
35
|
*/
|
|
28
|
-
create(collectionId: string, request: Webflow.
|
|
36
|
+
create(collectionId: string, request: Webflow.collections.FieldCreate, requestOptions?: Fields.RequestOptions): Promise<Webflow.Field>;
|
|
29
37
|
/**
|
|
30
38
|
* Update a custom field in a collection. </br></br> Required scope | `cms:write`
|
|
31
39
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -33,6 +41,13 @@ export declare class Fields {
|
|
|
33
41
|
* @throws {@link Webflow.NotFoundError}
|
|
34
42
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
35
43
|
* @throws {@link Webflow.InternalServerError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await webflow.collections.fields.update("collection_id", "field_id", {
|
|
47
|
+
* isRequired: false,
|
|
48
|
+
* displayName: "Post Body",
|
|
49
|
+
* helpText: "Add the body of your post here"
|
|
50
|
+
* })
|
|
36
51
|
*/
|
|
37
52
|
update(collectionId: string, fieldId: string, request?: Webflow.collections.FieldUpdate, requestOptions?: Fields.RequestOptions): Promise<Webflow.Field>;
|
|
38
53
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -56,21 +56,31 @@ class Fields {
|
|
|
56
56
|
* @throws {@link Webflow.NotFoundError}
|
|
57
57
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
58
58
|
* @throws {@link Webflow.InternalServerError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await webflow.collections.fields.create("collection_id", {
|
|
62
|
+
* isRequired: false,
|
|
63
|
+
* type: Webflow.collections.FieldCreateType.RichText,
|
|
64
|
+
* displayName: "Post Body",
|
|
65
|
+
* helpText: "Add the body of your post here"
|
|
66
|
+
* })
|
|
59
67
|
*/
|
|
60
68
|
create(collectionId, request, requestOptions) {
|
|
61
69
|
var _a;
|
|
62
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
71
|
const _response = yield core.fetcher({
|
|
64
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
72
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/fields`),
|
|
65
73
|
method: "POST",
|
|
66
74
|
headers: {
|
|
67
75
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
76
|
"X-Fern-Language": "JavaScript",
|
|
69
77
|
"X-Fern-SDK-Name": "webflow-api",
|
|
70
|
-
"X-Fern-SDK-Version": "
|
|
78
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
79
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
71
81
|
},
|
|
72
82
|
contentType: "application/json",
|
|
73
|
-
body: yield serializers.
|
|
83
|
+
body: yield serializers.collections.FieldCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
74
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
85
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
76
86
|
});
|
|
@@ -124,18 +134,27 @@ class Fields {
|
|
|
124
134
|
* @throws {@link Webflow.NotFoundError}
|
|
125
135
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
126
136
|
* @throws {@link Webflow.InternalServerError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await webflow.collections.fields.update("collection_id", "field_id", {
|
|
140
|
+
* isRequired: false,
|
|
141
|
+
* displayName: "Post Body",
|
|
142
|
+
* helpText: "Add the body of your post here"
|
|
143
|
+
* })
|
|
127
144
|
*/
|
|
128
145
|
update(collectionId, fieldId, request = {}, requestOptions) {
|
|
129
146
|
var _a;
|
|
130
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
131
148
|
const _response = yield core.fetcher({
|
|
132
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
149
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/fields/${fieldId}`),
|
|
133
150
|
method: "PATCH",
|
|
134
151
|
headers: {
|
|
135
152
|
Authorization: yield this._getAuthorizationHeader(),
|
|
136
153
|
"X-Fern-Language": "JavaScript",
|
|
137
154
|
"X-Fern-SDK-Name": "webflow-api",
|
|
138
|
-
"X-Fern-SDK-Version": "
|
|
155
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
156
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
139
158
|
},
|
|
140
159
|
contentType: "application/json",
|
|
141
160
|
body: yield serializers.collections.FieldUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* isRequired: false,
|
|
9
|
+
* type: Webflow.collections.FieldCreateType.RichText,
|
|
10
|
+
* displayName: "Post Body",
|
|
11
|
+
* helpText: "Add the body of your post here"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface FieldCreate {
|
|
15
|
+
/** define whether a field is required in a collection */
|
|
16
|
+
isRequired?: boolean;
|
|
17
|
+
/** Choose these appropriate field type for your collection data */
|
|
18
|
+
type: Webflow.collections.FieldCreateType;
|
|
19
|
+
/** The name of a field */
|
|
20
|
+
displayName: string;
|
|
21
|
+
/** Additional text to help anyone filling out this field */
|
|
22
|
+
helpText?: string;
|
|
23
|
+
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* isRequired: false,
|
|
8
|
+
* displayName: "Post Body",
|
|
9
|
+
* helpText: "Add the body of your post here"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
4
12
|
export interface FieldUpdate {
|
|
5
13
|
/** Define whether a field is required in a collection */
|
|
6
14
|
isRequired?: boolean;
|
|
@@ -14,4 +14,5 @@ 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);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Choose these appropriate field type for your collection data
|
|
6
|
+
*/
|
|
7
|
+
export declare type FieldCreateType = "PlainText" | "RichText" | "Image" | "MultiImage" | "Video" | "Link" | "Email" | "Phone" | "Number" | "DateTime" | "Boolean" | "Color" | "File";
|
|
8
|
+
export declare const FieldCreateType: {
|
|
9
|
+
readonly PlainText: "PlainText";
|
|
10
|
+
readonly RichText: "RichText";
|
|
11
|
+
readonly Image: "Image";
|
|
12
|
+
readonly MultiImage: "MultiImage";
|
|
13
|
+
readonly Video: "Video";
|
|
14
|
+
readonly Link: "Link";
|
|
15
|
+
readonly Email: "Email";
|
|
16
|
+
readonly Phone: "Phone";
|
|
17
|
+
readonly Number: "Number";
|
|
18
|
+
readonly DateTime: "DateTime";
|
|
19
|
+
readonly Boolean: "Boolean";
|
|
20
|
+
readonly Color: "Color";
|
|
21
|
+
readonly File: "File";
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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.FieldCreateType = void 0;
|
|
7
|
+
exports.FieldCreateType = {
|
|
8
|
+
PlainText: "PlainText",
|
|
9
|
+
RichText: "RichText",
|
|
10
|
+
Image: "Image",
|
|
11
|
+
MultiImage: "MultiImage",
|
|
12
|
+
Video: "Video",
|
|
13
|
+
Link: "Link",
|
|
14
|
+
Email: "Email",
|
|
15
|
+
Phone: "Phone",
|
|
16
|
+
Number: "Number",
|
|
17
|
+
DateTime: "DateTime",
|
|
18
|
+
Boolean: "Boolean",
|
|
19
|
+
Color: "Color",
|
|
20
|
+
File: "File",
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FieldCreateType";
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FieldCreateType"), exports);
|
|
@@ -26,9 +26,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.items = exports.fields = void 0;
|
|
30
|
+
exports.fields = __importStar(require("./fields"));
|
|
31
|
+
__exportStar(require("./fields/types"), exports);
|
|
30
32
|
exports.items = __importStar(require("./items"));
|
|
31
33
|
__exportStar(require("./items/types"), exports);
|
|
32
|
-
exports.fields = __importStar(require("./fields"));
|
|
33
34
|
__exportStar(require("./fields/client/requests"), exports);
|
|
34
35
|
__exportStar(require("./items/client/requests"), exports);
|
|
@@ -18,7 +18,7 @@ export declare class Items {
|
|
|
18
18
|
protected readonly _options: Items.Options;
|
|
19
19
|
constructor(_options: Items.Options);
|
|
20
20
|
/**
|
|
21
|
-
* List of all Items within a Collection. </br></br> Required scope | `
|
|
21
|
+
* List of all Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
22
22
|
* @throws {@link Webflow.BadRequestError}
|
|
23
23
|
* @throws {@link Webflow.UnauthorizedError}
|
|
24
24
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -26,11 +26,11 @@ export declare class Items {
|
|
|
26
26
|
* @throws {@link Webflow.InternalServerError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* await webflow.collections.items.listItems("
|
|
29
|
+
* await webflow.collections.items.listItems("collection_id", {})
|
|
30
30
|
*/
|
|
31
31
|
listItems(collectionId: string, request?: Webflow.collections.ItemsListItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
|
|
32
32
|
/**
|
|
33
|
-
* Create Item in a Collection. </br></br> Required scope | `
|
|
33
|
+
* Create Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
34
34
|
* @throws {@link Webflow.BadRequestError}
|
|
35
35
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
36
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -38,16 +38,21 @@ export declare class Items {
|
|
|
38
38
|
* @throws {@link Webflow.InternalServerError}
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await webflow.collections.items.createItem("
|
|
41
|
+
* await webflow.collections.items.createItem("collection_id", {
|
|
42
42
|
* id: "580e64008c9a982ac9b8b754",
|
|
43
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
43
44
|
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
44
45
|
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
45
|
-
* createdOn: "2023-03-17T18:47:35.560Z"
|
|
46
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
47
|
+
* fieldData: {
|
|
48
|
+
* name: "My new item",
|
|
49
|
+
* slug: "my-new-item"
|
|
50
|
+
* }
|
|
46
51
|
* })
|
|
47
52
|
*/
|
|
48
53
|
createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
49
54
|
/**
|
|
50
|
-
*
|
|
55
|
+
* Create live Item in a Collection. This Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
51
56
|
* @throws {@link Webflow.BadRequestError}
|
|
52
57
|
* @throws {@link Webflow.UnauthorizedError}
|
|
53
58
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -55,11 +60,33 @@ export declare class Items {
|
|
|
55
60
|
* @throws {@link Webflow.InternalServerError}
|
|
56
61
|
*
|
|
57
62
|
* @example
|
|
58
|
-
* await webflow.collections.items.
|
|
63
|
+
* await webflow.collections.items.createItemLive("collection_id", {
|
|
64
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
65
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
66
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
67
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
68
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
69
|
+
* fieldData: {
|
|
70
|
+
* name: "My new item",
|
|
71
|
+
* slug: "my-new-item"
|
|
72
|
+
* }
|
|
73
|
+
* })
|
|
74
|
+
*/
|
|
75
|
+
createItemLive(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
78
|
+
* @throws {@link Webflow.BadRequestError}
|
|
79
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
80
|
+
* @throws {@link Webflow.NotFoundError}
|
|
81
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
82
|
+
* @throws {@link Webflow.InternalServerError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await webflow.collections.items.getItem("collection_id", "item_id", {})
|
|
59
86
|
*/
|
|
60
|
-
getItem(collectionId: string, itemId: string, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
|
|
87
|
+
getItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsGetItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
|
|
61
88
|
/**
|
|
62
|
-
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `
|
|
89
|
+
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
|
|
63
90
|
* @throws {@link Webflow.BadRequestError}
|
|
64
91
|
* @throws {@link Webflow.UnauthorizedError}
|
|
65
92
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -67,11 +94,11 @@ export declare class Items {
|
|
|
67
94
|
* @throws {@link Webflow.InternalServerError}
|
|
68
95
|
*
|
|
69
96
|
* @example
|
|
70
|
-
* await webflow.collections.items.deleteItem("
|
|
97
|
+
* await webflow.collections.items.deleteItem("collection_id", "item_id", {})
|
|
71
98
|
*/
|
|
72
|
-
deleteItem(collectionId: string, itemId: string, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
99
|
+
deleteItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsDeleteItemRequest, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
73
100
|
/**
|
|
74
|
-
* Update a selected Item in a Collection. </br></br> Required scope | `
|
|
101
|
+
* Update a selected Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
75
102
|
* @throws {@link Webflow.BadRequestError}
|
|
76
103
|
* @throws {@link Webflow.UnauthorizedError}
|
|
77
104
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -79,14 +106,53 @@ export declare class Items {
|
|
|
79
106
|
* @throws {@link Webflow.InternalServerError}
|
|
80
107
|
*
|
|
81
108
|
* @example
|
|
82
|
-
* await webflow.collections.items.updateItem("
|
|
109
|
+
* await webflow.collections.items.updateItem("collection_id", "item_id", {
|
|
83
110
|
* id: "580e64008c9a982ac9b8b754",
|
|
111
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
84
112
|
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
85
113
|
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
86
|
-
* createdOn: "2023-03-17T18:47:35.560Z"
|
|
114
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
115
|
+
* fieldData: {
|
|
116
|
+
* name: "My new item",
|
|
117
|
+
* slug: "my-new-item"
|
|
118
|
+
* }
|
|
87
119
|
* })
|
|
88
120
|
*/
|
|
89
121
|
updateItem(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
|
|
122
|
+
/**
|
|
123
|
+
* Delete a live Item from a Collection. The Item will be unpublished from the live site. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
|
|
124
|
+
* @throws {@link Webflow.BadRequestError}
|
|
125
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
126
|
+
* @throws {@link Webflow.NotFoundError}
|
|
127
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
128
|
+
* @throws {@link Webflow.InternalServerError}
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await webflow.collections.items.deleteItemLive("collection_id", "item_id")
|
|
132
|
+
*/
|
|
133
|
+
deleteItemLive(collectionId: string, itemId: string, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Update a selected live Item in a Collection. The updates for this Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
136
|
+
* @throws {@link Webflow.BadRequestError}
|
|
137
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
138
|
+
* @throws {@link Webflow.NotFoundError}
|
|
139
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
140
|
+
* @throws {@link Webflow.InternalServerError}
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* await webflow.collections.items.updateItemLive("collection_id", "item_id", {
|
|
144
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
145
|
+
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
146
|
+
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
147
|
+
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
148
|
+
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
149
|
+
* fieldData: {
|
|
150
|
+
* name: "My new item",
|
|
151
|
+
* slug: "my-new-item"
|
|
152
|
+
* }
|
|
153
|
+
* })
|
|
154
|
+
*/
|
|
155
|
+
updateItemLive(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
|
|
90
156
|
/**
|
|
91
157
|
* Publish an item or multiple items. </br></br> Required scope | `cms:write`
|
|
92
158
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -96,8 +162,8 @@ export declare class Items {
|
|
|
96
162
|
* @throws {@link Webflow.InternalServerError}
|
|
97
163
|
*
|
|
98
164
|
* @example
|
|
99
|
-
* await webflow.collections.items.publishItem("
|
|
100
|
-
* itemIds: []
|
|
165
|
+
* await webflow.collections.items.publishItem("collection_id", {
|
|
166
|
+
* itemIds: ["itemIds"]
|
|
101
167
|
* })
|
|
102
168
|
*/
|
|
103
169
|
publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.collections.ItemsPublishItemResponse>;
|