webflow-api 2.4.2 → 3.0.0
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/.mock/definition/__package__.yml +2495 -0
- package/.mock/definition/accessGroups.yml +80 -0
- package/.mock/definition/api.yml +13 -0
- package/.mock/definition/assets.yml +414 -0
- package/.mock/definition/collections/fields.yml +187 -0
- package/.mock/definition/collections/items.yml +1511 -0
- package/.mock/definition/collections.yml +185 -0
- package/.mock/definition/ecommerce.yml +42 -0
- package/.mock/definition/forms.yml +301 -0
- package/.mock/definition/inventory.yml +120 -0
- package/.mock/definition/orders.yml +1569 -0
- package/.mock/definition/pages/scripts.yml +169 -0
- package/.mock/definition/pages.yml +443 -0
- package/.mock/definition/products.yml +500 -0
- package/.mock/definition/scripts.yml +257 -0
- package/.mock/definition/sites/activityLogs.yml +65 -0
- package/.mock/definition/sites/scripts.yml +228 -0
- package/.mock/definition/sites.yml +299 -0
- package/.mock/definition/token.yml +71 -0
- package/.mock/definition/users.yml +392 -0
- package/.mock/definition/webhooks.yml +189 -0
- package/.mock/fern.config.json +4 -0
- package/Client.d.ts +2 -0
- package/MIGRATION.md +37 -0
- package/README.md +23 -30
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/api/resources/accessGroups/client/Client.js +27 -15
- package/api/resources/assets/client/Client.d.ts +31 -11
- package/api/resources/assets/client/Client.js +236 -126
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/api/resources/collections/client/Client.d.ts +15 -22
- package/api/resources/collections/client/Client.js +109 -137
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/api/resources/collections/resources/items/client/Client.js +959 -221
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/api/resources/collections/resources/items/types/index.js +9 -0
- package/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/api/resources/ecommerce/client/Client.js +24 -14
- package/api/resources/forms/client/Client.d.ts +17 -5
- package/api/resources/forms/client/Client.js +140 -76
- package/api/resources/inventory/client/Client.d.ts +8 -1
- package/api/resources/inventory/client/Client.js +59 -30
- package/api/resources/orders/client/Client.d.ts +7 -2
- package/api/resources/orders/client/Client.js +164 -89
- package/api/resources/pages/client/Client.d.ts +25 -14
- package/api/resources/pages/client/Client.js +169 -100
- package/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/api/resources/products/client/Client.d.ts +26 -10
- package/api/resources/products/client/Client.js +188 -98
- package/api/resources/scripts/client/Client.d.ts +31 -3
- package/api/resources/scripts/client/Client.js +111 -47
- package/api/resources/sites/client/Client.d.ts +16 -4
- package/api/resources/sites/client/Client.js +101 -59
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/api/resources/token/client/Client.d.ts +7 -2
- package/api/resources/token/client/Client.js +23 -24
- package/api/resources/users/client/Client.d.ts +21 -6
- package/api/resources/users/client/Client.js +149 -78
- package/api/resources/webhooks/client/Client.d.ts +15 -2
- package/api/resources/webhooks/client/Client.js +114 -59
- package/api/types/AssetFolder.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/AuthorizedUser.d.ts +1 -1
- package/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/api/types/CollectionItemListNoPagination.js +5 -0
- package/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/api/types/CollectionItemWithIdInput.js +5 -0
- package/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/api/types/ConflictErrorBody.d.ts +1 -10
- package/api/types/CustomCodeBlock.d.ts +2 -2
- package/api/types/DuplicateUserEmail.d.ts +1 -11
- package/api/types/ErrorCode.d.ts +38 -0
- package/api/types/ErrorCode.js +37 -0
- package/api/types/Error_.d.ts +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/api/types/Form.d.ts +8 -8
- package/api/types/FormSubmission.d.ts +3 -3
- package/api/types/InvalidScopes.d.ts +4 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/api/types/Order.d.ts +5 -1
- package/api/types/Page.d.ts +2 -0
- package/api/types/Site.d.ts +4 -0
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/api/types/SiteActivityLogItemEvent.js +50 -0
- package/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/api/types/SiteDataCollectionType.d.ts +12 -0
- package/api/types/SiteDataCollectionType.js +11 -0
- package/api/types/UserLimitReached.d.ts +1 -11
- package/api/types/UsersNotEnabled.d.ts +1 -11
- package/api/types/index.d.ts +10 -6
- package/api/types/index.js +10 -6
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/schemas/builders/object/object.js +28 -0
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/Client.d.ts +2 -0
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/dist/api/resources/accessGroups/client/Client.js +27 -15
- package/dist/api/resources/assets/client/Client.d.ts +31 -11
- package/dist/api/resources/assets/client/Client.js +236 -126
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.d.ts +15 -22
- package/dist/api/resources/collections/client/Client.js +109 -137
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/dist/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/dist/api/resources/collections/resources/items/client/Client.js +959 -221
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/index.js +9 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/dist/api/resources/ecommerce/client/Client.js +24 -14
- package/dist/api/resources/forms/client/Client.d.ts +17 -5
- package/dist/api/resources/forms/client/Client.js +140 -76
- package/dist/api/resources/inventory/client/Client.d.ts +8 -1
- package/dist/api/resources/inventory/client/Client.js +59 -30
- package/dist/api/resources/orders/client/Client.d.ts +7 -2
- package/dist/api/resources/orders/client/Client.js +164 -89
- package/dist/api/resources/pages/client/Client.d.ts +25 -14
- package/dist/api/resources/pages/client/Client.js +169 -100
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/dist/api/resources/products/client/Client.d.ts +26 -10
- package/dist/api/resources/products/client/Client.js +188 -98
- package/dist/api/resources/scripts/client/Client.d.ts +31 -3
- package/dist/api/resources/scripts/client/Client.js +111 -47
- package/dist/api/resources/sites/client/Client.d.ts +16 -4
- package/dist/api/resources/sites/client/Client.js +101 -59
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/dist/api/resources/token/client/Client.d.ts +7 -2
- package/dist/api/resources/token/client/Client.js +23 -24
- package/dist/api/resources/users/client/Client.d.ts +21 -6
- package/dist/api/resources/users/client/Client.js +149 -78
- package/dist/api/resources/webhooks/client/Client.d.ts +15 -2
- package/dist/api/resources/webhooks/client/Client.js +114 -59
- package/dist/api/types/AssetFolder.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/AuthorizedUser.d.ts +1 -1
- package/dist/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/dist/api/types/CollectionItemListNoPagination.js +5 -0
- package/dist/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/dist/api/types/CollectionItemWithIdInput.js +5 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/dist/api/types/ConflictErrorBody.d.ts +1 -10
- package/dist/api/types/CustomCodeBlock.d.ts +2 -2
- package/dist/api/types/DuplicateUserEmail.d.ts +1 -11
- package/dist/api/types/ErrorCode.d.ts +38 -0
- package/dist/api/types/ErrorCode.js +37 -0
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/dist/api/types/Form.d.ts +8 -8
- package/dist/api/types/FormSubmission.d.ts +3 -3
- package/dist/api/types/InvalidScopes.d.ts +4 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/dist/api/types/Order.d.ts +5 -1
- package/dist/api/types/Page.d.ts +2 -0
- package/dist/api/types/Site.d.ts +4 -0
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/dist/api/types/SiteActivityLogItemEvent.js +50 -0
- package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/dist/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/dist/api/types/SiteDataCollectionType.d.ts +12 -0
- package/dist/api/types/SiteDataCollectionType.js +11 -0
- package/dist/api/types/UserLimitReached.d.ts +1 -11
- package/dist/api/types/UsersNotEnabled.d.ts +1 -11
- package/dist/api/types/index.d.ts +10 -6
- package/dist/api/types/index.js +10 -6
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/core/schemas/builders/object/object.js +28 -0
- package/dist/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/errors/WebflowTimeoutError.d.ts +1 -1
- package/dist/errors/WebflowTimeoutError.js +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/dist/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -1
- package/dist/serialization/types/CollectionItem.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/dist/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/dist/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/dist/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/dist/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/dist/serialization/types/{MissingScopes.js → CollectionItemWithIdInputFieldData.js} +7 -8
- package/dist/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/dist/serialization/types/ConflictErrorBody.js +3 -7
- package/dist/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/dist/serialization/types/DuplicateUserEmail.js +1 -7
- package/dist/serialization/types/ErrorCode.d.ts +10 -0
- package/dist/serialization/types/ErrorCode.js +61 -0
- package/dist/serialization/types/Error_.d.ts +2 -1
- package/dist/serialization/types/Error_.js +2 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/dist/serialization/types/ForbiddenErrorBody.js +3 -7
- package/dist/serialization/types/Form.d.ts +1 -1
- package/dist/serialization/types/Form.js +1 -1
- package/dist/serialization/types/InvalidScopes.d.ts +10 -0
- package/{serialization/types/MissingScopes.js → dist/serialization/types/InvalidScopes.js} +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +1 -0
- package/dist/serialization/types/Site.d.ts +3 -0
- package/dist/serialization/types/Site.js +3 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/dist/serialization/types/SiteActivityLogItem.js +2 -1
- package/dist/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/dist/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/dist/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/dist/serialization/types/SiteDataCollectionType.js +31 -0
- package/dist/serialization/types/UserLimitReached.d.ts +2 -8
- package/dist/serialization/types/UserLimitReached.js +1 -7
- package/dist/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/dist/serialization/types/UsersNotEnabled.js +1 -7
- package/dist/serialization/types/index.d.ts +10 -5
- package/dist/serialization/types/index.js +10 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/WebflowClient.d.ts +1 -4
- package/dist/wrapper/WebflowClient.js +4 -8
- package/errors/WebflowTimeoutError.d.ts +1 -1
- package/errors/WebflowTimeoutError.js +2 -2
- package/package.json +1 -2
- package/reference.md +821 -230
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItem.d.ts +1 -1
- package/serialization/types/CollectionItem.js +1 -1
- package/serialization/types/CollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.js +36 -0
- package/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/serialization/types/ConflictErrorBody.js +3 -7
- package/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/serialization/types/DuplicateUserEmail.js +1 -7
- package/serialization/types/ErrorCode.d.ts +10 -0
- package/serialization/types/ErrorCode.js +61 -0
- package/serialization/types/Error_.d.ts +2 -1
- package/serialization/types/Error_.js +2 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/serialization/types/ForbiddenErrorBody.js +3 -7
- package/serialization/types/Form.d.ts +1 -1
- package/serialization/types/Form.js +1 -1
- package/serialization/types/InvalidScopes.d.ts +10 -0
- package/serialization/types/InvalidScopes.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +1 -0
- package/serialization/types/Site.d.ts +3 -0
- package/serialization/types/Site.js +3 -0
- package/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/serialization/types/SiteActivityLogItem.js +2 -1
- package/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/serialization/types/SiteDataCollectionType.js +31 -0
- package/serialization/types/UserLimitReached.d.ts +2 -8
- package/serialization/types/UserLimitReached.js +1 -7
- package/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/serialization/types/UsersNotEnabled.js +1 -7
- package/serialization/types/index.d.ts +10 -5
- package/serialization/types/index.js +10 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/WebflowClient.d.ts +1 -4
- package/wrapper/WebflowClient.js +4 -8
- package/api/types/MissingScopes.d.ts +0 -14
- package/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/api/types/MissingScopes.d.ts +0 -14
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/serialization/types/MissingScopes.d.ts +0 -16
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- package/dist/wrapper/CollectionsClient.d.ts +0 -8
- package/dist/wrapper/CollectionsClient.js +0 -18
- package/dist/wrapper/ItemsClient.d.ts +0 -78
- package/dist/wrapper/ItemsClient.js +0 -351
- package/serialization/types/MissingScopes.d.ts +0 -16
- package/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- package/wrapper/CollectionsClient.d.ts +0 -8
- package/wrapper/CollectionsClient.js +0 -18
- package/wrapper/ItemsClient.d.ts +0 -78
- package/wrapper/ItemsClient.js +0 -351
- /package/api/{types/MissingScopes.js → resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js} +0 -0
- /package/api/{types/TooManyRequestsErrorBody.js → resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js} +0 -0
- /package/{dist/api/types/MissingScopes.js → api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js} +0 -0
- /package/{dist/api/types/TooManyRequestsErrorBody.js → api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js} +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: ../__package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
get-custom-code:
|
|
8
|
+
path: /pages/{page_id}/custom_code
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: >
|
|
12
|
+
Get all registered scripts that have been applied to a specific Page.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
16
|
+
Scripts must first be registered
|
|
17
|
+
|
|
18
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
19
|
+
Site or Page using the appropriate
|
|
20
|
+
|
|
21
|
+
`custom_code` endpoints.
|
|
22
|
+
|
|
23
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
24
|
+
endpoint requires a bearer token from a <a
|
|
25
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
26
|
+
Client App</a>.</blockquote>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Required scope | `custom_code:read`
|
|
30
|
+
source:
|
|
31
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
32
|
+
path-parameters:
|
|
33
|
+
page_id:
|
|
34
|
+
type: string
|
|
35
|
+
docs: Unique identifier for a Page
|
|
36
|
+
display-name: Get Custom Code
|
|
37
|
+
response:
|
|
38
|
+
docs: Request was successful
|
|
39
|
+
type: root.ScriptApplyList
|
|
40
|
+
errors:
|
|
41
|
+
- root.BadRequestError
|
|
42
|
+
- root.UnauthorizedError
|
|
43
|
+
- root.NotFoundError
|
|
44
|
+
- root.TooManyRequestsError
|
|
45
|
+
- root.InternalServerError
|
|
46
|
+
examples:
|
|
47
|
+
- path-parameters:
|
|
48
|
+
page_id: 63c720f9347c2139b248e552
|
|
49
|
+
response:
|
|
50
|
+
body:
|
|
51
|
+
scripts:
|
|
52
|
+
- id: id
|
|
53
|
+
location: header
|
|
54
|
+
version: version
|
|
55
|
+
attributes:
|
|
56
|
+
key: value
|
|
57
|
+
lastUpdated: lastUpdated
|
|
58
|
+
createdOn: createdOn
|
|
59
|
+
upsert-custom-code:
|
|
60
|
+
path: /pages/{page_id}/custom_code
|
|
61
|
+
method: PUT
|
|
62
|
+
auth: true
|
|
63
|
+
docs: >
|
|
64
|
+
Add a registered script to a Page.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
68
|
+
Scripts must first be registered
|
|
69
|
+
|
|
70
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
71
|
+
Site or Page using the appropriate
|
|
72
|
+
|
|
73
|
+
`custom_code` endpoints.
|
|
74
|
+
|
|
75
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
76
|
+
endpoint requires a bearer token from a <a
|
|
77
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
78
|
+
Client App</a>.</blockquote>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Required scope | `custom_code:write`
|
|
82
|
+
source:
|
|
83
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
84
|
+
path-parameters:
|
|
85
|
+
page_id:
|
|
86
|
+
type: string
|
|
87
|
+
docs: Unique identifier for a Page
|
|
88
|
+
display-name: Add/Update Custom Code
|
|
89
|
+
request:
|
|
90
|
+
body: root.ScriptApplyList
|
|
91
|
+
content-type: application/json
|
|
92
|
+
response:
|
|
93
|
+
docs: Request was successful
|
|
94
|
+
type: root.ScriptApplyList
|
|
95
|
+
errors:
|
|
96
|
+
- root.BadRequestError
|
|
97
|
+
- root.UnauthorizedError
|
|
98
|
+
- root.NotFoundError
|
|
99
|
+
- root.TooManyRequestsError
|
|
100
|
+
- root.InternalServerError
|
|
101
|
+
examples:
|
|
102
|
+
- path-parameters:
|
|
103
|
+
page_id: 63c720f9347c2139b248e552
|
|
104
|
+
request:
|
|
105
|
+
scripts:
|
|
106
|
+
- id: cms_slider
|
|
107
|
+
location: header
|
|
108
|
+
version: 1.0.0
|
|
109
|
+
attributes:
|
|
110
|
+
my-attribute: some-value
|
|
111
|
+
- id: alert
|
|
112
|
+
location: header
|
|
113
|
+
version: 0.0.1
|
|
114
|
+
response:
|
|
115
|
+
body:
|
|
116
|
+
scripts:
|
|
117
|
+
- id: cms_slider
|
|
118
|
+
location: header
|
|
119
|
+
version: 1.0.0
|
|
120
|
+
attributes:
|
|
121
|
+
my-attribute: some-value
|
|
122
|
+
- id: alert
|
|
123
|
+
location: header
|
|
124
|
+
version: 0.0.1
|
|
125
|
+
attributes:
|
|
126
|
+
key: value
|
|
127
|
+
lastUpdated: '2022-10-26T00:28:54.191Z'
|
|
128
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
129
|
+
delete-custom-code:
|
|
130
|
+
path: /pages/{page_id}/custom_code
|
|
131
|
+
method: DELETE
|
|
132
|
+
auth: true
|
|
133
|
+
docs: >
|
|
134
|
+
Delete the custom code block that an app has created for a page
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
138
|
+
Scripts must first be registered
|
|
139
|
+
|
|
140
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
141
|
+
Site or Page using the appropriate
|
|
142
|
+
|
|
143
|
+
`custom_code` endpoints.
|
|
144
|
+
|
|
145
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
146
|
+
endpoint requires a bearer token from a <a
|
|
147
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
148
|
+
Client App</a>.</blockquote>
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
Required scope | `custom_code:write`
|
|
152
|
+
source:
|
|
153
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
154
|
+
path-parameters:
|
|
155
|
+
page_id:
|
|
156
|
+
type: string
|
|
157
|
+
docs: Unique identifier for a Page
|
|
158
|
+
display-name: Delete Custom Code
|
|
159
|
+
errors:
|
|
160
|
+
- root.BadRequestError
|
|
161
|
+
- root.UnauthorizedError
|
|
162
|
+
- root.NotFoundError
|
|
163
|
+
- root.TooManyRequestsError
|
|
164
|
+
- root.InternalServerError
|
|
165
|
+
examples:
|
|
166
|
+
- path-parameters:
|
|
167
|
+
page_id: 63c720f9347c2139b248e552
|
|
168
|
+
source:
|
|
169
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/pages
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List of all pages for a site.
|
|
13
|
+
|
|
14
|
+
Required scope | `pages:read`
|
|
15
|
+
source:
|
|
16
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
17
|
+
path-parameters:
|
|
18
|
+
site_id:
|
|
19
|
+
type: string
|
|
20
|
+
docs: Unique identifier for a Site
|
|
21
|
+
display-name: List Pages
|
|
22
|
+
request:
|
|
23
|
+
name: PagesListRequest
|
|
24
|
+
query-parameters:
|
|
25
|
+
localeId:
|
|
26
|
+
type: optional<string>
|
|
27
|
+
docs: >-
|
|
28
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
29
|
+
localization.
|
|
30
|
+
limit:
|
|
31
|
+
type: optional<double>
|
|
32
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
33
|
+
offset:
|
|
34
|
+
type: optional<double>
|
|
35
|
+
docs: >-
|
|
36
|
+
Offset used for pagination if the results have more than limit
|
|
37
|
+
records
|
|
38
|
+
response:
|
|
39
|
+
docs: Request was successful
|
|
40
|
+
type: root.PageList
|
|
41
|
+
errors:
|
|
42
|
+
- root.BadRequestError
|
|
43
|
+
- root.UnauthorizedError
|
|
44
|
+
- root.NotFoundError
|
|
45
|
+
- root.TooManyRequestsError
|
|
46
|
+
- root.InternalServerError
|
|
47
|
+
examples:
|
|
48
|
+
- path-parameters:
|
|
49
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
50
|
+
query-parameters:
|
|
51
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
52
|
+
response:
|
|
53
|
+
body:
|
|
54
|
+
pages:
|
|
55
|
+
- id: 6596da6045e56dee495bcbba
|
|
56
|
+
siteId: 6258612d1ee792848f805dcf
|
|
57
|
+
title: Guide to the Galaxy
|
|
58
|
+
slug: guide-to-the-galaxy
|
|
59
|
+
parentId: 6419db964a9c435aa3af6251
|
|
60
|
+
collectionId: 6390c49774a71f12831a08e3
|
|
61
|
+
createdOn: '2024-03-11T10:42:00Z'
|
|
62
|
+
lastUpdated: '2024-03-11T10:42:42Z'
|
|
63
|
+
archived: false
|
|
64
|
+
draft: false
|
|
65
|
+
canBranch: true
|
|
66
|
+
isBranch: false
|
|
67
|
+
isMembersOnly: false
|
|
68
|
+
seo:
|
|
69
|
+
title: The Ultimate Hitchhiker's Guide to the Galaxy
|
|
70
|
+
description: >-
|
|
71
|
+
Everything you need to know about the galaxy, from
|
|
72
|
+
avoiding Vogon poetry to the importance of towels.
|
|
73
|
+
openGraph:
|
|
74
|
+
title: Explore the Cosmos with The Ultimate Guide
|
|
75
|
+
titleCopied: false
|
|
76
|
+
description: >-
|
|
77
|
+
Dive deep into the mysteries of the universe with your
|
|
78
|
+
guide to everything galactic.
|
|
79
|
+
descriptionCopied: false
|
|
80
|
+
localeId: 653fd9af6a07fc9cfd7a5e57
|
|
81
|
+
publishedPath: /en-us/guide-to-the-galaxy
|
|
82
|
+
- id: 6596da6045e56dee495bcbad
|
|
83
|
+
siteId: 6258612d1ee792848f805dcf
|
|
84
|
+
title: Towel Day Celebrations
|
|
85
|
+
slug: towel-day
|
|
86
|
+
parentId: 6419db964a9c435aa3af6251
|
|
87
|
+
collectionId: 6390c49774a71f12831a08e3
|
|
88
|
+
createdOn: '2024-05-25T09:00:00Z'
|
|
89
|
+
lastUpdated: '2024-05-25T09:42:00Z'
|
|
90
|
+
archived: false
|
|
91
|
+
draft: false
|
|
92
|
+
canBranch: true
|
|
93
|
+
isBranch: false
|
|
94
|
+
isMembersOnly: false
|
|
95
|
+
seo:
|
|
96
|
+
title: Celebrate Towel Day - The Hitchhiker's Guide to the Galaxy
|
|
97
|
+
description: >-
|
|
98
|
+
A guide to celebrating Towel Day, in honor of the most
|
|
99
|
+
massively useful thing an interstellar hitchhiker can
|
|
100
|
+
have.
|
|
101
|
+
openGraph:
|
|
102
|
+
title: Towel Day - Don't Panic
|
|
103
|
+
titleCopied: false
|
|
104
|
+
description: >-
|
|
105
|
+
Join the galaxy in celebrating Towel Day, the day
|
|
106
|
+
dedicated to carrying towels everywhere in memory of
|
|
107
|
+
Douglas Adams.
|
|
108
|
+
descriptionCopied: false
|
|
109
|
+
localeId: 653fd9af6a07fc9cfd7a5e57
|
|
110
|
+
publishedPath: /en-us/towel-day
|
|
111
|
+
pagination:
|
|
112
|
+
limit: 20
|
|
113
|
+
offset: 0
|
|
114
|
+
total: 2
|
|
115
|
+
get-metadata:
|
|
116
|
+
path: /pages/{page_id}
|
|
117
|
+
method: GET
|
|
118
|
+
auth: true
|
|
119
|
+
docs: |
|
|
120
|
+
Get metadata information for a single page.
|
|
121
|
+
|
|
122
|
+
Required scope | `pages:read`
|
|
123
|
+
source:
|
|
124
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
125
|
+
path-parameters:
|
|
126
|
+
page_id:
|
|
127
|
+
type: string
|
|
128
|
+
docs: Unique identifier for a Page
|
|
129
|
+
display-name: Get Page Metadata
|
|
130
|
+
request:
|
|
131
|
+
name: PagesGetMetadataRequest
|
|
132
|
+
query-parameters:
|
|
133
|
+
localeId:
|
|
134
|
+
type: optional<string>
|
|
135
|
+
docs: >-
|
|
136
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
137
|
+
localization.
|
|
138
|
+
response:
|
|
139
|
+
docs: Request was successful
|
|
140
|
+
type: root.Page
|
|
141
|
+
errors:
|
|
142
|
+
- root.BadRequestError
|
|
143
|
+
- root.UnauthorizedError
|
|
144
|
+
- root.NotFoundError
|
|
145
|
+
- root.TooManyRequestsError
|
|
146
|
+
- root.InternalServerError
|
|
147
|
+
examples:
|
|
148
|
+
- path-parameters:
|
|
149
|
+
page_id: 63c720f9347c2139b248e552
|
|
150
|
+
query-parameters:
|
|
151
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
152
|
+
response:
|
|
153
|
+
body:
|
|
154
|
+
id: 6596da6045e56dee495bcbba
|
|
155
|
+
siteId: 6258612d1ee792848f805dcf
|
|
156
|
+
title: Guide to the Galaxy
|
|
157
|
+
slug: guide-to-the-galaxy
|
|
158
|
+
parentId: 6419db964a9c435aa3af6251
|
|
159
|
+
collectionId: 6390c49774a71f12831a08e3
|
|
160
|
+
createdOn: '2024-03-11T10:42:00Z'
|
|
161
|
+
lastUpdated: '2024-03-11T10:42:42Z'
|
|
162
|
+
archived: false
|
|
163
|
+
draft: false
|
|
164
|
+
canBranch: true
|
|
165
|
+
isBranch: false
|
|
166
|
+
isMembersOnly: false
|
|
167
|
+
seo:
|
|
168
|
+
title: The Ultimate Hitchhiker's Guide to the Galaxy
|
|
169
|
+
description: >-
|
|
170
|
+
Everything you need to know about the galaxy, from avoiding
|
|
171
|
+
Vogon poetry to the importance of towels.
|
|
172
|
+
openGraph:
|
|
173
|
+
title: Explore the Cosmos with The Ultimate Guide
|
|
174
|
+
titleCopied: false
|
|
175
|
+
description: >-
|
|
176
|
+
Dive deep into the mysteries of the universe with your guide
|
|
177
|
+
to everything galactic.
|
|
178
|
+
descriptionCopied: false
|
|
179
|
+
localeId: 653fd9af6a07fc9cfd7a5e57
|
|
180
|
+
publishedPath: /en-us/guide-to-the-galaxy
|
|
181
|
+
update-page-settings:
|
|
182
|
+
path: /pages/{page_id}
|
|
183
|
+
method: PUT
|
|
184
|
+
auth: true
|
|
185
|
+
docs: |
|
|
186
|
+
Update Page-level metadata, including SEO and Open Graph fields.
|
|
187
|
+
|
|
188
|
+
Required scope | `pages:write`
|
|
189
|
+
source:
|
|
190
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
191
|
+
path-parameters:
|
|
192
|
+
page_id:
|
|
193
|
+
type: string
|
|
194
|
+
docs: Unique identifier for a Page
|
|
195
|
+
display-name: Update Page Metadata
|
|
196
|
+
request:
|
|
197
|
+
body: root.Page
|
|
198
|
+
query-parameters:
|
|
199
|
+
localeId:
|
|
200
|
+
type: optional<string>
|
|
201
|
+
docs: >-
|
|
202
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
203
|
+
localization.
|
|
204
|
+
name: UpdatePageSettingsRequest
|
|
205
|
+
content-type: application/json
|
|
206
|
+
response:
|
|
207
|
+
docs: Request was successful
|
|
208
|
+
type: root.Page
|
|
209
|
+
errors:
|
|
210
|
+
- root.BadRequestError
|
|
211
|
+
- root.UnauthorizedError
|
|
212
|
+
- root.NotFoundError
|
|
213
|
+
- root.TooManyRequestsError
|
|
214
|
+
- root.InternalServerError
|
|
215
|
+
examples:
|
|
216
|
+
- path-parameters:
|
|
217
|
+
page_id: 63c720f9347c2139b248e552
|
|
218
|
+
query-parameters:
|
|
219
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
220
|
+
request:
|
|
221
|
+
id: 6596da6045e56dee495bcbba
|
|
222
|
+
siteId: 6258612d1ee792848f805dcf
|
|
223
|
+
title: Guide to the Galaxy
|
|
224
|
+
slug: guide-to-the-galaxy
|
|
225
|
+
createdOn: '2024-03-11T10:42:00Z'
|
|
226
|
+
lastUpdated: '2024-03-11T10:42:42Z'
|
|
227
|
+
archived: false
|
|
228
|
+
draft: false
|
|
229
|
+
canBranch: true
|
|
230
|
+
isBranch: false
|
|
231
|
+
seo:
|
|
232
|
+
title: The Ultimate Hitchhiker's Guide to the Galaxy
|
|
233
|
+
description: >-
|
|
234
|
+
Everything you need to know about the galaxy, from avoiding
|
|
235
|
+
Vogon poetry to the importance of towels.
|
|
236
|
+
openGraph:
|
|
237
|
+
title: Explore the Cosmos with The Ultimate Guide
|
|
238
|
+
titleCopied: false
|
|
239
|
+
description: >-
|
|
240
|
+
Dive deep into the mysteries of the universe with your guide to
|
|
241
|
+
everything galactic.
|
|
242
|
+
descriptionCopied: false
|
|
243
|
+
localeId: 653fd9af6a07fc9cfd7a5e57
|
|
244
|
+
publishedPath: /en-us/guide-to-the-galaxy
|
|
245
|
+
response:
|
|
246
|
+
body:
|
|
247
|
+
id: 6596da6045e56dee495bcbba
|
|
248
|
+
siteId: 6258612d1ee792848f805dcf
|
|
249
|
+
title: Guide to the Galaxy
|
|
250
|
+
slug: guide-to-the-galaxy
|
|
251
|
+
parentId: 6419db964a9c435aa3af6251
|
|
252
|
+
collectionId: 6390c49774a71f12831a08e3
|
|
253
|
+
createdOn: '2024-03-11T10:42:00Z'
|
|
254
|
+
lastUpdated: '2024-03-11T10:42:42Z'
|
|
255
|
+
archived: false
|
|
256
|
+
draft: false
|
|
257
|
+
canBranch: true
|
|
258
|
+
isBranch: false
|
|
259
|
+
isMembersOnly: false
|
|
260
|
+
seo:
|
|
261
|
+
title: The Ultimate Hitchhiker's Guide to the Galaxy
|
|
262
|
+
description: >-
|
|
263
|
+
Everything you need to know about the galaxy, from avoiding
|
|
264
|
+
Vogon poetry to the importance of towels.
|
|
265
|
+
openGraph:
|
|
266
|
+
title: Explore the Cosmos with The Ultimate Guide
|
|
267
|
+
titleCopied: false
|
|
268
|
+
description: >-
|
|
269
|
+
Dive deep into the mysteries of the universe with your guide
|
|
270
|
+
to everything galactic.
|
|
271
|
+
descriptionCopied: false
|
|
272
|
+
localeId: 653fd9af6a07fc9cfd7a5e57
|
|
273
|
+
publishedPath: /en-us/guide-to-the-galaxy
|
|
274
|
+
get-content:
|
|
275
|
+
path: /pages/{page_id}/dom
|
|
276
|
+
method: GET
|
|
277
|
+
auth: true
|
|
278
|
+
docs: >
|
|
279
|
+
Get static content from a static page.
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
If you do not provide a Locale ID in your request, the response will
|
|
283
|
+
return any content that can be localized from the Primary locale.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
Required scope | `pages:read`
|
|
287
|
+
source:
|
|
288
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
289
|
+
path-parameters:
|
|
290
|
+
page_id:
|
|
291
|
+
type: string
|
|
292
|
+
docs: Unique identifier for a Page
|
|
293
|
+
display-name: Get Page Content
|
|
294
|
+
request:
|
|
295
|
+
name: PagesGetContentRequest
|
|
296
|
+
query-parameters:
|
|
297
|
+
localeId:
|
|
298
|
+
type: optional<string>
|
|
299
|
+
docs: >-
|
|
300
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
301
|
+
localization.
|
|
302
|
+
limit:
|
|
303
|
+
type: optional<double>
|
|
304
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
305
|
+
offset:
|
|
306
|
+
type: optional<double>
|
|
307
|
+
docs: >-
|
|
308
|
+
Offset used for pagination if the results have more than limit
|
|
309
|
+
records
|
|
310
|
+
response:
|
|
311
|
+
docs: Request was successful
|
|
312
|
+
type: root.Dom
|
|
313
|
+
errors:
|
|
314
|
+
- root.BadRequestError
|
|
315
|
+
- root.UnauthorizedError
|
|
316
|
+
- root.ForbiddenError
|
|
317
|
+
- root.NotFoundError
|
|
318
|
+
- root.TooManyRequestsError
|
|
319
|
+
- root.InternalServerError
|
|
320
|
+
examples:
|
|
321
|
+
- path-parameters:
|
|
322
|
+
page_id: 63c720f9347c2139b248e552
|
|
323
|
+
query-parameters:
|
|
324
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
325
|
+
response:
|
|
326
|
+
body:
|
|
327
|
+
pageId: 658205daa3e8206a523b5ad4
|
|
328
|
+
nodes:
|
|
329
|
+
- id: a245c12d-995b-55ee-5ec7-aa36a6cad623
|
|
330
|
+
type: text
|
|
331
|
+
text:
|
|
332
|
+
html: <h1>The Hitchhiker's Guide to the Galaxy</h1>
|
|
333
|
+
text: The Hitchhiker's Guide to the Galaxy
|
|
334
|
+
attributes:
|
|
335
|
+
key: value
|
|
336
|
+
- id: a245c12d-995b-55ee-5ec7-aa36a6cad627
|
|
337
|
+
type: text
|
|
338
|
+
text:
|
|
339
|
+
html: >-
|
|
340
|
+
<div><h3>Don't Panic!</h3><p>Always know where your towel
|
|
341
|
+
is.</p></div>
|
|
342
|
+
attributes:
|
|
343
|
+
key: value
|
|
344
|
+
- id: a245c12d-995b-55ee-5ec7-aa36a6cad629
|
|
345
|
+
type: image
|
|
346
|
+
image:
|
|
347
|
+
alt: Marvin, the Paranoid Android
|
|
348
|
+
assetId: 659595234426a9fcbad57043
|
|
349
|
+
attributes:
|
|
350
|
+
key: value
|
|
351
|
+
pagination:
|
|
352
|
+
limit: 3
|
|
353
|
+
offset: 0
|
|
354
|
+
total: 3
|
|
355
|
+
update-static-content:
|
|
356
|
+
path: /pages/{page_id}/dom
|
|
357
|
+
method: POST
|
|
358
|
+
auth: true
|
|
359
|
+
docs: >
|
|
360
|
+
This endpoint allows for updating static content on a static page within
|
|
361
|
+
a secondary locale. It is designed specifically for localized pages and
|
|
362
|
+
can handle up to 1000 nodes per request.
|
|
363
|
+
|
|
364
|
+
<blockquote class="callout callout_info"><p><strong>Note:</strong>This
|
|
365
|
+
endpoint is specifically for localized pages. Ensure that the locale
|
|
366
|
+
specified is a valid secondary locale for the site.</p></blockquote>
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
Required scope | `pages:write`
|
|
370
|
+
source:
|
|
371
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
372
|
+
path-parameters:
|
|
373
|
+
page_id:
|
|
374
|
+
type: string
|
|
375
|
+
docs: Unique identifier for a Page
|
|
376
|
+
display-name: Update Page Content
|
|
377
|
+
request:
|
|
378
|
+
name: DomWrite
|
|
379
|
+
query-parameters:
|
|
380
|
+
localeId:
|
|
381
|
+
type: optional<string>
|
|
382
|
+
docs: >-
|
|
383
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
384
|
+
localization.
|
|
385
|
+
body:
|
|
386
|
+
properties:
|
|
387
|
+
nodes: list<DomWriteNodesItem>
|
|
388
|
+
content-type: application/json
|
|
389
|
+
response:
|
|
390
|
+
docs: Request was successful
|
|
391
|
+
type: UpdateStaticContentResponse
|
|
392
|
+
errors:
|
|
393
|
+
- root.BadRequestError
|
|
394
|
+
- root.UnauthorizedError
|
|
395
|
+
- root.ForbiddenError
|
|
396
|
+
- root.NotFoundError
|
|
397
|
+
- root.TooManyRequestsError
|
|
398
|
+
- root.InternalServerError
|
|
399
|
+
examples:
|
|
400
|
+
- path-parameters:
|
|
401
|
+
page_id: 63c720f9347c2139b248e552
|
|
402
|
+
query-parameters:
|
|
403
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
404
|
+
request:
|
|
405
|
+
nodes:
|
|
406
|
+
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad623
|
|
407
|
+
text: <h1>The Hitchhiker’s Guide to the Galaxy</h1>
|
|
408
|
+
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad627
|
|
409
|
+
text: >-
|
|
410
|
+
<div><h3>Don’t Panic!</h3><p>Always know where your towel
|
|
411
|
+
is.</p></div>
|
|
412
|
+
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad629
|
|
413
|
+
text: >-
|
|
414
|
+
<img alt="Marvin, the Paranoid Android"
|
|
415
|
+
src="path/to/image/with/assetId/659595234426a9fcbad57043"/>
|
|
416
|
+
response:
|
|
417
|
+
body:
|
|
418
|
+
errors:
|
|
419
|
+
- errors
|
|
420
|
+
source:
|
|
421
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
422
|
+
display-name: Pages
|
|
423
|
+
types:
|
|
424
|
+
DomWriteNodesItem:
|
|
425
|
+
properties:
|
|
426
|
+
nodeId:
|
|
427
|
+
type: string
|
|
428
|
+
docs: Node UUID
|
|
429
|
+
text:
|
|
430
|
+
type: string
|
|
431
|
+
docs: >-
|
|
432
|
+
HTML content of the node, including the HTML tag. The HTML tags must
|
|
433
|
+
be the same as what's returned from the Get Content endpoint.
|
|
434
|
+
source:
|
|
435
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
436
|
+
inline: true
|
|
437
|
+
UpdateStaticContentResponse:
|
|
438
|
+
properties:
|
|
439
|
+
errors:
|
|
440
|
+
docs: A list of error messages, if any.
|
|
441
|
+
type: list<string>
|
|
442
|
+
source:
|
|
443
|
+
openapi: ../../../referenced-specs/v2.yml
|