webflow-api 3.1.4 → 3.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/.mock/definition/__package__.yml +1003 -183
- package/.mock/definition/collections/fields.yml +6 -6
- package/.mock/definition/collections/items.yml +286 -194
- package/.mock/definition/collections.yml +128 -10
- package/.mock/definition/comments.yml +40 -0
- package/.mock/definition/components.yml +27 -6
- package/.mock/definition/forms.yml +36 -0
- package/.mock/definition/inventory.yml +20 -0
- package/.mock/definition/items.yml +99 -0
- package/.mock/definition/orders.yml +368 -0
- package/.mock/definition/pages.yml +112 -24
- package/.mock/definition/products.yml +31 -21
- package/.mock/definition/scripts.yml +4 -0
- package/.mock/definition/sites/comments.yml +0 -2
- package/.mock/definition/sites.yml +33 -6
- package/.mock/definition/users.yml +212 -28
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +21 -17
- package/Client.js +43 -1
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +19 -8
- package/api/errors/ConflictError.d.ts +2 -1
- package/api/errors/ConflictError.js +19 -8
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +19 -8
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +19 -8
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +19 -8
- package/api/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/TooManyRequestsError.js +19 -8
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +19 -8
- package/api/resources/accessGroups/client/Client.d.ts +7 -2
- package/api/resources/accessGroups/client/Client.js +51 -28
- package/api/resources/accessGroups/client/index.d.ts +1 -0
- package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +21 -9
- package/api/resources/assets/client/Client.js +210 -132
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +20 -10
- package/api/resources/collections/client/Client.js +121 -77
- package/api/resources/collections/client/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/client/Client.d.ts +17 -8
- package/api/resources/collections/resources/fields/client/Client.js +92 -54
- package/api/resources/collections/resources/fields/client/index.d.ts +1 -0
- package/api/resources/collections/resources/index.js +17 -7
- package/api/resources/collections/resources/items/client/Client.d.ts +129 -77
- package/api/resources/collections/resources/items/client/Client.js +582 -321
- package/api/resources/collections/resources/items/client/index.d.ts +1 -0
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +45 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +45 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +24 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +24 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +4 -66
- package/api/resources/collections/resources/items/client/requests/index.d.ts +4 -1
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemIDs.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +10 -0
- package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts → api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemRequestBody.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsUpdateItemsResponse.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/index.d.ts +7 -2
- package/api/resources/collections/resources/items/types/index.js +7 -2
- package/api/resources/components/client/Client.d.ts +24 -9
- package/api/resources/components/client/Client.js +176 -100
- package/api/resources/components/client/index.d.ts +1 -0
- package/api/resources/components/client/requests/ComponentDomWrite.d.ts +5 -0
- package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +5 -0
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -1
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -1
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +7 -1
- package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +7 -2
- package/api/resources/ecommerce/client/Client.js +45 -26
- package/api/resources/forms/client/Client.d.ts +19 -8
- package/api/resources/forms/client/Client.js +198 -132
- package/api/resources/forms/client/index.d.ts +1 -0
- package/api/resources/index.js +17 -7
- package/api/resources/inventory/client/Client.d.ts +9 -3
- package/api/resources/inventory/client/Client.js +72 -43
- package/api/resources/inventory/client/index.d.ts +1 -0
- package/api/resources/inventory/types/EcommInventoryChangedPayload.d.ts +8 -0
- package/api/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +1 -1
- package/api/resources/inventory/types/index.d.ts +1 -0
- package/api/resources/inventory/types/index.js +1 -0
- package/api/resources/orders/client/Client.d.ts +17 -7
- package/api/resources/orders/client/Client.js +190 -121
- package/api/resources/orders/client/index.d.ts +1 -0
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +1 -1
- package/api/resources/orders/types/OrdersRefundRequestReason.d.ts +1 -1
- package/api/resources/pages/client/Client.d.ts +29 -32
- package/api/resources/pages/client/Client.js +168 -125
- package/api/resources/pages/client/index.d.ts +1 -0
- package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +36 -0
- package/api/resources/pages/client/requests/index.d.ts +1 -1
- package/api/resources/pages/resources/index.js +17 -7
- package/api/resources/pages/resources/scripts/client/Client.d.ts +11 -4
- package/api/resources/pages/resources/scripts/client/Client.js +85 -51
- package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
- package/api/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +16 -0
- package/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
- package/api/resources/pages/types/index.d.ts +2 -0
- package/api/resources/pages/types/index.js +2 -0
- package/api/resources/products/client/Client.d.ts +29 -9
- package/api/resources/products/client/Client.js +194 -117
- package/api/resources/products/client/index.d.ts +1 -0
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +5 -0
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +5 -0
- package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/api/resources/scripts/client/Client.d.ts +11 -4
- package/api/resources/scripts/client/Client.js +93 -54
- package/api/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/client/Client.d.ts +40 -24
- package/api/resources/sites/client/Client.js +222 -147
- package/api/resources/sites/client/index.d.ts +1 -0
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +4 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -2
- package/api/resources/sites/resources/activityLogs/client/Client.js +43 -24
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/comments/client/Client.d.ts +11 -4
- package/api/resources/sites/resources/comments/client/Client.js +127 -68
- package/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- package/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.d.ts +1 -1
- package/api/resources/sites/resources/index.js +17 -7
- package/api/resources/sites/resources/plans/client/Client.d.ts +7 -2
- package/api/resources/sites/resources/plans/client/Client.js +43 -24
- package/api/resources/sites/resources/redirects/client/Client.d.ts +13 -5
- package/api/resources/sites/resources/redirects/client/Client.js +118 -71
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +13 -5
- package/api/resources/sites/resources/robotsTxt/client/Client.js +118 -69
- package/api/resources/sites/resources/scripts/client/Client.d.ts +13 -5
- package/api/resources/sites/resources/scripts/client/Client.js +110 -68
- package/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/resources/wellKnown/client/Client.d.ts +9 -3
- package/api/resources/sites/resources/wellKnown/client/Client.js +51 -26
- package/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +9 -3
- package/api/resources/token/client/Client.js +61 -34
- package/api/resources/users/client/Client.d.ts +28 -14
- package/api/resources/users/client/Client.js +162 -101
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/api/resources/users/client/requests/index.d.ts +0 -1
- package/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UsersListRequestSort.d.ts +1 -1
- package/api/resources/users/types/index.d.ts +9 -1
- package/api/resources/users/types/index.js +9 -1
- package/api/resources/webhooks/client/Client.d.ts +15 -7
- package/api/resources/webhooks/client/Client.js +111 -69
- package/api/resources/workspaces/client/Client.d.ts +5 -11
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -4
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +59 -30
- package/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
- package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
- package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.d.ts +1 -1
- package/api/resources/workspaces/resources/index.js +17 -7
- package/api/types/Application.d.ts +10 -1
- package/api/types/Asset.d.ts +2 -2
- package/api/types/AssetVariant.d.ts +6 -6
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/BadRequestErrorBody.d.ts +1 -1
- package/api/types/BulkCollectionItem.d.ts +1 -1
- package/api/types/Collection.d.ts +2 -2
- package/api/types/CollectionItemChanged.d.ts +12 -0
- package/api/types/CollectionItemChangedPayload.d.ts +5 -0
- package/api/types/CollectionItemCreated.d.ts +12 -0
- package/api/types/CollectionItemCreatedPayload.d.ts +5 -0
- package/api/types/CollectionItemRemoved.d.ts +10 -0
- package/api/types/CollectionItemRemovedPayload.d.ts +25 -0
- package/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
- package/api/types/CollectionItemUnpublished.d.ts +10 -0
- package/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
- package/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
- package/api/types/Comment.d.ts +12 -0
- package/api/types/CommentPayload.d.ts +38 -0
- package/api/types/CommentPayloadAuthor.d.ts +11 -0
- package/api/types/CommentPayloadAuthor.js +5 -0
- package/api/types/CommentPayloadMentionedUsersItem.d.ts +11 -0
- package/api/types/CommentPayloadMentionedUsersItem.js +5 -0
- package/api/types/CommentReply.d.ts +2 -2
- package/{dist/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → api/types/ComponentInstance.d.ts} +1 -1
- package/api/types/ComponentInstance.js +5 -0
- package/{dist/api/types/ComponentNode.d.ts → api/types/ComponentNodeDom.d.ts} +4 -4
- package/api/types/ComponentNodeDom.js +5 -0
- package/api/types/ComponentPropertyType.d.ts +1 -1
- package/api/types/Conflict.d.ts +1 -1
- package/api/types/ConflictErrorBody.d.ts +1 -1
- package/api/types/CustomCodeBlockType.d.ts +1 -1
- package/api/types/CustomRoleAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/Dom.d.ts +2 -0
- package/api/types/DuplicateUserEmail.d.ts +1 -1
- package/api/types/ErrorCode.d.ts +1 -1
- package/api/types/Field.d.ts +2 -0
- package/api/types/FieldCreate.d.ts +1 -1
- package/api/types/FieldType.d.ts +1 -1
- package/api/types/FieldValidations.d.ts +10 -0
- package/api/types/FieldValidations.js +5 -0
- package/api/types/FieldValidationsAdditionalProperties.d.ts +5 -0
- package/api/types/FieldValidationsAdditionalProperties.js +5 -0
- package/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +6 -0
- package/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +5 -0
- package/api/types/ForbiddenErrorBody.d.ts +1 -1
- package/api/types/FormField.d.ts +1 -1
- package/api/types/FormFieldValueType.d.ts +1 -1
- package/api/types/FormSubmissionTrigger.d.ts +13 -0
- package/api/types/FormSubmissionTrigger.js +5 -0
- package/api/types/FormSubmissionTriggerPayload.d.ts +25 -0
- package/api/types/FormSubmissionTriggerPayload.js +5 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +12 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItem.js +5 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +14 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +13 -0
- package/{dist/api/types/ImageNode.d.ts → api/types/ImageNodeDom.d.ts} +3 -3
- package/api/types/ImageNodeDom.js +5 -0
- package/api/types/InvalidDomain.d.ts +1 -1
- package/api/types/InvalidScopes.d.ts +1 -1
- package/api/types/InventoryItemInventoryType.d.ts +1 -1
- package/api/types/ItemsListItemsLiveRequestLastPublished.d.ts +9 -0
- package/api/types/ItemsListItemsLiveRequestLastPublished.js +5 -0
- package/api/types/ItemsListItemsRequestLastPublished.d.ts +9 -0
- package/api/types/ItemsListItemsRequestLastPublished.js +5 -0
- package/api/types/LocalizedItem.d.ts +31 -0
- package/api/types/LocalizedItem.js +5 -0
- package/api/types/MultiLocaleChangedPayload.d.ts +22 -0
- package/api/types/MultiLocaleChangedPayload.js +5 -0
- package/api/types/MultiLocaleChangedPayloadFieldData.d.ts +11 -0
- package/api/types/MultiLocaleChangedPayloadFieldData.js +5 -0
- package/api/types/MultiLocaleCreatedPayload.d.ts +16 -0
- package/api/types/MultiLocaleCreatedPayload.js +5 -0
- package/api/types/NewOrder.d.ts +12 -0
- package/api/types/NewOrder.js +5 -0
- package/api/types/NoDomains.d.ts +1 -1
- package/api/types/Node.d.ts +8 -8
- package/api/types/NotEnterprisePlanSite.d.ts +1 -1
- package/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
- package/api/types/OAuthScope.d.ts +1 -1
- package/api/types/Order.d.ts +2 -2
- package/api/types/OrderAddressJapanType.d.ts +1 -1
- package/api/types/OrderAddressType.d.ts +1 -1
- package/api/types/OrderBillingAddress.d.ts +27 -0
- package/api/types/OrderBillingAddress.js +5 -0
- package/api/types/OrderBillingAddressJapanType.d.ts +11 -0
- package/api/types/OrderBillingAddressJapanType.js +10 -0
- package/api/types/OrderBillingAddressType.d.ts +11 -0
- package/api/types/OrderBillingAddressType.js +10 -0
- package/api/types/OrderDisputeLastStatus.d.ts +1 -1
- package/api/types/OrderShippingAddress.d.ts +27 -0
- package/api/types/OrderShippingAddress.js +5 -0
- package/api/types/OrderShippingAddressJapanType.d.ts +11 -0
- package/api/types/OrderShippingAddressJapanType.js +10 -0
- package/api/types/OrderShippingAddressType.d.ts +11 -0
- package/api/types/OrderShippingAddressType.js +10 -0
- package/api/types/OrderStatus.d.ts +1 -1
- package/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
- package/api/types/Page.d.ts +3 -1
- package/api/types/PageCreatedWebhook.d.ts +13 -0
- package/api/types/PageCreatedWebhook.js +5 -0
- package/api/types/PageCreatedWebhookPayload.d.ts +13 -0
- package/api/types/PageCreatedWebhookPayload.js +5 -0
- package/api/types/PageDeletedWebhook.d.ts +13 -0
- package/api/types/PageDeletedWebhook.js +5 -0
- package/api/types/PageDeletedWebhookPayload.d.ts +13 -0
- package/api/types/PageDeletedWebhookPayload.js +5 -0
- package/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
- package/api/types/PageMetadataUpdatedWebhook.js +5 -0
- package/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
- package/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
- package/api/types/ProductFieldData.d.ts +2 -2
- package/api/types/ProductFieldDataEcProductType.d.ts +1 -1
- package/api/types/ProductFieldDataTaxCategory.d.ts +1 -1
- package/api/types/PublishStatus.d.ts +1 -1
- package/api/types/ReferenceFieldType.d.ts +1 -1
- package/api/types/RegisteredScriptList.d.ts +1 -0
- package/api/types/ScriptApplyLocation.d.ts +1 -1
- package/api/types/Scripts.d.ts +1 -1
- package/api/types/{SearchButtonNodeWrite.d.ts → SearchButton.d.ts} +1 -1
- package/api/types/SearchButton.js +5 -0
- package/{dist/api/types/SearchButtonNode.d.ts → api/types/SearchButtonNodeDom.d.ts} +1 -1
- package/api/types/SearchButtonNodeDom.js +5 -0
- package/api/types/{SelectNodeWrite.d.ts → Select.d.ts} +1 -1
- package/api/types/Select.js +5 -0
- package/{dist/api/types/SelectNode.d.ts → api/types/SelectNodeDom.d.ts} +1 -1
- package/api/types/SelectNodeDom.js +5 -0
- package/api/types/SingleLocaleChangedPayload.d.ts +22 -0
- package/api/types/SingleLocaleChangedPayload.js +5 -0
- package/api/types/SingleLocaleChangedPayloadFieldData.d.ts +9 -0
- package/api/types/SingleLocaleChangedPayloadFieldData.js +5 -0
- package/api/types/SingleLocaleCreatedPayload.d.ts +22 -0
- package/api/types/SingleLocaleCreatedPayload.js +5 -0
- package/api/types/SingleLocaleCreatedPayloadFieldData.d.ts +9 -0
- package/api/types/SingleLocaleCreatedPayloadFieldData.js +5 -0
- package/api/types/SiteActivityLogItemEvent.d.ts +1 -1
- package/api/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/api/types/SiteDataCollectionType.d.ts +1 -1
- package/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/SitePlanId.d.ts +1 -1
- package/api/types/SitePlanName.d.ts +1 -1
- package/api/types/SitePublish.d.ts +13 -0
- package/api/types/SitePublish.js +5 -0
- package/api/types/SitePublishPayload.d.ts +16 -0
- package/api/types/SitePublishPayload.js +5 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +1 -1
- package/api/types/SkuValueList.d.ts +1 -1
- package/api/types/StaticFieldType.d.ts +1 -1
- package/api/types/StripeCardBrand.d.ts +1 -1
- package/{dist/api/types/SubmitButtonNodeWrite.d.ts → api/types/SubmitButton.d.ts} +1 -1
- package/api/types/SubmitButton.js +5 -0
- package/{dist/api/types/SubmitButtonNode.d.ts → api/types/SubmitButtonNodeDom.d.ts} +1 -1
- package/api/types/SubmitButtonNodeDom.js +5 -0
- package/api/types/{TextInputNodeWrite.d.ts → TextInput.d.ts} +1 -1
- package/api/types/TextInput.js +5 -0
- package/api/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +1 -1
- package/api/types/TextInputNodeDom.js +5 -0
- package/api/types/TextNode.d.ts +4 -7
- package/api/types/TextNodeDom.d.ts +15 -0
- package/api/types/TextNodeDom.js +5 -0
- package/api/types/TriggerType.d.ts +1 -1
- package/api/types/UpdatedOrder.d.ts +12 -0
- package/api/types/UpdatedOrder.js +5 -0
- package/api/types/User.d.ts +0 -1
- package/api/types/UserAccessAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/UserAccessGroupsItemType.d.ts +1 -1
- package/api/types/UserLimitReached.d.ts +1 -1
- package/api/types/UserStatus.d.ts +1 -1
- package/api/types/UsersNotEnabled.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItem.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/index.d.ts +62 -15
- package/api/types/index.js +62 -15
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +11 -1
- package/core/fetcher/Fetcher.d.ts +4 -3
- package/core/fetcher/Fetcher.js +35 -14
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +4 -5
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/headers.d.ts +3 -0
- package/core/headers.js +29 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +18 -8
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +50 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +11 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/dist/Client.d.ts +21 -17
- package/dist/Client.js +43 -1
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +19 -8
- package/dist/api/errors/ConflictError.d.ts +2 -1
- package/dist/api/errors/ConflictError.js +19 -8
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +19 -8
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +19 -8
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +19 -8
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.js +19 -8
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +19 -8
- package/dist/api/resources/accessGroups/client/Client.d.ts +7 -2
- package/dist/api/resources/accessGroups/client/Client.js +51 -28
- package/dist/api/resources/accessGroups/client/index.d.ts +1 -0
- package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +21 -9
- package/dist/api/resources/assets/client/Client.js +210 -132
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +20 -10
- package/dist/api/resources/collections/client/Client.js +121 -77
- package/dist/api/resources/collections/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +17 -8
- package/dist/api/resources/collections/resources/fields/client/Client.js +92 -54
- package/dist/api/resources/collections/resources/fields/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/index.js +17 -7
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +129 -77
- package/dist/api/resources/collections/resources/items/client/Client.js +582 -321
- package/dist/api/resources/collections/resources/items/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +45 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +45 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +24 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +24 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +4 -66
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +4 -1
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemIDs.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemIDs.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +10 -0
- package/dist/api/resources/collections/resources/items/types/ItemIDsWithLocales.js +5 -0
- package/dist/api/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +7 -2
- package/dist/api/resources/collections/resources/items/types/index.js +7 -2
- package/dist/api/resources/components/client/Client.d.ts +24 -9
- package/dist/api/resources/components/client/Client.js +176 -100
- package/dist/api/resources/components/client/index.d.ts +1 -0
- package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +5 -0
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +5 -0
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -1
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -1
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +7 -1
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +7 -2
- package/dist/api/resources/ecommerce/client/Client.js +45 -26
- package/dist/api/resources/forms/client/Client.d.ts +19 -8
- package/dist/api/resources/forms/client/Client.js +198 -132
- package/dist/api/resources/forms/client/index.d.ts +1 -0
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/inventory/client/Client.d.ts +9 -3
- package/dist/api/resources/inventory/client/Client.js +72 -43
- package/dist/api/resources/inventory/client/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/EcommInventoryChangedPayload.d.ts +8 -0
- package/dist/api/resources/inventory/types/EcommInventoryChangedPayload.js +5 -0
- package/dist/api/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +1 -1
- package/dist/api/resources/inventory/types/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.js +1 -0
- package/dist/api/resources/orders/client/Client.d.ts +17 -7
- package/dist/api/resources/orders/client/Client.js +190 -121
- package/dist/api/resources/orders/client/index.d.ts +1 -0
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +1 -1
- package/dist/api/resources/orders/types/OrdersRefundRequestReason.d.ts +1 -1
- package/dist/api/resources/pages/client/Client.d.ts +29 -32
- package/dist/api/resources/pages/client/Client.js +168 -125
- package/dist/api/resources/pages/client/index.d.ts +1 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +36 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/index.d.ts +1 -1
- package/dist/api/resources/pages/resources/index.js +17 -7
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +11 -4
- package/dist/api/resources/pages/resources/scripts/client/Client.js +85 -51
- package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +16 -0
- package/dist/api/resources/pages/types/PageMetadataWriteOpenGraph.js +5 -0
- package/dist/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
- package/dist/api/resources/pages/types/PageMetadataWriteSeo.js +5 -0
- package/dist/api/resources/pages/types/index.d.ts +2 -0
- package/dist/api/resources/pages/types/index.js +2 -0
- package/dist/api/resources/products/client/Client.d.ts +29 -9
- package/dist/api/resources/products/client/Client.js +194 -117
- package/dist/api/resources/products/client/index.d.ts +1 -0
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +5 -0
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +5 -0
- package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/api/resources/scripts/client/Client.d.ts +11 -4
- package/dist/api/resources/scripts/client/Client.js +93 -54
- package/dist/api/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/client/Client.d.ts +40 -24
- package/dist/api/resources/sites/client/Client.js +222 -147
- package/dist/api/resources/sites/client/index.d.ts +1 -0
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +43 -24
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +11 -4
- package/dist/api/resources/sites/resources/comments/client/Client.js +127 -68
- package/dist/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/sites/resources/index.js +17 -7
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +7 -2
- package/dist/api/resources/sites/resources/plans/client/Client.js +43 -24
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +13 -5
- package/dist/api/resources/sites/resources/redirects/client/Client.js +118 -71
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +13 -5
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +118 -69
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +13 -5
- package/dist/api/resources/sites/resources/scripts/client/Client.js +110 -68
- package/dist/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +9 -3
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +51 -26
- package/dist/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +9 -3
- package/dist/api/resources/token/client/Client.js +61 -34
- package/dist/api/resources/users/client/Client.d.ts +28 -14
- package/dist/api/resources/users/client/Client.js +162 -101
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/index.d.ts +0 -1
- package/dist/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
- package/dist/api/resources/users/types/UserAccountAddedPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +5 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +5 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +5 -0
- package/dist/api/resources/users/types/UsersListRequestSort.d.ts +1 -1
- package/dist/api/resources/users/types/index.d.ts +9 -1
- package/dist/api/resources/users/types/index.js +9 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +15 -7
- package/dist/api/resources/webhooks/client/Client.js +111 -69
- package/dist/api/resources/workspaces/client/Client.d.ts +5 -11
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -4
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +59 -30
- package/dist/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
- package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
- package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/workspaces/resources/index.js +17 -7
- package/dist/api/types/Application.d.ts +10 -1
- package/dist/api/types/Asset.d.ts +2 -2
- package/dist/api/types/AssetVariant.d.ts +6 -6
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/BadRequestErrorBody.d.ts +1 -1
- package/dist/api/types/BulkCollectionItem.d.ts +1 -1
- package/dist/api/types/Collection.d.ts +2 -2
- package/dist/api/types/CollectionItemChanged.d.ts +12 -0
- package/dist/api/types/CollectionItemChanged.js +5 -0
- package/dist/api/types/CollectionItemChangedPayload.d.ts +5 -0
- package/dist/api/types/CollectionItemChangedPayload.js +5 -0
- package/dist/api/types/CollectionItemCreated.d.ts +12 -0
- package/dist/api/types/CollectionItemCreated.js +5 -0
- package/dist/api/types/CollectionItemCreatedPayload.d.ts +5 -0
- package/dist/api/types/CollectionItemCreatedPayload.js +5 -0
- package/dist/api/types/CollectionItemRemoved.d.ts +10 -0
- package/dist/api/types/CollectionItemRemoved.js +5 -0
- package/dist/api/types/CollectionItemRemovedPayload.d.ts +25 -0
- package/dist/api/types/CollectionItemRemovedPayload.js +5 -0
- package/dist/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/CollectionItemRemovedPayloadFieldData.js +5 -0
- package/dist/api/types/CollectionItemUnpublished.d.ts +10 -0
- package/dist/api/types/CollectionItemUnpublished.js +5 -0
- package/dist/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
- package/dist/api/types/CollectionItemUnpublishedPayload.js +5 -0
- package/dist/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/CollectionItemUnpublishedPayloadFieldData.js +5 -0
- package/dist/api/types/Comment.d.ts +12 -0
- package/dist/api/types/Comment.js +5 -0
- package/dist/api/types/CommentPayload.d.ts +38 -0
- package/dist/api/types/CommentPayload.js +5 -0
- package/dist/api/types/CommentPayloadAuthor.d.ts +11 -0
- package/dist/api/types/CommentPayloadAuthor.js +5 -0
- package/dist/api/types/CommentPayloadMentionedUsersItem.d.ts +11 -0
- package/dist/api/types/CommentPayloadMentionedUsersItem.js +5 -0
- package/dist/api/types/CommentReply.d.ts +2 -2
- package/{api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → dist/api/types/ComponentInstance.d.ts} +1 -1
- package/dist/api/types/ComponentInstance.js +5 -0
- package/{api/types/ComponentNode.d.ts → dist/api/types/ComponentNodeDom.d.ts} +4 -4
- package/dist/api/types/ComponentNodeDom.js +5 -0
- package/dist/api/types/ComponentPropertyType.d.ts +1 -1
- package/dist/api/types/Conflict.d.ts +1 -1
- package/dist/api/types/ConflictErrorBody.d.ts +1 -1
- package/dist/api/types/CustomCodeBlockType.d.ts +1 -1
- package/dist/api/types/CustomRoleAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/Dom.d.ts +2 -0
- package/dist/api/types/DuplicateUserEmail.d.ts +1 -1
- package/dist/api/types/ErrorCode.d.ts +1 -1
- package/dist/api/types/Field.d.ts +2 -0
- package/dist/api/types/FieldCreate.d.ts +1 -1
- package/dist/api/types/FieldType.d.ts +1 -1
- package/dist/api/types/FieldValidations.d.ts +10 -0
- package/dist/api/types/FieldValidations.js +5 -0
- package/dist/api/types/FieldValidationsAdditionalProperties.d.ts +5 -0
- package/dist/api/types/FieldValidationsAdditionalProperties.js +5 -0
- package/dist/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +6 -0
- package/dist/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +5 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts +1 -1
- package/dist/api/types/FormField.d.ts +1 -1
- package/dist/api/types/FormFieldValueType.d.ts +1 -1
- package/dist/api/types/FormSubmissionTrigger.d.ts +13 -0
- package/dist/api/types/FormSubmissionTrigger.js +5 -0
- package/dist/api/types/FormSubmissionTriggerPayload.d.ts +25 -0
- package/dist/api/types/FormSubmissionTriggerPayload.js +5 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +12 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItem.js +5 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +14 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +13 -0
- package/{api/types/ImageNode.d.ts → dist/api/types/ImageNodeDom.d.ts} +3 -3
- package/dist/api/types/ImageNodeDom.js +5 -0
- package/dist/api/types/InvalidDomain.d.ts +1 -1
- package/dist/api/types/InvalidScopes.d.ts +1 -1
- package/dist/api/types/InventoryItemInventoryType.d.ts +1 -1
- package/dist/api/types/ItemsListItemsLiveRequestLastPublished.d.ts +9 -0
- package/dist/api/types/ItemsListItemsLiveRequestLastPublished.js +5 -0
- package/dist/api/types/ItemsListItemsRequestLastPublished.d.ts +9 -0
- package/dist/api/types/ItemsListItemsRequestLastPublished.js +5 -0
- package/dist/api/types/LocalizedItem.d.ts +31 -0
- package/dist/api/types/LocalizedItem.js +5 -0
- package/dist/api/types/MultiLocaleChangedPayload.d.ts +22 -0
- package/dist/api/types/MultiLocaleChangedPayload.js +5 -0
- package/dist/api/types/MultiLocaleChangedPayloadFieldData.d.ts +11 -0
- package/dist/api/types/MultiLocaleChangedPayloadFieldData.js +5 -0
- package/dist/api/types/MultiLocaleCreatedPayload.d.ts +16 -0
- package/dist/api/types/MultiLocaleCreatedPayload.js +5 -0
- package/dist/api/types/NewOrder.d.ts +12 -0
- package/dist/api/types/NewOrder.js +5 -0
- package/dist/api/types/NoDomains.d.ts +1 -1
- package/dist/api/types/Node.d.ts +8 -8
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
- package/dist/api/types/OAuthScope.d.ts +1 -1
- package/dist/api/types/Order.d.ts +2 -2
- package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
- package/dist/api/types/OrderAddressType.d.ts +1 -1
- package/dist/api/types/OrderBillingAddress.d.ts +27 -0
- package/dist/api/types/OrderBillingAddress.js +5 -0
- package/dist/api/types/OrderBillingAddressJapanType.d.ts +11 -0
- package/dist/api/types/OrderBillingAddressJapanType.js +10 -0
- package/dist/api/types/OrderBillingAddressType.d.ts +11 -0
- package/dist/api/types/OrderBillingAddressType.js +10 -0
- package/dist/api/types/OrderDisputeLastStatus.d.ts +1 -1
- package/dist/api/types/OrderShippingAddress.d.ts +27 -0
- package/dist/api/types/OrderShippingAddress.js +5 -0
- package/dist/api/types/OrderShippingAddressJapanType.d.ts +11 -0
- package/dist/api/types/OrderShippingAddressJapanType.js +10 -0
- package/dist/api/types/OrderShippingAddressType.d.ts +11 -0
- package/dist/api/types/OrderShippingAddressType.js +10 -0
- package/dist/api/types/OrderStatus.d.ts +1 -1
- package/dist/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
- package/dist/api/types/Page.d.ts +3 -1
- package/dist/api/types/PageCreatedWebhook.d.ts +13 -0
- package/dist/api/types/PageCreatedWebhook.js +5 -0
- package/dist/api/types/PageCreatedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageCreatedWebhookPayload.js +5 -0
- package/dist/api/types/PageDeletedWebhook.d.ts +13 -0
- package/dist/api/types/PageDeletedWebhook.js +5 -0
- package/dist/api/types/PageDeletedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageDeletedWebhookPayload.js +5 -0
- package/dist/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
- package/dist/api/types/PageMetadataUpdatedWebhook.js +5 -0
- package/dist/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
- package/dist/api/types/ProductFieldData.d.ts +2 -2
- package/dist/api/types/ProductFieldDataEcProductType.d.ts +1 -1
- package/dist/api/types/ProductFieldDataTaxCategory.d.ts +1 -1
- package/dist/api/types/PublishStatus.d.ts +1 -1
- package/dist/api/types/ReferenceFieldType.d.ts +1 -1
- package/dist/api/types/RegisteredScriptList.d.ts +1 -0
- package/dist/api/types/ScriptApplyLocation.d.ts +1 -1
- package/dist/api/types/Scripts.d.ts +1 -1
- package/dist/api/types/{SearchButtonNodeWrite.d.ts → SearchButton.d.ts} +1 -1
- package/dist/api/types/SearchButton.js +5 -0
- package/{api/types/SearchButtonNode.d.ts → dist/api/types/SearchButtonNodeDom.d.ts} +1 -1
- package/dist/api/types/SearchButtonNodeDom.js +5 -0
- package/dist/api/types/{SelectNodeWrite.d.ts → Select.d.ts} +1 -1
- package/dist/api/types/Select.js +5 -0
- package/{api/types/SelectNode.d.ts → dist/api/types/SelectNodeDom.d.ts} +1 -1
- package/dist/api/types/SelectNodeDom.js +5 -0
- package/dist/api/types/SingleLocaleChangedPayload.d.ts +22 -0
- package/dist/api/types/SingleLocaleChangedPayload.js +5 -0
- package/dist/api/types/SingleLocaleChangedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/SingleLocaleChangedPayloadFieldData.js +5 -0
- package/dist/api/types/SingleLocaleCreatedPayload.d.ts +22 -0
- package/dist/api/types/SingleLocaleCreatedPayload.js +5 -0
- package/dist/api/types/SingleLocaleCreatedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/SingleLocaleCreatedPayloadFieldData.js +5 -0
- package/dist/api/types/SiteActivityLogItemEvent.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/dist/api/types/SiteDataCollectionType.d.ts +1 -1
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/SitePlanId.d.ts +1 -1
- package/dist/api/types/SitePlanName.d.ts +1 -1
- package/dist/api/types/SitePublish.d.ts +13 -0
- package/dist/api/types/SitePublish.js +5 -0
- package/dist/api/types/SitePublishPayload.d.ts +16 -0
- package/dist/api/types/SitePublishPayload.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +1 -1
- package/dist/api/types/SkuValueList.d.ts +1 -1
- package/dist/api/types/StaticFieldType.d.ts +1 -1
- package/dist/api/types/StripeCardBrand.d.ts +1 -1
- package/{api/types/SubmitButtonNodeWrite.d.ts → dist/api/types/SubmitButton.d.ts} +1 -1
- package/dist/api/types/SubmitButton.js +5 -0
- package/{api/types/SubmitButtonNode.d.ts → dist/api/types/SubmitButtonNodeDom.d.ts} +1 -1
- package/dist/api/types/SubmitButtonNodeDom.js +5 -0
- package/dist/api/types/{TextInputNodeWrite.d.ts → TextInput.d.ts} +1 -1
- package/dist/api/types/TextInput.js +5 -0
- package/dist/api/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +1 -1
- package/dist/api/types/TextInputNodeDom.js +5 -0
- package/dist/api/types/TextNode.d.ts +4 -7
- package/dist/api/types/TextNodeDom.d.ts +15 -0
- package/dist/api/types/TextNodeDom.js +5 -0
- package/dist/api/types/TriggerType.d.ts +1 -1
- package/dist/api/types/UpdatedOrder.d.ts +12 -0
- package/dist/api/types/UpdatedOrder.js +5 -0
- package/dist/api/types/User.d.ts +0 -1
- package/dist/api/types/UserAccessAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/UserAccessGroupsItemType.d.ts +1 -1
- package/dist/api/types/UserLimitReached.d.ts +1 -1
- package/dist/api/types/UserStatus.d.ts +1 -1
- package/dist/api/types/UsersNotEnabled.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItem.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/index.d.ts +62 -15
- package/dist/api/types/index.js +62 -15
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +11 -1
- package/dist/core/fetcher/Fetcher.d.ts +4 -3
- package/dist/core/fetcher/Fetcher.js +35 -14
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +4 -5
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +29 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +18 -8
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +50 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +11 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/environments.d.ts +1 -1
- package/dist/errors/WebflowError.d.ts +4 -1
- package/dist/errors/WebflowError.js +6 -8
- package/dist/index.js +17 -7
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +17 -7
- package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.js +17 -7
- package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.js +17 -7
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +17 -7
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.js +17 -7
- package/dist/serialization/resources/collections/resources/index.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemIDs.d.ts +12 -0
- package/{serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → dist/serialization/resources/collections/resources/items/types/ItemIDs.js} +21 -11
- package/dist/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.js +44 -0
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +2 -2
- package/{serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +19 -9
- package/{serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts → dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.js → ItemsCreateItemRequestBody.js} +19 -9
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.js +43 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +44 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +43 -0
- package/dist/serialization/resources/collections/resources/items/types/MultipleItems.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/SingleCmsItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +7 -2
- package/dist/serialization/resources/collections/resources/items/types/index.js +7 -2
- package/dist/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +1 -1
- package/dist/serialization/resources/components/client/requests/ComponentDomWrite.js +17 -7
- package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +1 -1
- package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +17 -7
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +7 -7
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +29 -19
- package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +17 -7
- package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.js +17 -7
- package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +17 -7
- package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +17 -7
- package/dist/serialization/resources/index.js +17 -7
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +17 -7
- package/dist/serialization/resources/inventory/types/EcommInventoryChangedPayload.d.ts +14 -0
- package/dist/serialization/resources/inventory/types/EcommInventoryChangedPayload.js +45 -0
- package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.js +17 -7
- package/dist/serialization/resources/inventory/types/index.d.ts +1 -0
- package/dist/serialization/resources/inventory/types/index.js +1 -0
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +17 -7
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.js +17 -7
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.js +17 -7
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +17 -7
- package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.js +17 -7
- package/dist/serialization/resources/pages/client/requests/PageDomWrite.js +17 -7
- package/dist/serialization/resources/pages/client/requests/PageMetadataWrite.d.ts +17 -0
- package/dist/serialization/resources/pages/client/requests/PageMetadataWrite.js +48 -0
- package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/requests/index.js +3 -1
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +7 -7
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +29 -19
- package/dist/serialization/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +15 -0
- package/dist/serialization/resources/pages/types/PageMetadataWriteOpenGraph.js +46 -0
- package/dist/serialization/resources/pages/types/PageMetadataWriteSeo.d.ts +13 -0
- package/dist/serialization/resources/pages/types/PageMetadataWriteSeo.js +44 -0
- package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.js +17 -7
- package/dist/serialization/resources/pages/types/index.d.ts +2 -0
- package/dist/serialization/resources/pages/types/index.js +2 -0
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +17 -7
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +17 -7
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +17 -7
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +17 -7
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +17 -7
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +17 -7
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +18 -8
- package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.js +17 -7
- package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.js +17 -7
- package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.js +17 -7
- package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.js +17 -7
- package/dist/serialization/resources/sites/client/requests/SitesUpdateRequest.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.js +17 -7
- package/dist/serialization/resources/sites/resources/index.js +17 -7
- package/dist/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.js +17 -7
- package/dist/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownFile.js +17 -7
- package/dist/serialization/resources/sites/resources/wellKnown/types/WellKnownFileContentType.js +17 -7
- package/dist/serialization/resources/sites/types/SitesPublishResponse.js +17 -7
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.js +17 -7
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +1 -3
- package/dist/serialization/resources/users/types/UserAccountAddedPayload.d.ts +14 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayload.js +45 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +54 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +15 -0
- package/dist/serialization/resources/users/types/{UsersUpdateRequestData.js → UserAccountAddedPayloadPayloadData.js} +22 -11
- package/dist/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +14 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayload.js +45 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +54 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +15 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +46 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +14 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.js +45 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +54 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +15 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +46 -0
- package/dist/serialization/resources/users/types/UsersListRequestSort.js +17 -7
- package/dist/serialization/resources/users/types/index.d.ts +9 -1
- package/dist/serialization/resources/users/types/index.js +9 -1
- package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +17 -7
- package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.js +17 -7
- package/dist/serialization/resources/workspaces/resources/index.js +17 -7
- package/dist/serialization/types/AccessGroup.js +17 -7
- package/dist/serialization/types/AccessGroupList.js +17 -7
- package/dist/serialization/types/Application.d.ts +7 -2
- package/dist/serialization/types/Application.js +23 -8
- package/dist/serialization/types/Asset.d.ts +2 -2
- package/dist/serialization/types/Asset.js +19 -9
- package/dist/serialization/types/AssetFolder.js +17 -7
- package/dist/serialization/types/AssetFolderList.js +17 -7
- package/dist/serialization/types/AssetUpload.js +17 -7
- package/dist/serialization/types/AssetUploadUploadDetails.js +17 -7
- package/dist/serialization/types/AssetVariant.d.ts +6 -6
- package/dist/serialization/types/AssetVariant.js +23 -13
- package/dist/serialization/types/Assets.js +17 -7
- package/dist/serialization/types/Authorization.d.ts +1 -1
- package/dist/serialization/types/Authorization.js +17 -7
- package/dist/serialization/types/AuthorizationAuthorization.js +17 -7
- package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.js +17 -7
- package/dist/serialization/types/AuthorizedUser.js +17 -7
- package/dist/serialization/types/BadRequestErrorBody.js +17 -7
- package/dist/serialization/types/BulkCollectionItem.d.ts +1 -1
- package/dist/serialization/types/BulkCollectionItem.js +18 -8
- package/dist/serialization/types/BulkCollectionItemFieldData.js +17 -7
- package/dist/serialization/types/Collection.d.ts +2 -2
- package/dist/serialization/types/Collection.js +19 -9
- package/dist/serialization/types/CollectionItem.js +17 -7
- package/dist/serialization/types/CollectionItemChanged.d.ts +14 -0
- package/dist/serialization/types/CollectionItemChanged.js +45 -0
- package/dist/serialization/types/CollectionItemChangedPayload.d.ts +12 -0
- package/dist/serialization/types/CollectionItemChangedPayload.js +43 -0
- package/dist/serialization/types/CollectionItemCreated.d.ts +14 -0
- package/dist/serialization/types/CollectionItemCreated.js +45 -0
- package/dist/serialization/types/CollectionItemCreatedPayload.d.ts +12 -0
- package/dist/serialization/types/CollectionItemCreatedPayload.js +43 -0
- package/dist/serialization/types/CollectionItemFieldData.js +17 -7
- package/dist/serialization/types/CollectionItemList.js +17 -7
- package/dist/serialization/types/CollectionItemListNoPagination.js +17 -7
- package/dist/serialization/types/CollectionItemListPagination.js +17 -7
- package/dist/serialization/types/CollectionItemPatchSingle.js +17 -7
- package/dist/serialization/types/CollectionItemPatchSingleFieldData.js +17 -7
- package/dist/serialization/types/CollectionItemPostSingle.js +17 -7
- package/dist/serialization/types/CollectionItemPostSingleFieldData.js +17 -7
- package/dist/serialization/types/CollectionItemRemoved.d.ts +14 -0
- package/dist/serialization/types/CollectionItemRemoved.js +45 -0
- package/dist/serialization/types/CollectionItemRemovedPayload.d.ts +23 -0
- package/dist/serialization/types/CollectionItemRemovedPayload.js +54 -0
- package/dist/serialization/types/CollectionItemRemovedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/CollectionItemRemovedPayloadFieldData.js +46 -0
- package/dist/serialization/types/CollectionItemUnpublished.d.ts +14 -0
- package/dist/serialization/types/CollectionItemUnpublished.js +45 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayload.d.ts +23 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayload.js +54 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayloadFieldData.js +46 -0
- package/dist/serialization/types/CollectionItemWithIdInput.js +17 -7
- package/dist/serialization/types/CollectionItemWithIdInputFieldData.js +17 -7
- package/dist/serialization/types/CollectionList.js +17 -7
- package/dist/serialization/types/CollectionListArrayItem.js +17 -7
- package/dist/serialization/types/Comment.d.ts +14 -0
- package/dist/serialization/types/Comment.js +45 -0
- package/dist/serialization/types/CommentPayload.d.ts +28 -0
- package/dist/serialization/types/CommentPayload.js +59 -0
- package/dist/serialization/types/CommentPayloadAuthor.d.ts +14 -0
- package/dist/serialization/types/CommentPayloadAuthor.js +45 -0
- package/dist/serialization/types/CommentPayloadMentionedUsersItem.d.ts +14 -0
- package/dist/serialization/types/CommentPayloadMentionedUsersItem.js +45 -0
- package/dist/serialization/types/CommentReply.d.ts +2 -2
- package/dist/serialization/types/CommentReply.js +19 -9
- package/dist/serialization/types/CommentReplyAuthor.js +17 -7
- package/dist/serialization/types/CommentReplyList.js +17 -7
- package/dist/serialization/types/CommentReplyListPagination.js +17 -7
- package/dist/serialization/types/CommentReplyMentionedUsersItem.js +17 -7
- package/dist/serialization/types/CommentThread.js +17 -7
- package/dist/serialization/types/CommentThreadAuthor.js +17 -7
- package/dist/serialization/types/CommentThreadList.js +17 -7
- package/dist/serialization/types/CommentThreadListPagination.js +17 -7
- package/dist/serialization/types/CommentThreadMentionedUsersItem.js +17 -7
- package/dist/serialization/types/Component.js +17 -7
- package/dist/serialization/types/ComponentDom.js +17 -7
- package/{serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → dist/serialization/types/ComponentInstance.d.ts} +2 -2
- package/{serialization/types/ComponentInstanceNodePropertyOverridesWrite.js → dist/serialization/types/ComponentInstance.js} +19 -9
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/dist/serialization/types/ComponentList.js +17 -7
- package/dist/serialization/types/ComponentNodeDom.d.ts +15 -0
- package/dist/serialization/types/{ComponentNode.js → ComponentNodeDom.js} +22 -12
- package/dist/serialization/types/ComponentProperties.js +17 -7
- package/dist/serialization/types/ComponentProperty.js +17 -7
- package/dist/serialization/types/ComponentPropertyType.js +17 -7
- package/dist/serialization/types/Conflict.js +17 -7
- package/dist/serialization/types/ConflictErrorBody.js +17 -7
- package/dist/serialization/types/CustomCodeBlock.js +17 -7
- package/dist/serialization/types/CustomCodeBlockType.js +17 -7
- package/dist/serialization/types/CustomCodeHostedResponse.js +17 -7
- package/dist/serialization/types/CustomCodeInlineResponse.js +17 -7
- package/dist/serialization/types/CustomRole.js +17 -7
- package/dist/serialization/types/CustomRoleAuditLogItem.js +17 -7
- package/dist/serialization/types/CustomRoleAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/Dom.d.ts +1 -0
- package/dist/serialization/types/Dom.js +18 -7
- package/dist/serialization/types/Domain.js +17 -7
- package/dist/serialization/types/Domains.js +17 -7
- package/dist/serialization/types/DuplicateUserEmail.js +17 -7
- package/dist/serialization/types/EcommerceSettings.js +17 -7
- package/dist/serialization/types/ErrorCode.js +17 -7
- package/dist/serialization/types/Error_.js +17 -7
- package/dist/serialization/types/Field.d.ts +2 -0
- package/dist/serialization/types/Field.js +19 -7
- package/dist/serialization/types/FieldCreate.js +17 -7
- package/dist/serialization/types/FieldType.js +17 -7
- package/dist/serialization/types/FieldValidations.d.ts +13 -0
- package/dist/serialization/types/FieldValidations.js +44 -0
- package/dist/serialization/types/FieldValidationsAdditionalProperties.d.ts +11 -0
- package/dist/serialization/types/FieldValidationsAdditionalProperties.js +48 -0
- package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +12 -0
- package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +43 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +17 -7
- package/dist/serialization/types/Form.js +17 -7
- package/dist/serialization/types/FormField.js +17 -7
- package/dist/serialization/types/FormFieldValue.js +17 -7
- package/dist/serialization/types/FormFieldValueType.js +17 -7
- package/dist/serialization/types/FormList.js +17 -7
- package/dist/serialization/types/FormResponseSettings.js +17 -7
- package/dist/serialization/types/FormSubmission.js +17 -7
- package/dist/serialization/types/FormSubmissionList.js +17 -7
- package/dist/serialization/types/FormSubmissionTrigger.d.ts +14 -0
- package/dist/serialization/types/FormSubmissionTrigger.js +45 -0
- package/dist/serialization/types/FormSubmissionTriggerPayload.d.ts +20 -0
- package/dist/serialization/types/FormSubmissionTriggerPayload.js +51 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +15 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItem.js +46 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +10 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +47 -0
- package/{serialization/types/ImageNode.d.ts → dist/serialization/types/ImageNodeDom.d.ts} +4 -4
- package/{serialization/types/ImageNode.js → dist/serialization/types/ImageNodeDom.js} +21 -11
- package/dist/serialization/types/ImageNodeImage.js +17 -7
- package/dist/serialization/types/InvalidDomain.js +17 -7
- package/dist/serialization/types/InvalidScopes.js +17 -7
- package/dist/serialization/types/InventoryItem.js +17 -7
- package/dist/serialization/types/InventoryItemInventoryType.js +17 -7
- package/dist/serialization/types/ItemsListItemsLiveRequestLastPublished.d.ts +13 -0
- package/dist/serialization/types/ItemsListItemsLiveRequestLastPublished.js +44 -0
- package/dist/serialization/types/ItemsListItemsRequestLastPublished.d.ts +13 -0
- package/dist/serialization/types/ItemsListItemsRequestLastPublished.js +44 -0
- package/dist/serialization/types/ListCustomCodeBlocks.js +17 -7
- package/dist/serialization/types/Locale.js +17 -7
- package/dist/serialization/types/Locales.js +17 -7
- package/dist/serialization/types/LocalizedItem.d.ts +24 -0
- package/dist/serialization/types/LocalizedItem.js +55 -0
- package/dist/serialization/types/Metadata.js +17 -7
- package/dist/serialization/types/MetadataOptionsItem.js +17 -7
- package/dist/serialization/types/MultiLocaleChangedPayload.d.ts +23 -0
- package/dist/serialization/types/MultiLocaleChangedPayload.js +54 -0
- package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +15 -0
- package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.js +47 -0
- package/dist/serialization/types/MultiLocaleCreatedPayload.d.ts +17 -0
- package/dist/serialization/types/MultiLocaleCreatedPayload.js +48 -0
- package/dist/serialization/types/NewOrder.d.ts +14 -0
- package/dist/serialization/types/NewOrder.js +45 -0
- package/dist/serialization/types/NoDomains.js +17 -7
- package/dist/serialization/types/Node.d.ts +14 -14
- package/dist/serialization/types/Node.js +31 -21
- package/dist/serialization/types/NotEnterprisePlanSite.js +17 -7
- package/dist/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
- package/dist/serialization/types/OptionField.js +17 -7
- package/dist/serialization/types/Order.d.ts +4 -2
- package/dist/serialization/types/Order.js +21 -9
- package/dist/serialization/types/OrderAddress.js +17 -7
- package/dist/serialization/types/OrderAddressJapanType.js +17 -7
- package/dist/serialization/types/OrderAddressType.js +17 -7
- package/dist/serialization/types/OrderBillingAddress.d.ts +22 -0
- package/dist/serialization/types/OrderBillingAddress.js +53 -0
- package/dist/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
- package/dist/serialization/types/OrderBillingAddressJapanType.js +41 -0
- package/dist/serialization/types/OrderBillingAddressType.d.ts +10 -0
- package/dist/serialization/types/OrderBillingAddressType.js +41 -0
- package/dist/serialization/types/OrderCustomerInfo.js +17 -7
- package/dist/serialization/types/OrderDisputeLastStatus.js +17 -7
- package/dist/serialization/types/OrderDownloadFilesItem.js +17 -7
- package/dist/serialization/types/OrderList.js +17 -7
- package/dist/serialization/types/OrderMetadata.js +17 -7
- package/dist/serialization/types/OrderPrice.js +17 -7
- package/dist/serialization/types/OrderPurchasedItem.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
- package/dist/serialization/types/OrderShippingAddress.d.ts +22 -0
- package/dist/serialization/types/OrderShippingAddress.js +53 -0
- package/dist/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
- package/dist/serialization/types/OrderShippingAddressJapanType.js +41 -0
- package/dist/serialization/types/OrderShippingAddressType.d.ts +10 -0
- package/dist/serialization/types/OrderShippingAddressType.js +41 -0
- package/dist/serialization/types/OrderStatus.js +17 -7
- package/dist/serialization/types/OrderTotals.js +17 -7
- package/dist/serialization/types/OrderTotalsExtrasItem.js +17 -7
- package/dist/serialization/types/OrderTotalsExtrasItemType.js +17 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +18 -7
- package/dist/serialization/types/PageCreatedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageCreatedWebhook.js +45 -0
- package/dist/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageCreatedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageDeletedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageDeletedWebhook.js +45 -0
- package/dist/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageDeletedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageList.js +17 -7
- package/dist/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageOpenGraph.js +17 -7
- package/dist/serialization/types/PageSeo.js +17 -7
- package/dist/serialization/types/Pagination.js +17 -7
- package/dist/serialization/types/PaypalDetails.js +17 -7
- package/dist/serialization/types/Product.js +17 -7
- package/dist/serialization/types/ProductAndSkUs.js +17 -7
- package/dist/serialization/types/ProductAndSkUsList.js +17 -7
- package/dist/serialization/types/ProductFieldData.d.ts +1 -1
- package/dist/serialization/types/ProductFieldData.js +18 -8
- package/dist/serialization/types/ProductFieldDataEcProductType.js +17 -7
- package/dist/serialization/types/ProductFieldDataTaxCategory.js +17 -7
- package/dist/serialization/types/PublishStatus.js +17 -7
- package/dist/serialization/types/Redirect.js +17 -7
- package/dist/serialization/types/Redirects.js +17 -7
- package/dist/serialization/types/ReferenceField.js +17 -7
- package/dist/serialization/types/ReferenceFieldMetadata.js +17 -7
- package/dist/serialization/types/ReferenceFieldType.js +17 -7
- package/dist/serialization/types/RegisteredScriptList.d.ts +2 -0
- package/dist/serialization/types/RegisteredScriptList.js +19 -7
- package/dist/serialization/types/Robots.js +17 -7
- package/dist/serialization/types/RobotsRulesItem.js +17 -7
- package/dist/serialization/types/ScriptApply.js +17 -7
- package/dist/serialization/types/ScriptApplyList.js +17 -7
- package/dist/serialization/types/ScriptApplyLocation.js +17 -7
- package/dist/serialization/types/Scripts.js +17 -7
- package/{serialization/types/SearchButtonNodeWrite.d.ts → dist/serialization/types/SearchButton.d.ts} +2 -2
- package/dist/serialization/types/{SearchButtonNodeWrite.js → SearchButton.js} +19 -9
- package/dist/serialization/types/{SearchButtonNode.d.ts → SearchButtonNodeDom.d.ts} +2 -2
- package/{serialization/types/SearchButtonNode.js → dist/serialization/types/SearchButtonNodeDom.js} +19 -9
- package/{serialization/types/SelectNodeWrite.d.ts → dist/serialization/types/Select.d.ts} +2 -2
- package/{serialization/types/SelectNodeWrite.js → dist/serialization/types/Select.js} +19 -9
- package/dist/serialization/types/SelectNodeChoicesItem.js +17 -7
- package/{serialization/types/SelectNode.d.ts → dist/serialization/types/SelectNodeDom.d.ts} +2 -2
- package/dist/serialization/types/{SelectNode.js → SelectNodeDom.js} +19 -9
- package/dist/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- package/dist/serialization/types/SingleLocaleChangedPayload.d.ts +23 -0
- package/dist/serialization/types/SingleLocaleChangedPayload.js +54 -0
- package/dist/serialization/types/SingleLocaleChangedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/SingleLocaleChangedPayloadFieldData.js +46 -0
- package/dist/serialization/types/SingleLocaleCreatedPayload.d.ts +23 -0
- package/dist/serialization/types/SingleLocaleCreatedPayload.js +54 -0
- package/dist/serialization/types/SingleLocaleCreatedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/SingleLocaleCreatedPayloadFieldData.js +46 -0
- package/dist/serialization/types/Site.js +17 -7
- package/dist/serialization/types/SiteActivityLogItem.js +17 -7
- package/dist/serialization/types/SiteActivityLogItemEvent.js +17 -7
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +17 -7
- package/dist/serialization/types/SiteActivityLogItemUser.js +17 -7
- package/dist/serialization/types/SiteActivityLogResponse.js +17 -7
- package/dist/serialization/types/SiteDataCollectionType.js +17 -7
- package/dist/serialization/types/SiteMembership.js +17 -7
- package/dist/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/SitePlan.js +17 -7
- package/dist/serialization/types/SitePlanId.js +17 -7
- package/dist/serialization/types/SitePlanName.js +17 -7
- package/dist/serialization/types/SitePublish.d.ts +14 -0
- package/dist/serialization/types/SitePublish.js +45 -0
- package/dist/serialization/types/SitePublishPayload.d.ts +15 -0
- package/dist/serialization/types/SitePublishPayload.js +46 -0
- package/dist/serialization/types/Sites.js +17 -7
- package/dist/serialization/types/Sku.js +17 -7
- package/dist/serialization/types/SkuFieldData.js +17 -7
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +17 -7
- package/dist/serialization/types/SkuFieldDataPrice.js +17 -7
- package/dist/serialization/types/SkuPropertyList.js +17 -7
- package/dist/serialization/types/SkuPropertyListEnumItem.js +17 -7
- package/dist/serialization/types/SkuValueList.js +17 -7
- package/dist/serialization/types/StaticField.js +17 -7
- package/dist/serialization/types/StaticFieldType.js +17 -7
- package/dist/serialization/types/StripeCard.js +17 -7
- package/dist/serialization/types/StripeCardBrand.js +17 -7
- package/dist/serialization/types/StripeCardExpires.js +17 -7
- package/dist/serialization/types/StripeDetails.js +17 -7
- package/{serialization/types/SubmitButtonNodeWrite.d.ts → dist/serialization/types/SubmitButton.d.ts} +2 -2
- package/{serialization/types/SubmitButtonNodeWrite.js → dist/serialization/types/SubmitButton.js} +19 -9
- package/{serialization/types/SubmitButtonNode.d.ts → dist/serialization/types/SubmitButtonNodeDom.d.ts} +2 -2
- package/dist/serialization/types/{SubmitButtonNode.js → SubmitButtonNodeDom.js} +19 -9
- package/dist/serialization/types/Text.js +17 -7
- package/{serialization/types/TextInputNodeWrite.d.ts → dist/serialization/types/TextInput.d.ts} +2 -2
- package/dist/serialization/types/{TextInputNodeWrite.js → TextInput.js} +19 -9
- package/dist/serialization/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +2 -2
- package/{serialization/types/TextInputNode.js → dist/serialization/types/TextInputNodeDom.js} +19 -9
- package/dist/serialization/types/TextNode.d.ts +2 -4
- package/dist/serialization/types/TextNode.js +19 -11
- package/dist/serialization/types/TextNodeDom.d.ts +15 -0
- package/dist/serialization/types/TextNodeDom.js +46 -0
- package/dist/serialization/types/TextNodeText.js +17 -7
- package/dist/serialization/types/TriggerType.js +17 -7
- package/dist/serialization/types/UpdatedOrder.d.ts +14 -0
- package/dist/serialization/types/UpdatedOrder.js +45 -0
- package/dist/serialization/types/User.js +17 -7
- package/dist/serialization/types/UserAccess.js +17 -7
- package/dist/serialization/types/UserAccessAuditLogItem.js +17 -7
- package/dist/serialization/types/UserAccessAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/UserAccessGroupsItem.js +17 -7
- package/dist/serialization/types/UserAccessGroupsItemType.js +17 -7
- package/dist/serialization/types/UserData.js +17 -7
- package/dist/serialization/types/UserDataData.js +17 -7
- package/dist/serialization/types/UserLimitReached.js +17 -7
- package/dist/serialization/types/UserList.js +17 -7
- package/dist/serialization/types/UserStatus.js +17 -7
- package/dist/serialization/types/UsersNotEnabled.js +17 -7
- package/dist/serialization/types/Webhook.js +17 -7
- package/dist/serialization/types/WebhookFilter.js +17 -7
- package/dist/serialization/types/WebhookList.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemActor.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadUserAccessMethod.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemWorkspace.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogResponse.js +17 -7
- package/dist/serialization/types/WorkspaceInvitation.js +17 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/WorkspaceMembership.js +17 -7
- package/dist/serialization/types/WorkspaceMembershipAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceMembershipAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/index.d.ts +62 -15
- package/dist/serialization/types/index.js +62 -15
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/CollectionsClient.d.ts +11 -0
- package/dist/wrapper/CollectionsClient.js +18 -0
- package/dist/wrapper/ItemsClient.d.ts +167 -0
- package/dist/wrapper/ItemsClient.js +630 -0
- package/dist/wrapper/PagesClient.d.ts +49 -0
- package/dist/wrapper/PagesClient.js +214 -0
- package/dist/wrapper/WebflowClient.d.ts +6 -0
- package/dist/wrapper/WebflowClient.js +29 -9
- package/dist/wrapper/WebhooksClient.d.ts +0 -1
- package/dist/wrapper/WebhooksClient.js +2 -5
- package/dist/wrapper/schemas/ItemsCreateItemLiveRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsCreateItemLiveRequest.js +2 -0
- package/dist/wrapper/schemas/ItemsCreateItemRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsCreateItemRequest.js +2 -0
- package/dist/wrapper/schemas/ItemsUpdateItemLiveRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsUpdateItemLiveRequest.js +2 -0
- package/dist/wrapper/schemas/ItemsUpdateItemRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsUpdateItemRequest.js +2 -0
- package/{api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts → dist/wrapper/schemas/PageMetadataWrite.d.ts} +13 -17
- package/dist/wrapper/schemas/PageMetadataWrite.js +2 -0
- package/dist/wrapper/schemas/index.d.ts +5 -0
- package/dist/wrapper/schemas/index.js +21 -0
- package/environments.d.ts +1 -1
- package/errors/WebflowError.d.ts +4 -1
- package/errors/WebflowError.js +6 -8
- package/index.js +17 -7
- package/jest.config.mjs +13 -0
- package/package.json +25 -20
- package/reference.md +111 -87
- package/scripts/rename-to-esm-files.js +123 -0
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +17 -7
- package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.js +17 -7
- package/serialization/resources/assets/client/requests/AssetsCreateRequest.js +17 -7
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +17 -7
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +17 -7
- package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.js +17 -7
- package/serialization/resources/collections/resources/index.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +17 -7
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemIDs.d.ts +12 -0
- package/{dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → serialization/resources/collections/resources/items/types/ItemIDs.js} +21 -11
- package/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.js +44 -0
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +2 -2
- package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +19 -9
- package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts → serialization/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts} +2 -2
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.js → ItemsCreateItemRequestBody.js} +19 -9
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.js +43 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +44 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +43 -0
- package/serialization/resources/collections/resources/items/types/MultipleItems.js +17 -7
- package/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +17 -7
- package/serialization/resources/collections/resources/items/types/SingleCmsItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/index.d.ts +7 -2
- package/serialization/resources/collections/resources/items/types/index.js +7 -2
- package/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +1 -1
- package/serialization/resources/components/client/requests/ComponentDomWrite.js +17 -7
- package/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +1 -1
- package/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +17 -7
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +7 -7
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +29 -19
- package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +17 -7
- package/serialization/resources/components/types/ComponentsUpdateContentResponse.js +17 -7
- package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +17 -7
- package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +17 -7
- package/serialization/resources/index.js +17 -7
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +17 -7
- package/serialization/resources/inventory/types/EcommInventoryChangedPayload.d.ts +14 -0
- package/serialization/resources/inventory/types/EcommInventoryChangedPayload.js +45 -0
- package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.js +17 -7
- package/serialization/resources/inventory/types/index.d.ts +1 -0
- package/serialization/resources/inventory/types/index.js +1 -0
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +17 -7
- package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.js +17 -7
- package/serialization/resources/orders/client/requests/OrdersUpdateRequest.js +17 -7
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +17 -7
- package/serialization/resources/orders/types/OrdersRefundRequestReason.js +17 -7
- package/serialization/resources/pages/client/requests/PageDomWrite.js +17 -7
- package/serialization/resources/pages/client/requests/PageMetadataWrite.d.ts +17 -0
- package/serialization/resources/pages/client/requests/PageMetadataWrite.js +48 -0
- package/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/serialization/resources/pages/client/requests/index.js +3 -1
- package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +7 -7
- package/serialization/resources/pages/types/PageDomWriteNodesItem.js +29 -19
- package/serialization/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +15 -0
- package/serialization/resources/pages/types/PageMetadataWriteOpenGraph.js +46 -0
- package/serialization/resources/pages/types/PageMetadataWriteSeo.d.ts +13 -0
- package/serialization/resources/pages/types/PageMetadataWriteSeo.js +44 -0
- package/serialization/resources/pages/types/UpdateStaticContentResponse.js +17 -7
- package/serialization/resources/pages/types/index.d.ts +2 -0
- package/serialization/resources/pages/types/index.js +2 -0
- package/serialization/resources/products/client/requests/ProductSkuCreate.js +17 -7
- package/serialization/resources/products/client/requests/ProductSkuUpdate.js +17 -7
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +17 -7
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +17 -7
- package/serialization/resources/products/types/ProductSkuCreateProduct.js +17 -7
- package/serialization/resources/products/types/ProductSkuCreateSku.js +17 -7
- package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/serialization/resources/products/types/ProductsCreateSkuResponse.js +18 -8
- package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.js +17 -7
- package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.js +17 -7
- package/serialization/resources/sites/client/requests/SitesCreateRequest.js +17 -7
- package/serialization/resources/sites/client/requests/SitesPublishRequest.js +17 -7
- package/serialization/resources/sites/client/requests/SitesUpdateRequest.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.js +17 -7
- package/serialization/resources/sites/resources/index.js +17 -7
- package/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.js +17 -7
- package/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownFile.js +17 -7
- package/serialization/resources/sites/resources/wellKnown/types/WellKnownFileContentType.js +17 -7
- package/serialization/resources/sites/types/SitesPublishResponse.js +17 -7
- package/serialization/resources/users/client/requests/UsersInviteRequest.js +17 -7
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +1 -3
- package/serialization/resources/users/types/UserAccountAddedPayload.d.ts +14 -0
- package/serialization/resources/users/types/UserAccountAddedPayload.js +45 -0
- package/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +54 -0
- package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +15 -0
- package/serialization/resources/users/types/{UsersUpdateRequestData.js → UserAccountAddedPayloadPayloadData.js} +22 -11
- package/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +14 -0
- package/serialization/resources/users/types/UserAccountDeletedPayload.js +45 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +54 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +15 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +46 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +14 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayload.js +45 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +54 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +15 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +46 -0
- package/serialization/resources/users/types/UsersListRequestSort.js +17 -7
- package/serialization/resources/users/types/index.d.ts +9 -1
- package/serialization/resources/users/types/index.js +9 -1
- package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +17 -7
- package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.js +17 -7
- package/serialization/resources/workspaces/resources/index.js +17 -7
- package/serialization/types/AccessGroup.js +17 -7
- package/serialization/types/AccessGroupList.js +17 -7
- package/serialization/types/Application.d.ts +7 -2
- package/serialization/types/Application.js +23 -8
- package/serialization/types/Asset.d.ts +2 -2
- package/serialization/types/Asset.js +19 -9
- package/serialization/types/AssetFolder.js +17 -7
- package/serialization/types/AssetFolderList.js +17 -7
- package/serialization/types/AssetUpload.js +17 -7
- package/serialization/types/AssetUploadUploadDetails.js +17 -7
- package/serialization/types/AssetVariant.d.ts +6 -6
- package/serialization/types/AssetVariant.js +23 -13
- package/serialization/types/Assets.js +17 -7
- package/serialization/types/Authorization.d.ts +1 -1
- package/serialization/types/Authorization.js +17 -7
- package/serialization/types/AuthorizationAuthorization.js +17 -7
- package/serialization/types/AuthorizationAuthorizationAuthorizedTo.js +17 -7
- package/serialization/types/AuthorizedUser.js +17 -7
- package/serialization/types/BadRequestErrorBody.js +17 -7
- package/serialization/types/BulkCollectionItem.d.ts +1 -1
- package/serialization/types/BulkCollectionItem.js +18 -8
- package/serialization/types/BulkCollectionItemFieldData.js +17 -7
- package/serialization/types/Collection.d.ts +2 -2
- package/serialization/types/Collection.js +19 -9
- package/serialization/types/CollectionItem.js +17 -7
- package/serialization/types/CollectionItemChanged.d.ts +14 -0
- package/serialization/types/CollectionItemChanged.js +45 -0
- package/serialization/types/CollectionItemChangedPayload.d.ts +12 -0
- package/serialization/types/CollectionItemChangedPayload.js +43 -0
- package/serialization/types/CollectionItemCreated.d.ts +14 -0
- package/serialization/types/CollectionItemCreated.js +45 -0
- package/serialization/types/CollectionItemCreatedPayload.d.ts +12 -0
- package/serialization/types/CollectionItemCreatedPayload.js +43 -0
- package/serialization/types/CollectionItemFieldData.js +17 -7
- package/serialization/types/CollectionItemList.js +17 -7
- package/serialization/types/CollectionItemListNoPagination.js +17 -7
- package/serialization/types/CollectionItemListPagination.js +17 -7
- package/serialization/types/CollectionItemPatchSingle.js +17 -7
- package/serialization/types/CollectionItemPatchSingleFieldData.js +17 -7
- package/serialization/types/CollectionItemPostSingle.js +17 -7
- package/serialization/types/CollectionItemPostSingleFieldData.js +17 -7
- package/serialization/types/CollectionItemRemoved.d.ts +14 -0
- package/serialization/types/CollectionItemRemoved.js +45 -0
- package/serialization/types/CollectionItemRemovedPayload.d.ts +23 -0
- package/serialization/types/CollectionItemRemovedPayload.js +54 -0
- package/serialization/types/CollectionItemRemovedPayloadFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemRemovedPayloadFieldData.js +46 -0
- package/serialization/types/CollectionItemUnpublished.d.ts +14 -0
- package/serialization/types/CollectionItemUnpublished.js +45 -0
- package/serialization/types/CollectionItemUnpublishedPayload.d.ts +23 -0
- package/serialization/types/CollectionItemUnpublishedPayload.js +54 -0
- package/serialization/types/CollectionItemUnpublishedPayloadFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemUnpublishedPayloadFieldData.js +46 -0
- package/serialization/types/CollectionItemWithIdInput.js +17 -7
- package/serialization/types/CollectionItemWithIdInputFieldData.js +17 -7
- package/serialization/types/CollectionList.js +17 -7
- package/serialization/types/CollectionListArrayItem.js +17 -7
- package/serialization/types/Comment.d.ts +14 -0
- package/serialization/types/Comment.js +45 -0
- package/serialization/types/CommentPayload.d.ts +28 -0
- package/serialization/types/CommentPayload.js +59 -0
- package/serialization/types/CommentPayloadAuthor.d.ts +14 -0
- package/serialization/types/CommentPayloadAuthor.js +45 -0
- package/serialization/types/CommentPayloadMentionedUsersItem.d.ts +14 -0
- package/serialization/types/CommentPayloadMentionedUsersItem.js +45 -0
- package/serialization/types/CommentReply.d.ts +2 -2
- package/serialization/types/CommentReply.js +19 -9
- package/serialization/types/CommentReplyAuthor.js +17 -7
- package/serialization/types/CommentReplyList.js +17 -7
- package/serialization/types/CommentReplyListPagination.js +17 -7
- package/serialization/types/CommentReplyMentionedUsersItem.js +17 -7
- package/serialization/types/CommentThread.js +17 -7
- package/serialization/types/CommentThreadAuthor.js +17 -7
- package/serialization/types/CommentThreadList.js +17 -7
- package/serialization/types/CommentThreadListPagination.js +17 -7
- package/serialization/types/CommentThreadMentionedUsersItem.js +17 -7
- package/serialization/types/Component.js +17 -7
- package/serialization/types/ComponentDom.js +17 -7
- package/{dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → serialization/types/ComponentInstance.d.ts} +2 -2
- package/{dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js → serialization/types/ComponentInstance.js} +19 -9
- package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/serialization/types/ComponentList.js +17 -7
- package/serialization/types/ComponentNodeDom.d.ts +15 -0
- package/serialization/types/{ComponentNode.js → ComponentNodeDom.js} +22 -12
- package/serialization/types/ComponentProperties.js +17 -7
- package/serialization/types/ComponentProperty.js +17 -7
- package/serialization/types/ComponentPropertyType.js +17 -7
- package/serialization/types/Conflict.js +17 -7
- package/serialization/types/ConflictErrorBody.js +17 -7
- package/serialization/types/CustomCodeBlock.js +17 -7
- package/serialization/types/CustomCodeBlockType.js +17 -7
- package/serialization/types/CustomCodeHostedResponse.js +17 -7
- package/serialization/types/CustomCodeInlineResponse.js +17 -7
- package/serialization/types/CustomRole.js +17 -7
- package/serialization/types/CustomRoleAuditLogItem.js +17 -7
- package/serialization/types/CustomRoleAuditLogItemEventSubType.js +17 -7
- package/serialization/types/Dom.d.ts +1 -0
- package/serialization/types/Dom.js +18 -7
- package/serialization/types/Domain.js +17 -7
- package/serialization/types/Domains.js +17 -7
- package/serialization/types/DuplicateUserEmail.js +17 -7
- package/serialization/types/EcommerceSettings.js +17 -7
- package/serialization/types/ErrorCode.js +17 -7
- package/serialization/types/Error_.js +17 -7
- package/serialization/types/Field.d.ts +2 -0
- package/serialization/types/Field.js +19 -7
- package/serialization/types/FieldCreate.js +17 -7
- package/serialization/types/FieldType.js +17 -7
- package/serialization/types/FieldValidations.d.ts +13 -0
- package/serialization/types/FieldValidations.js +44 -0
- package/serialization/types/FieldValidationsAdditionalProperties.d.ts +11 -0
- package/serialization/types/FieldValidationsAdditionalProperties.js +48 -0
- package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +12 -0
- package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +43 -0
- package/serialization/types/ForbiddenErrorBody.js +17 -7
- package/serialization/types/Form.js +17 -7
- package/serialization/types/FormField.js +17 -7
- package/serialization/types/FormFieldValue.js +17 -7
- package/serialization/types/FormFieldValueType.js +17 -7
- package/serialization/types/FormList.js +17 -7
- package/serialization/types/FormResponseSettings.js +17 -7
- package/serialization/types/FormSubmission.js +17 -7
- package/serialization/types/FormSubmissionList.js +17 -7
- package/serialization/types/FormSubmissionTrigger.d.ts +14 -0
- package/serialization/types/FormSubmissionTrigger.js +45 -0
- package/serialization/types/FormSubmissionTriggerPayload.d.ts +20 -0
- package/serialization/types/FormSubmissionTriggerPayload.js +51 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +15 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItem.js +46 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +10 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +47 -0
- package/{dist/serialization/types/ImageNode.d.ts → serialization/types/ImageNodeDom.d.ts} +4 -4
- package/{dist/serialization/types/ImageNode.js → serialization/types/ImageNodeDom.js} +21 -11
- package/serialization/types/ImageNodeImage.js +17 -7
- package/serialization/types/InvalidDomain.js +17 -7
- package/serialization/types/InvalidScopes.js +17 -7
- package/serialization/types/InventoryItem.js +17 -7
- package/serialization/types/InventoryItemInventoryType.js +17 -7
- package/serialization/types/ItemsListItemsLiveRequestLastPublished.d.ts +13 -0
- package/serialization/types/ItemsListItemsLiveRequestLastPublished.js +44 -0
- package/serialization/types/ItemsListItemsRequestLastPublished.d.ts +13 -0
- package/serialization/types/ItemsListItemsRequestLastPublished.js +44 -0
- package/serialization/types/ListCustomCodeBlocks.js +17 -7
- package/serialization/types/Locale.js +17 -7
- package/serialization/types/Locales.js +17 -7
- package/serialization/types/LocalizedItem.d.ts +24 -0
- package/serialization/types/LocalizedItem.js +55 -0
- package/serialization/types/Metadata.js +17 -7
- package/serialization/types/MetadataOptionsItem.js +17 -7
- package/serialization/types/MultiLocaleChangedPayload.d.ts +23 -0
- package/serialization/types/MultiLocaleChangedPayload.js +54 -0
- package/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +15 -0
- package/serialization/types/MultiLocaleChangedPayloadFieldData.js +47 -0
- package/serialization/types/MultiLocaleCreatedPayload.d.ts +17 -0
- package/serialization/types/MultiLocaleCreatedPayload.js +48 -0
- package/serialization/types/NewOrder.d.ts +14 -0
- package/serialization/types/NewOrder.js +45 -0
- package/serialization/types/NoDomains.js +17 -7
- package/serialization/types/Node.d.ts +14 -14
- package/serialization/types/Node.js +31 -21
- package/serialization/types/NotEnterprisePlanSite.js +17 -7
- package/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
- package/serialization/types/OptionField.js +17 -7
- package/serialization/types/Order.d.ts +4 -2
- package/serialization/types/Order.js +21 -9
- package/serialization/types/OrderAddress.js +17 -7
- package/serialization/types/OrderAddressJapanType.js +17 -7
- package/serialization/types/OrderAddressType.js +17 -7
- package/serialization/types/OrderBillingAddress.d.ts +22 -0
- package/serialization/types/OrderBillingAddress.js +53 -0
- package/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
- package/serialization/types/OrderBillingAddressJapanType.js +41 -0
- package/serialization/types/OrderBillingAddressType.d.ts +10 -0
- package/serialization/types/OrderBillingAddressType.js +41 -0
- package/serialization/types/OrderCustomerInfo.js +17 -7
- package/serialization/types/OrderDisputeLastStatus.js +17 -7
- package/serialization/types/OrderDownloadFilesItem.js +17 -7
- package/serialization/types/OrderList.js +17 -7
- package/serialization/types/OrderMetadata.js +17 -7
- package/serialization/types/OrderPrice.js +17 -7
- package/serialization/types/OrderPurchasedItem.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
- package/serialization/types/OrderShippingAddress.d.ts +22 -0
- package/serialization/types/OrderShippingAddress.js +53 -0
- package/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
- package/serialization/types/OrderShippingAddressJapanType.js +41 -0
- package/serialization/types/OrderShippingAddressType.d.ts +10 -0
- package/serialization/types/OrderShippingAddressType.js +41 -0
- package/serialization/types/OrderStatus.js +17 -7
- package/serialization/types/OrderTotals.js +17 -7
- package/serialization/types/OrderTotalsExtrasItem.js +17 -7
- package/serialization/types/OrderTotalsExtrasItemType.js +17 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +18 -7
- package/serialization/types/PageCreatedWebhook.d.ts +14 -0
- package/serialization/types/PageCreatedWebhook.js +45 -0
- package/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageCreatedWebhookPayload.js +47 -0
- package/serialization/types/PageDeletedWebhook.d.ts +14 -0
- package/serialization/types/PageDeletedWebhook.js +45 -0
- package/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageDeletedWebhookPayload.js +47 -0
- package/serialization/types/PageList.js +17 -7
- package/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
- package/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
- package/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
- package/serialization/types/PageOpenGraph.js +17 -7
- package/serialization/types/PageSeo.js +17 -7
- package/serialization/types/Pagination.js +17 -7
- package/serialization/types/PaypalDetails.js +17 -7
- package/serialization/types/Product.js +17 -7
- package/serialization/types/ProductAndSkUs.js +17 -7
- package/serialization/types/ProductAndSkUsList.js +17 -7
- package/serialization/types/ProductFieldData.d.ts +1 -1
- package/serialization/types/ProductFieldData.js +18 -8
- package/serialization/types/ProductFieldDataEcProductType.js +17 -7
- package/serialization/types/ProductFieldDataTaxCategory.js +17 -7
- package/serialization/types/PublishStatus.js +17 -7
- package/serialization/types/Redirect.js +17 -7
- package/serialization/types/Redirects.js +17 -7
- package/serialization/types/ReferenceField.js +17 -7
- package/serialization/types/ReferenceFieldMetadata.js +17 -7
- package/serialization/types/ReferenceFieldType.js +17 -7
- package/serialization/types/RegisteredScriptList.d.ts +2 -0
- package/serialization/types/RegisteredScriptList.js +19 -7
- package/serialization/types/Robots.js +17 -7
- package/serialization/types/RobotsRulesItem.js +17 -7
- package/serialization/types/ScriptApply.js +17 -7
- package/serialization/types/ScriptApplyList.js +17 -7
- package/serialization/types/ScriptApplyLocation.js +17 -7
- package/serialization/types/Scripts.js +17 -7
- package/{dist/serialization/types/SearchButtonNodeWrite.d.ts → serialization/types/SearchButton.d.ts} +2 -2
- package/serialization/types/{SearchButtonNodeWrite.js → SearchButton.js} +19 -9
- package/serialization/types/{SearchButtonNode.d.ts → SearchButtonNodeDom.d.ts} +2 -2
- package/{dist/serialization/types/SearchButtonNode.js → serialization/types/SearchButtonNodeDom.js} +19 -9
- package/{dist/serialization/types/SelectNodeWrite.d.ts → serialization/types/Select.d.ts} +2 -2
- package/{dist/serialization/types/SelectNodeWrite.js → serialization/types/Select.js} +19 -9
- package/serialization/types/SelectNodeChoicesItem.js +17 -7
- package/{dist/serialization/types/SelectNode.d.ts → serialization/types/SelectNodeDom.d.ts} +2 -2
- package/serialization/types/{SelectNode.js → SelectNodeDom.js} +19 -9
- package/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- package/serialization/types/SingleLocaleChangedPayload.d.ts +23 -0
- package/serialization/types/SingleLocaleChangedPayload.js +54 -0
- package/serialization/types/SingleLocaleChangedPayloadFieldData.d.ts +14 -0
- package/serialization/types/SingleLocaleChangedPayloadFieldData.js +46 -0
- package/serialization/types/SingleLocaleCreatedPayload.d.ts +23 -0
- package/serialization/types/SingleLocaleCreatedPayload.js +54 -0
- package/serialization/types/SingleLocaleCreatedPayloadFieldData.d.ts +14 -0
- package/serialization/types/SingleLocaleCreatedPayloadFieldData.js +46 -0
- package/serialization/types/Site.js +17 -7
- package/serialization/types/SiteActivityLogItem.js +17 -7
- package/serialization/types/SiteActivityLogItemEvent.js +17 -7
- package/serialization/types/SiteActivityLogItemResourceOperation.js +17 -7
- package/serialization/types/SiteActivityLogItemUser.js +17 -7
- package/serialization/types/SiteActivityLogResponse.js +17 -7
- package/serialization/types/SiteDataCollectionType.js +17 -7
- package/serialization/types/SiteMembership.js +17 -7
- package/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +17 -7
- package/serialization/types/SitePlan.js +17 -7
- package/serialization/types/SitePlanId.js +17 -7
- package/serialization/types/SitePlanName.js +17 -7
- package/serialization/types/SitePublish.d.ts +14 -0
- package/serialization/types/SitePublish.js +45 -0
- package/serialization/types/SitePublishPayload.d.ts +15 -0
- package/serialization/types/SitePublishPayload.js +46 -0
- package/serialization/types/Sites.js +17 -7
- package/serialization/types/Sku.js +17 -7
- package/serialization/types/SkuFieldData.js +17 -7
- package/serialization/types/SkuFieldDataCompareAtPrice.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +17 -7
- package/serialization/types/SkuFieldDataPrice.js +17 -7
- package/serialization/types/SkuPropertyList.js +17 -7
- package/serialization/types/SkuPropertyListEnumItem.js +17 -7
- package/serialization/types/SkuValueList.js +17 -7
- package/serialization/types/StaticField.js +17 -7
- package/serialization/types/StaticFieldType.js +17 -7
- package/serialization/types/StripeCard.js +17 -7
- package/serialization/types/StripeCardBrand.js +17 -7
- package/serialization/types/StripeCardExpires.js +17 -7
- package/serialization/types/StripeDetails.js +17 -7
- package/{dist/serialization/types/SubmitButtonNodeWrite.d.ts → serialization/types/SubmitButton.d.ts} +2 -2
- package/{dist/serialization/types/SubmitButtonNodeWrite.js → serialization/types/SubmitButton.js} +19 -9
- package/{dist/serialization/types/SubmitButtonNode.d.ts → serialization/types/SubmitButtonNodeDom.d.ts} +2 -2
- package/serialization/types/{SubmitButtonNode.js → SubmitButtonNodeDom.js} +19 -9
- package/serialization/types/Text.js +17 -7
- package/{dist/serialization/types/TextInputNodeWrite.d.ts → serialization/types/TextInput.d.ts} +2 -2
- package/serialization/types/{TextInputNodeWrite.js → TextInput.js} +19 -9
- package/serialization/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +2 -2
- package/{dist/serialization/types/TextInputNode.js → serialization/types/TextInputNodeDom.js} +19 -9
- package/serialization/types/TextNode.d.ts +2 -4
- package/serialization/types/TextNode.js +19 -11
- package/serialization/types/TextNodeDom.d.ts +15 -0
- package/serialization/types/TextNodeDom.js +46 -0
- package/serialization/types/TextNodeText.js +17 -7
- package/serialization/types/TriggerType.js +17 -7
- package/serialization/types/UpdatedOrder.d.ts +14 -0
- package/serialization/types/UpdatedOrder.js +45 -0
- package/serialization/types/User.js +17 -7
- package/serialization/types/UserAccess.js +17 -7
- package/serialization/types/UserAccessAuditLogItem.js +17 -7
- package/serialization/types/UserAccessAuditLogItemEventSubType.js +17 -7
- package/serialization/types/UserAccessGroupsItem.js +17 -7
- package/serialization/types/UserAccessGroupsItemType.js +17 -7
- package/serialization/types/UserData.js +17 -7
- package/serialization/types/UserDataData.js +17 -7
- package/serialization/types/UserLimitReached.js +17 -7
- package/serialization/types/UserList.js +17 -7
- package/serialization/types/UserStatus.js +17 -7
- package/serialization/types/UsersNotEnabled.js +17 -7
- package/serialization/types/Webhook.js +17 -7
- package/serialization/types/WebhookFilter.js +17 -7
- package/serialization/types/WebhookList.js +17 -7
- package/serialization/types/WorkspaceAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemActor.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadUserAccessMethod.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemWorkspace.js +17 -7
- package/serialization/types/WorkspaceAuditLogResponse.js +17 -7
- package/serialization/types/WorkspaceInvitation.js +17 -7
- package/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +17 -7
- package/serialization/types/WorkspaceMembership.js +17 -7
- package/serialization/types/WorkspaceMembershipAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceMembershipAuditLogItemEventSubType.js +17 -7
- package/serialization/types/index.d.ts +62 -15
- package/serialization/types/index.js +62 -15
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/CollectionsClient.d.ts +11 -0
- package/wrapper/CollectionsClient.js +18 -0
- package/wrapper/ItemsClient.d.ts +167 -0
- package/wrapper/ItemsClient.js +630 -0
- package/wrapper/PagesClient.d.ts +49 -0
- package/wrapper/PagesClient.js +214 -0
- package/wrapper/WebflowClient.d.ts +6 -0
- package/wrapper/WebflowClient.js +29 -9
- package/wrapper/WebhooksClient.d.ts +0 -1
- package/wrapper/WebhooksClient.js +2 -5
- package/wrapper/schemas/ItemsCreateItemLiveRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsCreateItemLiveRequest.js +2 -0
- package/wrapper/schemas/ItemsCreateItemRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsCreateItemRequest.js +2 -0
- package/wrapper/schemas/ItemsUpdateItemLiveRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsUpdateItemLiveRequest.js +2 -0
- package/wrapper/schemas/ItemsUpdateItemRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsUpdateItemRequest.js +2 -0
- package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts → wrapper/schemas/PageMetadataWrite.d.ts} +13 -17
- package/wrapper/schemas/PageMetadataWrite.js +2 -0
- package/wrapper/schemas/index.d.ts +5 -0
- package/wrapper/schemas/index.js +21 -0
- package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -20
- package/api/resources/users/types/UsersUpdateRequestData.d.ts +0 -11
- package/api/types/TextNodeWrite.d.ts +0 -12
- package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -20
- package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +0 -11
- package/dist/api/types/TextNodeWrite.d.ts +0 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -14
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +0 -35
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +0 -14
- package/dist/serialization/types/ComponentNode.d.ts +0 -15
- package/dist/serialization/types/TextNodeWrite.d.ts +0 -13
- package/dist/serialization/types/TextNodeWrite.js +0 -34
- package/jest.config.js +0 -5
- package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -14
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +0 -35
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +0 -14
- package/serialization/types/ComponentNode.d.ts +0 -15
- package/serialization/types/TextNodeWrite.d.ts +0 -13
- package/serialization/types/TextNodeWrite.js +0 -34
- /package/api/resources/collections/resources/items/{types → client/requests}/ItemsCreateItemLiveRequest.js +0 -0
- /package/api/resources/collections/resources/items/{types → client/requests}/ItemsCreateItemRequest.js +0 -0
- /package/api/resources/collections/resources/items/client/requests/{ItemsPublishItemRequest.js → ItemsUpdateItemLiveRequest.js} +0 -0
- /package/api/resources/{pages/client/requests/UpdatePageSettingsRequest.js → collections/resources/items/client/requests/ItemsUpdateItemRequest.js} +0 -0
- /package/api/resources/{users/client/requests/UsersUpdateRequest.js → collections/resources/items/types/ItemIDs.js} +0 -0
- /package/api/resources/{users/types/UsersUpdateRequestData.js → collections/resources/items/types/ItemIDsWithLocales.js} +0 -0
- /package/api/{types/ComponentInstanceNodePropertyOverridesWrite.js → resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +0 -0
- /package/api/{types/ComponentNode.js → resources/collections/resources/items/types/ItemsCreateItemRequestBody.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests → api/resources/collections/resources/items/types}/ItemsPublishItemRequest.js +0 -0
- /package/api/{types/ImageNode.js → resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js} +0 -0
- /package/api/{types/SearchButtonNode.js → resources/collections/resources/items/types/ItemsUpdateItemsResponse.js} +0 -0
- /package/api/{types/SearchButtonNodeWrite.js → resources/inventory/types/EcommInventoryChangedPayload.js} +0 -0
- /package/api/{types/SelectNode.js → resources/pages/client/requests/PageMetadataWrite.js} +0 -0
- /package/api/{types/SelectNodeWrite.js → resources/pages/types/PageMetadataWriteOpenGraph.js} +0 -0
- /package/api/{types/SubmitButtonNode.js → resources/pages/types/PageMetadataWriteSeo.js} +0 -0
- /package/api/{types/SubmitButtonNodeWrite.js → resources/users/types/UserAccountAddedPayload.js} +0 -0
- /package/api/{types/TextInputNode.js → resources/users/types/UserAccountAddedPayloadPayload.js} +0 -0
- /package/api/{types/TextInputNodeWrite.js → resources/users/types/UserAccountAddedPayloadPayloadData.js} +0 -0
- /package/api/{types/TextNodeWrite.js → resources/users/types/UserAccountDeletedPayload.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → api/resources/users/types/UserAccountDeletedPayloadPayload.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js → api/resources/users/types/UserAccountDeletedPayloadPayloadData.js} +0 -0
- /package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js → api/resources/users/types/UserAccountUpdatedPayload.js} +0 -0
- /package/{dist/api/resources/users/client/requests/UsersUpdateRequest.js → api/resources/users/types/UserAccountUpdatedPayloadPayload.js} +0 -0
- /package/{dist/api/resources/users/types/UsersUpdateRequestData.js → api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js} +0 -0
- /package/{dist/api/types/ComponentInstanceNodePropertyOverridesWrite.js → api/types/CollectionItemChanged.js} +0 -0
- /package/{dist/api/types/ComponentNode.js → api/types/CollectionItemChangedPayload.js} +0 -0
- /package/{dist/api/types/ImageNode.js → api/types/CollectionItemCreated.js} +0 -0
- /package/{dist/api/types/SearchButtonNode.js → api/types/CollectionItemCreatedPayload.js} +0 -0
- /package/{dist/api/types/SearchButtonNodeWrite.js → api/types/CollectionItemRemoved.js} +0 -0
- /package/{dist/api/types/SelectNode.js → api/types/CollectionItemRemovedPayload.js} +0 -0
- /package/{dist/api/types/SelectNodeWrite.js → api/types/CollectionItemRemovedPayloadFieldData.js} +0 -0
- /package/{dist/api/types/SubmitButtonNode.js → api/types/CollectionItemUnpublished.js} +0 -0
- /package/{dist/api/types/SubmitButtonNodeWrite.js → api/types/CollectionItemUnpublishedPayload.js} +0 -0
- /package/{dist/api/types/TextInputNode.js → api/types/CollectionItemUnpublishedPayloadFieldData.js} +0 -0
- /package/{dist/api/types/TextInputNodeWrite.js → api/types/Comment.js} +0 -0
- /package/{dist/api/types/TextNodeWrite.js → api/types/CommentPayload.js} +0 -0
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
45
|
});
|
|
36
46
|
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
37
58
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
60
|
};
|
|
@@ -42,8 +63,9 @@ exports.Items = void 0;
|
|
|
42
63
|
const environments = __importStar(require("../../../../../../environments"));
|
|
43
64
|
const core = __importStar(require("../../../../../../core"));
|
|
44
65
|
const Webflow = __importStar(require("../../../../../index"));
|
|
45
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
46
66
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
67
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
68
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
69
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
48
70
|
class Items {
|
|
49
71
|
constructor(_options) {
|
|
@@ -68,9 +90,12 @@ class Items {
|
|
|
68
90
|
* await client.collections.items.listItems("580e63fc8c9a982ac9b8b745")
|
|
69
91
|
*/
|
|
70
92
|
listItems(collectionId, request = {}, requestOptions) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
93
|
+
return core.HttpResponsePromise.fromPromise(this.__listItems(collectionId, request, requestOptions));
|
|
94
|
+
}
|
|
95
|
+
__listItems(collectionId_1) {
|
|
96
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
|
|
97
|
+
var _a, _b, _c;
|
|
98
|
+
const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
|
|
74
99
|
const _queryParams = {};
|
|
75
100
|
if (cmsLocaleId != null) {
|
|
76
101
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
@@ -87,36 +112,54 @@ class Items {
|
|
|
87
112
|
if (slug != null) {
|
|
88
113
|
_queryParams["slug"] = slug;
|
|
89
114
|
}
|
|
115
|
+
if (lastPublished != null) {
|
|
116
|
+
_queryParams["lastPublished"] = serializers.ItemsListItemsRequestLastPublished.jsonOrThrow(lastPublished, {
|
|
117
|
+
unrecognizedObjectKeys: "passthrough",
|
|
118
|
+
allowUnrecognizedUnionMembers: true,
|
|
119
|
+
allowUnrecognizedEnumValues: true,
|
|
120
|
+
breadcrumbsPrefix: ["request", "lastPublished"],
|
|
121
|
+
});
|
|
122
|
+
}
|
|
90
123
|
if (sortBy != null) {
|
|
91
|
-
_queryParams["sortBy"] = sortBy
|
|
124
|
+
_queryParams["sortBy"] = serializers.collections.ItemsListItemsRequestSortBy.jsonOrThrow(sortBy, {
|
|
125
|
+
unrecognizedObjectKeys: "passthrough",
|
|
126
|
+
allowUnrecognizedUnionMembers: true,
|
|
127
|
+
allowUnrecognizedEnumValues: true,
|
|
128
|
+
});
|
|
92
129
|
}
|
|
93
130
|
if (sortOrder != null) {
|
|
94
|
-
_queryParams["sortOrder"] = sortOrder
|
|
131
|
+
_queryParams["sortOrder"] = serializers.collections.ItemsListItemsRequestSortOrder.jsonOrThrow(sortOrder, {
|
|
132
|
+
unrecognizedObjectKeys: "passthrough",
|
|
133
|
+
allowUnrecognizedUnionMembers: true,
|
|
134
|
+
allowUnrecognizedEnumValues: true,
|
|
135
|
+
});
|
|
95
136
|
}
|
|
96
137
|
const _response = yield core.fetcher({
|
|
97
|
-
url: (0, url_join_1.default)((
|
|
138
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
139
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
98
140
|
method: "GET",
|
|
99
|
-
headers:
|
|
100
|
-
contentType: "application/json",
|
|
141
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
142
|
queryParameters: _queryParams,
|
|
102
|
-
requestType: "json",
|
|
103
143
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
104
144
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
105
145
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
106
146
|
});
|
|
107
147
|
if (_response.ok) {
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
148
|
+
return {
|
|
149
|
+
data: serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
150
|
+
unrecognizedObjectKeys: "passthrough",
|
|
151
|
+
allowUnrecognizedUnionMembers: true,
|
|
152
|
+
allowUnrecognizedEnumValues: true,
|
|
153
|
+
skipValidation: true,
|
|
154
|
+
breadcrumbsPrefix: ["response"],
|
|
155
|
+
}),
|
|
156
|
+
rawResponse: _response.rawResponse,
|
|
157
|
+
};
|
|
115
158
|
}
|
|
116
159
|
if (_response.error.reason === "status-code") {
|
|
117
160
|
switch (_response.error.statusCode) {
|
|
118
161
|
case 400:
|
|
119
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
162
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
120
163
|
case 401:
|
|
121
164
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
122
165
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -124,7 +167,7 @@ class Items {
|
|
|
124
167
|
allowUnrecognizedEnumValues: true,
|
|
125
168
|
skipValidation: true,
|
|
126
169
|
breadcrumbsPrefix: ["response"],
|
|
127
|
-
}));
|
|
170
|
+
}), _response.rawResponse);
|
|
128
171
|
case 404:
|
|
129
172
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
130
173
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -132,7 +175,7 @@ class Items {
|
|
|
132
175
|
allowUnrecognizedEnumValues: true,
|
|
133
176
|
skipValidation: true,
|
|
134
177
|
breadcrumbsPrefix: ["response"],
|
|
135
|
-
}));
|
|
178
|
+
}), _response.rawResponse);
|
|
136
179
|
case 429:
|
|
137
180
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
138
181
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -140,7 +183,7 @@ class Items {
|
|
|
140
183
|
allowUnrecognizedEnumValues: true,
|
|
141
184
|
skipValidation: true,
|
|
142
185
|
breadcrumbsPrefix: ["response"],
|
|
143
|
-
}));
|
|
186
|
+
}), _response.rawResponse);
|
|
144
187
|
case 500:
|
|
145
188
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
146
189
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -148,11 +191,12 @@ class Items {
|
|
|
148
191
|
allowUnrecognizedEnumValues: true,
|
|
149
192
|
skipValidation: true,
|
|
150
193
|
breadcrumbsPrefix: ["response"],
|
|
151
|
-
}));
|
|
194
|
+
}), _response.rawResponse);
|
|
152
195
|
default:
|
|
153
196
|
throw new errors.WebflowError({
|
|
154
197
|
statusCode: _response.error.statusCode,
|
|
155
198
|
body: _response.error.body,
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
156
200
|
});
|
|
157
201
|
}
|
|
158
202
|
}
|
|
@@ -161,12 +205,14 @@ class Items {
|
|
|
161
205
|
throw new errors.WebflowError({
|
|
162
206
|
statusCode: _response.error.statusCode,
|
|
163
207
|
body: _response.error.rawBody,
|
|
208
|
+
rawResponse: _response.rawResponse,
|
|
164
209
|
});
|
|
165
210
|
case "timeout":
|
|
166
211
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items.");
|
|
167
212
|
case "unknown":
|
|
168
213
|
throw new errors.WebflowError({
|
|
169
214
|
message: _response.error.errorMessage,
|
|
215
|
+
rawResponse: _response.rawResponse,
|
|
170
216
|
});
|
|
171
217
|
}
|
|
172
218
|
});
|
|
@@ -175,7 +221,7 @@ class Items {
|
|
|
175
221
|
* Create Item(s) in a Collection.
|
|
176
222
|
*
|
|
177
223
|
*
|
|
178
|
-
* To create items across multiple locales, please use [this endpoint.](/
|
|
224
|
+
* To create items across multiple locales, please use [this endpoint.](/data/reference/cms/collection-items/staged-items/create-items)
|
|
179
225
|
*
|
|
180
226
|
* Required scope | `CMS:write`
|
|
181
227
|
*
|
|
@@ -191,43 +237,57 @@ class Items {
|
|
|
191
237
|
*
|
|
192
238
|
* @example
|
|
193
239
|
* await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
240
|
+
* body: {
|
|
241
|
+
* isArchived: false,
|
|
242
|
+
* isDraft: false,
|
|
243
|
+
* fieldData: {
|
|
244
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
245
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
246
|
+
* }
|
|
199
247
|
* }
|
|
200
248
|
* })
|
|
201
249
|
*
|
|
202
250
|
* @example
|
|
203
251
|
* await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
252
|
+
* body: {
|
|
253
|
+
* items: [{
|
|
254
|
+
* isArchived: false,
|
|
255
|
+
* isDraft: false,
|
|
256
|
+
* fieldData: {
|
|
257
|
+
* name: "Senior Data Analyst",
|
|
258
|
+
* slug: "senior-data-analyst"
|
|
259
|
+
* }
|
|
260
|
+
* }, {
|
|
261
|
+
* isArchived: false,
|
|
262
|
+
* isDraft: false,
|
|
263
|
+
* fieldData: {
|
|
264
|
+
* name: "Product Manager",
|
|
265
|
+
* slug: "product-manager"
|
|
266
|
+
* }
|
|
267
|
+
* }]
|
|
268
|
+
* }
|
|
219
269
|
* })
|
|
220
270
|
*/
|
|
221
271
|
createItem(collectionId, request, requestOptions) {
|
|
222
|
-
|
|
272
|
+
return core.HttpResponsePromise.fromPromise(this.__createItem(collectionId, request, requestOptions));
|
|
273
|
+
}
|
|
274
|
+
__createItem(collectionId, request, requestOptions) {
|
|
223
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
var _a, _b, _c;
|
|
277
|
+
const { skipInvalidFiles, body: _body } = request;
|
|
278
|
+
const _queryParams = {};
|
|
279
|
+
if (skipInvalidFiles != null) {
|
|
280
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
281
|
+
}
|
|
224
282
|
const _response = yield core.fetcher({
|
|
225
|
-
url: (0, url_join_1.default)((
|
|
283
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
284
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
226
285
|
method: "POST",
|
|
227
|
-
headers:
|
|
286
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
287
|
contentType: "application/json",
|
|
288
|
+
queryParameters: _queryParams,
|
|
229
289
|
requestType: "json",
|
|
230
|
-
body: serializers.collections.
|
|
290
|
+
body: serializers.collections.ItemsCreateItemRequestBody.jsonOrThrow(_body, {
|
|
231
291
|
unrecognizedObjectKeys: "passthrough",
|
|
232
292
|
allowUnrecognizedUnionMembers: true,
|
|
233
293
|
allowUnrecognizedEnumValues: true,
|
|
@@ -237,18 +297,21 @@ class Items {
|
|
|
237
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
238
298
|
});
|
|
239
299
|
if (_response.ok) {
|
|
240
|
-
return
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
300
|
+
return {
|
|
301
|
+
data: serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
302
|
+
unrecognizedObjectKeys: "passthrough",
|
|
303
|
+
allowUnrecognizedUnionMembers: true,
|
|
304
|
+
allowUnrecognizedEnumValues: true,
|
|
305
|
+
skipValidation: true,
|
|
306
|
+
breadcrumbsPrefix: ["response"],
|
|
307
|
+
}),
|
|
308
|
+
rawResponse: _response.rawResponse,
|
|
309
|
+
};
|
|
247
310
|
}
|
|
248
311
|
if (_response.error.reason === "status-code") {
|
|
249
312
|
switch (_response.error.statusCode) {
|
|
250
313
|
case 400:
|
|
251
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
314
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
252
315
|
case 401:
|
|
253
316
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
254
317
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -256,7 +319,7 @@ class Items {
|
|
|
256
319
|
allowUnrecognizedEnumValues: true,
|
|
257
320
|
skipValidation: true,
|
|
258
321
|
breadcrumbsPrefix: ["response"],
|
|
259
|
-
}));
|
|
322
|
+
}), _response.rawResponse);
|
|
260
323
|
case 404:
|
|
261
324
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
262
325
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -264,7 +327,7 @@ class Items {
|
|
|
264
327
|
allowUnrecognizedEnumValues: true,
|
|
265
328
|
skipValidation: true,
|
|
266
329
|
breadcrumbsPrefix: ["response"],
|
|
267
|
-
}));
|
|
330
|
+
}), _response.rawResponse);
|
|
268
331
|
case 429:
|
|
269
332
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
270
333
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -272,7 +335,7 @@ class Items {
|
|
|
272
335
|
allowUnrecognizedEnumValues: true,
|
|
273
336
|
skipValidation: true,
|
|
274
337
|
breadcrumbsPrefix: ["response"],
|
|
275
|
-
}));
|
|
338
|
+
}), _response.rawResponse);
|
|
276
339
|
case 500:
|
|
277
340
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
278
341
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -280,11 +343,12 @@ class Items {
|
|
|
280
343
|
allowUnrecognizedEnumValues: true,
|
|
281
344
|
skipValidation: true,
|
|
282
345
|
breadcrumbsPrefix: ["response"],
|
|
283
|
-
}));
|
|
346
|
+
}), _response.rawResponse);
|
|
284
347
|
default:
|
|
285
348
|
throw new errors.WebflowError({
|
|
286
349
|
statusCode: _response.error.statusCode,
|
|
287
350
|
body: _response.error.body,
|
|
351
|
+
rawResponse: _response.rawResponse,
|
|
288
352
|
});
|
|
289
353
|
}
|
|
290
354
|
}
|
|
@@ -293,12 +357,14 @@ class Items {
|
|
|
293
357
|
throw new errors.WebflowError({
|
|
294
358
|
statusCode: _response.error.statusCode,
|
|
295
359
|
body: _response.error.rawBody,
|
|
360
|
+
rawResponse: _response.rawResponse,
|
|
296
361
|
});
|
|
297
362
|
case "timeout":
|
|
298
363
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items.");
|
|
299
364
|
case "unknown":
|
|
300
365
|
throw new errors.WebflowError({
|
|
301
366
|
message: _response.error.errorMessage,
|
|
367
|
+
rawResponse: _response.rawResponse,
|
|
302
368
|
});
|
|
303
369
|
}
|
|
304
370
|
});
|
|
@@ -329,12 +395,16 @@ class Items {
|
|
|
329
395
|
* })
|
|
330
396
|
*/
|
|
331
397
|
deleteItems(collectionId, request, requestOptions) {
|
|
332
|
-
|
|
398
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteItems(collectionId, request, requestOptions));
|
|
399
|
+
}
|
|
400
|
+
__deleteItems(collectionId, request, requestOptions) {
|
|
333
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
var _a, _b, _c;
|
|
334
403
|
const _response = yield core.fetcher({
|
|
335
|
-
url: (0, url_join_1.default)((
|
|
404
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
405
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
336
406
|
method: "DELETE",
|
|
337
|
-
headers:
|
|
407
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
338
408
|
contentType: "application/json",
|
|
339
409
|
requestType: "json",
|
|
340
410
|
body: serializers.collections.ItemsDeleteItemsRequest.jsonOrThrow(request, {
|
|
@@ -347,12 +417,12 @@ class Items {
|
|
|
347
417
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
348
418
|
});
|
|
349
419
|
if (_response.ok) {
|
|
350
|
-
return;
|
|
420
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
351
421
|
}
|
|
352
422
|
if (_response.error.reason === "status-code") {
|
|
353
423
|
switch (_response.error.statusCode) {
|
|
354
424
|
case 400:
|
|
355
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
425
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
356
426
|
case 401:
|
|
357
427
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
358
428
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -360,7 +430,7 @@ class Items {
|
|
|
360
430
|
allowUnrecognizedEnumValues: true,
|
|
361
431
|
skipValidation: true,
|
|
362
432
|
breadcrumbsPrefix: ["response"],
|
|
363
|
-
}));
|
|
433
|
+
}), _response.rawResponse);
|
|
364
434
|
case 404:
|
|
365
435
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
366
436
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -368,9 +438,9 @@ class Items {
|
|
|
368
438
|
allowUnrecognizedEnumValues: true,
|
|
369
439
|
skipValidation: true,
|
|
370
440
|
breadcrumbsPrefix: ["response"],
|
|
371
|
-
}));
|
|
441
|
+
}), _response.rawResponse);
|
|
372
442
|
case 409:
|
|
373
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
443
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
374
444
|
case 429:
|
|
375
445
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
376
446
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -378,7 +448,7 @@ class Items {
|
|
|
378
448
|
allowUnrecognizedEnumValues: true,
|
|
379
449
|
skipValidation: true,
|
|
380
450
|
breadcrumbsPrefix: ["response"],
|
|
381
|
-
}));
|
|
451
|
+
}), _response.rawResponse);
|
|
382
452
|
case 500:
|
|
383
453
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
384
454
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -386,11 +456,12 @@ class Items {
|
|
|
386
456
|
allowUnrecognizedEnumValues: true,
|
|
387
457
|
skipValidation: true,
|
|
388
458
|
breadcrumbsPrefix: ["response"],
|
|
389
|
-
}));
|
|
459
|
+
}), _response.rawResponse);
|
|
390
460
|
default:
|
|
391
461
|
throw new errors.WebflowError({
|
|
392
462
|
statusCode: _response.error.statusCode,
|
|
393
463
|
body: _response.error.body,
|
|
464
|
+
rawResponse: _response.rawResponse,
|
|
394
465
|
});
|
|
395
466
|
}
|
|
396
467
|
}
|
|
@@ -399,12 +470,14 @@ class Items {
|
|
|
399
470
|
throw new errors.WebflowError({
|
|
400
471
|
statusCode: _response.error.statusCode,
|
|
401
472
|
body: _response.error.rawBody,
|
|
473
|
+
rawResponse: _response.rawResponse,
|
|
402
474
|
});
|
|
403
475
|
case "timeout":
|
|
404
476
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items.");
|
|
405
477
|
case "unknown":
|
|
406
478
|
throw new errors.WebflowError({
|
|
407
479
|
message: _response.error.errorMessage,
|
|
480
|
+
rawResponse: _response.rawResponse,
|
|
408
481
|
});
|
|
409
482
|
}
|
|
410
483
|
});
|
|
@@ -483,15 +556,25 @@ class Items {
|
|
|
483
556
|
* })
|
|
484
557
|
*/
|
|
485
558
|
updateItems(collectionId, request = {}, requestOptions) {
|
|
486
|
-
|
|
487
|
-
|
|
559
|
+
return core.HttpResponsePromise.fromPromise(this.__updateItems(collectionId, request, requestOptions));
|
|
560
|
+
}
|
|
561
|
+
__updateItems(collectionId_1) {
|
|
562
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
|
|
563
|
+
var _a, _b, _c;
|
|
564
|
+
const { skipInvalidFiles } = request, _body = __rest(request, ["skipInvalidFiles"]);
|
|
565
|
+
const _queryParams = {};
|
|
566
|
+
if (skipInvalidFiles != null) {
|
|
567
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
568
|
+
}
|
|
488
569
|
const _response = yield core.fetcher({
|
|
489
|
-
url: (0, url_join_1.default)((
|
|
570
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
571
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
490
572
|
method: "PATCH",
|
|
491
|
-
headers:
|
|
573
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
492
574
|
contentType: "application/json",
|
|
575
|
+
queryParameters: _queryParams,
|
|
493
576
|
requestType: "json",
|
|
494
|
-
body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(
|
|
577
|
+
body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(_body, {
|
|
495
578
|
unrecognizedObjectKeys: "passthrough",
|
|
496
579
|
allowUnrecognizedUnionMembers: true,
|
|
497
580
|
allowUnrecognizedEnumValues: true,
|
|
@@ -501,18 +584,21 @@ class Items {
|
|
|
501
584
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
502
585
|
});
|
|
503
586
|
if (_response.ok) {
|
|
504
|
-
return
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
587
|
+
return {
|
|
588
|
+
data: serializers.collections.ItemsUpdateItemsResponse.parseOrThrow(_response.body, {
|
|
589
|
+
unrecognizedObjectKeys: "passthrough",
|
|
590
|
+
allowUnrecognizedUnionMembers: true,
|
|
591
|
+
allowUnrecognizedEnumValues: true,
|
|
592
|
+
skipValidation: true,
|
|
593
|
+
breadcrumbsPrefix: ["response"],
|
|
594
|
+
}),
|
|
595
|
+
rawResponse: _response.rawResponse,
|
|
596
|
+
};
|
|
511
597
|
}
|
|
512
598
|
if (_response.error.reason === "status-code") {
|
|
513
599
|
switch (_response.error.statusCode) {
|
|
514
600
|
case 400:
|
|
515
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
601
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
516
602
|
case 401:
|
|
517
603
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
518
604
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -520,7 +606,7 @@ class Items {
|
|
|
520
606
|
allowUnrecognizedEnumValues: true,
|
|
521
607
|
skipValidation: true,
|
|
522
608
|
breadcrumbsPrefix: ["response"],
|
|
523
|
-
}));
|
|
609
|
+
}), _response.rawResponse);
|
|
524
610
|
case 404:
|
|
525
611
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
526
612
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -528,7 +614,7 @@ class Items {
|
|
|
528
614
|
allowUnrecognizedEnumValues: true,
|
|
529
615
|
skipValidation: true,
|
|
530
616
|
breadcrumbsPrefix: ["response"],
|
|
531
|
-
}));
|
|
617
|
+
}), _response.rawResponse);
|
|
532
618
|
case 429:
|
|
533
619
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
534
620
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -536,7 +622,7 @@ class Items {
|
|
|
536
622
|
allowUnrecognizedEnumValues: true,
|
|
537
623
|
skipValidation: true,
|
|
538
624
|
breadcrumbsPrefix: ["response"],
|
|
539
|
-
}));
|
|
625
|
+
}), _response.rawResponse);
|
|
540
626
|
case 500:
|
|
541
627
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
542
628
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -544,11 +630,12 @@ class Items {
|
|
|
544
630
|
allowUnrecognizedEnumValues: true,
|
|
545
631
|
skipValidation: true,
|
|
546
632
|
breadcrumbsPrefix: ["response"],
|
|
547
|
-
}));
|
|
633
|
+
}), _response.rawResponse);
|
|
548
634
|
default:
|
|
549
635
|
throw new errors.WebflowError({
|
|
550
636
|
statusCode: _response.error.statusCode,
|
|
551
637
|
body: _response.error.body,
|
|
638
|
+
rawResponse: _response.rawResponse,
|
|
552
639
|
});
|
|
553
640
|
}
|
|
554
641
|
}
|
|
@@ -557,12 +644,14 @@ class Items {
|
|
|
557
644
|
throw new errors.WebflowError({
|
|
558
645
|
statusCode: _response.error.statusCode,
|
|
559
646
|
body: _response.error.rawBody,
|
|
647
|
+
rawResponse: _response.rawResponse,
|
|
560
648
|
});
|
|
561
649
|
case "timeout":
|
|
562
650
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items.");
|
|
563
651
|
case "unknown":
|
|
564
652
|
throw new errors.WebflowError({
|
|
565
653
|
message: _response.error.errorMessage,
|
|
654
|
+
rawResponse: _response.rawResponse,
|
|
566
655
|
});
|
|
567
656
|
}
|
|
568
657
|
});
|
|
@@ -591,9 +680,12 @@ class Items {
|
|
|
591
680
|
* await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745")
|
|
592
681
|
*/
|
|
593
682
|
listItemsLive(collectionId, request = {}, requestOptions) {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
683
|
+
return core.HttpResponsePromise.fromPromise(this.__listItemsLive(collectionId, request, requestOptions));
|
|
684
|
+
}
|
|
685
|
+
__listItemsLive(collectionId_1) {
|
|
686
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
|
|
687
|
+
var _a, _b, _c;
|
|
688
|
+
const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
|
|
597
689
|
const _queryParams = {};
|
|
598
690
|
if (cmsLocaleId != null) {
|
|
599
691
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
@@ -610,37 +702,54 @@ class Items {
|
|
|
610
702
|
if (slug != null) {
|
|
611
703
|
_queryParams["slug"] = slug;
|
|
612
704
|
}
|
|
705
|
+
if (lastPublished != null) {
|
|
706
|
+
_queryParams["lastPublished"] = serializers.ItemsListItemsLiveRequestLastPublished.jsonOrThrow(lastPublished, {
|
|
707
|
+
unrecognizedObjectKeys: "passthrough",
|
|
708
|
+
allowUnrecognizedUnionMembers: true,
|
|
709
|
+
allowUnrecognizedEnumValues: true,
|
|
710
|
+
breadcrumbsPrefix: ["request", "lastPublished"],
|
|
711
|
+
});
|
|
712
|
+
}
|
|
613
713
|
if (sortBy != null) {
|
|
614
|
-
_queryParams["sortBy"] = sortBy
|
|
714
|
+
_queryParams["sortBy"] = serializers.collections.ItemsListItemsLiveRequestSortBy.jsonOrThrow(sortBy, {
|
|
715
|
+
unrecognizedObjectKeys: "passthrough",
|
|
716
|
+
allowUnrecognizedUnionMembers: true,
|
|
717
|
+
allowUnrecognizedEnumValues: true,
|
|
718
|
+
});
|
|
615
719
|
}
|
|
616
720
|
if (sortOrder != null) {
|
|
617
|
-
_queryParams["sortOrder"] = sortOrder
|
|
721
|
+
_queryParams["sortOrder"] = serializers.collections.ItemsListItemsLiveRequestSortOrder.jsonOrThrow(sortOrder, {
|
|
722
|
+
unrecognizedObjectKeys: "passthrough",
|
|
723
|
+
allowUnrecognizedUnionMembers: true,
|
|
724
|
+
allowUnrecognizedEnumValues: true,
|
|
725
|
+
});
|
|
618
726
|
}
|
|
619
727
|
const _response = yield core.fetcher({
|
|
620
|
-
url: (0, url_join_1.default)((
|
|
728
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
621
729
|
.dataApi, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
622
730
|
method: "GET",
|
|
623
|
-
headers:
|
|
624
|
-
contentType: "application/json",
|
|
731
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
625
732
|
queryParameters: _queryParams,
|
|
626
|
-
requestType: "json",
|
|
627
733
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
628
734
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
629
735
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
630
736
|
});
|
|
631
737
|
if (_response.ok) {
|
|
632
|
-
return
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
738
|
+
return {
|
|
739
|
+
data: serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
740
|
+
unrecognizedObjectKeys: "passthrough",
|
|
741
|
+
allowUnrecognizedUnionMembers: true,
|
|
742
|
+
allowUnrecognizedEnumValues: true,
|
|
743
|
+
skipValidation: true,
|
|
744
|
+
breadcrumbsPrefix: ["response"],
|
|
745
|
+
}),
|
|
746
|
+
rawResponse: _response.rawResponse,
|
|
747
|
+
};
|
|
639
748
|
}
|
|
640
749
|
if (_response.error.reason === "status-code") {
|
|
641
750
|
switch (_response.error.statusCode) {
|
|
642
751
|
case 400:
|
|
643
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
752
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
644
753
|
case 401:
|
|
645
754
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
646
755
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -648,7 +757,7 @@ class Items {
|
|
|
648
757
|
allowUnrecognizedEnumValues: true,
|
|
649
758
|
skipValidation: true,
|
|
650
759
|
breadcrumbsPrefix: ["response"],
|
|
651
|
-
}));
|
|
760
|
+
}), _response.rawResponse);
|
|
652
761
|
case 404:
|
|
653
762
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
654
763
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -656,7 +765,7 @@ class Items {
|
|
|
656
765
|
allowUnrecognizedEnumValues: true,
|
|
657
766
|
skipValidation: true,
|
|
658
767
|
breadcrumbsPrefix: ["response"],
|
|
659
|
-
}));
|
|
768
|
+
}), _response.rawResponse);
|
|
660
769
|
case 429:
|
|
661
770
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
662
771
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -664,7 +773,7 @@ class Items {
|
|
|
664
773
|
allowUnrecognizedEnumValues: true,
|
|
665
774
|
skipValidation: true,
|
|
666
775
|
breadcrumbsPrefix: ["response"],
|
|
667
|
-
}));
|
|
776
|
+
}), _response.rawResponse);
|
|
668
777
|
case 500:
|
|
669
778
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
670
779
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -672,11 +781,12 @@ class Items {
|
|
|
672
781
|
allowUnrecognizedEnumValues: true,
|
|
673
782
|
skipValidation: true,
|
|
674
783
|
breadcrumbsPrefix: ["response"],
|
|
675
|
-
}));
|
|
784
|
+
}), _response.rawResponse);
|
|
676
785
|
default:
|
|
677
786
|
throw new errors.WebflowError({
|
|
678
787
|
statusCode: _response.error.statusCode,
|
|
679
788
|
body: _response.error.body,
|
|
789
|
+
rawResponse: _response.rawResponse,
|
|
680
790
|
});
|
|
681
791
|
}
|
|
682
792
|
}
|
|
@@ -685,12 +795,14 @@ class Items {
|
|
|
685
795
|
throw new errors.WebflowError({
|
|
686
796
|
statusCode: _response.error.statusCode,
|
|
687
797
|
body: _response.error.rawBody,
|
|
798
|
+
rawResponse: _response.rawResponse,
|
|
688
799
|
});
|
|
689
800
|
case "timeout":
|
|
690
801
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items/live.");
|
|
691
802
|
case "unknown":
|
|
692
803
|
throw new errors.WebflowError({
|
|
693
804
|
message: _response.error.errorMessage,
|
|
805
|
+
rawResponse: _response.rawResponse,
|
|
694
806
|
});
|
|
695
807
|
}
|
|
696
808
|
});
|
|
@@ -699,7 +811,7 @@ class Items {
|
|
|
699
811
|
* Create item(s) in a collection that will be immediately published to the live site.
|
|
700
812
|
*
|
|
701
813
|
*
|
|
702
|
-
* To create items across multiple locales, [please use this endpoint.](/
|
|
814
|
+
* To create items across multiple locales, [please use this endpoint.](/data/reference/cms/collection-items/staged-items/create-items)
|
|
703
815
|
*
|
|
704
816
|
*
|
|
705
817
|
* Required scope | `CMS:write`
|
|
@@ -716,43 +828,57 @@ class Items {
|
|
|
716
828
|
*
|
|
717
829
|
* @example
|
|
718
830
|
* await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
*
|
|
722
|
-
*
|
|
723
|
-
*
|
|
831
|
+
* body: {
|
|
832
|
+
* isArchived: false,
|
|
833
|
+
* isDraft: false,
|
|
834
|
+
* fieldData: {
|
|
835
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
836
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
837
|
+
* }
|
|
724
838
|
* }
|
|
725
839
|
* })
|
|
726
840
|
*
|
|
727
841
|
* @example
|
|
728
842
|
* await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
|
|
729
|
-
*
|
|
730
|
-
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
*
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
*
|
|
740
|
-
*
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
843
|
+
* body: {
|
|
844
|
+
* items: [{
|
|
845
|
+
* isArchived: false,
|
|
846
|
+
* isDraft: false,
|
|
847
|
+
* fieldData: {
|
|
848
|
+
* name: "Senior Data Analyst",
|
|
849
|
+
* slug: "senior-data-analyst"
|
|
850
|
+
* }
|
|
851
|
+
* }, {
|
|
852
|
+
* isArchived: false,
|
|
853
|
+
* isDraft: false,
|
|
854
|
+
* fieldData: {
|
|
855
|
+
* name: "Product Manager",
|
|
856
|
+
* slug: "product-manager"
|
|
857
|
+
* }
|
|
858
|
+
* }]
|
|
859
|
+
* }
|
|
744
860
|
* })
|
|
745
861
|
*/
|
|
746
862
|
createItemLive(collectionId, request, requestOptions) {
|
|
747
|
-
|
|
863
|
+
return core.HttpResponsePromise.fromPromise(this.__createItemLive(collectionId, request, requestOptions));
|
|
864
|
+
}
|
|
865
|
+
__createItemLive(collectionId, request, requestOptions) {
|
|
748
866
|
return __awaiter(this, void 0, void 0, function* () {
|
|
867
|
+
var _a, _b, _c;
|
|
868
|
+
const { skipInvalidFiles, body: _body } = request;
|
|
869
|
+
const _queryParams = {};
|
|
870
|
+
if (skipInvalidFiles != null) {
|
|
871
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
872
|
+
}
|
|
749
873
|
const _response = yield core.fetcher({
|
|
750
|
-
url: (0, url_join_1.default)((
|
|
874
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
875
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
751
876
|
method: "POST",
|
|
752
|
-
headers:
|
|
877
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
753
878
|
contentType: "application/json",
|
|
879
|
+
queryParameters: _queryParams,
|
|
754
880
|
requestType: "json",
|
|
755
|
-
body: serializers.collections.
|
|
881
|
+
body: serializers.collections.ItemsCreateItemLiveRequestBody.jsonOrThrow(_body, {
|
|
756
882
|
unrecognizedObjectKeys: "passthrough",
|
|
757
883
|
allowUnrecognizedUnionMembers: true,
|
|
758
884
|
allowUnrecognizedEnumValues: true,
|
|
@@ -762,18 +888,21 @@ class Items {
|
|
|
762
888
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
763
889
|
});
|
|
764
890
|
if (_response.ok) {
|
|
765
|
-
return
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
891
|
+
return {
|
|
892
|
+
data: serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
893
|
+
unrecognizedObjectKeys: "passthrough",
|
|
894
|
+
allowUnrecognizedUnionMembers: true,
|
|
895
|
+
allowUnrecognizedEnumValues: true,
|
|
896
|
+
skipValidation: true,
|
|
897
|
+
breadcrumbsPrefix: ["response"],
|
|
898
|
+
}),
|
|
899
|
+
rawResponse: _response.rawResponse,
|
|
900
|
+
};
|
|
772
901
|
}
|
|
773
902
|
if (_response.error.reason === "status-code") {
|
|
774
903
|
switch (_response.error.statusCode) {
|
|
775
904
|
case 400:
|
|
776
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
905
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
777
906
|
case 401:
|
|
778
907
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
779
908
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -781,7 +910,7 @@ class Items {
|
|
|
781
910
|
allowUnrecognizedEnumValues: true,
|
|
782
911
|
skipValidation: true,
|
|
783
912
|
breadcrumbsPrefix: ["response"],
|
|
784
|
-
}));
|
|
913
|
+
}), _response.rawResponse);
|
|
785
914
|
case 404:
|
|
786
915
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
787
916
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -789,7 +918,7 @@ class Items {
|
|
|
789
918
|
allowUnrecognizedEnumValues: true,
|
|
790
919
|
skipValidation: true,
|
|
791
920
|
breadcrumbsPrefix: ["response"],
|
|
792
|
-
}));
|
|
921
|
+
}), _response.rawResponse);
|
|
793
922
|
case 429:
|
|
794
923
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
795
924
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -797,7 +926,7 @@ class Items {
|
|
|
797
926
|
allowUnrecognizedEnumValues: true,
|
|
798
927
|
skipValidation: true,
|
|
799
928
|
breadcrumbsPrefix: ["response"],
|
|
800
|
-
}));
|
|
929
|
+
}), _response.rawResponse);
|
|
801
930
|
case 500:
|
|
802
931
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
803
932
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -805,11 +934,12 @@ class Items {
|
|
|
805
934
|
allowUnrecognizedEnumValues: true,
|
|
806
935
|
skipValidation: true,
|
|
807
936
|
breadcrumbsPrefix: ["response"],
|
|
808
|
-
}));
|
|
937
|
+
}), _response.rawResponse);
|
|
809
938
|
default:
|
|
810
939
|
throw new errors.WebflowError({
|
|
811
940
|
statusCode: _response.error.statusCode,
|
|
812
941
|
body: _response.error.body,
|
|
942
|
+
rawResponse: _response.rawResponse,
|
|
813
943
|
});
|
|
814
944
|
}
|
|
815
945
|
}
|
|
@@ -818,20 +948,20 @@ class Items {
|
|
|
818
948
|
throw new errors.WebflowError({
|
|
819
949
|
statusCode: _response.error.statusCode,
|
|
820
950
|
body: _response.error.rawBody,
|
|
951
|
+
rawResponse: _response.rawResponse,
|
|
821
952
|
});
|
|
822
953
|
case "timeout":
|
|
823
954
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items/live.");
|
|
824
955
|
case "unknown":
|
|
825
956
|
throw new errors.WebflowError({
|
|
826
957
|
message: _response.error.errorMessage,
|
|
958
|
+
rawResponse: _response.rawResponse,
|
|
827
959
|
});
|
|
828
960
|
}
|
|
829
961
|
});
|
|
830
962
|
}
|
|
831
963
|
/**
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
* Using this endpoint to delete published item(s) will unpublish the item(s) from the live site and set the item(s) `isDraft` property to `true`.
|
|
964
|
+
* Unpublish up to 100 items from the live site and set the `isDraft` property to `true`.
|
|
835
965
|
*
|
|
836
966
|
* <Tip title="Localization Tip">Items will only be unpublished in the primary locale unless a `cmsLocaleId` is included in the request.</Tip>
|
|
837
967
|
*
|
|
@@ -855,12 +985,16 @@ class Items {
|
|
|
855
985
|
* })
|
|
856
986
|
*/
|
|
857
987
|
deleteItemsLive(collectionId, request, requestOptions) {
|
|
858
|
-
|
|
988
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteItemsLive(collectionId, request, requestOptions));
|
|
989
|
+
}
|
|
990
|
+
__deleteItemsLive(collectionId, request, requestOptions) {
|
|
859
991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
992
|
+
var _a, _b, _c;
|
|
860
993
|
const _response = yield core.fetcher({
|
|
861
|
-
url: (0, url_join_1.default)((
|
|
994
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
995
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
862
996
|
method: "DELETE",
|
|
863
|
-
headers:
|
|
997
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
864
998
|
contentType: "application/json",
|
|
865
999
|
requestType: "json",
|
|
866
1000
|
body: serializers.collections.ItemsDeleteItemsLiveRequest.jsonOrThrow(request, {
|
|
@@ -873,12 +1007,12 @@ class Items {
|
|
|
873
1007
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
874
1008
|
});
|
|
875
1009
|
if (_response.ok) {
|
|
876
|
-
return;
|
|
1010
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
877
1011
|
}
|
|
878
1012
|
if (_response.error.reason === "status-code") {
|
|
879
1013
|
switch (_response.error.statusCode) {
|
|
880
1014
|
case 400:
|
|
881
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1015
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
882
1016
|
case 401:
|
|
883
1017
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
884
1018
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -886,7 +1020,7 @@ class Items {
|
|
|
886
1020
|
allowUnrecognizedEnumValues: true,
|
|
887
1021
|
skipValidation: true,
|
|
888
1022
|
breadcrumbsPrefix: ["response"],
|
|
889
|
-
}));
|
|
1023
|
+
}), _response.rawResponse);
|
|
890
1024
|
case 404:
|
|
891
1025
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
892
1026
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -894,7 +1028,7 @@ class Items {
|
|
|
894
1028
|
allowUnrecognizedEnumValues: true,
|
|
895
1029
|
skipValidation: true,
|
|
896
1030
|
breadcrumbsPrefix: ["response"],
|
|
897
|
-
}));
|
|
1031
|
+
}), _response.rawResponse);
|
|
898
1032
|
case 429:
|
|
899
1033
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
900
1034
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -902,7 +1036,7 @@ class Items {
|
|
|
902
1036
|
allowUnrecognizedEnumValues: true,
|
|
903
1037
|
skipValidation: true,
|
|
904
1038
|
breadcrumbsPrefix: ["response"],
|
|
905
|
-
}));
|
|
1039
|
+
}), _response.rawResponse);
|
|
906
1040
|
case 500:
|
|
907
1041
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
908
1042
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -910,11 +1044,12 @@ class Items {
|
|
|
910
1044
|
allowUnrecognizedEnumValues: true,
|
|
911
1045
|
skipValidation: true,
|
|
912
1046
|
breadcrumbsPrefix: ["response"],
|
|
913
|
-
}));
|
|
1047
|
+
}), _response.rawResponse);
|
|
914
1048
|
default:
|
|
915
1049
|
throw new errors.WebflowError({
|
|
916
1050
|
statusCode: _response.error.statusCode,
|
|
917
1051
|
body: _response.error.body,
|
|
1052
|
+
rawResponse: _response.rawResponse,
|
|
918
1053
|
});
|
|
919
1054
|
}
|
|
920
1055
|
}
|
|
@@ -923,12 +1058,14 @@ class Items {
|
|
|
923
1058
|
throw new errors.WebflowError({
|
|
924
1059
|
statusCode: _response.error.statusCode,
|
|
925
1060
|
body: _response.error.rawBody,
|
|
1061
|
+
rawResponse: _response.rawResponse,
|
|
926
1062
|
});
|
|
927
1063
|
case "timeout":
|
|
928
1064
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items/live.");
|
|
929
1065
|
case "unknown":
|
|
930
1066
|
throw new errors.WebflowError({
|
|
931
1067
|
message: _response.error.errorMessage,
|
|
1068
|
+
rawResponse: _response.rawResponse,
|
|
932
1069
|
});
|
|
933
1070
|
}
|
|
934
1071
|
});
|
|
@@ -1006,15 +1143,25 @@ class Items {
|
|
|
1006
1143
|
* })
|
|
1007
1144
|
*/
|
|
1008
1145
|
updateItemsLive(collectionId, request = {}, requestOptions) {
|
|
1009
|
-
|
|
1010
|
-
|
|
1146
|
+
return core.HttpResponsePromise.fromPromise(this.__updateItemsLive(collectionId, request, requestOptions));
|
|
1147
|
+
}
|
|
1148
|
+
__updateItemsLive(collectionId_1) {
|
|
1149
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
|
|
1150
|
+
var _a, _b, _c;
|
|
1151
|
+
const { skipInvalidFiles } = request, _body = __rest(request, ["skipInvalidFiles"]);
|
|
1152
|
+
const _queryParams = {};
|
|
1153
|
+
if (skipInvalidFiles != null) {
|
|
1154
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
1155
|
+
}
|
|
1011
1156
|
const _response = yield core.fetcher({
|
|
1012
|
-
url: (0, url_join_1.default)((
|
|
1157
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1158
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
1013
1159
|
method: "PATCH",
|
|
1014
|
-
headers:
|
|
1160
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1015
1161
|
contentType: "application/json",
|
|
1162
|
+
queryParameters: _queryParams,
|
|
1016
1163
|
requestType: "json",
|
|
1017
|
-
body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(
|
|
1164
|
+
body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(_body, {
|
|
1018
1165
|
unrecognizedObjectKeys: "passthrough",
|
|
1019
1166
|
allowUnrecognizedUnionMembers: true,
|
|
1020
1167
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1024,18 +1171,21 @@ class Items {
|
|
|
1024
1171
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1025
1172
|
});
|
|
1026
1173
|
if (_response.ok) {
|
|
1027
|
-
return
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1174
|
+
return {
|
|
1175
|
+
data: serializers.CollectionItemListNoPagination.parseOrThrow(_response.body, {
|
|
1176
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1177
|
+
allowUnrecognizedUnionMembers: true,
|
|
1178
|
+
allowUnrecognizedEnumValues: true,
|
|
1179
|
+
skipValidation: true,
|
|
1180
|
+
breadcrumbsPrefix: ["response"],
|
|
1181
|
+
}),
|
|
1182
|
+
rawResponse: _response.rawResponse,
|
|
1183
|
+
};
|
|
1034
1184
|
}
|
|
1035
1185
|
if (_response.error.reason === "status-code") {
|
|
1036
1186
|
switch (_response.error.statusCode) {
|
|
1037
1187
|
case 400:
|
|
1038
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1188
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1039
1189
|
case 401:
|
|
1040
1190
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1041
1191
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1043,7 +1193,7 @@ class Items {
|
|
|
1043
1193
|
allowUnrecognizedEnumValues: true,
|
|
1044
1194
|
skipValidation: true,
|
|
1045
1195
|
breadcrumbsPrefix: ["response"],
|
|
1046
|
-
}));
|
|
1196
|
+
}), _response.rawResponse);
|
|
1047
1197
|
case 404:
|
|
1048
1198
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1049
1199
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1051,9 +1201,9 @@ class Items {
|
|
|
1051
1201
|
allowUnrecognizedEnumValues: true,
|
|
1052
1202
|
skipValidation: true,
|
|
1053
1203
|
breadcrumbsPrefix: ["response"],
|
|
1054
|
-
}));
|
|
1204
|
+
}), _response.rawResponse);
|
|
1055
1205
|
case 409:
|
|
1056
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
1206
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
1057
1207
|
case 429:
|
|
1058
1208
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1059
1209
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1061,7 +1211,7 @@ class Items {
|
|
|
1061
1211
|
allowUnrecognizedEnumValues: true,
|
|
1062
1212
|
skipValidation: true,
|
|
1063
1213
|
breadcrumbsPrefix: ["response"],
|
|
1064
|
-
}));
|
|
1214
|
+
}), _response.rawResponse);
|
|
1065
1215
|
case 500:
|
|
1066
1216
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1067
1217
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1069,11 +1219,12 @@ class Items {
|
|
|
1069
1219
|
allowUnrecognizedEnumValues: true,
|
|
1070
1220
|
skipValidation: true,
|
|
1071
1221
|
breadcrumbsPrefix: ["response"],
|
|
1072
|
-
}));
|
|
1222
|
+
}), _response.rawResponse);
|
|
1073
1223
|
default:
|
|
1074
1224
|
throw new errors.WebflowError({
|
|
1075
1225
|
statusCode: _response.error.statusCode,
|
|
1076
1226
|
body: _response.error.body,
|
|
1227
|
+
rawResponse: _response.rawResponse,
|
|
1077
1228
|
});
|
|
1078
1229
|
}
|
|
1079
1230
|
}
|
|
@@ -1082,12 +1233,14 @@ class Items {
|
|
|
1082
1233
|
throw new errors.WebflowError({
|
|
1083
1234
|
statusCode: _response.error.statusCode,
|
|
1084
1235
|
body: _response.error.rawBody,
|
|
1236
|
+
rawResponse: _response.rawResponse,
|
|
1085
1237
|
});
|
|
1086
1238
|
case "timeout":
|
|
1087
1239
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items/live.");
|
|
1088
1240
|
case "unknown":
|
|
1089
1241
|
throw new errors.WebflowError({
|
|
1090
1242
|
message: _response.error.errorMessage,
|
|
1243
|
+
rawResponse: _response.rawResponse,
|
|
1091
1244
|
});
|
|
1092
1245
|
}
|
|
1093
1246
|
});
|
|
@@ -1138,15 +1291,25 @@ class Items {
|
|
|
1138
1291
|
* })
|
|
1139
1292
|
*/
|
|
1140
1293
|
createItems(collectionId, request, requestOptions) {
|
|
1141
|
-
|
|
1294
|
+
return core.HttpResponsePromise.fromPromise(this.__createItems(collectionId, request, requestOptions));
|
|
1295
|
+
}
|
|
1296
|
+
__createItems(collectionId, request, requestOptions) {
|
|
1142
1297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1298
|
+
var _a, _b, _c;
|
|
1299
|
+
const { skipInvalidFiles } = request, _body = __rest(request, ["skipInvalidFiles"]);
|
|
1300
|
+
const _queryParams = {};
|
|
1301
|
+
if (skipInvalidFiles != null) {
|
|
1302
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
1303
|
+
}
|
|
1143
1304
|
const _response = yield core.fetcher({
|
|
1144
|
-
url: (0, url_join_1.default)((
|
|
1305
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1306
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/bulk`),
|
|
1145
1307
|
method: "POST",
|
|
1146
|
-
headers:
|
|
1308
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1147
1309
|
contentType: "application/json",
|
|
1310
|
+
queryParameters: _queryParams,
|
|
1148
1311
|
requestType: "json",
|
|
1149
|
-
body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(
|
|
1312
|
+
body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(_body, {
|
|
1150
1313
|
unrecognizedObjectKeys: "passthrough",
|
|
1151
1314
|
allowUnrecognizedUnionMembers: true,
|
|
1152
1315
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1156,18 +1319,21 @@ class Items {
|
|
|
1156
1319
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1157
1320
|
});
|
|
1158
1321
|
if (_response.ok) {
|
|
1159
|
-
return
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1322
|
+
return {
|
|
1323
|
+
data: serializers.BulkCollectionItem.parseOrThrow(_response.body, {
|
|
1324
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1325
|
+
allowUnrecognizedUnionMembers: true,
|
|
1326
|
+
allowUnrecognizedEnumValues: true,
|
|
1327
|
+
skipValidation: true,
|
|
1328
|
+
breadcrumbsPrefix: ["response"],
|
|
1329
|
+
}),
|
|
1330
|
+
rawResponse: _response.rawResponse,
|
|
1331
|
+
};
|
|
1166
1332
|
}
|
|
1167
1333
|
if (_response.error.reason === "status-code") {
|
|
1168
1334
|
switch (_response.error.statusCode) {
|
|
1169
1335
|
case 400:
|
|
1170
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1336
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1171
1337
|
case 401:
|
|
1172
1338
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1173
1339
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1175,7 +1341,7 @@ class Items {
|
|
|
1175
1341
|
allowUnrecognizedEnumValues: true,
|
|
1176
1342
|
skipValidation: true,
|
|
1177
1343
|
breadcrumbsPrefix: ["response"],
|
|
1178
|
-
}));
|
|
1344
|
+
}), _response.rawResponse);
|
|
1179
1345
|
case 404:
|
|
1180
1346
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1181
1347
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1183,7 +1349,7 @@ class Items {
|
|
|
1183
1349
|
allowUnrecognizedEnumValues: true,
|
|
1184
1350
|
skipValidation: true,
|
|
1185
1351
|
breadcrumbsPrefix: ["response"],
|
|
1186
|
-
}));
|
|
1352
|
+
}), _response.rawResponse);
|
|
1187
1353
|
case 429:
|
|
1188
1354
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1189
1355
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1191,7 +1357,7 @@ class Items {
|
|
|
1191
1357
|
allowUnrecognizedEnumValues: true,
|
|
1192
1358
|
skipValidation: true,
|
|
1193
1359
|
breadcrumbsPrefix: ["response"],
|
|
1194
|
-
}));
|
|
1360
|
+
}), _response.rawResponse);
|
|
1195
1361
|
case 500:
|
|
1196
1362
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1197
1363
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1199,11 +1365,12 @@ class Items {
|
|
|
1199
1365
|
allowUnrecognizedEnumValues: true,
|
|
1200
1366
|
skipValidation: true,
|
|
1201
1367
|
breadcrumbsPrefix: ["response"],
|
|
1202
|
-
}));
|
|
1368
|
+
}), _response.rawResponse);
|
|
1203
1369
|
default:
|
|
1204
1370
|
throw new errors.WebflowError({
|
|
1205
1371
|
statusCode: _response.error.statusCode,
|
|
1206
1372
|
body: _response.error.body,
|
|
1373
|
+
rawResponse: _response.rawResponse,
|
|
1207
1374
|
});
|
|
1208
1375
|
}
|
|
1209
1376
|
}
|
|
@@ -1212,12 +1379,14 @@ class Items {
|
|
|
1212
1379
|
throw new errors.WebflowError({
|
|
1213
1380
|
statusCode: _response.error.statusCode,
|
|
1214
1381
|
body: _response.error.rawBody,
|
|
1382
|
+
rawResponse: _response.rawResponse,
|
|
1215
1383
|
});
|
|
1216
1384
|
case "timeout":
|
|
1217
1385
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items/bulk.");
|
|
1218
1386
|
case "unknown":
|
|
1219
1387
|
throw new errors.WebflowError({
|
|
1220
1388
|
message: _response.error.errorMessage,
|
|
1389
|
+
rawResponse: _response.rawResponse,
|
|
1221
1390
|
});
|
|
1222
1391
|
}
|
|
1223
1392
|
});
|
|
@@ -1242,38 +1411,42 @@ class Items {
|
|
|
1242
1411
|
* await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
1243
1412
|
*/
|
|
1244
1413
|
getItem(collectionId, itemId, request = {}, requestOptions) {
|
|
1245
|
-
|
|
1246
|
-
|
|
1414
|
+
return core.HttpResponsePromise.fromPromise(this.__getItem(collectionId, itemId, request, requestOptions));
|
|
1415
|
+
}
|
|
1416
|
+
__getItem(collectionId_1, itemId_1) {
|
|
1417
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
|
|
1418
|
+
var _a, _b, _c;
|
|
1247
1419
|
const { cmsLocaleId } = request;
|
|
1248
1420
|
const _queryParams = {};
|
|
1249
1421
|
if (cmsLocaleId != null) {
|
|
1250
1422
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
1251
1423
|
}
|
|
1252
1424
|
const _response = yield core.fetcher({
|
|
1253
|
-
url: (0, url_join_1.default)((
|
|
1425
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1254
1426
|
.production, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
1255
1427
|
method: "GET",
|
|
1256
|
-
headers:
|
|
1257
|
-
contentType: "application/json",
|
|
1428
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1258
1429
|
queryParameters: _queryParams,
|
|
1259
|
-
requestType: "json",
|
|
1260
1430
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1261
1431
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1262
1432
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1263
1433
|
});
|
|
1264
1434
|
if (_response.ok) {
|
|
1265
|
-
return
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1435
|
+
return {
|
|
1436
|
+
data: serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
1437
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1438
|
+
allowUnrecognizedUnionMembers: true,
|
|
1439
|
+
allowUnrecognizedEnumValues: true,
|
|
1440
|
+
skipValidation: true,
|
|
1441
|
+
breadcrumbsPrefix: ["response"],
|
|
1442
|
+
}),
|
|
1443
|
+
rawResponse: _response.rawResponse,
|
|
1444
|
+
};
|
|
1272
1445
|
}
|
|
1273
1446
|
if (_response.error.reason === "status-code") {
|
|
1274
1447
|
switch (_response.error.statusCode) {
|
|
1275
1448
|
case 400:
|
|
1276
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1449
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1277
1450
|
case 401:
|
|
1278
1451
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1279
1452
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1281,7 +1454,7 @@ class Items {
|
|
|
1281
1454
|
allowUnrecognizedEnumValues: true,
|
|
1282
1455
|
skipValidation: true,
|
|
1283
1456
|
breadcrumbsPrefix: ["response"],
|
|
1284
|
-
}));
|
|
1457
|
+
}), _response.rawResponse);
|
|
1285
1458
|
case 404:
|
|
1286
1459
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1287
1460
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1289,7 +1462,7 @@ class Items {
|
|
|
1289
1462
|
allowUnrecognizedEnumValues: true,
|
|
1290
1463
|
skipValidation: true,
|
|
1291
1464
|
breadcrumbsPrefix: ["response"],
|
|
1292
|
-
}));
|
|
1465
|
+
}), _response.rawResponse);
|
|
1293
1466
|
case 429:
|
|
1294
1467
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1295
1468
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1297,7 +1470,7 @@ class Items {
|
|
|
1297
1470
|
allowUnrecognizedEnumValues: true,
|
|
1298
1471
|
skipValidation: true,
|
|
1299
1472
|
breadcrumbsPrefix: ["response"],
|
|
1300
|
-
}));
|
|
1473
|
+
}), _response.rawResponse);
|
|
1301
1474
|
case 500:
|
|
1302
1475
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1303
1476
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1305,11 +1478,12 @@ class Items {
|
|
|
1305
1478
|
allowUnrecognizedEnumValues: true,
|
|
1306
1479
|
skipValidation: true,
|
|
1307
1480
|
breadcrumbsPrefix: ["response"],
|
|
1308
|
-
}));
|
|
1481
|
+
}), _response.rawResponse);
|
|
1309
1482
|
default:
|
|
1310
1483
|
throw new errors.WebflowError({
|
|
1311
1484
|
statusCode: _response.error.statusCode,
|
|
1312
1485
|
body: _response.error.body,
|
|
1486
|
+
rawResponse: _response.rawResponse,
|
|
1313
1487
|
});
|
|
1314
1488
|
}
|
|
1315
1489
|
}
|
|
@@ -1318,12 +1492,14 @@ class Items {
|
|
|
1318
1492
|
throw new errors.WebflowError({
|
|
1319
1493
|
statusCode: _response.error.statusCode,
|
|
1320
1494
|
body: _response.error.rawBody,
|
|
1495
|
+
rawResponse: _response.rawResponse,
|
|
1321
1496
|
});
|
|
1322
1497
|
case "timeout":
|
|
1323
1498
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items/{item_id}.");
|
|
1324
1499
|
case "unknown":
|
|
1325
1500
|
throw new errors.WebflowError({
|
|
1326
1501
|
message: _response.error.errorMessage,
|
|
1502
|
+
rawResponse: _response.rawResponse,
|
|
1327
1503
|
});
|
|
1328
1504
|
}
|
|
1329
1505
|
});
|
|
@@ -1348,31 +1524,33 @@ class Items {
|
|
|
1348
1524
|
* await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
1349
1525
|
*/
|
|
1350
1526
|
deleteItem(collectionId, itemId, request = {}, requestOptions) {
|
|
1351
|
-
|
|
1352
|
-
|
|
1527
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteItem(collectionId, itemId, request, requestOptions));
|
|
1528
|
+
}
|
|
1529
|
+
__deleteItem(collectionId_1, itemId_1) {
|
|
1530
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
|
|
1531
|
+
var _a, _b, _c;
|
|
1353
1532
|
const { cmsLocaleId } = request;
|
|
1354
1533
|
const _queryParams = {};
|
|
1355
1534
|
if (cmsLocaleId != null) {
|
|
1356
1535
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
1357
1536
|
}
|
|
1358
1537
|
const _response = yield core.fetcher({
|
|
1359
|
-
url: (0, url_join_1.default)((
|
|
1538
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1539
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
1360
1540
|
method: "DELETE",
|
|
1361
|
-
headers:
|
|
1362
|
-
contentType: "application/json",
|
|
1541
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1363
1542
|
queryParameters: _queryParams,
|
|
1364
|
-
requestType: "json",
|
|
1365
1543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1366
1544
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1367
1545
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1368
1546
|
});
|
|
1369
1547
|
if (_response.ok) {
|
|
1370
|
-
return;
|
|
1548
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
1371
1549
|
}
|
|
1372
1550
|
if (_response.error.reason === "status-code") {
|
|
1373
1551
|
switch (_response.error.statusCode) {
|
|
1374
1552
|
case 400:
|
|
1375
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1553
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1376
1554
|
case 401:
|
|
1377
1555
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1378
1556
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1380,7 +1558,7 @@ class Items {
|
|
|
1380
1558
|
allowUnrecognizedEnumValues: true,
|
|
1381
1559
|
skipValidation: true,
|
|
1382
1560
|
breadcrumbsPrefix: ["response"],
|
|
1383
|
-
}));
|
|
1561
|
+
}), _response.rawResponse);
|
|
1384
1562
|
case 404:
|
|
1385
1563
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1386
1564
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1388,7 +1566,7 @@ class Items {
|
|
|
1388
1566
|
allowUnrecognizedEnumValues: true,
|
|
1389
1567
|
skipValidation: true,
|
|
1390
1568
|
breadcrumbsPrefix: ["response"],
|
|
1391
|
-
}));
|
|
1569
|
+
}), _response.rawResponse);
|
|
1392
1570
|
case 429:
|
|
1393
1571
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1394
1572
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1396,7 +1574,7 @@ class Items {
|
|
|
1396
1574
|
allowUnrecognizedEnumValues: true,
|
|
1397
1575
|
skipValidation: true,
|
|
1398
1576
|
breadcrumbsPrefix: ["response"],
|
|
1399
|
-
}));
|
|
1577
|
+
}), _response.rawResponse);
|
|
1400
1578
|
case 500:
|
|
1401
1579
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1402
1580
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1404,11 +1582,12 @@ class Items {
|
|
|
1404
1582
|
allowUnrecognizedEnumValues: true,
|
|
1405
1583
|
skipValidation: true,
|
|
1406
1584
|
breadcrumbsPrefix: ["response"],
|
|
1407
|
-
}));
|
|
1585
|
+
}), _response.rawResponse);
|
|
1408
1586
|
default:
|
|
1409
1587
|
throw new errors.WebflowError({
|
|
1410
1588
|
statusCode: _response.error.statusCode,
|
|
1411
1589
|
body: _response.error.body,
|
|
1590
|
+
rawResponse: _response.rawResponse,
|
|
1412
1591
|
});
|
|
1413
1592
|
}
|
|
1414
1593
|
}
|
|
@@ -1417,12 +1596,14 @@ class Items {
|
|
|
1417
1596
|
throw new errors.WebflowError({
|
|
1418
1597
|
statusCode: _response.error.statusCode,
|
|
1419
1598
|
body: _response.error.rawBody,
|
|
1599
|
+
rawResponse: _response.rawResponse,
|
|
1420
1600
|
});
|
|
1421
1601
|
case "timeout":
|
|
1422
1602
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items/{item_id}.");
|
|
1423
1603
|
case "unknown":
|
|
1424
1604
|
throw new errors.WebflowError({
|
|
1425
1605
|
message: _response.error.errorMessage,
|
|
1606
|
+
rawResponse: _response.rawResponse,
|
|
1426
1607
|
});
|
|
1427
1608
|
}
|
|
1428
1609
|
});
|
|
@@ -1434,7 +1615,7 @@ class Items {
|
|
|
1434
1615
|
*
|
|
1435
1616
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
1436
1617
|
* @param {string} itemId - Unique identifier for an Item
|
|
1437
|
-
* @param {Webflow.
|
|
1618
|
+
* @param {Webflow.collections.ItemsUpdateItemRequest} request
|
|
1438
1619
|
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
1439
1620
|
*
|
|
1440
1621
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -1445,24 +1626,36 @@ class Items {
|
|
|
1445
1626
|
*
|
|
1446
1627
|
* @example
|
|
1447
1628
|
* await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
1448
|
-
*
|
|
1449
|
-
*
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1452
|
-
*
|
|
1629
|
+
* body: {
|
|
1630
|
+
* isArchived: false,
|
|
1631
|
+
* isDraft: false,
|
|
1632
|
+
* fieldData: {
|
|
1633
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
1634
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
1635
|
+
* }
|
|
1453
1636
|
* }
|
|
1454
1637
|
* })
|
|
1455
1638
|
*/
|
|
1456
1639
|
updateItem(collectionId, itemId, request, requestOptions) {
|
|
1457
|
-
|
|
1640
|
+
return core.HttpResponsePromise.fromPromise(this.__updateItem(collectionId, itemId, request, requestOptions));
|
|
1641
|
+
}
|
|
1642
|
+
__updateItem(collectionId, itemId, request, requestOptions) {
|
|
1458
1643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1644
|
+
var _a, _b, _c;
|
|
1645
|
+
const { skipInvalidFiles, body: _body } = request;
|
|
1646
|
+
const _queryParams = {};
|
|
1647
|
+
if (skipInvalidFiles != null) {
|
|
1648
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
1649
|
+
}
|
|
1459
1650
|
const _response = yield core.fetcher({
|
|
1460
|
-
url: (0, url_join_1.default)((
|
|
1651
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1652
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
1461
1653
|
method: "PATCH",
|
|
1462
|
-
headers:
|
|
1654
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1463
1655
|
contentType: "application/json",
|
|
1656
|
+
queryParameters: _queryParams,
|
|
1464
1657
|
requestType: "json",
|
|
1465
|
-
body: serializers.CollectionItemPatchSingle.jsonOrThrow(
|
|
1658
|
+
body: serializers.CollectionItemPatchSingle.jsonOrThrow(_body, {
|
|
1466
1659
|
unrecognizedObjectKeys: "passthrough",
|
|
1467
1660
|
allowUnrecognizedUnionMembers: true,
|
|
1468
1661
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1472,18 +1665,21 @@ class Items {
|
|
|
1472
1665
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1473
1666
|
});
|
|
1474
1667
|
if (_response.ok) {
|
|
1475
|
-
return
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1668
|
+
return {
|
|
1669
|
+
data: serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
1670
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1671
|
+
allowUnrecognizedUnionMembers: true,
|
|
1672
|
+
allowUnrecognizedEnumValues: true,
|
|
1673
|
+
skipValidation: true,
|
|
1674
|
+
breadcrumbsPrefix: ["response"],
|
|
1675
|
+
}),
|
|
1676
|
+
rawResponse: _response.rawResponse,
|
|
1677
|
+
};
|
|
1482
1678
|
}
|
|
1483
1679
|
if (_response.error.reason === "status-code") {
|
|
1484
1680
|
switch (_response.error.statusCode) {
|
|
1485
1681
|
case 400:
|
|
1486
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1682
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1487
1683
|
case 401:
|
|
1488
1684
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1489
1685
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1491,7 +1687,7 @@ class Items {
|
|
|
1491
1687
|
allowUnrecognizedEnumValues: true,
|
|
1492
1688
|
skipValidation: true,
|
|
1493
1689
|
breadcrumbsPrefix: ["response"],
|
|
1494
|
-
}));
|
|
1690
|
+
}), _response.rawResponse);
|
|
1495
1691
|
case 404:
|
|
1496
1692
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1497
1693
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1499,7 +1695,7 @@ class Items {
|
|
|
1499
1695
|
allowUnrecognizedEnumValues: true,
|
|
1500
1696
|
skipValidation: true,
|
|
1501
1697
|
breadcrumbsPrefix: ["response"],
|
|
1502
|
-
}));
|
|
1698
|
+
}), _response.rawResponse);
|
|
1503
1699
|
case 429:
|
|
1504
1700
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1505
1701
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1507,7 +1703,7 @@ class Items {
|
|
|
1507
1703
|
allowUnrecognizedEnumValues: true,
|
|
1508
1704
|
skipValidation: true,
|
|
1509
1705
|
breadcrumbsPrefix: ["response"],
|
|
1510
|
-
}));
|
|
1706
|
+
}), _response.rawResponse);
|
|
1511
1707
|
case 500:
|
|
1512
1708
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1513
1709
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1515,11 +1711,12 @@ class Items {
|
|
|
1515
1711
|
allowUnrecognizedEnumValues: true,
|
|
1516
1712
|
skipValidation: true,
|
|
1517
1713
|
breadcrumbsPrefix: ["response"],
|
|
1518
|
-
}));
|
|
1714
|
+
}), _response.rawResponse);
|
|
1519
1715
|
default:
|
|
1520
1716
|
throw new errors.WebflowError({
|
|
1521
1717
|
statusCode: _response.error.statusCode,
|
|
1522
1718
|
body: _response.error.body,
|
|
1719
|
+
rawResponse: _response.rawResponse,
|
|
1523
1720
|
});
|
|
1524
1721
|
}
|
|
1525
1722
|
}
|
|
@@ -1528,12 +1725,14 @@ class Items {
|
|
|
1528
1725
|
throw new errors.WebflowError({
|
|
1529
1726
|
statusCode: _response.error.statusCode,
|
|
1530
1727
|
body: _response.error.rawBody,
|
|
1728
|
+
rawResponse: _response.rawResponse,
|
|
1531
1729
|
});
|
|
1532
1730
|
case "timeout":
|
|
1533
1731
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items/{item_id}.");
|
|
1534
1732
|
case "unknown":
|
|
1535
1733
|
throw new errors.WebflowError({
|
|
1536
1734
|
message: _response.error.errorMessage,
|
|
1735
|
+
rawResponse: _response.rawResponse,
|
|
1537
1736
|
});
|
|
1538
1737
|
}
|
|
1539
1738
|
});
|
|
@@ -1563,38 +1762,42 @@ class Items {
|
|
|
1563
1762
|
* await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
1564
1763
|
*/
|
|
1565
1764
|
getItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
1566
|
-
|
|
1567
|
-
|
|
1765
|
+
return core.HttpResponsePromise.fromPromise(this.__getItemLive(collectionId, itemId, request, requestOptions));
|
|
1766
|
+
}
|
|
1767
|
+
__getItemLive(collectionId_1, itemId_1) {
|
|
1768
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
|
|
1769
|
+
var _a, _b, _c;
|
|
1568
1770
|
const { cmsLocaleId } = request;
|
|
1569
1771
|
const _queryParams = {};
|
|
1570
1772
|
if (cmsLocaleId != null) {
|
|
1571
1773
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
1572
1774
|
}
|
|
1573
1775
|
const _response = yield core.fetcher({
|
|
1574
|
-
url: (0, url_join_1.default)((
|
|
1776
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1575
1777
|
.dataApi, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
1576
1778
|
method: "GET",
|
|
1577
|
-
headers:
|
|
1578
|
-
contentType: "application/json",
|
|
1779
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1579
1780
|
queryParameters: _queryParams,
|
|
1580
|
-
requestType: "json",
|
|
1581
1781
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1582
1782
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1583
1783
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1584
1784
|
});
|
|
1585
1785
|
if (_response.ok) {
|
|
1586
|
-
return
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1786
|
+
return {
|
|
1787
|
+
data: serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
1788
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1789
|
+
allowUnrecognizedUnionMembers: true,
|
|
1790
|
+
allowUnrecognizedEnumValues: true,
|
|
1791
|
+
skipValidation: true,
|
|
1792
|
+
breadcrumbsPrefix: ["response"],
|
|
1793
|
+
}),
|
|
1794
|
+
rawResponse: _response.rawResponse,
|
|
1795
|
+
};
|
|
1593
1796
|
}
|
|
1594
1797
|
if (_response.error.reason === "status-code") {
|
|
1595
1798
|
switch (_response.error.statusCode) {
|
|
1596
1799
|
case 400:
|
|
1597
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1800
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1598
1801
|
case 401:
|
|
1599
1802
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1600
1803
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1602,7 +1805,7 @@ class Items {
|
|
|
1602
1805
|
allowUnrecognizedEnumValues: true,
|
|
1603
1806
|
skipValidation: true,
|
|
1604
1807
|
breadcrumbsPrefix: ["response"],
|
|
1605
|
-
}));
|
|
1808
|
+
}), _response.rawResponse);
|
|
1606
1809
|
case 404:
|
|
1607
1810
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1608
1811
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1610,7 +1813,7 @@ class Items {
|
|
|
1610
1813
|
allowUnrecognizedEnumValues: true,
|
|
1611
1814
|
skipValidation: true,
|
|
1612
1815
|
breadcrumbsPrefix: ["response"],
|
|
1613
|
-
}));
|
|
1816
|
+
}), _response.rawResponse);
|
|
1614
1817
|
case 429:
|
|
1615
1818
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1616
1819
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1618,7 +1821,7 @@ class Items {
|
|
|
1618
1821
|
allowUnrecognizedEnumValues: true,
|
|
1619
1822
|
skipValidation: true,
|
|
1620
1823
|
breadcrumbsPrefix: ["response"],
|
|
1621
|
-
}));
|
|
1824
|
+
}), _response.rawResponse);
|
|
1622
1825
|
case 500:
|
|
1623
1826
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1624
1827
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1626,11 +1829,12 @@ class Items {
|
|
|
1626
1829
|
allowUnrecognizedEnumValues: true,
|
|
1627
1830
|
skipValidation: true,
|
|
1628
1831
|
breadcrumbsPrefix: ["response"],
|
|
1629
|
-
}));
|
|
1832
|
+
}), _response.rawResponse);
|
|
1630
1833
|
default:
|
|
1631
1834
|
throw new errors.WebflowError({
|
|
1632
1835
|
statusCode: _response.error.statusCode,
|
|
1633
1836
|
body: _response.error.body,
|
|
1837
|
+
rawResponse: _response.rawResponse,
|
|
1634
1838
|
});
|
|
1635
1839
|
}
|
|
1636
1840
|
}
|
|
@@ -1639,20 +1843,22 @@ class Items {
|
|
|
1639
1843
|
throw new errors.WebflowError({
|
|
1640
1844
|
statusCode: _response.error.statusCode,
|
|
1641
1845
|
body: _response.error.rawBody,
|
|
1846
|
+
rawResponse: _response.rawResponse,
|
|
1642
1847
|
});
|
|
1643
1848
|
case "timeout":
|
|
1644
1849
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items/{item_id}/live.");
|
|
1645
1850
|
case "unknown":
|
|
1646
1851
|
throw new errors.WebflowError({
|
|
1647
1852
|
message: _response.error.errorMessage,
|
|
1853
|
+
rawResponse: _response.rawResponse,
|
|
1648
1854
|
});
|
|
1649
1855
|
}
|
|
1650
1856
|
});
|
|
1651
1857
|
}
|
|
1652
1858
|
/**
|
|
1653
|
-
*
|
|
1859
|
+
* Unpublish a live item from the site and set the `isDraft` property to `true`.
|
|
1654
1860
|
*
|
|
1655
|
-
*
|
|
1861
|
+
* For bulk unpublishing, please use [this endpoint.](/data/v2.0.0/reference/cms/collection-items/live-items/delete-items-live)
|
|
1656
1862
|
*
|
|
1657
1863
|
* Required scope | `CMS:write`
|
|
1658
1864
|
*
|
|
@@ -1671,31 +1877,33 @@ class Items {
|
|
|
1671
1877
|
* await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
1672
1878
|
*/
|
|
1673
1879
|
deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
1674
|
-
|
|
1675
|
-
|
|
1880
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteItemLive(collectionId, itemId, request, requestOptions));
|
|
1881
|
+
}
|
|
1882
|
+
__deleteItemLive(collectionId_1, itemId_1) {
|
|
1883
|
+
return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
|
|
1884
|
+
var _a, _b, _c;
|
|
1676
1885
|
const { cmsLocaleId } = request;
|
|
1677
1886
|
const _queryParams = {};
|
|
1678
1887
|
if (cmsLocaleId != null) {
|
|
1679
1888
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
1680
1889
|
}
|
|
1681
1890
|
const _response = yield core.fetcher({
|
|
1682
|
-
url: (0, url_join_1.default)((
|
|
1891
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
1892
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
1683
1893
|
method: "DELETE",
|
|
1684
|
-
headers:
|
|
1685
|
-
contentType: "application/json",
|
|
1894
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1686
1895
|
queryParameters: _queryParams,
|
|
1687
|
-
requestType: "json",
|
|
1688
1896
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1689
1897
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1690
1898
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1691
1899
|
});
|
|
1692
1900
|
if (_response.ok) {
|
|
1693
|
-
return;
|
|
1901
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
1694
1902
|
}
|
|
1695
1903
|
if (_response.error.reason === "status-code") {
|
|
1696
1904
|
switch (_response.error.statusCode) {
|
|
1697
1905
|
case 400:
|
|
1698
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
1906
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1699
1907
|
case 401:
|
|
1700
1908
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1701
1909
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1703,7 +1911,7 @@ class Items {
|
|
|
1703
1911
|
allowUnrecognizedEnumValues: true,
|
|
1704
1912
|
skipValidation: true,
|
|
1705
1913
|
breadcrumbsPrefix: ["response"],
|
|
1706
|
-
}));
|
|
1914
|
+
}), _response.rawResponse);
|
|
1707
1915
|
case 404:
|
|
1708
1916
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1709
1917
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1711,7 +1919,7 @@ class Items {
|
|
|
1711
1919
|
allowUnrecognizedEnumValues: true,
|
|
1712
1920
|
skipValidation: true,
|
|
1713
1921
|
breadcrumbsPrefix: ["response"],
|
|
1714
|
-
}));
|
|
1922
|
+
}), _response.rawResponse);
|
|
1715
1923
|
case 429:
|
|
1716
1924
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1717
1925
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1719,7 +1927,7 @@ class Items {
|
|
|
1719
1927
|
allowUnrecognizedEnumValues: true,
|
|
1720
1928
|
skipValidation: true,
|
|
1721
1929
|
breadcrumbsPrefix: ["response"],
|
|
1722
|
-
}));
|
|
1930
|
+
}), _response.rawResponse);
|
|
1723
1931
|
case 500:
|
|
1724
1932
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1725
1933
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1727,11 +1935,12 @@ class Items {
|
|
|
1727
1935
|
allowUnrecognizedEnumValues: true,
|
|
1728
1936
|
skipValidation: true,
|
|
1729
1937
|
breadcrumbsPrefix: ["response"],
|
|
1730
|
-
}));
|
|
1938
|
+
}), _response.rawResponse);
|
|
1731
1939
|
default:
|
|
1732
1940
|
throw new errors.WebflowError({
|
|
1733
1941
|
statusCode: _response.error.statusCode,
|
|
1734
1942
|
body: _response.error.body,
|
|
1943
|
+
rawResponse: _response.rawResponse,
|
|
1735
1944
|
});
|
|
1736
1945
|
}
|
|
1737
1946
|
}
|
|
@@ -1740,12 +1949,14 @@ class Items {
|
|
|
1740
1949
|
throw new errors.WebflowError({
|
|
1741
1950
|
statusCode: _response.error.statusCode,
|
|
1742
1951
|
body: _response.error.rawBody,
|
|
1952
|
+
rawResponse: _response.rawResponse,
|
|
1743
1953
|
});
|
|
1744
1954
|
case "timeout":
|
|
1745
1955
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items/{item_id}/live.");
|
|
1746
1956
|
case "unknown":
|
|
1747
1957
|
throw new errors.WebflowError({
|
|
1748
1958
|
message: _response.error.errorMessage,
|
|
1959
|
+
rawResponse: _response.rawResponse,
|
|
1749
1960
|
});
|
|
1750
1961
|
}
|
|
1751
1962
|
});
|
|
@@ -1757,7 +1968,7 @@ class Items {
|
|
|
1757
1968
|
*
|
|
1758
1969
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
1759
1970
|
* @param {string} itemId - Unique identifier for an Item
|
|
1760
|
-
* @param {Webflow.
|
|
1971
|
+
* @param {Webflow.collections.ItemsUpdateItemLiveRequest} request
|
|
1761
1972
|
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
1762
1973
|
*
|
|
1763
1974
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -1769,24 +1980,36 @@ class Items {
|
|
|
1769
1980
|
*
|
|
1770
1981
|
* @example
|
|
1771
1982
|
* await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1983
|
+
* body: {
|
|
1984
|
+
* isArchived: false,
|
|
1985
|
+
* isDraft: false,
|
|
1986
|
+
* fieldData: {
|
|
1987
|
+
* name: "Pan Galactic Gargle Blaster Recipe",
|
|
1988
|
+
* slug: "pan-galactic-gargle-blaster"
|
|
1989
|
+
* }
|
|
1777
1990
|
* }
|
|
1778
1991
|
* })
|
|
1779
1992
|
*/
|
|
1780
1993
|
updateItemLive(collectionId, itemId, request, requestOptions) {
|
|
1781
|
-
|
|
1994
|
+
return core.HttpResponsePromise.fromPromise(this.__updateItemLive(collectionId, itemId, request, requestOptions));
|
|
1995
|
+
}
|
|
1996
|
+
__updateItemLive(collectionId, itemId, request, requestOptions) {
|
|
1782
1997
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1998
|
+
var _a, _b, _c;
|
|
1999
|
+
const { skipInvalidFiles, body: _body } = request;
|
|
2000
|
+
const _queryParams = {};
|
|
2001
|
+
if (skipInvalidFiles != null) {
|
|
2002
|
+
_queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
|
|
2003
|
+
}
|
|
1783
2004
|
const _response = yield core.fetcher({
|
|
1784
|
-
url: (0, url_join_1.default)((
|
|
2005
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
2006
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
1785
2007
|
method: "PATCH",
|
|
1786
|
-
headers:
|
|
2008
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1787
2009
|
contentType: "application/json",
|
|
2010
|
+
queryParameters: _queryParams,
|
|
1788
2011
|
requestType: "json",
|
|
1789
|
-
body: serializers.CollectionItemPatchSingle.jsonOrThrow(
|
|
2012
|
+
body: serializers.CollectionItemPatchSingle.jsonOrThrow(_body, {
|
|
1790
2013
|
unrecognizedObjectKeys: "passthrough",
|
|
1791
2014
|
allowUnrecognizedUnionMembers: true,
|
|
1792
2015
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1796,18 +2019,21 @@ class Items {
|
|
|
1796
2019
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1797
2020
|
});
|
|
1798
2021
|
if (_response.ok) {
|
|
1799
|
-
return
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
2022
|
+
return {
|
|
2023
|
+
data: serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
2024
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2025
|
+
allowUnrecognizedUnionMembers: true,
|
|
2026
|
+
allowUnrecognizedEnumValues: true,
|
|
2027
|
+
skipValidation: true,
|
|
2028
|
+
breadcrumbsPrefix: ["response"],
|
|
2029
|
+
}),
|
|
2030
|
+
rawResponse: _response.rawResponse,
|
|
2031
|
+
};
|
|
1806
2032
|
}
|
|
1807
2033
|
if (_response.error.reason === "status-code") {
|
|
1808
2034
|
switch (_response.error.statusCode) {
|
|
1809
2035
|
case 400:
|
|
1810
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
2036
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1811
2037
|
case 401:
|
|
1812
2038
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1813
2039
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1815,7 +2041,7 @@ class Items {
|
|
|
1815
2041
|
allowUnrecognizedEnumValues: true,
|
|
1816
2042
|
skipValidation: true,
|
|
1817
2043
|
breadcrumbsPrefix: ["response"],
|
|
1818
|
-
}));
|
|
2044
|
+
}), _response.rawResponse);
|
|
1819
2045
|
case 404:
|
|
1820
2046
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1821
2047
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1823,9 +2049,9 @@ class Items {
|
|
|
1823
2049
|
allowUnrecognizedEnumValues: true,
|
|
1824
2050
|
skipValidation: true,
|
|
1825
2051
|
breadcrumbsPrefix: ["response"],
|
|
1826
|
-
}));
|
|
2052
|
+
}), _response.rawResponse);
|
|
1827
2053
|
case 409:
|
|
1828
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
2054
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
1829
2055
|
case 429:
|
|
1830
2056
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1831
2057
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1833,7 +2059,7 @@ class Items {
|
|
|
1833
2059
|
allowUnrecognizedEnumValues: true,
|
|
1834
2060
|
skipValidation: true,
|
|
1835
2061
|
breadcrumbsPrefix: ["response"],
|
|
1836
|
-
}));
|
|
2062
|
+
}), _response.rawResponse);
|
|
1837
2063
|
case 500:
|
|
1838
2064
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1839
2065
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1841,11 +2067,12 @@ class Items {
|
|
|
1841
2067
|
allowUnrecognizedEnumValues: true,
|
|
1842
2068
|
skipValidation: true,
|
|
1843
2069
|
breadcrumbsPrefix: ["response"],
|
|
1844
|
-
}));
|
|
2070
|
+
}), _response.rawResponse);
|
|
1845
2071
|
default:
|
|
1846
2072
|
throw new errors.WebflowError({
|
|
1847
2073
|
statusCode: _response.error.statusCode,
|
|
1848
2074
|
body: _response.error.body,
|
|
2075
|
+
rawResponse: _response.rawResponse,
|
|
1849
2076
|
});
|
|
1850
2077
|
}
|
|
1851
2078
|
}
|
|
@@ -1854,12 +2081,14 @@ class Items {
|
|
|
1854
2081
|
throw new errors.WebflowError({
|
|
1855
2082
|
statusCode: _response.error.statusCode,
|
|
1856
2083
|
body: _response.error.rawBody,
|
|
2084
|
+
rawResponse: _response.rawResponse,
|
|
1857
2085
|
});
|
|
1858
2086
|
case "timeout":
|
|
1859
2087
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items/{item_id}/live.");
|
|
1860
2088
|
case "unknown":
|
|
1861
2089
|
throw new errors.WebflowError({
|
|
1862
2090
|
message: _response.error.errorMessage,
|
|
2091
|
+
rawResponse: _response.rawResponse,
|
|
1863
2092
|
});
|
|
1864
2093
|
}
|
|
1865
2094
|
});
|
|
@@ -1882,16 +2111,42 @@ class Items {
|
|
|
1882
2111
|
*
|
|
1883
2112
|
* @example
|
|
1884
2113
|
* await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
|
|
1885
|
-
* itemIds: ["
|
|
2114
|
+
* itemIds: ["643fd856d66b6528195ee2ca", "643fd856d66b6528195ee2cb", "643fd856d66b6528195ee2cc"]
|
|
2115
|
+
* })
|
|
2116
|
+
*
|
|
2117
|
+
* @example
|
|
2118
|
+
* await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
|
|
2119
|
+
* items: [{
|
|
2120
|
+
* id: "643fd856d66b6528195ee2ca",
|
|
2121
|
+
* cmsLocaleIds: ["653ad57de882f528b32e810e"]
|
|
2122
|
+
* }, {
|
|
2123
|
+
* id: "643fd856d66b6528195ee2cb",
|
|
2124
|
+
* cmsLocaleIds: ["653ad57de882f528b32e810e"]
|
|
2125
|
+
* }, {
|
|
2126
|
+
* id: "643fd856d66b6528195ee2cc",
|
|
2127
|
+
* cmsLocaleIds: ["653ad57de882f528b32e810e"]
|
|
2128
|
+
* }]
|
|
2129
|
+
* })
|
|
2130
|
+
*
|
|
2131
|
+
* @example
|
|
2132
|
+
* await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
|
|
2133
|
+
* items: [{
|
|
2134
|
+
* id: "643fd856d66b6528195ee2ca",
|
|
2135
|
+
* cmsLocaleIds: ["653ad57de882f528b32e810e", "6514390aea353fc691d69827", "65143930ea353fc691d69cd8"]
|
|
2136
|
+
* }]
|
|
1886
2137
|
* })
|
|
1887
2138
|
*/
|
|
1888
2139
|
publishItem(collectionId, request, requestOptions) {
|
|
1889
|
-
|
|
2140
|
+
return core.HttpResponsePromise.fromPromise(this.__publishItem(collectionId, request, requestOptions));
|
|
2141
|
+
}
|
|
2142
|
+
__publishItem(collectionId, request, requestOptions) {
|
|
1890
2143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2144
|
+
var _a, _b, _c;
|
|
1891
2145
|
const _response = yield core.fetcher({
|
|
1892
|
-
url: (0, url_join_1.default)((
|
|
2146
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
2147
|
+
.base, `collections/${encodeURIComponent(collectionId)}/items/publish`),
|
|
1893
2148
|
method: "POST",
|
|
1894
|
-
headers:
|
|
2149
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1895
2150
|
contentType: "application/json",
|
|
1896
2151
|
requestType: "json",
|
|
1897
2152
|
body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
|
|
@@ -1904,18 +2159,21 @@ class Items {
|
|
|
1904
2159
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1905
2160
|
});
|
|
1906
2161
|
if (_response.ok) {
|
|
1907
|
-
return
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2162
|
+
return {
|
|
2163
|
+
data: serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
|
|
2164
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2165
|
+
allowUnrecognizedUnionMembers: true,
|
|
2166
|
+
allowUnrecognizedEnumValues: true,
|
|
2167
|
+
skipValidation: true,
|
|
2168
|
+
breadcrumbsPrefix: ["response"],
|
|
2169
|
+
}),
|
|
2170
|
+
rawResponse: _response.rawResponse,
|
|
2171
|
+
};
|
|
1914
2172
|
}
|
|
1915
2173
|
if (_response.error.reason === "status-code") {
|
|
1916
2174
|
switch (_response.error.statusCode) {
|
|
1917
2175
|
case 400:
|
|
1918
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
2176
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1919
2177
|
case 401:
|
|
1920
2178
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1921
2179
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1923,7 +2181,7 @@ class Items {
|
|
|
1923
2181
|
allowUnrecognizedEnumValues: true,
|
|
1924
2182
|
skipValidation: true,
|
|
1925
2183
|
breadcrumbsPrefix: ["response"],
|
|
1926
|
-
}));
|
|
2184
|
+
}), _response.rawResponse);
|
|
1927
2185
|
case 404:
|
|
1928
2186
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1929
2187
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1931,9 +2189,9 @@ class Items {
|
|
|
1931
2189
|
allowUnrecognizedEnumValues: true,
|
|
1932
2190
|
skipValidation: true,
|
|
1933
2191
|
breadcrumbsPrefix: ["response"],
|
|
1934
|
-
}));
|
|
2192
|
+
}), _response.rawResponse);
|
|
1935
2193
|
case 409:
|
|
1936
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
2194
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
1937
2195
|
case 429:
|
|
1938
2196
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1939
2197
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1941,7 +2199,7 @@ class Items {
|
|
|
1941
2199
|
allowUnrecognizedEnumValues: true,
|
|
1942
2200
|
skipValidation: true,
|
|
1943
2201
|
breadcrumbsPrefix: ["response"],
|
|
1944
|
-
}));
|
|
2202
|
+
}), _response.rawResponse);
|
|
1945
2203
|
case 500:
|
|
1946
2204
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
1947
2205
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1949,11 +2207,12 @@ class Items {
|
|
|
1949
2207
|
allowUnrecognizedEnumValues: true,
|
|
1950
2208
|
skipValidation: true,
|
|
1951
2209
|
breadcrumbsPrefix: ["response"],
|
|
1952
|
-
}));
|
|
2210
|
+
}), _response.rawResponse);
|
|
1953
2211
|
default:
|
|
1954
2212
|
throw new errors.WebflowError({
|
|
1955
2213
|
statusCode: _response.error.statusCode,
|
|
1956
2214
|
body: _response.error.body,
|
|
2215
|
+
rawResponse: _response.rawResponse,
|
|
1957
2216
|
});
|
|
1958
2217
|
}
|
|
1959
2218
|
}
|
|
@@ -1962,12 +2221,14 @@ class Items {
|
|
|
1962
2221
|
throw new errors.WebflowError({
|
|
1963
2222
|
statusCode: _response.error.statusCode,
|
|
1964
2223
|
body: _response.error.rawBody,
|
|
2224
|
+
rawResponse: _response.rawResponse,
|
|
1965
2225
|
});
|
|
1966
2226
|
case "timeout":
|
|
1967
2227
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items/publish.");
|
|
1968
2228
|
case "unknown":
|
|
1969
2229
|
throw new errors.WebflowError({
|
|
1970
2230
|
message: _response.error.errorMessage,
|
|
2231
|
+
rawResponse: _response.rawResponse,
|
|
1971
2232
|
});
|
|
1972
2233
|
}
|
|
1973
2234
|
});
|