webflow-api 2.1.1 → 2.2.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/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +1 -1
- package/api/resources/assets/client/Client.js +9 -9
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +1 -1
- package/api/resources/collections/client/Client.js +5 -5
- package/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +51 -22
- package/api/resources/collections/resources/items/client/Client.js +119 -33
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.js +1 -0
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.js +5 -5
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -2
- package/api/resources/orders/types/index.d.ts +0 -1
- package/api/resources/orders/types/index.js +0 -1
- package/api/resources/pages/client/Client.js +5 -5
- package/api/resources/pages/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/pages/resources/scripts/client/Client.js +6 -6
- package/api/resources/products/client/Client.d.ts +2 -2
- package/api/resources/products/client/Client.js +8 -8
- package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +2 -2
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +6 -6
- package/api/resources/sites/client/Client.d.ts +2 -2
- package/api/resources/sites/client/Client.js +6 -6
- package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
- package/api/resources/sites/resources/scripts/client/Client.js +8 -8
- package/api/resources/token/client/Client.d.ts +1 -1
- package/api/resources/token/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/webhooks/client/Client.d.ts +3 -3
- package/api/resources/webhooks/client/Client.js +7 -7
- package/api/types/Application.d.ts +1 -10
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/CustomCodeBlock.d.ts +1 -1
- package/{dist/api/types/Assets.d.ts → api/types/Domains.d.ts} +2 -2
- package/api/types/DuplicateUserEmail.d.ts +2 -1
- package/{dist/api/types/Sites.d.ts → api/types/Scripts.d.ts} +1 -3
- package/api/types/UserLimitReached.d.ts +2 -1
- package/api/types/UsersNotEnabled.d.ts +2 -1
- package/api/types/index.d.ts +56 -74
- package/api/types/index.js +56 -74
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.js +9 -9
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +1 -1
- package/dist/api/resources/collections/client/Client.js +5 -5
- package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +51 -22
- package/dist/api/resources/collections/resources/items/client/Client.js +119 -33
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.js +1 -0
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.js +5 -5
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -2
- package/dist/api/resources/orders/types/index.d.ts +0 -1
- package/dist/api/resources/orders/types/index.js +0 -1
- package/dist/api/resources/pages/client/Client.js +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +6 -6
- package/dist/api/resources/products/client/Client.d.ts +2 -2
- package/dist/api/resources/products/client/Client.js +8 -8
- package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +2 -2
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +6 -6
- package/dist/api/resources/sites/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.js +6 -6
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +8 -8
- package/dist/api/resources/token/client/Client.d.ts +1 -1
- package/dist/api/resources/token/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/webhooks/client/Client.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.js +7 -7
- package/dist/api/types/Application.d.ts +1 -10
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/CustomCodeBlock.d.ts +1 -1
- package/{api/types/Assets.d.ts → dist/api/types/Domains.d.ts} +2 -2
- package/dist/api/types/DuplicateUserEmail.d.ts +2 -1
- package/{api/types/Sites.d.ts → dist/api/types/Scripts.d.ts} +1 -3
- package/dist/api/types/UserLimitReached.d.ts +2 -1
- package/dist/api/types/UsersNotEnabled.d.ts +2 -1
- package/dist/api/types/index.d.ts +56 -74
- package/dist/api/types/index.js +56 -74
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/dist/serialization/{types/UserWebhookPayload.js → resources/collections/resources/items/client/requests/BulkCollectionItem.js} +13 -5
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/dist/serialization/{types/PublishedSite.js → resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +5 -4
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -2
- package/dist/serialization/resources/index.js +3 -3
- package/dist/serialization/resources/orders/types/index.d.ts +0 -1
- package/dist/serialization/resources/orders/types/index.js +0 -1
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.js +0 -14
- package/dist/serialization/types/AccessGroup.d.ts +1 -1
- package/dist/serialization/types/AccessGroup.js +1 -1
- package/dist/serialization/types/Application.d.ts +2 -7
- package/dist/serialization/types/Application.js +1 -6
- package/dist/serialization/types/Authorization.d.ts +1 -1
- package/dist/serialization/types/Authorization.js +1 -1
- package/dist/serialization/types/CustomCodeBlock.d.ts +1 -1
- package/dist/serialization/types/CustomCodeBlock.js +1 -3
- package/dist/serialization/types/{Assets.d.ts → Domains.d.ts} +3 -3
- package/{serialization/types/Assets.js → dist/serialization/types/Domains.js} +4 -4
- package/dist/serialization/types/DuplicateUserEmail.d.ts +1 -1
- package/dist/serialization/types/DuplicateUserEmail.js +1 -1
- package/{serialization/types/Fields.d.ts → dist/serialization/types/Scripts.d.ts} +3 -3
- package/dist/serialization/types/{Fields.js → Scripts.js} +2 -2
- package/dist/serialization/types/UserLimitReached.d.ts +1 -1
- package/dist/serialization/types/UserLimitReached.js +1 -1
- package/dist/serialization/types/UsersNotEnabled.d.ts +1 -1
- package/dist/serialization/types/UsersNotEnabled.js +1 -1
- package/dist/serialization/types/index.d.ts +56 -74
- package/dist/serialization/types/index.js +56 -74
- package/dist/wrapper/WebflowClient.js +2 -2
- package/package.json +1 -1
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/serialization/{types/UserWebhookPayload.js → resources/collections/resources/items/client/requests/BulkCollectionItem.js} +13 -5
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/{dist/serialization/types/PageSeoGraphDataOpenGraph.js → serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +5 -5
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/serialization/resources/index.d.ts +2 -2
- package/serialization/resources/index.js +3 -3
- package/serialization/resources/orders/types/index.d.ts +0 -1
- package/serialization/resources/orders/types/index.js +0 -1
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/index.js +0 -14
- package/serialization/types/AccessGroup.d.ts +1 -1
- package/serialization/types/AccessGroup.js +1 -1
- package/serialization/types/Application.d.ts +2 -7
- package/serialization/types/Application.js +1 -6
- package/serialization/types/Authorization.d.ts +1 -1
- package/serialization/types/Authorization.js +1 -1
- package/serialization/types/CustomCodeBlock.d.ts +1 -1
- package/serialization/types/CustomCodeBlock.js +1 -3
- package/serialization/types/{Assets.d.ts → Domains.d.ts} +3 -3
- package/{dist/serialization/types/Assets.js → serialization/types/Domains.js} +4 -4
- package/serialization/types/DuplicateUserEmail.d.ts +1 -1
- package/serialization/types/DuplicateUserEmail.js +1 -1
- package/{dist/serialization/types/Fields.d.ts → serialization/types/Scripts.d.ts} +3 -3
- package/serialization/types/{Fields.js → Scripts.js} +2 -2
- package/serialization/types/UserLimitReached.d.ts +1 -1
- package/serialization/types/UserLimitReached.js +1 -1
- package/serialization/types/UsersNotEnabled.d.ts +1 -1
- package/serialization/types/UsersNotEnabled.js +1 -1
- package/serialization/types/index.d.ts +56 -74
- package/serialization/types/index.js +56 -74
- package/wrapper/WebflowClient.js +2 -2
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +0 -12
- package/api/resources/orders/types/OrdersListRequestStatus.js +0 -14
- package/api/types/CollectionItemRemoved.d.ts +0 -9
- package/api/types/Fields.d.ts +0 -8
- package/api/types/FormSubmissionTrigger.d.ts +0 -10
- package/api/types/FormSubmissionTriggerPayload.d.ts +0 -18
- package/api/types/InvalidScopes.d.ts +0 -10
- package/api/types/PageCreatedWebhook.d.ts +0 -12
- package/api/types/PageDeletedWebhook.d.ts +0 -12
- package/api/types/PageMetadataUpdatedWebhook.d.ts +0 -12
- package/api/types/PageMetadataUpdatedWebhook.js +0 -5
- package/api/types/PageSeoGraphData.d.ts +0 -11
- package/api/types/PageSeoGraphData.js +0 -5
- package/api/types/PageSeoGraphDataOpenGraph.d.ts +0 -7
- package/api/types/PageSeoGraphDataOpenGraph.js +0 -5
- package/api/types/PageSeoGraphDataSeo.d.ts +0 -7
- package/api/types/PageSeoGraphDataSeo.js +0 -5
- package/api/types/PublishedItems.d.ts +0 -12
- package/api/types/PublishedItems.js +0 -5
- package/api/types/PublishedSite.d.ts +0 -7
- package/api/types/PublishedSite.js +0 -5
- package/api/types/RemovedItems.d.ts +0 -12
- package/api/types/RemovedItems.js +0 -5
- package/api/types/SitePublish.d.ts +0 -8
- package/api/types/SitePublish.js +0 -5
- package/api/types/SitePublishPayload.d.ts +0 -16
- package/api/types/SitePublishPayload.js +0 -5
- package/api/types/Sites.js +0 -5
- package/api/types/UserWebhookPayload.d.ts +0 -9
- package/api/types/UserWebhookPayload.js +0 -5
- package/api/types/UserWebhookPayloadTriggerType.d.ts +0 -12
- package/api/types/UserWebhookPayloadTriggerType.js +0 -11
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +0 -12
- package/dist/api/resources/orders/types/OrdersListRequestStatus.js +0 -14
- package/dist/api/types/Assets.js +0 -5
- package/dist/api/types/CollectionItemRemoved.d.ts +0 -9
- package/dist/api/types/CollectionItemRemoved.js +0 -5
- package/dist/api/types/Fields.d.ts +0 -8
- package/dist/api/types/Fields.js +0 -5
- package/dist/api/types/FormSubmissionTrigger.d.ts +0 -10
- package/dist/api/types/FormSubmissionTrigger.js +0 -5
- package/dist/api/types/FormSubmissionTriggerPayload.d.ts +0 -18
- package/dist/api/types/FormSubmissionTriggerPayload.js +0 -5
- package/dist/api/types/InvalidScopes.d.ts +0 -10
- package/dist/api/types/InvalidScopes.js +0 -5
- package/dist/api/types/PageCreatedWebhook.d.ts +0 -12
- package/dist/api/types/PageCreatedWebhook.js +0 -5
- package/dist/api/types/PageDeletedWebhook.d.ts +0 -12
- package/dist/api/types/PageDeletedWebhook.js +0 -5
- package/dist/api/types/PageMetadataUpdatedWebhook.d.ts +0 -12
- package/dist/api/types/PageMetadataUpdatedWebhook.js +0 -5
- package/dist/api/types/PageSeoGraphData.d.ts +0 -11
- package/dist/api/types/PageSeoGraphData.js +0 -5
- package/dist/api/types/PageSeoGraphDataOpenGraph.d.ts +0 -7
- package/dist/api/types/PageSeoGraphDataOpenGraph.js +0 -5
- package/dist/api/types/PageSeoGraphDataSeo.d.ts +0 -7
- package/dist/api/types/PageSeoGraphDataSeo.js +0 -5
- package/dist/api/types/PublishedItems.d.ts +0 -12
- package/dist/api/types/PublishedItems.js +0 -5
- package/dist/api/types/PublishedSite.d.ts +0 -7
- package/dist/api/types/PublishedSite.js +0 -5
- package/dist/api/types/RemovedItems.d.ts +0 -12
- package/dist/api/types/RemovedItems.js +0 -5
- package/dist/api/types/SitePublish.d.ts +0 -8
- package/dist/api/types/SitePublish.js +0 -5
- package/dist/api/types/SitePublishPayload.d.ts +0 -16
- package/dist/api/types/SitePublishPayload.js +0 -5
- package/dist/api/types/Sites.js +0 -5
- package/dist/api/types/UserWebhookPayload.d.ts +0 -9
- package/dist/api/types/UserWebhookPayload.js +0 -5
- package/dist/api/types/UserWebhookPayloadTriggerType.d.ts +0 -12
- package/dist/api/types/UserWebhookPayloadTriggerType.js +0 -11
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +0 -10
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +0 -31
- package/dist/serialization/resources/webhooks/client/list.d.ts +0 -10
- package/dist/serialization/resources/webhooks/client/list.js +0 -40
- package/dist/serialization/types/CollectionItemRemoved.d.ts +0 -13
- package/dist/serialization/types/CollectionItemRemoved.js +0 -34
- package/dist/serialization/types/FormSubmissionTrigger.d.ts +0 -13
- package/dist/serialization/types/FormSubmissionTrigger.js +0 -43
- package/dist/serialization/types/FormSubmissionTriggerPayload.d.ts +0 -16
- package/dist/serialization/types/FormSubmissionTriggerPayload.js +0 -37
- package/dist/serialization/types/InvalidScopes.d.ts +0 -16
- package/dist/serialization/types/InvalidScopes.js +0 -37
- package/dist/serialization/types/PageCreatedWebhook.d.ts +0 -15
- package/dist/serialization/types/PageCreatedWebhook.js +0 -36
- package/dist/serialization/types/PageDeletedWebhook.d.ts +0 -15
- package/dist/serialization/types/PageDeletedWebhook.js +0 -36
- package/dist/serialization/types/PageMetadataUpdatedWebhook.d.ts +0 -15
- package/dist/serialization/types/PageMetadataUpdatedWebhook.js +0 -36
- package/dist/serialization/types/PageSeoGraphData.d.ts +0 -13
- package/dist/serialization/types/PageSeoGraphData.js +0 -43
- package/dist/serialization/types/PageSeoGraphDataOpenGraph.d.ts +0 -13
- package/dist/serialization/types/PageSeoGraphDataSeo.d.ts +0 -13
- package/dist/serialization/types/PageSeoGraphDataSeo.js +0 -34
- package/dist/serialization/types/PublishedItems.d.ts +0 -13
- package/dist/serialization/types/PublishedItems.js +0 -34
- package/dist/serialization/types/PublishedSite.d.ts +0 -12
- package/dist/serialization/types/RemovedItems.d.ts +0 -13
- package/dist/serialization/types/RemovedItems.js +0 -34
- package/dist/serialization/types/SitePublish.d.ts +0 -12
- package/dist/serialization/types/SitePublish.js +0 -42
- package/dist/serialization/types/SitePublishPayload.d.ts +0 -15
- package/dist/serialization/types/SitePublishPayload.js +0 -36
- package/dist/serialization/types/Sites.d.ts +0 -12
- package/dist/serialization/types/Sites.js +0 -42
- package/dist/serialization/types/UserWebhookPayload.d.ts +0 -13
- package/dist/serialization/types/UserWebhookPayloadTriggerType.d.ts +0 -10
- package/dist/serialization/types/UserWebhookPayloadTriggerType.js +0 -31
- package/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +0 -10
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +0 -31
- package/serialization/resources/webhooks/client/list.d.ts +0 -10
- package/serialization/resources/webhooks/client/list.js +0 -40
- package/serialization/types/CollectionItemRemoved.d.ts +0 -13
- package/serialization/types/CollectionItemRemoved.js +0 -34
- package/serialization/types/FormSubmissionTrigger.d.ts +0 -13
- package/serialization/types/FormSubmissionTrigger.js +0 -43
- package/serialization/types/FormSubmissionTriggerPayload.d.ts +0 -16
- package/serialization/types/FormSubmissionTriggerPayload.js +0 -37
- package/serialization/types/InvalidScopes.d.ts +0 -16
- package/serialization/types/InvalidScopes.js +0 -37
- package/serialization/types/PageCreatedWebhook.d.ts +0 -15
- package/serialization/types/PageCreatedWebhook.js +0 -36
- package/serialization/types/PageDeletedWebhook.d.ts +0 -15
- package/serialization/types/PageDeletedWebhook.js +0 -36
- package/serialization/types/PageMetadataUpdatedWebhook.d.ts +0 -15
- package/serialization/types/PageMetadataUpdatedWebhook.js +0 -36
- package/serialization/types/PageSeoGraphData.d.ts +0 -13
- package/serialization/types/PageSeoGraphData.js +0 -43
- package/serialization/types/PageSeoGraphDataOpenGraph.d.ts +0 -13
- package/serialization/types/PageSeoGraphDataOpenGraph.js +0 -34
- package/serialization/types/PageSeoGraphDataSeo.d.ts +0 -13
- package/serialization/types/PageSeoGraphDataSeo.js +0 -34
- package/serialization/types/PublishedItems.d.ts +0 -13
- package/serialization/types/PublishedItems.js +0 -34
- package/serialization/types/PublishedSite.d.ts +0 -12
- package/serialization/types/PublishedSite.js +0 -33
- package/serialization/types/RemovedItems.d.ts +0 -13
- package/serialization/types/RemovedItems.js +0 -34
- package/serialization/types/SitePublish.d.ts +0 -12
- package/serialization/types/SitePublish.js +0 -42
- package/serialization/types/SitePublishPayload.d.ts +0 -15
- package/serialization/types/SitePublishPayload.js +0 -36
- package/serialization/types/Sites.d.ts +0 -12
- package/serialization/types/Sites.js +0 -42
- package/serialization/types/UserWebhookPayload.d.ts +0 -13
- package/serialization/types/UserWebhookPayloadTriggerType.d.ts +0 -10
- package/serialization/types/UserWebhookPayloadTriggerType.js +0 -31
- /package/api/{types/Assets.js → resources/collections/resources/items/client/requests/BulkCollectionItem.js} +0 -0
- /package/api/{types/CollectionItemRemoved.js → resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +0 -0
- /package/api/types/{Fields.js → Domains.js} +0 -0
- /package/api/types/{FormSubmissionTrigger.js → Scripts.js} +0 -0
- /package/{api/types/FormSubmissionTriggerPayload.js → dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js} +0 -0
- /package/{api/types/InvalidScopes.js → dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +0 -0
- /package/{api/types/PageCreatedWebhook.js → dist/api/types/Domains.js} +0 -0
- /package/{api/types/PageDeletedWebhook.js → dist/api/types/Scripts.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { Sites } from "./api/resources/sites/client/Client";
|
|
|
8
8
|
import { Collections } from "./api/resources/collections/client/Client";
|
|
9
9
|
import { Pages } from "./api/resources/pages/client/Client";
|
|
10
10
|
import { Scripts } from "./api/resources/scripts/client/Client";
|
|
11
|
-
import { Webhooks } from "./api/resources/webhooks/client/Client";
|
|
12
11
|
import { Assets } from "./api/resources/assets/client/Client";
|
|
12
|
+
import { Webhooks } from "./api/resources/webhooks/client/Client";
|
|
13
13
|
import { Forms } from "./api/resources/forms/client/Client";
|
|
14
14
|
import { Users } from "./api/resources/users/client/Client";
|
|
15
15
|
import { AccessGroups } from "./api/resources/accessGroups/client/Client";
|
|
@@ -40,10 +40,10 @@ export declare class WebflowClient {
|
|
|
40
40
|
get pages(): Pages;
|
|
41
41
|
protected _scripts: Scripts | undefined;
|
|
42
42
|
get scripts(): Scripts;
|
|
43
|
-
protected _webhooks: Webhooks | undefined;
|
|
44
|
-
get webhooks(): Webhooks;
|
|
45
43
|
protected _assets: Assets | undefined;
|
|
46
44
|
get assets(): Assets;
|
|
45
|
+
protected _webhooks: Webhooks | undefined;
|
|
46
|
+
get webhooks(): Webhooks;
|
|
47
47
|
protected _forms: Forms | undefined;
|
|
48
48
|
get forms(): Forms;
|
|
49
49
|
protected _users: Users | undefined;
|
package/Client.js
CHANGED
|
@@ -9,8 +9,8 @@ const Client_2 = require("./api/resources/sites/client/Client");
|
|
|
9
9
|
const Client_3 = require("./api/resources/collections/client/Client");
|
|
10
10
|
const Client_4 = require("./api/resources/pages/client/Client");
|
|
11
11
|
const Client_5 = require("./api/resources/scripts/client/Client");
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
12
|
+
const Client_6 = require("./api/resources/assets/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/webhooks/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/forms/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/users/client/Client");
|
|
16
16
|
const Client_10 = require("./api/resources/accessGroups/client/Client");
|
|
@@ -42,13 +42,13 @@ class WebflowClient {
|
|
|
42
42
|
var _a;
|
|
43
43
|
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_5.Scripts(this._options)));
|
|
44
44
|
}
|
|
45
|
-
get
|
|
45
|
+
get assets() {
|
|
46
46
|
var _a;
|
|
47
|
-
return ((_a = this.
|
|
47
|
+
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_6.Assets(this._options)));
|
|
48
48
|
}
|
|
49
|
-
get
|
|
49
|
+
get webhooks() {
|
|
50
50
|
var _a;
|
|
51
|
-
return ((_a = this.
|
|
51
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_7.Webhooks(this._options)));
|
|
52
52
|
}
|
|
53
53
|
get forms() {
|
|
54
54
|
var _a;
|
|
@@ -82,7 +82,7 @@ class AccessGroups {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "v2.
|
|
85
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -79,7 +79,7 @@ export declare class Assets {
|
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* await webflow.assets.update("asset_id", {
|
|
82
|
-
* displayName: "
|
|
82
|
+
* displayName: "bulldoze.png"
|
|
83
83
|
* })
|
|
84
84
|
*/
|
|
85
85
|
update(assetId: string, request: Webflow.AssetsUpdateRequest, requestOptions?: Assets.RequestOptions): Promise<Webflow.Asset>;
|
|
@@ -70,7 +70,7 @@ class Assets {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "v2.
|
|
73
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -146,7 +146,7 @@ class Assets {
|
|
|
146
146
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
147
|
"X-Fern-Language": "JavaScript",
|
|
148
148
|
"X-Fern-SDK-Name": "webflow-api",
|
|
149
|
-
"X-Fern-SDK-Version": "v2.
|
|
149
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
150
150
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
151
151
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
152
152
|
},
|
|
@@ -219,7 +219,7 @@ class Assets {
|
|
|
219
219
|
Authorization: yield this._getAuthorizationHeader(),
|
|
220
220
|
"X-Fern-Language": "JavaScript",
|
|
221
221
|
"X-Fern-SDK-Name": "webflow-api",
|
|
222
|
-
"X-Fern-SDK-Version": "v2.
|
|
222
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
223
223
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
224
224
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
225
225
|
},
|
|
@@ -291,7 +291,7 @@ class Assets {
|
|
|
291
291
|
Authorization: yield this._getAuthorizationHeader(),
|
|
292
292
|
"X-Fern-Language": "JavaScript",
|
|
293
293
|
"X-Fern-SDK-Name": "webflow-api",
|
|
294
|
-
"X-Fern-SDK-Version": "v2.
|
|
294
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
295
295
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
296
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
297
|
},
|
|
@@ -346,7 +346,7 @@ class Assets {
|
|
|
346
346
|
*
|
|
347
347
|
* @example
|
|
348
348
|
* await webflow.assets.update("asset_id", {
|
|
349
|
-
* displayName: "
|
|
349
|
+
* displayName: "bulldoze.png"
|
|
350
350
|
* })
|
|
351
351
|
*/
|
|
352
352
|
update(assetId, request, requestOptions) {
|
|
@@ -359,7 +359,7 @@ class Assets {
|
|
|
359
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
360
360
|
"X-Fern-Language": "JavaScript",
|
|
361
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
362
|
-
"X-Fern-SDK-Version": "v2.
|
|
362
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
363
363
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
364
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
365
|
},
|
|
@@ -432,7 +432,7 @@ class Assets {
|
|
|
432
432
|
Authorization: yield this._getAuthorizationHeader(),
|
|
433
433
|
"X-Fern-Language": "JavaScript",
|
|
434
434
|
"X-Fern-SDK-Name": "webflow-api",
|
|
435
|
-
"X-Fern-SDK-Version": "v2.
|
|
435
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
436
436
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
437
437
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
438
438
|
},
|
|
@@ -507,7 +507,7 @@ class Assets {
|
|
|
507
507
|
Authorization: yield this._getAuthorizationHeader(),
|
|
508
508
|
"X-Fern-Language": "JavaScript",
|
|
509
509
|
"X-Fern-SDK-Name": "webflow-api",
|
|
510
|
-
"X-Fern-SDK-Version": "v2.
|
|
510
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
511
511
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
512
512
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
513
513
|
},
|
|
@@ -580,7 +580,7 @@ class Assets {
|
|
|
580
580
|
Authorization: yield this._getAuthorizationHeader(),
|
|
581
581
|
"X-Fern-Language": "JavaScript",
|
|
582
582
|
"X-Fern-SDK-Name": "webflow-api",
|
|
583
|
-
"X-Fern-SDK-Version": "v2.
|
|
583
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
584
584
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
585
585
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
586
586
|
},
|
|
@@ -72,7 +72,7 @@ class Collections {
|
|
|
72
72
|
Authorization: yield this._getAuthorizationHeader(),
|
|
73
73
|
"X-Fern-Language": "JavaScript",
|
|
74
74
|
"X-Fern-SDK-Name": "webflow-api",
|
|
75
|
-
"X-Fern-SDK-Version": "v2.
|
|
75
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -148,7 +148,7 @@ class Collections {
|
|
|
148
148
|
Authorization: yield this._getAuthorizationHeader(),
|
|
149
149
|
"X-Fern-Language": "JavaScript",
|
|
150
150
|
"X-Fern-SDK-Name": "webflow-api",
|
|
151
|
-
"X-Fern-SDK-Version": "v2.
|
|
151
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
152
152
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
153
153
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
154
154
|
},
|
|
@@ -221,7 +221,7 @@ class Collections {
|
|
|
221
221
|
Authorization: yield this._getAuthorizationHeader(),
|
|
222
222
|
"X-Fern-Language": "JavaScript",
|
|
223
223
|
"X-Fern-SDK-Name": "webflow-api",
|
|
224
|
-
"X-Fern-SDK-Version": "v2.
|
|
224
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
225
225
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
226
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
227
227
|
},
|
|
@@ -293,7 +293,7 @@ class Collections {
|
|
|
293
293
|
Authorization: yield this._getAuthorizationHeader(),
|
|
294
294
|
"X-Fern-Language": "JavaScript",
|
|
295
295
|
"X-Fern-SDK-Name": "webflow-api",
|
|
296
|
-
"X-Fern-SDK-Version": "v2.
|
|
296
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
297
297
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
298
298
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
299
299
|
},
|
|
@@ -359,7 +359,7 @@ class Collections {
|
|
|
359
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
360
360
|
"X-Fern-Language": "JavaScript",
|
|
361
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
362
|
-
"X-Fern-SDK-Version": "v2.
|
|
362
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
363
363
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
364
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
365
|
},
|
|
@@ -75,7 +75,7 @@ class Fields {
|
|
|
75
75
|
Authorization: yield this._getAuthorizationHeader(),
|
|
76
76
|
"X-Fern-Language": "JavaScript",
|
|
77
77
|
"X-Fern-SDK-Name": "webflow-api",
|
|
78
|
-
"X-Fern-SDK-Version": "v2.
|
|
78
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -152,7 +152,7 @@ class Fields {
|
|
|
152
152
|
Authorization: yield this._getAuthorizationHeader(),
|
|
153
153
|
"X-Fern-Language": "JavaScript",
|
|
154
154
|
"X-Fern-SDK-Name": "webflow-api",
|
|
155
|
-
"X-Fern-SDK-Version": "v2.
|
|
155
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
156
156
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
157
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
158
|
},
|
|
@@ -30,7 +30,7 @@ export declare class Items {
|
|
|
30
30
|
*/
|
|
31
31
|
listItems(collectionId: string, request?: Webflow.collections.ItemsListItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
|
|
32
32
|
/**
|
|
33
|
-
* Create Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
33
|
+
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
34
34
|
* @throws {@link Webflow.BadRequestError}
|
|
35
35
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
36
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -39,20 +39,22 @@ export declare class Items {
|
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* await webflow.collections.items.createItem("collection_id", {
|
|
42
|
-
* id: "
|
|
42
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
43
43
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
44
|
-
* lastPublished: "
|
|
45
|
-
* lastUpdated: "
|
|
46
|
-
* createdOn: "
|
|
44
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
45
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
46
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
47
|
+
* isArchived: false,
|
|
48
|
+
* isDraft: false,
|
|
47
49
|
* fieldData: {
|
|
48
|
-
* name: "
|
|
49
|
-
* slug: "
|
|
50
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
51
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
50
52
|
* }
|
|
51
53
|
* })
|
|
52
54
|
*/
|
|
53
55
|
createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
54
56
|
/**
|
|
55
|
-
* Create live Item in a Collection. This Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
57
|
+
* Create live Item in a Collection. This Item will be published to the live site. </br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
56
58
|
* @throws {@link Webflow.BadRequestError}
|
|
57
59
|
* @throws {@link Webflow.UnauthorizedError}
|
|
58
60
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -61,8 +63,31 @@ export declare class Items {
|
|
|
61
63
|
*
|
|
62
64
|
* @example
|
|
63
65
|
* await webflow.collections.items.createItemLive("collection_id", {
|
|
64
|
-
* id: "
|
|
66
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
65
67
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
68
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
69
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
70
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
71
|
+
* isArchived: false,
|
|
72
|
+
* isDraft: false,
|
|
73
|
+
* fieldData: {
|
|
74
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
75
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
76
|
+
* }
|
|
77
|
+
* })
|
|
78
|
+
*/
|
|
79
|
+
createItemLive(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
82
|
+
* @throws {@link Webflow.BadRequestError}
|
|
83
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
84
|
+
* @throws {@link Webflow.NotFoundError}
|
|
85
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
86
|
+
* @throws {@link Webflow.InternalServerError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await webflow.collections.items.createItemForMultipleLocales("collection_id", {
|
|
90
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
66
91
|
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
67
92
|
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
68
93
|
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
@@ -72,7 +97,7 @@ export declare class Items {
|
|
|
72
97
|
* }
|
|
73
98
|
* })
|
|
74
99
|
*/
|
|
75
|
-
|
|
100
|
+
createItemForMultipleLocales(collectionId: string, request: Webflow.collections.BulkCollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
|
|
76
101
|
/**
|
|
77
102
|
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
78
103
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -107,14 +132,16 @@ export declare class Items {
|
|
|
107
132
|
*
|
|
108
133
|
* @example
|
|
109
134
|
* await webflow.collections.items.updateItem("collection_id", "item_id", {
|
|
110
|
-
* id: "
|
|
135
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
111
136
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
112
|
-
* lastPublished: "
|
|
113
|
-
* lastUpdated: "
|
|
114
|
-
* createdOn: "
|
|
137
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
138
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
139
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
140
|
+
* isArchived: false,
|
|
141
|
+
* isDraft: false,
|
|
115
142
|
* fieldData: {
|
|
116
|
-
* name: "
|
|
117
|
-
* slug: "
|
|
143
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
144
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
118
145
|
* }
|
|
119
146
|
* })
|
|
120
147
|
*/
|
|
@@ -141,14 +168,16 @@ export declare class Items {
|
|
|
141
168
|
*
|
|
142
169
|
* @example
|
|
143
170
|
* await webflow.collections.items.updateItemLive("collection_id", "item_id", {
|
|
144
|
-
* id: "
|
|
171
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
145
172
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
146
|
-
* lastPublished: "
|
|
147
|
-
* lastUpdated: "
|
|
148
|
-
* createdOn: "
|
|
173
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
174
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
175
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
176
|
+
* isArchived: false,
|
|
177
|
+
* isDraft: false,
|
|
149
178
|
* fieldData: {
|
|
150
|
-
* name: "
|
|
151
|
-
* slug: "
|
|
179
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
180
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
152
181
|
* }
|
|
153
182
|
* })
|
|
154
183
|
*/
|
|
@@ -86,7 +86,7 @@ class Items {
|
|
|
86
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "webflow-api",
|
|
89
|
-
"X-Fern-SDK-Version": "v2.
|
|
89
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
},
|
|
@@ -139,7 +139,7 @@ class Items {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
|
-
* Create Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
142
|
+
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
143
143
|
* @throws {@link Webflow.BadRequestError}
|
|
144
144
|
* @throws {@link Webflow.UnauthorizedError}
|
|
145
145
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -148,14 +148,16 @@ class Items {
|
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
150
|
* await webflow.collections.items.createItem("collection_id", {
|
|
151
|
-
* id: "
|
|
151
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
152
152
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
153
|
-
* lastPublished: "
|
|
154
|
-
* lastUpdated: "
|
|
155
|
-
* createdOn: "
|
|
153
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
154
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
155
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
156
|
+
* isArchived: false,
|
|
157
|
+
* isDraft: false,
|
|
156
158
|
* fieldData: {
|
|
157
|
-
* name: "
|
|
158
|
-
* slug: "
|
|
159
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
160
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
159
161
|
* }
|
|
160
162
|
* })
|
|
161
163
|
*/
|
|
@@ -169,7 +171,7 @@ class Items {
|
|
|
169
171
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
172
|
"X-Fern-Language": "JavaScript",
|
|
171
173
|
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
-
"X-Fern-SDK-Version": "v2.
|
|
174
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
173
175
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
176
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
177
|
},
|
|
@@ -216,7 +218,7 @@ class Items {
|
|
|
216
218
|
});
|
|
217
219
|
}
|
|
218
220
|
/**
|
|
219
|
-
* Create live Item in a Collection. This Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
221
|
+
* Create live Item in a Collection. This Item will be published to the live site. </br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
220
222
|
* @throws {@link Webflow.BadRequestError}
|
|
221
223
|
* @throws {@link Webflow.UnauthorizedError}
|
|
222
224
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -225,8 +227,86 @@ class Items {
|
|
|
225
227
|
*
|
|
226
228
|
* @example
|
|
227
229
|
* await webflow.collections.items.createItemLive("collection_id", {
|
|
228
|
-
* id: "
|
|
230
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
229
231
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
232
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
233
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
234
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
235
|
+
* isArchived: false,
|
|
236
|
+
* isDraft: false,
|
|
237
|
+
* fieldData: {
|
|
238
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
239
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
240
|
+
* }
|
|
241
|
+
* })
|
|
242
|
+
*/
|
|
243
|
+
createItemLive(collectionId, request, requestOptions) {
|
|
244
|
+
var _a;
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const _response = yield core.fetcher({
|
|
247
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/live`),
|
|
248
|
+
method: "POST",
|
|
249
|
+
headers: {
|
|
250
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
251
|
+
"X-Fern-Language": "JavaScript",
|
|
252
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
254
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
|
+
},
|
|
257
|
+
contentType: "application/json",
|
|
258
|
+
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
259
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
260
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
261
|
+
});
|
|
262
|
+
if (_response.ok) {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (_response.error.reason === "status-code") {
|
|
266
|
+
switch (_response.error.statusCode) {
|
|
267
|
+
case 400:
|
|
268
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
269
|
+
case 401:
|
|
270
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
271
|
+
case 404:
|
|
272
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
273
|
+
case 429:
|
|
274
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
275
|
+
case 500:
|
|
276
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
277
|
+
default:
|
|
278
|
+
throw new errors.WebflowError({
|
|
279
|
+
statusCode: _response.error.statusCode,
|
|
280
|
+
body: _response.error.body,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
switch (_response.error.reason) {
|
|
285
|
+
case "non-json":
|
|
286
|
+
throw new errors.WebflowError({
|
|
287
|
+
statusCode: _response.error.statusCode,
|
|
288
|
+
body: _response.error.rawBody,
|
|
289
|
+
});
|
|
290
|
+
case "timeout":
|
|
291
|
+
throw new errors.WebflowTimeoutError();
|
|
292
|
+
case "unknown":
|
|
293
|
+
throw new errors.WebflowError({
|
|
294
|
+
message: _response.error.errorMessage,
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
301
|
+
* @throws {@link Webflow.BadRequestError}
|
|
302
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
303
|
+
* @throws {@link Webflow.NotFoundError}
|
|
304
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
305
|
+
* @throws {@link Webflow.InternalServerError}
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* await webflow.collections.items.createItemForMultipleLocales("collection_id", {
|
|
309
|
+
* id: "580e64008c9a982ac9b8b754",
|
|
230
310
|
* lastPublished: "2023-03-17T18:47:35.560Z",
|
|
231
311
|
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
232
312
|
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
@@ -236,22 +316,24 @@ class Items {
|
|
|
236
316
|
* }
|
|
237
317
|
* })
|
|
238
318
|
*/
|
|
239
|
-
|
|
319
|
+
createItemForMultipleLocales(collectionId, request, requestOptions) {
|
|
240
320
|
var _a;
|
|
241
321
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
322
|
const _response = yield core.fetcher({
|
|
243
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/
|
|
323
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/bulk`),
|
|
244
324
|
method: "POST",
|
|
245
325
|
headers: {
|
|
246
326
|
Authorization: yield this._getAuthorizationHeader(),
|
|
247
327
|
"X-Fern-Language": "JavaScript",
|
|
248
328
|
"X-Fern-SDK-Name": "webflow-api",
|
|
249
|
-
"X-Fern-SDK-Version": "v2.
|
|
329
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
250
330
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
251
331
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
252
332
|
},
|
|
253
333
|
contentType: "application/json",
|
|
254
|
-
body: yield serializers.
|
|
334
|
+
body: yield serializers.collections.BulkCollectionItem.jsonOrThrow(request, {
|
|
335
|
+
unrecognizedObjectKeys: "strip",
|
|
336
|
+
}),
|
|
255
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
256
338
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
257
339
|
});
|
|
@@ -318,7 +400,7 @@ class Items {
|
|
|
318
400
|
Authorization: yield this._getAuthorizationHeader(),
|
|
319
401
|
"X-Fern-Language": "JavaScript",
|
|
320
402
|
"X-Fern-SDK-Name": "webflow-api",
|
|
321
|
-
"X-Fern-SDK-Version": "v2.
|
|
403
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
322
404
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
323
405
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
324
406
|
},
|
|
@@ -401,7 +483,7 @@ class Items {
|
|
|
401
483
|
Authorization: yield this._getAuthorizationHeader(),
|
|
402
484
|
"X-Fern-Language": "JavaScript",
|
|
403
485
|
"X-Fern-SDK-Name": "webflow-api",
|
|
404
|
-
"X-Fern-SDK-Version": "v2.
|
|
486
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
405
487
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
406
488
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
407
489
|
},
|
|
@@ -457,14 +539,16 @@ class Items {
|
|
|
457
539
|
*
|
|
458
540
|
* @example
|
|
459
541
|
* await webflow.collections.items.updateItem("collection_id", "item_id", {
|
|
460
|
-
* id: "
|
|
542
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
461
543
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
462
|
-
* lastPublished: "
|
|
463
|
-
* lastUpdated: "
|
|
464
|
-
* createdOn: "
|
|
544
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
545
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
546
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
547
|
+
* isArchived: false,
|
|
548
|
+
* isDraft: false,
|
|
465
549
|
* fieldData: {
|
|
466
|
-
* name: "
|
|
467
|
-
* slug: "
|
|
550
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
551
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
468
552
|
* }
|
|
469
553
|
* })
|
|
470
554
|
*/
|
|
@@ -478,7 +562,7 @@ class Items {
|
|
|
478
562
|
Authorization: yield this._getAuthorizationHeader(),
|
|
479
563
|
"X-Fern-Language": "JavaScript",
|
|
480
564
|
"X-Fern-SDK-Name": "webflow-api",
|
|
481
|
-
"X-Fern-SDK-Version": "v2.
|
|
565
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
482
566
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
483
567
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
484
568
|
},
|
|
@@ -551,7 +635,7 @@ class Items {
|
|
|
551
635
|
Authorization: yield this._getAuthorizationHeader(),
|
|
552
636
|
"X-Fern-Language": "JavaScript",
|
|
553
637
|
"X-Fern-SDK-Name": "webflow-api",
|
|
554
|
-
"X-Fern-SDK-Version": "v2.
|
|
638
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
555
639
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
556
640
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
557
641
|
},
|
|
@@ -606,14 +690,16 @@ class Items {
|
|
|
606
690
|
*
|
|
607
691
|
* @example
|
|
608
692
|
* await webflow.collections.items.updateItemLive("collection_id", "item_id", {
|
|
609
|
-
* id: "
|
|
693
|
+
* id: "42b720ef280c7a7a3be8cabe",
|
|
610
694
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
611
|
-
* lastPublished: "
|
|
612
|
-
* lastUpdated: "
|
|
613
|
-
* createdOn: "
|
|
695
|
+
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
696
|
+
* lastUpdated: "2022-11-17T17:19:43.282Z",
|
|
697
|
+
* createdOn: "2022-11-17T17:11:57.148Z",
|
|
698
|
+
* isArchived: false,
|
|
699
|
+
* isDraft: false,
|
|
614
700
|
* fieldData: {
|
|
615
|
-
* name: "
|
|
616
|
-
* slug: "
|
|
701
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
702
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
617
703
|
* }
|
|
618
704
|
* })
|
|
619
705
|
*/
|
|
@@ -627,7 +713,7 @@ class Items {
|
|
|
627
713
|
Authorization: yield this._getAuthorizationHeader(),
|
|
628
714
|
"X-Fern-Language": "JavaScript",
|
|
629
715
|
"X-Fern-SDK-Name": "webflow-api",
|
|
630
|
-
"X-Fern-SDK-Version": "v2.
|
|
716
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
631
717
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
632
718
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
633
719
|
},
|
|
@@ -702,7 +788,7 @@ class Items {
|
|
|
702
788
|
Authorization: yield this._getAuthorizationHeader(),
|
|
703
789
|
"X-Fern-Language": "JavaScript",
|
|
704
790
|
"X-Fern-SDK-Name": "webflow-api",
|
|
705
|
-
"X-Fern-SDK-Version": "v2.
|
|
791
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
706
792
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
707
793
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
708
794
|
},
|