webflow-api 2.4.0 → 2.5.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/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/ItemsClient.d.ts +23 -49
- package/dist/wrapper/ItemsClient.js +50 -216
- package/dist/wrapper/WebflowClient.d.ts +1 -1
- package/dist/wrapper/WebflowClient.js +11 -1
- 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/ItemsClient.d.ts +23 -49
- package/wrapper/ItemsClient.js +50 -216
- package/wrapper/WebflowClient.d.ts +1 -1
- package/wrapper/WebflowClient.js +11 -1
- 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/serialization/types/MissingScopes.d.ts +0 -16
- package/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- /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,185 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/collections
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List of all Collections within a Site.
|
|
13
|
+
|
|
14
|
+
Required scope | `cms: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 Collections
|
|
22
|
+
response:
|
|
23
|
+
docs: Request was successful
|
|
24
|
+
type: root.CollectionList
|
|
25
|
+
errors:
|
|
26
|
+
- root.BadRequestError
|
|
27
|
+
- root.UnauthorizedError
|
|
28
|
+
- root.NotFoundError
|
|
29
|
+
- root.TooManyRequestsError
|
|
30
|
+
- root.InternalServerError
|
|
31
|
+
examples:
|
|
32
|
+
- path-parameters:
|
|
33
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
34
|
+
response:
|
|
35
|
+
body:
|
|
36
|
+
collections:
|
|
37
|
+
- id: 63692ab61fb2852f582ba8f5
|
|
38
|
+
displayName: Products
|
|
39
|
+
singularName: Product
|
|
40
|
+
slug: product
|
|
41
|
+
createdOn: '2019-06-12T13:35:14Z'
|
|
42
|
+
lastUpdated: '2022-11-17T15:08:50Z'
|
|
43
|
+
- id: 63692ab61fb2856e6a2ba8f6
|
|
44
|
+
displayName: Categories
|
|
45
|
+
singularName: Category
|
|
46
|
+
slug: category
|
|
47
|
+
createdOn: '2019-06-12T13:35:14Z'
|
|
48
|
+
lastUpdated: '2022-11-17T15:08:50Z'
|
|
49
|
+
- id: 63692ab61fb285a8562ba8f4
|
|
50
|
+
displayName: SKUs
|
|
51
|
+
singularName: SKU
|
|
52
|
+
slug: sku
|
|
53
|
+
createdOn: '2019-06-12T13:35:14Z'
|
|
54
|
+
lastUpdated: '2022-11-17T15:08:50Z'
|
|
55
|
+
create:
|
|
56
|
+
path: /sites/{site_id}/collections
|
|
57
|
+
method: POST
|
|
58
|
+
auth: true
|
|
59
|
+
docs: |
|
|
60
|
+
Create a Collection for a site.
|
|
61
|
+
|
|
62
|
+
Required scope | `cms:write`
|
|
63
|
+
source:
|
|
64
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
65
|
+
path-parameters:
|
|
66
|
+
site_id:
|
|
67
|
+
type: string
|
|
68
|
+
docs: Unique identifier for a Site
|
|
69
|
+
display-name: Create Collection
|
|
70
|
+
request:
|
|
71
|
+
name: CollectionsCreateRequest
|
|
72
|
+
body:
|
|
73
|
+
properties:
|
|
74
|
+
displayName:
|
|
75
|
+
type: string
|
|
76
|
+
docs: Name of the collection. Each collection name must be distinct.
|
|
77
|
+
singularName:
|
|
78
|
+
type: string
|
|
79
|
+
docs: Singular name of each item.
|
|
80
|
+
slug:
|
|
81
|
+
type: optional<string>
|
|
82
|
+
docs: Part of a URL that identifier
|
|
83
|
+
content-type: application/json
|
|
84
|
+
response:
|
|
85
|
+
docs: Request was successful
|
|
86
|
+
type: root.Collection
|
|
87
|
+
errors:
|
|
88
|
+
- root.BadRequestError
|
|
89
|
+
- root.UnauthorizedError
|
|
90
|
+
- root.NotFoundError
|
|
91
|
+
- root.TooManyRequestsError
|
|
92
|
+
- root.InternalServerError
|
|
93
|
+
examples:
|
|
94
|
+
- path-parameters:
|
|
95
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
96
|
+
request:
|
|
97
|
+
displayName: Blog Posts
|
|
98
|
+
singularName: Blog Post
|
|
99
|
+
slug: posts
|
|
100
|
+
response:
|
|
101
|
+
body:
|
|
102
|
+
id: 580e63fc8c9a982ac9b8b745
|
|
103
|
+
displayName: Blog Posts
|
|
104
|
+
singularName: Blog Post
|
|
105
|
+
slug: post
|
|
106
|
+
createdOn: '2016-10-24T19:41:48Z'
|
|
107
|
+
lastUpdated: '2016-10-24T19:42:38Z'
|
|
108
|
+
fields:
|
|
109
|
+
- id: 23cc2d952d4e4631ffd4345d2743db4e
|
|
110
|
+
isRequired: true
|
|
111
|
+
isEditable: true
|
|
112
|
+
type: PlainText
|
|
113
|
+
slug: name
|
|
114
|
+
displayName: Name
|
|
115
|
+
helpText: helpText
|
|
116
|
+
get:
|
|
117
|
+
path: /collections/{collection_id}
|
|
118
|
+
method: GET
|
|
119
|
+
auth: true
|
|
120
|
+
docs: |
|
|
121
|
+
Get the full details of a collection from its ID.
|
|
122
|
+
|
|
123
|
+
Required scope | `cms:read`
|
|
124
|
+
source:
|
|
125
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
126
|
+
path-parameters:
|
|
127
|
+
collection_id:
|
|
128
|
+
type: string
|
|
129
|
+
docs: Unique identifier for a Collection
|
|
130
|
+
display-name: Get Collection Details
|
|
131
|
+
response:
|
|
132
|
+
docs: Request was successful
|
|
133
|
+
type: root.Collection
|
|
134
|
+
errors:
|
|
135
|
+
- root.BadRequestError
|
|
136
|
+
- root.UnauthorizedError
|
|
137
|
+
- root.NotFoundError
|
|
138
|
+
- root.TooManyRequestsError
|
|
139
|
+
- root.InternalServerError
|
|
140
|
+
examples:
|
|
141
|
+
- path-parameters:
|
|
142
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
143
|
+
response:
|
|
144
|
+
body:
|
|
145
|
+
id: 580e63fc8c9a982ac9b8b745
|
|
146
|
+
displayName: Blog Posts
|
|
147
|
+
singularName: Blog Post
|
|
148
|
+
slug: post
|
|
149
|
+
createdOn: '2016-10-24T19:41:48Z'
|
|
150
|
+
lastUpdated: '2016-10-24T19:42:38Z'
|
|
151
|
+
fields:
|
|
152
|
+
- id: 23cc2d952d4e4631ffd4345d2743db4e
|
|
153
|
+
isRequired: true
|
|
154
|
+
isEditable: true
|
|
155
|
+
type: PlainText
|
|
156
|
+
slug: name
|
|
157
|
+
displayName: Name
|
|
158
|
+
helpText: helpText
|
|
159
|
+
delete:
|
|
160
|
+
path: /collections/{collection_id}
|
|
161
|
+
method: DELETE
|
|
162
|
+
auth: true
|
|
163
|
+
docs: |
|
|
164
|
+
Delete a collection using its ID.
|
|
165
|
+
|
|
166
|
+
Required scope | `cms:write`
|
|
167
|
+
source:
|
|
168
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
169
|
+
path-parameters:
|
|
170
|
+
collection_id:
|
|
171
|
+
type: string
|
|
172
|
+
docs: Unique identifier for a Collection
|
|
173
|
+
display-name: Delete Collection
|
|
174
|
+
errors:
|
|
175
|
+
- root.BadRequestError
|
|
176
|
+
- root.UnauthorizedError
|
|
177
|
+
- root.NotFoundError
|
|
178
|
+
- root.TooManyRequestsError
|
|
179
|
+
- root.InternalServerError
|
|
180
|
+
examples:
|
|
181
|
+
- path-parameters:
|
|
182
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
183
|
+
source:
|
|
184
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
185
|
+
display-name: Collections
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
get-settings:
|
|
8
|
+
path: /sites/{site_id}/ecommerce/settings
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
Retrieve ecommerce settings for a site.
|
|
13
|
+
|
|
14
|
+
Required scope | `ecommerce: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: Get Ecommerce Settings
|
|
22
|
+
response:
|
|
23
|
+
docs: Request was successful
|
|
24
|
+
type: root.EcommerceSettings
|
|
25
|
+
errors:
|
|
26
|
+
- root.BadRequestError
|
|
27
|
+
- root.UnauthorizedError
|
|
28
|
+
- root.ForbiddenError
|
|
29
|
+
- root.NotFoundError
|
|
30
|
+
- root.ConflictError
|
|
31
|
+
- root.TooManyRequestsError
|
|
32
|
+
- root.InternalServerError
|
|
33
|
+
examples:
|
|
34
|
+
- path-parameters:
|
|
35
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
36
|
+
response:
|
|
37
|
+
body:
|
|
38
|
+
siteId: 5eb0b5583bf24e2d3a488969
|
|
39
|
+
createdOn: '2018-10-04T15:21:02Z'
|
|
40
|
+
defaultCurrency: USD
|
|
41
|
+
source:
|
|
42
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/forms
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List forms for a given site.
|
|
13
|
+
|
|
14
|
+
Required scope | `forms: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 Forms
|
|
22
|
+
request:
|
|
23
|
+
name: FormsListRequest
|
|
24
|
+
query-parameters:
|
|
25
|
+
limit:
|
|
26
|
+
type: optional<double>
|
|
27
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
28
|
+
offset:
|
|
29
|
+
type: optional<double>
|
|
30
|
+
docs: >-
|
|
31
|
+
Offset used for pagination if the results have more than limit
|
|
32
|
+
records
|
|
33
|
+
response:
|
|
34
|
+
docs: Request was successful
|
|
35
|
+
type: root.FormList
|
|
36
|
+
errors:
|
|
37
|
+
- root.BadRequestError
|
|
38
|
+
- root.UnauthorizedError
|
|
39
|
+
- root.ForbiddenError
|
|
40
|
+
- root.NotFoundError
|
|
41
|
+
- root.ConflictError
|
|
42
|
+
- root.TooManyRequestsError
|
|
43
|
+
- root.InternalServerError
|
|
44
|
+
examples:
|
|
45
|
+
- path-parameters:
|
|
46
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
47
|
+
response:
|
|
48
|
+
body:
|
|
49
|
+
forms:
|
|
50
|
+
- displayName: Email Form
|
|
51
|
+
createdOn: '2016-10-24T19:41:29Z'
|
|
52
|
+
lastUpdated: '2016-10-24T19:43:17Z'
|
|
53
|
+
fields:
|
|
54
|
+
'0':
|
|
55
|
+
displayName: Email
|
|
56
|
+
userVisible: true
|
|
57
|
+
'1':
|
|
58
|
+
displayName: Email
|
|
59
|
+
userVisible: true
|
|
60
|
+
responseSettings:
|
|
61
|
+
redirectUrl: https://example.com
|
|
62
|
+
redirectMethod: GET
|
|
63
|
+
sendEmailConfirmation: true
|
|
64
|
+
id: 589a331aa51e760df7ccb89e
|
|
65
|
+
siteId: 580e63e98c9a982ac9b8b741
|
|
66
|
+
siteDomainId: 6419db964a9c436a4baf6248
|
|
67
|
+
pageId: 6419db964a9c43f6a3af6348
|
|
68
|
+
pageName: Home
|
|
69
|
+
formElementId: 4e038d2c-6a1e-4953-7be9-a59a2b453177
|
|
70
|
+
workspaceId: 580e63fc8c9a982ac9b8b744
|
|
71
|
+
- displayName: Name Form
|
|
72
|
+
createdOn: '2016-10-24T19:41:29Z'
|
|
73
|
+
lastUpdated: '2016-10-24T19:43:17Z'
|
|
74
|
+
fields:
|
|
75
|
+
'0':
|
|
76
|
+
displayName: Email
|
|
77
|
+
userVisible: true
|
|
78
|
+
responseSettings:
|
|
79
|
+
redirectUrl: https://example.com
|
|
80
|
+
redirectMethod: GET
|
|
81
|
+
sendEmailConfirmation: false
|
|
82
|
+
id: 580ff8d7ba3e45ba9fe588e9
|
|
83
|
+
siteId: 580e63e98c9a982ac9b8b741
|
|
84
|
+
siteDomainId: 6419db964a9c436a4baf6248
|
|
85
|
+
pageId: 6419db964a9c43f6a3af6348
|
|
86
|
+
pageName: Home
|
|
87
|
+
formElementId: 4e038d2c-6a1e-4953-7be9-a59a2b453177
|
|
88
|
+
workspaceId: 580e63fc8c9a982ac9b8b744
|
|
89
|
+
pagination:
|
|
90
|
+
limit: 25
|
|
91
|
+
offset: 0
|
|
92
|
+
total: 2
|
|
93
|
+
get:
|
|
94
|
+
path: /forms/{form_id}
|
|
95
|
+
method: GET
|
|
96
|
+
auth: true
|
|
97
|
+
docs: |
|
|
98
|
+
Get information about a given form.
|
|
99
|
+
|
|
100
|
+
Required scope | `forms:read`
|
|
101
|
+
source:
|
|
102
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
103
|
+
path-parameters:
|
|
104
|
+
form_id:
|
|
105
|
+
type: string
|
|
106
|
+
docs: Unique identifier for a Form
|
|
107
|
+
display-name: Get Form Schema
|
|
108
|
+
response:
|
|
109
|
+
docs: Request was successful
|
|
110
|
+
type: root.Form
|
|
111
|
+
errors:
|
|
112
|
+
- root.BadRequestError
|
|
113
|
+
- root.UnauthorizedError
|
|
114
|
+
- root.ForbiddenError
|
|
115
|
+
- root.NotFoundError
|
|
116
|
+
- root.TooManyRequestsError
|
|
117
|
+
- root.InternalServerError
|
|
118
|
+
examples:
|
|
119
|
+
- path-parameters:
|
|
120
|
+
form_id: 580e63e98c9a982ac9b8b741
|
|
121
|
+
response:
|
|
122
|
+
body:
|
|
123
|
+
displayName: Email Form
|
|
124
|
+
createdOn: '2016-10-24T19:41:29Z'
|
|
125
|
+
lastUpdated: '2016-10-24T19:43:17Z'
|
|
126
|
+
fields:
|
|
127
|
+
660d5bcc9c0772150459dfb1:
|
|
128
|
+
displayName: Name
|
|
129
|
+
type: Plain
|
|
130
|
+
placeholder: Enter your email
|
|
131
|
+
userVisible: true
|
|
132
|
+
589a331aa51e760df7ccb89d:
|
|
133
|
+
displayName: Email
|
|
134
|
+
type: Email
|
|
135
|
+
placeholder: Enter your email
|
|
136
|
+
userVisible: true
|
|
137
|
+
responseSettings:
|
|
138
|
+
redirectUrl: https://example.com
|
|
139
|
+
redirectMethod: GET
|
|
140
|
+
redirectAction: POST https://example.com
|
|
141
|
+
sendEmailConfirmation: true
|
|
142
|
+
id: 589a331aa51e760df7ccb89e
|
|
143
|
+
siteId: 580e63e98c9a982ac9b8b741
|
|
144
|
+
siteDomainId: 6419db964a9c436a4baf6248
|
|
145
|
+
pageId: 6419db964a9c43f6a3af6348
|
|
146
|
+
pageName: Home
|
|
147
|
+
formElementId: 4e038d2c-6a1e-4953-7be9-a59a2b453177
|
|
148
|
+
workspaceId: 580e63fc8c9a982ac9b8b744
|
|
149
|
+
list-submissions:
|
|
150
|
+
path: /forms/{form_id}/submissions
|
|
151
|
+
method: GET
|
|
152
|
+
auth: true
|
|
153
|
+
docs: |
|
|
154
|
+
List form submissions for a given form
|
|
155
|
+
|
|
156
|
+
Required scope | `forms:read`
|
|
157
|
+
source:
|
|
158
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
159
|
+
path-parameters:
|
|
160
|
+
form_id:
|
|
161
|
+
type: string
|
|
162
|
+
docs: Unique identifier for a Form
|
|
163
|
+
display-name: List Form Submissions
|
|
164
|
+
request:
|
|
165
|
+
name: FormsListSubmissionsRequest
|
|
166
|
+
query-parameters:
|
|
167
|
+
offset:
|
|
168
|
+
type: optional<double>
|
|
169
|
+
docs: >-
|
|
170
|
+
Offset used for pagination if the results have more than limit
|
|
171
|
+
records
|
|
172
|
+
limit:
|
|
173
|
+
type: optional<double>
|
|
174
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
175
|
+
response:
|
|
176
|
+
docs: Request was successful
|
|
177
|
+
type: root.FormSubmissionList
|
|
178
|
+
errors:
|
|
179
|
+
- root.BadRequestError
|
|
180
|
+
- root.UnauthorizedError
|
|
181
|
+
- root.ForbiddenError
|
|
182
|
+
- root.NotFoundError
|
|
183
|
+
- root.TooManyRequestsError
|
|
184
|
+
- root.InternalServerError
|
|
185
|
+
examples:
|
|
186
|
+
- path-parameters:
|
|
187
|
+
form_id: 580e63e98c9a982ac9b8b741
|
|
188
|
+
response:
|
|
189
|
+
body:
|
|
190
|
+
formSubmissions:
|
|
191
|
+
- id: 6321ca84df3949bfc6752327
|
|
192
|
+
displayName: Sample Form
|
|
193
|
+
siteId: 62749158efef318abc8d5a0f
|
|
194
|
+
workspaceId: 62749158efef318abc8d5a0f
|
|
195
|
+
dateSubmitted: '2022-09-14T12:35:16Z'
|
|
196
|
+
formResponse:
|
|
197
|
+
First Name: Arthur
|
|
198
|
+
Last Name: Dent
|
|
199
|
+
- id: 660d64fabf6e0a0d4edab981
|
|
200
|
+
displayName: Sample Form
|
|
201
|
+
siteId: 62749158efef318abc8d5a0f
|
|
202
|
+
workspaceId: 62749158efef318abc8d5a0f
|
|
203
|
+
dateSubmitted: '2022-09-14T12:35:16Z'
|
|
204
|
+
formResponse:
|
|
205
|
+
First Name: Ford
|
|
206
|
+
Last Name: Prefect
|
|
207
|
+
pagination:
|
|
208
|
+
limit: 25
|
|
209
|
+
offset: 0
|
|
210
|
+
total: 2
|
|
211
|
+
get-submission:
|
|
212
|
+
path: /form_submissions/{form_submission_id}
|
|
213
|
+
method: GET
|
|
214
|
+
auth: true
|
|
215
|
+
docs: |
|
|
216
|
+
Get information about a given form submissio.
|
|
217
|
+
|
|
218
|
+
Required scope | `forms:read`
|
|
219
|
+
source:
|
|
220
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
221
|
+
path-parameters:
|
|
222
|
+
form_submission_id:
|
|
223
|
+
type: string
|
|
224
|
+
docs: Unique identifier for a Form Submission
|
|
225
|
+
display-name: Get Form Submission
|
|
226
|
+
response:
|
|
227
|
+
docs: Request was successful
|
|
228
|
+
type: root.FormSubmission
|
|
229
|
+
errors:
|
|
230
|
+
- root.BadRequestError
|
|
231
|
+
- root.UnauthorizedError
|
|
232
|
+
- root.ForbiddenError
|
|
233
|
+
- root.NotFoundError
|
|
234
|
+
- root.TooManyRequestsError
|
|
235
|
+
- root.InternalServerError
|
|
236
|
+
examples:
|
|
237
|
+
- path-parameters:
|
|
238
|
+
form_submission_id: 580e63e98c9a982ac9b8b741
|
|
239
|
+
response:
|
|
240
|
+
body:
|
|
241
|
+
id: 6321ca84df3949bfc6752327
|
|
242
|
+
displayName: Sample Form
|
|
243
|
+
siteId: 62749158efef318abc8d5a0f
|
|
244
|
+
workspaceId: 62749158efef318abc8d5a0f
|
|
245
|
+
dateSubmitted: '2022-09-14T12:35:16Z'
|
|
246
|
+
formResponse:
|
|
247
|
+
First Name: Arthur
|
|
248
|
+
Last Name: Dent
|
|
249
|
+
update-submission:
|
|
250
|
+
path: /form_submissions/{form_submission_id}
|
|
251
|
+
method: PATCH
|
|
252
|
+
auth: true
|
|
253
|
+
docs: |
|
|
254
|
+
Update hidden fields on a form submission
|
|
255
|
+
|
|
256
|
+
Required scope | `forms:write`
|
|
257
|
+
source:
|
|
258
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
259
|
+
path-parameters:
|
|
260
|
+
form_submission_id:
|
|
261
|
+
type: string
|
|
262
|
+
docs: Unique identifier for a Form Submission
|
|
263
|
+
display-name: Modify Form Submission
|
|
264
|
+
request:
|
|
265
|
+
name: FormsUpdateSubmissionRequest
|
|
266
|
+
body:
|
|
267
|
+
properties:
|
|
268
|
+
formSubmissionData:
|
|
269
|
+
type: optional<map<string, unknown>>
|
|
270
|
+
docs: >-
|
|
271
|
+
An existing **hidden field** defined on the form schema, and the
|
|
272
|
+
corresponding value to set
|
|
273
|
+
content-type: application/json
|
|
274
|
+
response:
|
|
275
|
+
docs: Request was successful
|
|
276
|
+
type: root.FormSubmission
|
|
277
|
+
errors:
|
|
278
|
+
- root.BadRequestError
|
|
279
|
+
- root.UnauthorizedError
|
|
280
|
+
- root.ForbiddenError
|
|
281
|
+
- root.NotFoundError
|
|
282
|
+
- root.ConflictError
|
|
283
|
+
- root.TooManyRequestsError
|
|
284
|
+
- root.InternalServerError
|
|
285
|
+
examples:
|
|
286
|
+
- path-parameters:
|
|
287
|
+
form_submission_id: 580e63e98c9a982ac9b8b741
|
|
288
|
+
request: {}
|
|
289
|
+
response:
|
|
290
|
+
body:
|
|
291
|
+
id: 6321ca84df3949bfc6752327
|
|
292
|
+
displayName: Sample Form
|
|
293
|
+
siteId: 62749158efef318abc8d5a0f
|
|
294
|
+
workspaceId: 62749158efef318abc8d5a0f
|
|
295
|
+
dateSubmitted: '2022-09-14T12:35:16Z'
|
|
296
|
+
formResponse:
|
|
297
|
+
First Name: Arthur
|
|
298
|
+
Last Name: Dent
|
|
299
|
+
source:
|
|
300
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
301
|
+
display-name: Forms
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /collections/{collection_id}/items/{item_id}/inventory
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List the current inventory levels for a particular SKU item.
|
|
13
|
+
|
|
14
|
+
Required scope | `ecommerce:read`
|
|
15
|
+
source:
|
|
16
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
17
|
+
path-parameters:
|
|
18
|
+
collection_id:
|
|
19
|
+
type: string
|
|
20
|
+
docs: Unique identifier for a Collection
|
|
21
|
+
item_id:
|
|
22
|
+
type: string
|
|
23
|
+
docs: Unique identifier for an Item
|
|
24
|
+
display-name: List Inventory
|
|
25
|
+
response:
|
|
26
|
+
docs: Request was successful
|
|
27
|
+
type: root.InventoryItem
|
|
28
|
+
errors:
|
|
29
|
+
- root.BadRequestError
|
|
30
|
+
- root.UnauthorizedError
|
|
31
|
+
- root.ForbiddenError
|
|
32
|
+
- root.NotFoundError
|
|
33
|
+
- root.ConflictError
|
|
34
|
+
- root.TooManyRequestsError
|
|
35
|
+
- root.InternalServerError
|
|
36
|
+
examples:
|
|
37
|
+
- path-parameters:
|
|
38
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
39
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
40
|
+
response:
|
|
41
|
+
body:
|
|
42
|
+
id: 5bfedb42bab0ad90fa7dad39
|
|
43
|
+
quantity: 100
|
|
44
|
+
inventoryType: infinite
|
|
45
|
+
update:
|
|
46
|
+
path: /collections/{collection_id}/items/{item_id}/inventory
|
|
47
|
+
method: PATCH
|
|
48
|
+
auth: true
|
|
49
|
+
docs: >
|
|
50
|
+
Updates the current inventory levels for a particular SKU item.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Updates may be given in one or two methods, absolutely or
|
|
54
|
+
incrementally.
|
|
55
|
+
|
|
56
|
+
- Absolute updates are done by setting `quantity` directly.
|
|
57
|
+
|
|
58
|
+
- Incremental updates are by specifying the inventory delta in
|
|
59
|
+
`updateQuantity` which is then added to the `quantity` stored on the
|
|
60
|
+
server.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
Required scope | `ecommerce:write`
|
|
64
|
+
source:
|
|
65
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
66
|
+
path-parameters:
|
|
67
|
+
collection_id:
|
|
68
|
+
type: string
|
|
69
|
+
docs: Unique identifier for a Collection
|
|
70
|
+
item_id:
|
|
71
|
+
type: string
|
|
72
|
+
docs: Unique identifier for an Item
|
|
73
|
+
display-name: Update Item Inventory
|
|
74
|
+
request:
|
|
75
|
+
name: InventoryUpdateRequest
|
|
76
|
+
body:
|
|
77
|
+
properties:
|
|
78
|
+
inventoryType:
|
|
79
|
+
type: InventoryUpdateRequestInventoryType
|
|
80
|
+
docs: infinite or finite
|
|
81
|
+
updateQuantity:
|
|
82
|
+
type: optional<double>
|
|
83
|
+
docs: Adds this quantity to currently store quantity. Can be negative.
|
|
84
|
+
quantity:
|
|
85
|
+
type: optional<double>
|
|
86
|
+
docs: Immediately sets quantity to this value.
|
|
87
|
+
content-type: application/json
|
|
88
|
+
response:
|
|
89
|
+
docs: Request was successful
|
|
90
|
+
type: root.InventoryItem
|
|
91
|
+
errors:
|
|
92
|
+
- root.BadRequestError
|
|
93
|
+
- root.UnauthorizedError
|
|
94
|
+
- root.ForbiddenError
|
|
95
|
+
- root.NotFoundError
|
|
96
|
+
- root.ConflictError
|
|
97
|
+
- root.TooManyRequestsError
|
|
98
|
+
- root.InternalServerError
|
|
99
|
+
examples:
|
|
100
|
+
- path-parameters:
|
|
101
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
102
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
103
|
+
request:
|
|
104
|
+
inventoryType: infinite
|
|
105
|
+
response:
|
|
106
|
+
body:
|
|
107
|
+
id: 5bfedb42bab0ad90fa7dad39
|
|
108
|
+
quantity: 100
|
|
109
|
+
inventoryType: infinite
|
|
110
|
+
source:
|
|
111
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
112
|
+
display-name: Inventory
|
|
113
|
+
types:
|
|
114
|
+
InventoryUpdateRequestInventoryType:
|
|
115
|
+
enum:
|
|
116
|
+
- infinite
|
|
117
|
+
- finite
|
|
118
|
+
docs: infinite or finite
|
|
119
|
+
source:
|
|
120
|
+
openapi: ../../../referenced-specs/v2.yml
|