webflow-api 3.1.3 → 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 +980 -167
- package/.mock/definition/assets.yml +1 -1
- 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 +382 -14
- package/.mock/definition/pages.yml +112 -28
- 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/redirects.yml +8 -8
- package/.mock/definition/sites.yml +36 -9
- 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 +17 -9
- package/api/resources/sites/resources/redirects/client/Client.js +122 -75
- 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 -3
- 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 +17 -9
- package/dist/api/resources/sites/resources/redirects/client/Client.js +122 -75
- 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 -3
- 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 -1
- package/dist/serialization/types/Page.js +18 -8
- 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 +24 -18
- package/reference.md +115 -91
- 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 -1
- package/serialization/types/Page.js +18 -8
- 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) {
|
|
@@ -42,6 +52,7 @@ exports.Forms = void 0;
|
|
|
42
52
|
const environments = __importStar(require("../../../../environments"));
|
|
43
53
|
const core = __importStar(require("../../../../core"));
|
|
44
54
|
const Webflow = __importStar(require("../../../index"));
|
|
55
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
45
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
57
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -73,8 +84,11 @@ class Forms {
|
|
|
73
84
|
* await client.forms.list("580e63e98c9a982ac9b8b741")
|
|
74
85
|
*/
|
|
75
86
|
list(siteId, request = {}, requestOptions) {
|
|
76
|
-
|
|
77
|
-
|
|
87
|
+
return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions));
|
|
88
|
+
}
|
|
89
|
+
__list(siteId_1) {
|
|
90
|
+
return __awaiter(this, arguments, void 0, function* (siteId, request = {}, requestOptions) {
|
|
91
|
+
var _a, _b, _c;
|
|
78
92
|
const { limit, offset } = request;
|
|
79
93
|
const _queryParams = {};
|
|
80
94
|
if (limit != null) {
|
|
@@ -84,29 +98,31 @@ class Forms {
|
|
|
84
98
|
_queryParams["offset"] = offset.toString();
|
|
85
99
|
}
|
|
86
100
|
const _response = yield core.fetcher({
|
|
87
|
-
url: (0, url_join_1.default)((
|
|
101
|
+
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)
|
|
102
|
+
.base, `sites/${encodeURIComponent(siteId)}/forms`),
|
|
88
103
|
method: "GET",
|
|
89
|
-
headers:
|
|
90
|
-
contentType: "application/json",
|
|
104
|
+
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),
|
|
91
105
|
queryParameters: _queryParams,
|
|
92
|
-
requestType: "json",
|
|
93
106
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
94
107
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
95
108
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
96
109
|
});
|
|
97
110
|
if (_response.ok) {
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
111
|
+
return {
|
|
112
|
+
data: serializers.FormList.parseOrThrow(_response.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
skipValidation: true,
|
|
117
|
+
breadcrumbsPrefix: ["response"],
|
|
118
|
+
}),
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
};
|
|
105
121
|
}
|
|
106
122
|
if (_response.error.reason === "status-code") {
|
|
107
123
|
switch (_response.error.statusCode) {
|
|
108
124
|
case 400:
|
|
109
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
125
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
110
126
|
case 401:
|
|
111
127
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
112
128
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -114,9 +130,9 @@ class Forms {
|
|
|
114
130
|
allowUnrecognizedEnumValues: true,
|
|
115
131
|
skipValidation: true,
|
|
116
132
|
breadcrumbsPrefix: ["response"],
|
|
117
|
-
}));
|
|
133
|
+
}), _response.rawResponse);
|
|
118
134
|
case 403:
|
|
119
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
135
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
120
136
|
case 404:
|
|
121
137
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
122
138
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -124,9 +140,9 @@ class Forms {
|
|
|
124
140
|
allowUnrecognizedEnumValues: true,
|
|
125
141
|
skipValidation: true,
|
|
126
142
|
breadcrumbsPrefix: ["response"],
|
|
127
|
-
}));
|
|
143
|
+
}), _response.rawResponse);
|
|
128
144
|
case 409:
|
|
129
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
145
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
130
146
|
case 429:
|
|
131
147
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
132
148
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -134,7 +150,7 @@ class Forms {
|
|
|
134
150
|
allowUnrecognizedEnumValues: true,
|
|
135
151
|
skipValidation: true,
|
|
136
152
|
breadcrumbsPrefix: ["response"],
|
|
137
|
-
}));
|
|
153
|
+
}), _response.rawResponse);
|
|
138
154
|
case 500:
|
|
139
155
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
140
156
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -142,11 +158,12 @@ class Forms {
|
|
|
142
158
|
allowUnrecognizedEnumValues: true,
|
|
143
159
|
skipValidation: true,
|
|
144
160
|
breadcrumbsPrefix: ["response"],
|
|
145
|
-
}));
|
|
161
|
+
}), _response.rawResponse);
|
|
146
162
|
default:
|
|
147
163
|
throw new errors.WebflowError({
|
|
148
164
|
statusCode: _response.error.statusCode,
|
|
149
165
|
body: _response.error.body,
|
|
166
|
+
rawResponse: _response.rawResponse,
|
|
150
167
|
});
|
|
151
168
|
}
|
|
152
169
|
}
|
|
@@ -155,12 +172,14 @@ class Forms {
|
|
|
155
172
|
throw new errors.WebflowError({
|
|
156
173
|
statusCode: _response.error.statusCode,
|
|
157
174
|
body: _response.error.rawBody,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
158
176
|
});
|
|
159
177
|
case "timeout":
|
|
160
178
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/forms.");
|
|
161
179
|
case "unknown":
|
|
162
180
|
throw new errors.WebflowError({
|
|
163
181
|
message: _response.error.errorMessage,
|
|
182
|
+
rawResponse: _response.rawResponse,
|
|
164
183
|
});
|
|
165
184
|
}
|
|
166
185
|
});
|
|
@@ -184,31 +203,36 @@ class Forms {
|
|
|
184
203
|
* await client.forms.get("580e63e98c9a982ac9b8b741")
|
|
185
204
|
*/
|
|
186
205
|
get(formId, requestOptions) {
|
|
187
|
-
|
|
206
|
+
return core.HttpResponsePromise.fromPromise(this.__get(formId, requestOptions));
|
|
207
|
+
}
|
|
208
|
+
__get(formId, requestOptions) {
|
|
188
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
var _a, _b, _c;
|
|
189
211
|
const _response = yield core.fetcher({
|
|
190
|
-
url: (0, url_join_1.default)((
|
|
212
|
+
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)
|
|
213
|
+
.base, `forms/${encodeURIComponent(formId)}`),
|
|
191
214
|
method: "GET",
|
|
192
|
-
headers:
|
|
193
|
-
contentType: "application/json",
|
|
194
|
-
requestType: "json",
|
|
215
|
+
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),
|
|
195
216
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
196
217
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
197
218
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
198
219
|
});
|
|
199
220
|
if (_response.ok) {
|
|
200
|
-
return
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
221
|
+
return {
|
|
222
|
+
data: serializers.Form.parseOrThrow(_response.body, {
|
|
223
|
+
unrecognizedObjectKeys: "passthrough",
|
|
224
|
+
allowUnrecognizedUnionMembers: true,
|
|
225
|
+
allowUnrecognizedEnumValues: true,
|
|
226
|
+
skipValidation: true,
|
|
227
|
+
breadcrumbsPrefix: ["response"],
|
|
228
|
+
}),
|
|
229
|
+
rawResponse: _response.rawResponse,
|
|
230
|
+
};
|
|
207
231
|
}
|
|
208
232
|
if (_response.error.reason === "status-code") {
|
|
209
233
|
switch (_response.error.statusCode) {
|
|
210
234
|
case 400:
|
|
211
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
235
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
212
236
|
case 401:
|
|
213
237
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
214
238
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -216,9 +240,9 @@ class Forms {
|
|
|
216
240
|
allowUnrecognizedEnumValues: true,
|
|
217
241
|
skipValidation: true,
|
|
218
242
|
breadcrumbsPrefix: ["response"],
|
|
219
|
-
}));
|
|
243
|
+
}), _response.rawResponse);
|
|
220
244
|
case 403:
|
|
221
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
245
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
222
246
|
case 404:
|
|
223
247
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
224
248
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -226,7 +250,7 @@ class Forms {
|
|
|
226
250
|
allowUnrecognizedEnumValues: true,
|
|
227
251
|
skipValidation: true,
|
|
228
252
|
breadcrumbsPrefix: ["response"],
|
|
229
|
-
}));
|
|
253
|
+
}), _response.rawResponse);
|
|
230
254
|
case 429:
|
|
231
255
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
232
256
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -234,7 +258,7 @@ class Forms {
|
|
|
234
258
|
allowUnrecognizedEnumValues: true,
|
|
235
259
|
skipValidation: true,
|
|
236
260
|
breadcrumbsPrefix: ["response"],
|
|
237
|
-
}));
|
|
261
|
+
}), _response.rawResponse);
|
|
238
262
|
case 500:
|
|
239
263
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
240
264
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -242,11 +266,12 @@ class Forms {
|
|
|
242
266
|
allowUnrecognizedEnumValues: true,
|
|
243
267
|
skipValidation: true,
|
|
244
268
|
breadcrumbsPrefix: ["response"],
|
|
245
|
-
}));
|
|
269
|
+
}), _response.rawResponse);
|
|
246
270
|
default:
|
|
247
271
|
throw new errors.WebflowError({
|
|
248
272
|
statusCode: _response.error.statusCode,
|
|
249
273
|
body: _response.error.body,
|
|
274
|
+
rawResponse: _response.rawResponse,
|
|
250
275
|
});
|
|
251
276
|
}
|
|
252
277
|
}
|
|
@@ -255,12 +280,14 @@ class Forms {
|
|
|
255
280
|
throw new errors.WebflowError({
|
|
256
281
|
statusCode: _response.error.statusCode,
|
|
257
282
|
body: _response.error.rawBody,
|
|
283
|
+
rawResponse: _response.rawResponse,
|
|
258
284
|
});
|
|
259
285
|
case "timeout":
|
|
260
286
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /forms/{form_id}.");
|
|
261
287
|
case "unknown":
|
|
262
288
|
throw new errors.WebflowError({
|
|
263
289
|
message: _response.error.errorMessage,
|
|
290
|
+
rawResponse: _response.rawResponse,
|
|
264
291
|
});
|
|
265
292
|
}
|
|
266
293
|
});
|
|
@@ -291,8 +318,11 @@ class Forms {
|
|
|
291
318
|
* await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
|
|
292
319
|
*/
|
|
293
320
|
listSubmissions(formId, request = {}, requestOptions) {
|
|
294
|
-
|
|
295
|
-
|
|
321
|
+
return core.HttpResponsePromise.fromPromise(this.__listSubmissions(formId, request, requestOptions));
|
|
322
|
+
}
|
|
323
|
+
__listSubmissions(formId_1) {
|
|
324
|
+
return __awaiter(this, arguments, void 0, function* (formId, request = {}, requestOptions) {
|
|
325
|
+
var _a, _b, _c;
|
|
296
326
|
const { offset, limit } = request;
|
|
297
327
|
const _queryParams = {};
|
|
298
328
|
if (offset != null) {
|
|
@@ -302,29 +332,31 @@ class Forms {
|
|
|
302
332
|
_queryParams["limit"] = limit.toString();
|
|
303
333
|
}
|
|
304
334
|
const _response = yield core.fetcher({
|
|
305
|
-
url: (0, url_join_1.default)((
|
|
335
|
+
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)
|
|
336
|
+
.base, `forms/${encodeURIComponent(formId)}/submissions`),
|
|
306
337
|
method: "GET",
|
|
307
|
-
headers:
|
|
308
|
-
contentType: "application/json",
|
|
338
|
+
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),
|
|
309
339
|
queryParameters: _queryParams,
|
|
310
|
-
requestType: "json",
|
|
311
340
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
312
341
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
313
342
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
314
343
|
});
|
|
315
344
|
if (_response.ok) {
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
345
|
+
return {
|
|
346
|
+
data: serializers.FormSubmissionList.parseOrThrow(_response.body, {
|
|
347
|
+
unrecognizedObjectKeys: "passthrough",
|
|
348
|
+
allowUnrecognizedUnionMembers: true,
|
|
349
|
+
allowUnrecognizedEnumValues: true,
|
|
350
|
+
skipValidation: true,
|
|
351
|
+
breadcrumbsPrefix: ["response"],
|
|
352
|
+
}),
|
|
353
|
+
rawResponse: _response.rawResponse,
|
|
354
|
+
};
|
|
323
355
|
}
|
|
324
356
|
if (_response.error.reason === "status-code") {
|
|
325
357
|
switch (_response.error.statusCode) {
|
|
326
358
|
case 400:
|
|
327
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
359
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
328
360
|
case 401:
|
|
329
361
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
330
362
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -332,9 +364,9 @@ class Forms {
|
|
|
332
364
|
allowUnrecognizedEnumValues: true,
|
|
333
365
|
skipValidation: true,
|
|
334
366
|
breadcrumbsPrefix: ["response"],
|
|
335
|
-
}));
|
|
367
|
+
}), _response.rawResponse);
|
|
336
368
|
case 403:
|
|
337
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
369
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
338
370
|
case 404:
|
|
339
371
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
340
372
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -342,7 +374,7 @@ class Forms {
|
|
|
342
374
|
allowUnrecognizedEnumValues: true,
|
|
343
375
|
skipValidation: true,
|
|
344
376
|
breadcrumbsPrefix: ["response"],
|
|
345
|
-
}));
|
|
377
|
+
}), _response.rawResponse);
|
|
346
378
|
case 429:
|
|
347
379
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
348
380
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -350,7 +382,7 @@ class Forms {
|
|
|
350
382
|
allowUnrecognizedEnumValues: true,
|
|
351
383
|
skipValidation: true,
|
|
352
384
|
breadcrumbsPrefix: ["response"],
|
|
353
|
-
}));
|
|
385
|
+
}), _response.rawResponse);
|
|
354
386
|
case 500:
|
|
355
387
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
356
388
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -358,11 +390,12 @@ class Forms {
|
|
|
358
390
|
allowUnrecognizedEnumValues: true,
|
|
359
391
|
skipValidation: true,
|
|
360
392
|
breadcrumbsPrefix: ["response"],
|
|
361
|
-
}));
|
|
393
|
+
}), _response.rawResponse);
|
|
362
394
|
default:
|
|
363
395
|
throw new errors.WebflowError({
|
|
364
396
|
statusCode: _response.error.statusCode,
|
|
365
397
|
body: _response.error.body,
|
|
398
|
+
rawResponse: _response.rawResponse,
|
|
366
399
|
});
|
|
367
400
|
}
|
|
368
401
|
}
|
|
@@ -371,12 +404,14 @@ class Forms {
|
|
|
371
404
|
throw new errors.WebflowError({
|
|
372
405
|
statusCode: _response.error.statusCode,
|
|
373
406
|
body: _response.error.rawBody,
|
|
407
|
+
rawResponse: _response.rawResponse,
|
|
374
408
|
});
|
|
375
409
|
case "timeout":
|
|
376
410
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /forms/{form_id}/submissions.");
|
|
377
411
|
case "unknown":
|
|
378
412
|
throw new errors.WebflowError({
|
|
379
413
|
message: _response.error.errorMessage,
|
|
414
|
+
rawResponse: _response.rawResponse,
|
|
380
415
|
});
|
|
381
416
|
}
|
|
382
417
|
});
|
|
@@ -400,31 +435,36 @@ class Forms {
|
|
|
400
435
|
* await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
|
|
401
436
|
*/
|
|
402
437
|
getSubmission(formSubmissionId, requestOptions) {
|
|
403
|
-
|
|
438
|
+
return core.HttpResponsePromise.fromPromise(this.__getSubmission(formSubmissionId, requestOptions));
|
|
439
|
+
}
|
|
440
|
+
__getSubmission(formSubmissionId, requestOptions) {
|
|
404
441
|
return __awaiter(this, void 0, void 0, function* () {
|
|
442
|
+
var _a, _b, _c;
|
|
405
443
|
const _response = yield core.fetcher({
|
|
406
|
-
url: (0, url_join_1.default)((
|
|
444
|
+
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)
|
|
445
|
+
.base, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
407
446
|
method: "GET",
|
|
408
|
-
headers:
|
|
409
|
-
contentType: "application/json",
|
|
410
|
-
requestType: "json",
|
|
447
|
+
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),
|
|
411
448
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
412
449
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
413
450
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
414
451
|
});
|
|
415
452
|
if (_response.ok) {
|
|
416
|
-
return
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
453
|
+
return {
|
|
454
|
+
data: serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
455
|
+
unrecognizedObjectKeys: "passthrough",
|
|
456
|
+
allowUnrecognizedUnionMembers: true,
|
|
457
|
+
allowUnrecognizedEnumValues: true,
|
|
458
|
+
skipValidation: true,
|
|
459
|
+
breadcrumbsPrefix: ["response"],
|
|
460
|
+
}),
|
|
461
|
+
rawResponse: _response.rawResponse,
|
|
462
|
+
};
|
|
423
463
|
}
|
|
424
464
|
if (_response.error.reason === "status-code") {
|
|
425
465
|
switch (_response.error.statusCode) {
|
|
426
466
|
case 400:
|
|
427
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
467
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
428
468
|
case 401:
|
|
429
469
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
430
470
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -432,9 +472,9 @@ class Forms {
|
|
|
432
472
|
allowUnrecognizedEnumValues: true,
|
|
433
473
|
skipValidation: true,
|
|
434
474
|
breadcrumbsPrefix: ["response"],
|
|
435
|
-
}));
|
|
475
|
+
}), _response.rawResponse);
|
|
436
476
|
case 403:
|
|
437
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
477
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
438
478
|
case 404:
|
|
439
479
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
440
480
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -442,7 +482,7 @@ class Forms {
|
|
|
442
482
|
allowUnrecognizedEnumValues: true,
|
|
443
483
|
skipValidation: true,
|
|
444
484
|
breadcrumbsPrefix: ["response"],
|
|
445
|
-
}));
|
|
485
|
+
}), _response.rawResponse);
|
|
446
486
|
case 429:
|
|
447
487
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
448
488
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -450,7 +490,7 @@ class Forms {
|
|
|
450
490
|
allowUnrecognizedEnumValues: true,
|
|
451
491
|
skipValidation: true,
|
|
452
492
|
breadcrumbsPrefix: ["response"],
|
|
453
|
-
}));
|
|
493
|
+
}), _response.rawResponse);
|
|
454
494
|
case 500:
|
|
455
495
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
456
496
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -458,11 +498,12 @@ class Forms {
|
|
|
458
498
|
allowUnrecognizedEnumValues: true,
|
|
459
499
|
skipValidation: true,
|
|
460
500
|
breadcrumbsPrefix: ["response"],
|
|
461
|
-
}));
|
|
501
|
+
}), _response.rawResponse);
|
|
462
502
|
default:
|
|
463
503
|
throw new errors.WebflowError({
|
|
464
504
|
statusCode: _response.error.statusCode,
|
|
465
505
|
body: _response.error.body,
|
|
506
|
+
rawResponse: _response.rawResponse,
|
|
466
507
|
});
|
|
467
508
|
}
|
|
468
509
|
}
|
|
@@ -471,12 +512,14 @@ class Forms {
|
|
|
471
512
|
throw new errors.WebflowError({
|
|
472
513
|
statusCode: _response.error.statusCode,
|
|
473
514
|
body: _response.error.rawBody,
|
|
515
|
+
rawResponse: _response.rawResponse,
|
|
474
516
|
});
|
|
475
517
|
case "timeout":
|
|
476
518
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /form_submissions/{form_submission_id}.");
|
|
477
519
|
case "unknown":
|
|
478
520
|
throw new errors.WebflowError({
|
|
479
521
|
message: _response.error.errorMessage,
|
|
522
|
+
rawResponse: _response.rawResponse,
|
|
480
523
|
});
|
|
481
524
|
}
|
|
482
525
|
});
|
|
@@ -502,25 +545,27 @@ class Forms {
|
|
|
502
545
|
* await client.forms.deleteSubmission("580e63e98c9a982ac9b8b741")
|
|
503
546
|
*/
|
|
504
547
|
deleteSubmission(formSubmissionId, requestOptions) {
|
|
505
|
-
|
|
548
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteSubmission(formSubmissionId, requestOptions));
|
|
549
|
+
}
|
|
550
|
+
__deleteSubmission(formSubmissionId, requestOptions) {
|
|
506
551
|
return __awaiter(this, void 0, void 0, function* () {
|
|
552
|
+
var _a, _b, _c;
|
|
507
553
|
const _response = yield core.fetcher({
|
|
508
|
-
url: (0, url_join_1.default)((
|
|
554
|
+
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)
|
|
555
|
+
.base, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
509
556
|
method: "DELETE",
|
|
510
|
-
headers:
|
|
511
|
-
contentType: "application/json",
|
|
512
|
-
requestType: "json",
|
|
557
|
+
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),
|
|
513
558
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
514
559
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
515
560
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
516
561
|
});
|
|
517
562
|
if (_response.ok) {
|
|
518
|
-
return;
|
|
563
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
519
564
|
}
|
|
520
565
|
if (_response.error.reason === "status-code") {
|
|
521
566
|
switch (_response.error.statusCode) {
|
|
522
567
|
case 400:
|
|
523
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
568
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
524
569
|
case 401:
|
|
525
570
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
526
571
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -528,9 +573,9 @@ class Forms {
|
|
|
528
573
|
allowUnrecognizedEnumValues: true,
|
|
529
574
|
skipValidation: true,
|
|
530
575
|
breadcrumbsPrefix: ["response"],
|
|
531
|
-
}));
|
|
576
|
+
}), _response.rawResponse);
|
|
532
577
|
case 403:
|
|
533
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
578
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
534
579
|
case 404:
|
|
535
580
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
536
581
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -538,9 +583,9 @@ class Forms {
|
|
|
538
583
|
allowUnrecognizedEnumValues: true,
|
|
539
584
|
skipValidation: true,
|
|
540
585
|
breadcrumbsPrefix: ["response"],
|
|
541
|
-
}));
|
|
586
|
+
}), _response.rawResponse);
|
|
542
587
|
case 409:
|
|
543
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
588
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
544
589
|
case 429:
|
|
545
590
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
546
591
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -548,7 +593,7 @@ class Forms {
|
|
|
548
593
|
allowUnrecognizedEnumValues: true,
|
|
549
594
|
skipValidation: true,
|
|
550
595
|
breadcrumbsPrefix: ["response"],
|
|
551
|
-
}));
|
|
596
|
+
}), _response.rawResponse);
|
|
552
597
|
case 500:
|
|
553
598
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
554
599
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -556,11 +601,12 @@ class Forms {
|
|
|
556
601
|
allowUnrecognizedEnumValues: true,
|
|
557
602
|
skipValidation: true,
|
|
558
603
|
breadcrumbsPrefix: ["response"],
|
|
559
|
-
}));
|
|
604
|
+
}), _response.rawResponse);
|
|
560
605
|
default:
|
|
561
606
|
throw new errors.WebflowError({
|
|
562
607
|
statusCode: _response.error.statusCode,
|
|
563
608
|
body: _response.error.body,
|
|
609
|
+
rawResponse: _response.rawResponse,
|
|
564
610
|
});
|
|
565
611
|
}
|
|
566
612
|
}
|
|
@@ -569,12 +615,14 @@ class Forms {
|
|
|
569
615
|
throw new errors.WebflowError({
|
|
570
616
|
statusCode: _response.error.statusCode,
|
|
571
617
|
body: _response.error.rawBody,
|
|
618
|
+
rawResponse: _response.rawResponse,
|
|
572
619
|
});
|
|
573
620
|
case "timeout":
|
|
574
621
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /form_submissions/{form_submission_id}.");
|
|
575
622
|
case "unknown":
|
|
576
623
|
throw new errors.WebflowError({
|
|
577
624
|
message: _response.error.errorMessage,
|
|
625
|
+
rawResponse: _response.rawResponse,
|
|
578
626
|
});
|
|
579
627
|
}
|
|
580
628
|
});
|
|
@@ -600,12 +648,16 @@ class Forms {
|
|
|
600
648
|
* await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
|
|
601
649
|
*/
|
|
602
650
|
updateSubmission(formSubmissionId, request = {}, requestOptions) {
|
|
603
|
-
|
|
604
|
-
|
|
651
|
+
return core.HttpResponsePromise.fromPromise(this.__updateSubmission(formSubmissionId, request, requestOptions));
|
|
652
|
+
}
|
|
653
|
+
__updateSubmission(formSubmissionId_1) {
|
|
654
|
+
return __awaiter(this, arguments, void 0, function* (formSubmissionId, request = {}, requestOptions) {
|
|
655
|
+
var _a, _b, _c;
|
|
605
656
|
const _response = yield core.fetcher({
|
|
606
|
-
url: (0, url_join_1.default)((
|
|
657
|
+
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)
|
|
658
|
+
.base, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
607
659
|
method: "PATCH",
|
|
608
|
-
headers:
|
|
660
|
+
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),
|
|
609
661
|
contentType: "application/json",
|
|
610
662
|
requestType: "json",
|
|
611
663
|
body: serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, {
|
|
@@ -618,18 +670,21 @@ class Forms {
|
|
|
618
670
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
619
671
|
});
|
|
620
672
|
if (_response.ok) {
|
|
621
|
-
return
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
673
|
+
return {
|
|
674
|
+
data: serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
675
|
+
unrecognizedObjectKeys: "passthrough",
|
|
676
|
+
allowUnrecognizedUnionMembers: true,
|
|
677
|
+
allowUnrecognizedEnumValues: true,
|
|
678
|
+
skipValidation: true,
|
|
679
|
+
breadcrumbsPrefix: ["response"],
|
|
680
|
+
}),
|
|
681
|
+
rawResponse: _response.rawResponse,
|
|
682
|
+
};
|
|
628
683
|
}
|
|
629
684
|
if (_response.error.reason === "status-code") {
|
|
630
685
|
switch (_response.error.statusCode) {
|
|
631
686
|
case 400:
|
|
632
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
687
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
633
688
|
case 401:
|
|
634
689
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
635
690
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -637,9 +692,9 @@ class Forms {
|
|
|
637
692
|
allowUnrecognizedEnumValues: true,
|
|
638
693
|
skipValidation: true,
|
|
639
694
|
breadcrumbsPrefix: ["response"],
|
|
640
|
-
}));
|
|
695
|
+
}), _response.rawResponse);
|
|
641
696
|
case 403:
|
|
642
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
697
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
643
698
|
case 404:
|
|
644
699
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
645
700
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -647,9 +702,9 @@ class Forms {
|
|
|
647
702
|
allowUnrecognizedEnumValues: true,
|
|
648
703
|
skipValidation: true,
|
|
649
704
|
breadcrumbsPrefix: ["response"],
|
|
650
|
-
}));
|
|
705
|
+
}), _response.rawResponse);
|
|
651
706
|
case 409:
|
|
652
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
707
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
653
708
|
case 429:
|
|
654
709
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
655
710
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -657,7 +712,7 @@ class Forms {
|
|
|
657
712
|
allowUnrecognizedEnumValues: true,
|
|
658
713
|
skipValidation: true,
|
|
659
714
|
breadcrumbsPrefix: ["response"],
|
|
660
|
-
}));
|
|
715
|
+
}), _response.rawResponse);
|
|
661
716
|
case 500:
|
|
662
717
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
663
718
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -665,11 +720,12 @@ class Forms {
|
|
|
665
720
|
allowUnrecognizedEnumValues: true,
|
|
666
721
|
skipValidation: true,
|
|
667
722
|
breadcrumbsPrefix: ["response"],
|
|
668
|
-
}));
|
|
723
|
+
}), _response.rawResponse);
|
|
669
724
|
default:
|
|
670
725
|
throw new errors.WebflowError({
|
|
671
726
|
statusCode: _response.error.statusCode,
|
|
672
727
|
body: _response.error.body,
|
|
728
|
+
rawResponse: _response.rawResponse,
|
|
673
729
|
});
|
|
674
730
|
}
|
|
675
731
|
}
|
|
@@ -678,12 +734,14 @@ class Forms {
|
|
|
678
734
|
throw new errors.WebflowError({
|
|
679
735
|
statusCode: _response.error.statusCode,
|
|
680
736
|
body: _response.error.rawBody,
|
|
737
|
+
rawResponse: _response.rawResponse,
|
|
681
738
|
});
|
|
682
739
|
case "timeout":
|
|
683
740
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /form_submissions/{form_submission_id}.");
|
|
684
741
|
case "unknown":
|
|
685
742
|
throw new errors.WebflowError({
|
|
686
743
|
message: _response.error.errorMessage,
|
|
744
|
+
rawResponse: _response.rawResponse,
|
|
687
745
|
});
|
|
688
746
|
}
|
|
689
747
|
});
|
|
@@ -712,8 +770,11 @@ class Forms {
|
|
|
712
770
|
* })
|
|
713
771
|
*/
|
|
714
772
|
listSubmissionsBySite(siteId, request = {}, requestOptions) {
|
|
715
|
-
|
|
716
|
-
|
|
773
|
+
return core.HttpResponsePromise.fromPromise(this.__listSubmissionsBySite(siteId, request, requestOptions));
|
|
774
|
+
}
|
|
775
|
+
__listSubmissionsBySite(siteId_1) {
|
|
776
|
+
return __awaiter(this, arguments, void 0, function* (siteId, request = {}, requestOptions) {
|
|
777
|
+
var _a, _b, _c;
|
|
717
778
|
const { elementId, offset, limit } = request;
|
|
718
779
|
const _queryParams = {};
|
|
719
780
|
if (elementId != null) {
|
|
@@ -726,29 +787,31 @@ class Forms {
|
|
|
726
787
|
_queryParams["limit"] = limit.toString();
|
|
727
788
|
}
|
|
728
789
|
const _response = yield core.fetcher({
|
|
729
|
-
url: (0, url_join_1.default)((
|
|
790
|
+
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)
|
|
791
|
+
.base, `sites/${encodeURIComponent(siteId)}/form_submissions`),
|
|
730
792
|
method: "GET",
|
|
731
|
-
headers:
|
|
732
|
-
contentType: "application/json",
|
|
793
|
+
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),
|
|
733
794
|
queryParameters: _queryParams,
|
|
734
|
-
requestType: "json",
|
|
735
795
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
736
796
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
737
797
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
738
798
|
});
|
|
739
799
|
if (_response.ok) {
|
|
740
|
-
return
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
800
|
+
return {
|
|
801
|
+
data: serializers.FormSubmissionList.parseOrThrow(_response.body, {
|
|
802
|
+
unrecognizedObjectKeys: "passthrough",
|
|
803
|
+
allowUnrecognizedUnionMembers: true,
|
|
804
|
+
allowUnrecognizedEnumValues: true,
|
|
805
|
+
skipValidation: true,
|
|
806
|
+
breadcrumbsPrefix: ["response"],
|
|
807
|
+
}),
|
|
808
|
+
rawResponse: _response.rawResponse,
|
|
809
|
+
};
|
|
747
810
|
}
|
|
748
811
|
if (_response.error.reason === "status-code") {
|
|
749
812
|
switch (_response.error.statusCode) {
|
|
750
813
|
case 400:
|
|
751
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
814
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
752
815
|
case 401:
|
|
753
816
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
754
817
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -756,9 +819,9 @@ class Forms {
|
|
|
756
819
|
allowUnrecognizedEnumValues: true,
|
|
757
820
|
skipValidation: true,
|
|
758
821
|
breadcrumbsPrefix: ["response"],
|
|
759
|
-
}));
|
|
822
|
+
}), _response.rawResponse);
|
|
760
823
|
case 403:
|
|
761
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
824
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
762
825
|
case 404:
|
|
763
826
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
764
827
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -766,7 +829,7 @@ class Forms {
|
|
|
766
829
|
allowUnrecognizedEnumValues: true,
|
|
767
830
|
skipValidation: true,
|
|
768
831
|
breadcrumbsPrefix: ["response"],
|
|
769
|
-
}));
|
|
832
|
+
}), _response.rawResponse);
|
|
770
833
|
case 429:
|
|
771
834
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
772
835
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -774,7 +837,7 @@ class Forms {
|
|
|
774
837
|
allowUnrecognizedEnumValues: true,
|
|
775
838
|
skipValidation: true,
|
|
776
839
|
breadcrumbsPrefix: ["response"],
|
|
777
|
-
}));
|
|
840
|
+
}), _response.rawResponse);
|
|
778
841
|
case 500:
|
|
779
842
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
780
843
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -782,11 +845,12 @@ class Forms {
|
|
|
782
845
|
allowUnrecognizedEnumValues: true,
|
|
783
846
|
skipValidation: true,
|
|
784
847
|
breadcrumbsPrefix: ["response"],
|
|
785
|
-
}));
|
|
848
|
+
}), _response.rawResponse);
|
|
786
849
|
default:
|
|
787
850
|
throw new errors.WebflowError({
|
|
788
851
|
statusCode: _response.error.statusCode,
|
|
789
852
|
body: _response.error.body,
|
|
853
|
+
rawResponse: _response.rawResponse,
|
|
790
854
|
});
|
|
791
855
|
}
|
|
792
856
|
}
|
|
@@ -795,12 +859,14 @@ class Forms {
|
|
|
795
859
|
throw new errors.WebflowError({
|
|
796
860
|
statusCode: _response.error.statusCode,
|
|
797
861
|
body: _response.error.rawBody,
|
|
862
|
+
rawResponse: _response.rawResponse,
|
|
798
863
|
});
|
|
799
864
|
case "timeout":
|
|
800
865
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/form_submissions.");
|
|
801
866
|
case "unknown":
|
|
802
867
|
throw new errors.WebflowError({
|
|
803
868
|
message: _response.error.errorMessage,
|
|
869
|
+
rawResponse: _response.rawResponse,
|
|
804
870
|
});
|
|
805
871
|
}
|
|
806
872
|
});
|