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
|
@@ -50,7 +50,9 @@ class Webhooks {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* List all App-created Webhooks registered for a given site
|
|
53
|
+
* List all App-created Webhooks registered for a given site
|
|
54
|
+
*
|
|
55
|
+
* Required scope | `sites:read`
|
|
54
56
|
*
|
|
55
57
|
* @param {string} siteId - Unique identifier for a Site
|
|
56
58
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -70,15 +72,7 @@ class Webhooks {
|
|
|
70
72
|
const _response = yield core.fetcher({
|
|
71
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/webhooks`),
|
|
72
74
|
method: "GET",
|
|
73
|
-
headers: {
|
|
74
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
75
|
-
"X-Fern-Language": "JavaScript",
|
|
76
|
-
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "2.4.2",
|
|
78
|
-
"User-Agent": "webflow-api/2.4.2",
|
|
79
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
|
-
},
|
|
75
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
76
|
contentType: "application/json",
|
|
83
77
|
requestType: "json",
|
|
84
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -99,11 +93,23 @@ class Webhooks {
|
|
|
99
93
|
case 400:
|
|
100
94
|
throw new Webflow.BadRequestError(_response.error.body);
|
|
101
95
|
case 401:
|
|
102
|
-
throw new Webflow.UnauthorizedError(_response.error.body
|
|
96
|
+
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
97
|
+
unrecognizedObjectKeys: "passthrough",
|
|
98
|
+
allowUnrecognizedUnionMembers: true,
|
|
99
|
+
allowUnrecognizedEnumValues: true,
|
|
100
|
+
skipValidation: true,
|
|
101
|
+
breadcrumbsPrefix: ["response"],
|
|
102
|
+
}));
|
|
103
103
|
case 404:
|
|
104
|
-
throw new Webflow.NotFoundError(_response.error.body
|
|
104
|
+
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
106
|
+
allowUnrecognizedUnionMembers: true,
|
|
107
|
+
allowUnrecognizedEnumValues: true,
|
|
108
|
+
skipValidation: true,
|
|
109
|
+
breadcrumbsPrefix: ["response"],
|
|
110
|
+
}));
|
|
105
111
|
case 429:
|
|
106
|
-
throw new Webflow.TooManyRequestsError(serializers.
|
|
112
|
+
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
107
113
|
unrecognizedObjectKeys: "passthrough",
|
|
108
114
|
allowUnrecognizedUnionMembers: true,
|
|
109
115
|
allowUnrecognizedEnumValues: true,
|
|
@@ -111,7 +117,13 @@ class Webhooks {
|
|
|
111
117
|
breadcrumbsPrefix: ["response"],
|
|
112
118
|
}));
|
|
113
119
|
case 500:
|
|
114
|
-
throw new Webflow.InternalServerError(_response.error.body
|
|
120
|
+
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
121
|
+
unrecognizedObjectKeys: "passthrough",
|
|
122
|
+
allowUnrecognizedUnionMembers: true,
|
|
123
|
+
allowUnrecognizedEnumValues: true,
|
|
124
|
+
skipValidation: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
}));
|
|
115
127
|
default:
|
|
116
128
|
throw new errors.WebflowError({
|
|
117
129
|
statusCode: _response.error.statusCode,
|
|
@@ -126,7 +138,7 @@ class Webhooks {
|
|
|
126
138
|
body: _response.error.rawBody,
|
|
127
139
|
});
|
|
128
140
|
case "timeout":
|
|
129
|
-
throw new errors.WebflowTimeoutError();
|
|
141
|
+
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/webhooks.");
|
|
130
142
|
case "unknown":
|
|
131
143
|
throw new errors.WebflowError({
|
|
132
144
|
message: _response.error.errorMessage,
|
|
@@ -135,7 +147,12 @@ class Webhooks {
|
|
|
135
147
|
});
|
|
136
148
|
}
|
|
137
149
|
/**
|
|
138
|
-
* Create a new Webhook
|
|
150
|
+
* Create a new Webhook.
|
|
151
|
+
*
|
|
152
|
+
* Limit of 75 registrations per `triggerType`, per site.
|
|
153
|
+
*
|
|
154
|
+
* <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
|
|
155
|
+
* Required scope | `sites:write`
|
|
139
156
|
*
|
|
140
157
|
* @param {string} siteId - Unique identifier for a Site
|
|
141
158
|
* @param {Webflow.Webhook} request
|
|
@@ -164,18 +181,14 @@ class Webhooks {
|
|
|
164
181
|
const _response = yield core.fetcher({
|
|
165
182
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/webhooks`),
|
|
166
183
|
method: "POST",
|
|
167
|
-
headers: {
|
|
168
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
169
|
-
"X-Fern-Language": "JavaScript",
|
|
170
|
-
"X-Fern-SDK-Name": "webflow-api",
|
|
171
|
-
"X-Fern-SDK-Version": "2.4.2",
|
|
172
|
-
"User-Agent": "webflow-api/2.4.2",
|
|
173
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
|
-
},
|
|
184
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
176
185
|
contentType: "application/json",
|
|
177
186
|
requestType: "json",
|
|
178
|
-
body: serializers.Webhook.jsonOrThrow(request, {
|
|
187
|
+
body: serializers.Webhook.jsonOrThrow(request, {
|
|
188
|
+
unrecognizedObjectKeys: "passthrough",
|
|
189
|
+
allowUnrecognizedUnionMembers: true,
|
|
190
|
+
allowUnrecognizedEnumValues: true,
|
|
191
|
+
}),
|
|
179
192
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
180
193
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
181
194
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -194,11 +207,23 @@ class Webhooks {
|
|
|
194
207
|
case 400:
|
|
195
208
|
throw new Webflow.BadRequestError(_response.error.body);
|
|
196
209
|
case 401:
|
|
197
|
-
throw new Webflow.UnauthorizedError(_response.error.body
|
|
210
|
+
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
211
|
+
unrecognizedObjectKeys: "passthrough",
|
|
212
|
+
allowUnrecognizedUnionMembers: true,
|
|
213
|
+
allowUnrecognizedEnumValues: true,
|
|
214
|
+
skipValidation: true,
|
|
215
|
+
breadcrumbsPrefix: ["response"],
|
|
216
|
+
}));
|
|
198
217
|
case 404:
|
|
199
|
-
throw new Webflow.NotFoundError(_response.error.body
|
|
218
|
+
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
219
|
+
unrecognizedObjectKeys: "passthrough",
|
|
220
|
+
allowUnrecognizedUnionMembers: true,
|
|
221
|
+
allowUnrecognizedEnumValues: true,
|
|
222
|
+
skipValidation: true,
|
|
223
|
+
breadcrumbsPrefix: ["response"],
|
|
224
|
+
}));
|
|
200
225
|
case 429:
|
|
201
|
-
throw new Webflow.TooManyRequestsError(serializers.
|
|
226
|
+
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
202
227
|
unrecognizedObjectKeys: "passthrough",
|
|
203
228
|
allowUnrecognizedUnionMembers: true,
|
|
204
229
|
allowUnrecognizedEnumValues: true,
|
|
@@ -206,7 +231,13 @@ class Webhooks {
|
|
|
206
231
|
breadcrumbsPrefix: ["response"],
|
|
207
232
|
}));
|
|
208
233
|
case 500:
|
|
209
|
-
throw new Webflow.InternalServerError(_response.error.body
|
|
234
|
+
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
235
|
+
unrecognizedObjectKeys: "passthrough",
|
|
236
|
+
allowUnrecognizedUnionMembers: true,
|
|
237
|
+
allowUnrecognizedEnumValues: true,
|
|
238
|
+
skipValidation: true,
|
|
239
|
+
breadcrumbsPrefix: ["response"],
|
|
240
|
+
}));
|
|
210
241
|
default:
|
|
211
242
|
throw new errors.WebflowError({
|
|
212
243
|
statusCode: _response.error.statusCode,
|
|
@@ -221,7 +252,7 @@ class Webhooks {
|
|
|
221
252
|
body: _response.error.rawBody,
|
|
222
253
|
});
|
|
223
254
|
case "timeout":
|
|
224
|
-
throw new errors.WebflowTimeoutError();
|
|
255
|
+
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /sites/{site_id}/webhooks.");
|
|
225
256
|
case "unknown":
|
|
226
257
|
throw new errors.WebflowError({
|
|
227
258
|
message: _response.error.errorMessage,
|
|
@@ -232,6 +263,8 @@ class Webhooks {
|
|
|
232
263
|
/**
|
|
233
264
|
* Get a specific Webhook instance
|
|
234
265
|
*
|
|
266
|
+
* Required scope: `sites:read`
|
|
267
|
+
*
|
|
235
268
|
* @param {string} webhookId - Unique identifier for a Webhook
|
|
236
269
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
270
|
*
|
|
@@ -250,15 +283,7 @@ class Webhooks {
|
|
|
250
283
|
const _response = yield core.fetcher({
|
|
251
284
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
252
285
|
method: "GET",
|
|
253
|
-
headers: {
|
|
254
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
255
|
-
"X-Fern-Language": "JavaScript",
|
|
256
|
-
"X-Fern-SDK-Name": "webflow-api",
|
|
257
|
-
"X-Fern-SDK-Version": "2.4.2",
|
|
258
|
-
"User-Agent": "webflow-api/2.4.2",
|
|
259
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
260
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
261
|
-
},
|
|
286
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
262
287
|
contentType: "application/json",
|
|
263
288
|
requestType: "json",
|
|
264
289
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -279,11 +304,23 @@ class Webhooks {
|
|
|
279
304
|
case 400:
|
|
280
305
|
throw new Webflow.BadRequestError(_response.error.body);
|
|
281
306
|
case 401:
|
|
282
|
-
throw new Webflow.UnauthorizedError(_response.error.body
|
|
307
|
+
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
308
|
+
unrecognizedObjectKeys: "passthrough",
|
|
309
|
+
allowUnrecognizedUnionMembers: true,
|
|
310
|
+
allowUnrecognizedEnumValues: true,
|
|
311
|
+
skipValidation: true,
|
|
312
|
+
breadcrumbsPrefix: ["response"],
|
|
313
|
+
}));
|
|
283
314
|
case 404:
|
|
284
|
-
throw new Webflow.NotFoundError(_response.error.body
|
|
315
|
+
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
316
|
+
unrecognizedObjectKeys: "passthrough",
|
|
317
|
+
allowUnrecognizedUnionMembers: true,
|
|
318
|
+
allowUnrecognizedEnumValues: true,
|
|
319
|
+
skipValidation: true,
|
|
320
|
+
breadcrumbsPrefix: ["response"],
|
|
321
|
+
}));
|
|
285
322
|
case 429:
|
|
286
|
-
throw new Webflow.TooManyRequestsError(serializers.
|
|
323
|
+
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
287
324
|
unrecognizedObjectKeys: "passthrough",
|
|
288
325
|
allowUnrecognizedUnionMembers: true,
|
|
289
326
|
allowUnrecognizedEnumValues: true,
|
|
@@ -291,7 +328,13 @@ class Webhooks {
|
|
|
291
328
|
breadcrumbsPrefix: ["response"],
|
|
292
329
|
}));
|
|
293
330
|
case 500:
|
|
294
|
-
throw new Webflow.InternalServerError(_response.error.body
|
|
331
|
+
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
332
|
+
unrecognizedObjectKeys: "passthrough",
|
|
333
|
+
allowUnrecognizedUnionMembers: true,
|
|
334
|
+
allowUnrecognizedEnumValues: true,
|
|
335
|
+
skipValidation: true,
|
|
336
|
+
breadcrumbsPrefix: ["response"],
|
|
337
|
+
}));
|
|
295
338
|
default:
|
|
296
339
|
throw new errors.WebflowError({
|
|
297
340
|
statusCode: _response.error.statusCode,
|
|
@@ -306,7 +349,7 @@ class Webhooks {
|
|
|
306
349
|
body: _response.error.rawBody,
|
|
307
350
|
});
|
|
308
351
|
case "timeout":
|
|
309
|
-
throw new errors.WebflowTimeoutError();
|
|
352
|
+
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /webhooks/{webhook_id}.");
|
|
310
353
|
case "unknown":
|
|
311
354
|
throw new errors.WebflowError({
|
|
312
355
|
message: _response.error.errorMessage,
|
|
@@ -317,6 +360,8 @@ class Webhooks {
|
|
|
317
360
|
/**
|
|
318
361
|
* Remove a Webhook
|
|
319
362
|
*
|
|
363
|
+
* Required scope: `sites:read`
|
|
364
|
+
*
|
|
320
365
|
* @param {string} webhookId - Unique identifier for a Webhook
|
|
321
366
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
322
367
|
*
|
|
@@ -335,15 +380,7 @@ class Webhooks {
|
|
|
335
380
|
const _response = yield core.fetcher({
|
|
336
381
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
337
382
|
method: "DELETE",
|
|
338
|
-
headers: {
|
|
339
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
340
|
-
"X-Fern-Language": "JavaScript",
|
|
341
|
-
"X-Fern-SDK-Name": "webflow-api",
|
|
342
|
-
"X-Fern-SDK-Version": "2.4.2",
|
|
343
|
-
"User-Agent": "webflow-api/2.4.2",
|
|
344
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
345
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
346
|
-
},
|
|
383
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
347
384
|
contentType: "application/json",
|
|
348
385
|
requestType: "json",
|
|
349
386
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -358,11 +395,23 @@ class Webhooks {
|
|
|
358
395
|
case 400:
|
|
359
396
|
throw new Webflow.BadRequestError(_response.error.body);
|
|
360
397
|
case 401:
|
|
361
|
-
throw new Webflow.UnauthorizedError(_response.error.body
|
|
398
|
+
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
399
|
+
unrecognizedObjectKeys: "passthrough",
|
|
400
|
+
allowUnrecognizedUnionMembers: true,
|
|
401
|
+
allowUnrecognizedEnumValues: true,
|
|
402
|
+
skipValidation: true,
|
|
403
|
+
breadcrumbsPrefix: ["response"],
|
|
404
|
+
}));
|
|
362
405
|
case 404:
|
|
363
|
-
throw new Webflow.NotFoundError(_response.error.body
|
|
406
|
+
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
407
|
+
unrecognizedObjectKeys: "passthrough",
|
|
408
|
+
allowUnrecognizedUnionMembers: true,
|
|
409
|
+
allowUnrecognizedEnumValues: true,
|
|
410
|
+
skipValidation: true,
|
|
411
|
+
breadcrumbsPrefix: ["response"],
|
|
412
|
+
}));
|
|
364
413
|
case 429:
|
|
365
|
-
throw new Webflow.TooManyRequestsError(serializers.
|
|
414
|
+
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
366
415
|
unrecognizedObjectKeys: "passthrough",
|
|
367
416
|
allowUnrecognizedUnionMembers: true,
|
|
368
417
|
allowUnrecognizedEnumValues: true,
|
|
@@ -370,7 +419,13 @@ class Webhooks {
|
|
|
370
419
|
breadcrumbsPrefix: ["response"],
|
|
371
420
|
}));
|
|
372
421
|
case 500:
|
|
373
|
-
throw new Webflow.InternalServerError(_response.error.body
|
|
422
|
+
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
423
|
+
unrecognizedObjectKeys: "passthrough",
|
|
424
|
+
allowUnrecognizedUnionMembers: true,
|
|
425
|
+
allowUnrecognizedEnumValues: true,
|
|
426
|
+
skipValidation: true,
|
|
427
|
+
breadcrumbsPrefix: ["response"],
|
|
428
|
+
}));
|
|
374
429
|
default:
|
|
375
430
|
throw new errors.WebflowError({
|
|
376
431
|
statusCode: _response.error.statusCode,
|
|
@@ -385,7 +440,7 @@ class Webhooks {
|
|
|
385
440
|
body: _response.error.rawBody,
|
|
386
441
|
});
|
|
387
442
|
case "timeout":
|
|
388
|
-
throw new errors.WebflowTimeoutError();
|
|
443
|
+
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /webhooks/{webhook_id}.");
|
|
389
444
|
case "unknown":
|
|
390
445
|
throw new errors.WebflowError({
|
|
391
446
|
message: _response.error.errorMessage,
|
|
@@ -13,7 +13,7 @@ export interface AssetFolder {
|
|
|
13
13
|
parentFolder?: string;
|
|
14
14
|
/** Array of Asset instances in the folder */
|
|
15
15
|
assets?: string[];
|
|
16
|
-
/** The unique
|
|
16
|
+
/** The unique ID of the site the Asset Folder belongs to */
|
|
17
17
|
siteId?: string;
|
|
18
18
|
/** Date that the Asset Folder was created on */
|
|
19
19
|
createdOn?: Date;
|
|
@@ -6,7 +6,7 @@ import * as Webflow from "../index";
|
|
|
6
6
|
* The Authorization object
|
|
7
7
|
*/
|
|
8
8
|
export interface AuthorizationAuthorization {
|
|
9
|
-
/** The unique
|
|
9
|
+
/** The unique ID of the Authorization instance */
|
|
10
10
|
id?: string;
|
|
11
11
|
/** The date the Authorization was created */
|
|
12
12
|
createdOn?: Date;
|
|
@@ -6,6 +6,6 @@ export interface BulkCollectionItemFieldData {
|
|
|
6
6
|
name?: string;
|
|
7
7
|
/** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */
|
|
8
8
|
slug?: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}
|
|
@@ -7,7 +7,7 @@ import * as Webflow from "../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface CollectionItem {
|
|
9
9
|
/** Unique identifier for the Item */
|
|
10
|
-
id
|
|
10
|
+
id?: string;
|
|
11
11
|
/** Identifier for the locale of the CMS item */
|
|
12
12
|
cmsLocaleId?: string;
|
|
13
13
|
/** The date the item was last published */
|
|
@@ -6,6 +6,6 @@ export interface CollectionItemFieldData {
|
|
|
6
6
|
name?: string;
|
|
7
7
|
/** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */
|
|
8
8
|
slug?: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Results from collection items list
|
|
7
|
+
*/
|
|
8
|
+
export interface CollectionItemListNoPagination {
|
|
9
|
+
/** List of Items within the collection */
|
|
10
|
+
items?: Webflow.CollectionItem[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The fields that define the schema for a given Item are based on the Collection that Item belongs to. Beyond the user defined fields, there are a handful of additional fields that are automatically created for all items
|
|
7
|
+
*/
|
|
8
|
+
export interface CollectionItemWithIdInput {
|
|
9
|
+
/** Unique identifier for the Item */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Identifier for the locale of the CMS item */
|
|
12
|
+
cmsLocaleId?: string;
|
|
13
|
+
/** The date the item was last published */
|
|
14
|
+
lastPublished?: string;
|
|
15
|
+
/** The date the item was last updated */
|
|
16
|
+
lastUpdated?: string;
|
|
17
|
+
/** The date the item was created */
|
|
18
|
+
createdOn?: string;
|
|
19
|
+
/** Boolean determining if the Item is set to archived */
|
|
20
|
+
isArchived?: boolean;
|
|
21
|
+
/** Boolean determining if the Item is set to draft */
|
|
22
|
+
isDraft?: boolean;
|
|
23
|
+
fieldData?: Webflow.CollectionItemWithIdInputFieldData;
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CollectionItemWithIdInputFieldData {
|
|
5
|
+
/** Name of the Item */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */
|
|
8
|
+
slug?: string;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -2,13 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
6
|
-
/** Error code */
|
|
7
|
-
code?: "ecommerce_not_enabled";
|
|
8
|
-
/** Error message */
|
|
9
|
-
message?: string;
|
|
10
|
-
/** Link to more information */
|
|
11
|
-
externalReference?: string;
|
|
12
|
-
/** Array of errors */
|
|
13
|
-
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
-
}
|
|
5
|
+
export declare type ConflictErrorBody = Webflow.DuplicateUserEmail | undefined | Webflow.UserLimitReached | undefined;
|
|
@@ -6,9 +6,9 @@ import * as Webflow from "../index";
|
|
|
6
6
|
* A specific instance of Custom Code applied to a Site or Page
|
|
7
7
|
*/
|
|
8
8
|
export interface CustomCodeBlock {
|
|
9
|
-
/** The Site
|
|
9
|
+
/** The Site ID where the custom code was applied */
|
|
10
10
|
siteId?: string;
|
|
11
|
-
/** The Page
|
|
11
|
+
/** The Page ID (if applied at Page-level) */
|
|
12
12
|
pageId?: string;
|
|
13
13
|
/** Whether the Custom Code script is applied at the Site-level or Page-level */
|
|
14
14
|
type?: Webflow.CustomCodeBlockType;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
export interface DuplicateUserEmail {
|
|
6
|
-
/** Error code */
|
|
7
|
-
code?: string;
|
|
8
|
-
/** Error message */
|
|
9
|
-
message?: string;
|
|
10
|
-
/** Link to more information */
|
|
11
|
-
externalReference?: string;
|
|
12
|
-
/** Array of errors */
|
|
13
|
-
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
-
}
|
|
4
|
+
export declare type DuplicateUserEmail = unknown;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Error code
|
|
6
|
+
*/
|
|
7
|
+
export declare type ErrorCode = "bad_request" | "collection_not_found" | "conflict" | "duplicate_collection" | "duplicate_user_email" | "ecommerce_not_enabled" | "forbidden" | "forms_require_republish" | "incompatible_webhook_filter" | "internal_error" | "invalid_auth_version" | "invalid_credentials" | "invalid_domain" | "invalid_user_email" | "item_not_found" | "missing_scopes" | "no_domains" | "not_authorized" | "not_enterprise_plan_site" | "not_enterprise_plan_workspace" | "order_not_found" | "resource_not_found" | "too_many_requests" | "unsupported_version" | "unsupported_webhook_trigger_type" | "user_limit_reached" | "user_not_found" | "users_not_enabled" | "validation_error";
|
|
8
|
+
export declare const ErrorCode: {
|
|
9
|
+
readonly BadRequest: "bad_request";
|
|
10
|
+
readonly CollectionNotFound: "collection_not_found";
|
|
11
|
+
readonly Conflict: "conflict";
|
|
12
|
+
readonly DuplicateCollection: "duplicate_collection";
|
|
13
|
+
readonly DuplicateUserEmail: "duplicate_user_email";
|
|
14
|
+
readonly EcommerceNotEnabled: "ecommerce_not_enabled";
|
|
15
|
+
readonly Forbidden: "forbidden";
|
|
16
|
+
readonly FormsRequireRepublish: "forms_require_republish";
|
|
17
|
+
readonly IncompatibleWebhookFilter: "incompatible_webhook_filter";
|
|
18
|
+
readonly InternalError: "internal_error";
|
|
19
|
+
readonly InvalidAuthVersion: "invalid_auth_version";
|
|
20
|
+
readonly InvalidCredentials: "invalid_credentials";
|
|
21
|
+
readonly InvalidDomain: "invalid_domain";
|
|
22
|
+
readonly InvalidUserEmail: "invalid_user_email";
|
|
23
|
+
readonly ItemNotFound: "item_not_found";
|
|
24
|
+
readonly MissingScopes: "missing_scopes";
|
|
25
|
+
readonly NoDomains: "no_domains";
|
|
26
|
+
readonly NotAuthorized: "not_authorized";
|
|
27
|
+
readonly NotEnterprisePlanSite: "not_enterprise_plan_site";
|
|
28
|
+
readonly NotEnterprisePlanWorkspace: "not_enterprise_plan_workspace";
|
|
29
|
+
readonly OrderNotFound: "order_not_found";
|
|
30
|
+
readonly ResourceNotFound: "resource_not_found";
|
|
31
|
+
readonly TooManyRequests: "too_many_requests";
|
|
32
|
+
readonly UnsupportedVersion: "unsupported_version";
|
|
33
|
+
readonly UnsupportedWebhookTriggerType: "unsupported_webhook_trigger_type";
|
|
34
|
+
readonly UserLimitReached: "user_limit_reached";
|
|
35
|
+
readonly UserNotFound: "user_not_found";
|
|
36
|
+
readonly UsersNotEnabled: "users_not_enabled";
|
|
37
|
+
readonly ValidationError: "validation_error";
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ErrorCode = void 0;
|
|
7
|
+
exports.ErrorCode = {
|
|
8
|
+
BadRequest: "bad_request",
|
|
9
|
+
CollectionNotFound: "collection_not_found",
|
|
10
|
+
Conflict: "conflict",
|
|
11
|
+
DuplicateCollection: "duplicate_collection",
|
|
12
|
+
DuplicateUserEmail: "duplicate_user_email",
|
|
13
|
+
EcommerceNotEnabled: "ecommerce_not_enabled",
|
|
14
|
+
Forbidden: "forbidden",
|
|
15
|
+
FormsRequireRepublish: "forms_require_republish",
|
|
16
|
+
IncompatibleWebhookFilter: "incompatible_webhook_filter",
|
|
17
|
+
InternalError: "internal_error",
|
|
18
|
+
InvalidAuthVersion: "invalid_auth_version",
|
|
19
|
+
InvalidCredentials: "invalid_credentials",
|
|
20
|
+
InvalidDomain: "invalid_domain",
|
|
21
|
+
InvalidUserEmail: "invalid_user_email",
|
|
22
|
+
ItemNotFound: "item_not_found",
|
|
23
|
+
MissingScopes: "missing_scopes",
|
|
24
|
+
NoDomains: "no_domains",
|
|
25
|
+
NotAuthorized: "not_authorized",
|
|
26
|
+
NotEnterprisePlanSite: "not_enterprise_plan_site",
|
|
27
|
+
NotEnterprisePlanWorkspace: "not_enterprise_plan_workspace",
|
|
28
|
+
OrderNotFound: "order_not_found",
|
|
29
|
+
ResourceNotFound: "resource_not_found",
|
|
30
|
+
TooManyRequests: "too_many_requests",
|
|
31
|
+
UnsupportedVersion: "unsupported_version",
|
|
32
|
+
UnsupportedWebhookTriggerType: "unsupported_webhook_trigger_type",
|
|
33
|
+
UserLimitReached: "user_limit_reached",
|
|
34
|
+
UserNotFound: "user_not_found",
|
|
35
|
+
UsersNotEnabled: "users_not_enabled",
|
|
36
|
+
ValidationError: "validation_error",
|
|
37
|
+
};
|
package/api/types/Error_.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
message?: string;
|
|
7
|
-
publicErrorCode?: string;
|
|
8
|
-
externalReference?: string;
|
|
9
|
-
details?: string[];
|
|
10
|
-
}
|
|
4
|
+
import * as Webflow from "../index";
|
|
5
|
+
export declare type ForbiddenErrorBody = Webflow.InvalidScopes | undefined | Webflow.UsersNotEnabled | undefined;
|
package/api/types/Form.d.ts
CHANGED
|
@@ -12,22 +12,22 @@ export interface Form {
|
|
|
12
12
|
createdOn?: Date;
|
|
13
13
|
/** Date that the Form was last updated on */
|
|
14
14
|
lastUpdated?: Date;
|
|
15
|
-
/** A
|
|
16
|
-
fields?: Webflow.FormField
|
|
15
|
+
/** A collection of form field objects */
|
|
16
|
+
fields?: Webflow.FormField;
|
|
17
17
|
/** Settings for form responses */
|
|
18
18
|
responseSettings?: Webflow.FormResponseSettings;
|
|
19
|
-
/** The unique
|
|
19
|
+
/** The unique ID for the Form */
|
|
20
20
|
id?: string;
|
|
21
|
-
/** The unique
|
|
21
|
+
/** The unique ID of the Site the Form belongs to */
|
|
22
22
|
siteId?: string;
|
|
23
|
-
/** The unique
|
|
23
|
+
/** The unique ID corresponding to the site's Domain name */
|
|
24
24
|
siteDomainId?: string;
|
|
25
|
-
/** The unique
|
|
25
|
+
/** The unique ID for the Page on which the Form is placed */
|
|
26
26
|
pageId?: string;
|
|
27
27
|
/** The user-visible name of the Page where the Form is placed */
|
|
28
28
|
pageName?: string;
|
|
29
|
-
/** The unique
|
|
29
|
+
/** The unique ID of the Form element */
|
|
30
30
|
formElementId?: string;
|
|
31
|
-
/** The unique
|
|
31
|
+
/** The unique ID of the Workspace the Site belongs to */
|
|
32
32
|
workspaceId?: string;
|
|
33
33
|
}
|