webflow-api 3.1.4 → 3.2.1
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 +811 -148
- package/.mock/definition/accessGroups.yml +7 -1
- package/.mock/definition/api.yml +0 -2
- package/.mock/definition/assets.yml +38 -8
- package/.mock/definition/collections/fields.yml +15 -9
- package/.mock/definition/collections/items.yml +740 -266
- package/.mock/definition/collections.yml +140 -14
- package/.mock/definition/comments.yml +40 -0
- package/.mock/definition/components.yml +87 -26
- package/.mock/definition/ecommerce.yml +3 -1
- package/.mock/definition/forms.yml +65 -7
- package/.mock/definition/inventory.yml +44 -16
- package/.mock/definition/items.yml +111 -0
- package/.mock/definition/orders.yml +470 -86
- package/.mock/definition/pages/scripts.yml +27 -8
- package/.mock/definition/pages.yml +172 -63
- package/.mock/definition/products.yml +52 -33
- package/.mock/definition/scripts.yml +13 -3
- package/.mock/definition/sites/activityLogs.yml +6 -1
- package/.mock/definition/sites/comments.yml +39 -14
- package/.mock/definition/sites/plans.yml +3 -1
- package/.mock/definition/sites/redirects.yml +12 -4
- package/.mock/definition/sites/robotsTxt.yml +12 -4
- package/.mock/definition/sites/scripts.yml +35 -8
- package/.mock/definition/sites/wellKnown.yml +20 -4
- package/.mock/definition/sites.yml +56 -14
- package/.mock/definition/token.yml +3 -2
- package/.mock/definition/users.yml +231 -33
- package/.mock/definition/webhooks.yml +0 -4
- package/.mock/definition/workspaces/auditLogs.yml +9 -3
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +22 -18
- package/Client.js +44 -2
- 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 +15 -6
- package/api/resources/accessGroups/client/Client.js +62 -31
- package/api/resources/accessGroups/client/index.d.ts +1 -0
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
- package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +29 -13
- package/api/resources/assets/client/Client.js +232 -137
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +23 -13
- package/api/resources/collections/client/Client.js +127 -79
- package/api/resources/collections/client/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/client/Client.d.ts +20 -11
- package/api/resources/collections/resources/fields/client/Client.js +98 -56
- 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 +174 -86
- package/api/resources/collections/resources/items/client/Client.js +631 -330
- package/api/resources/collections/resources/items/client/index.d.ts +1 -0
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +8 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +47 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +47 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +13 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +13 -1
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +25 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +25 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +8 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +6 -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 +39 -15
- package/api/resources/components/client/Client.js +194 -105
- package/api/resources/components/client/index.d.ts +1 -0
- package/api/resources/components/client/requests/ComponentDomWrite.d.ts +8 -1
- package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +8 -1
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +11 -2
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +11 -2
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +9 -1
- package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +10 -5
- package/api/resources/ecommerce/client/Client.js +51 -28
- package/api/resources/forms/client/Client.d.ts +33 -14
- package/api/resources/forms/client/Client.js +215 -137
- package/api/resources/forms/client/index.d.ts +1 -0
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
- package/api/resources/index.js +17 -7
- package/api/resources/inventory/client/Client.d.ts +18 -12
- package/api/resources/inventory/client/Client.js +88 -55
- 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 +25 -11
- package/api/resources/orders/client/Client.js +201 -124
- package/api/resources/orders/client/index.d.ts +1 -0
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
- 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 +43 -47
- package/api/resources/pages/client/Client.js +185 -139
- package/api/resources/pages/client/index.d.ts +1 -0
- package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +43 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
- 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 +19 -10
- package/api/resources/pages/resources/scripts/client/Client.js +96 -56
- 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/PageMetadataWriteOpenGraph.js +5 -0
- package/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
- package/api/resources/pages/types/PageMetadataWriteSeo.js +5 -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 +36 -13
- package/api/resources/products/client/Client.js +204 -120
- 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/ProductsListRequest.d.ts +4 -1
- 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 +14 -7
- package/api/resources/scripts/client/Client.js +99 -56
- package/api/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/client/Client.d.ts +43 -27
- package/api/resources/sites/client/Client.js +228 -149
- 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 +14 -6
- package/api/resources/sites/resources/activityLogs/client/Client.js +53 -27
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
- package/api/resources/sites/resources/comments/client/Client.d.ts +29 -10
- package/api/resources/sites/resources/comments/client/Client.js +148 -73
- package/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
- 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 +10 -5
- package/api/resources/sites/resources/plans/client/Client.js +49 -26
- package/api/resources/sites/resources/redirects/client/Client.d.ts +16 -8
- package/api/resources/sites/resources/redirects/client/Client.js +124 -73
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +16 -8
- package/api/resources/sites/resources/robotsTxt/client/Client.js +124 -71
- package/api/resources/sites/resources/scripts/client/Client.d.ts +26 -11
- package/api/resources/sites/resources/scripts/client/Client.js +126 -73
- package/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
- package/api/resources/sites/resources/wellKnown/client/Client.d.ts +15 -8
- package/api/resources/sites/resources/wellKnown/client/Client.js +60 -30
- package/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
- package/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +12 -6
- package/api/resources/token/client/Client.js +67 -36
- package/api/resources/users/client/Client.d.ts +36 -18
- package/api/resources/users/client/Client.js +173 -104
- 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/UsersListRequest.d.ts +5 -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/UserAccountAddedPayload.js +5 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayload.js +5 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +5 -0
- package/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountDeletedPayload.js +5 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.js +5 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +5 -0
- package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountUpdatedPayload.js +5 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +5 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +5 -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 +18 -10
- package/api/resources/webhooks/client/Client.js +117 -71
- package/api/resources/workspaces/client/Client.d.ts +6 -12
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +16 -7
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +69 -32
- package/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -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/CollectionItemChanged.js +5 -0
- package/api/types/CollectionItemCreated.d.ts +12 -0
- package/api/types/CollectionItemCreated.js +5 -0
- package/api/types/CollectionItemPublished.d.ts +9 -0
- package/api/types/CollectionItemPublished.js +5 -0
- package/api/types/CollectionItemRemoved.d.ts +10 -0
- package/api/types/CollectionItemRemoved.js +5 -0
- package/api/types/CollectionItemRemovedPayload.d.ts +25 -0
- package/api/types/CollectionItemRemovedPayload.js +5 -0
- package/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
- package/api/types/CollectionItemRemovedPayloadFieldData.js +5 -0
- package/api/types/CollectionItemUnpublished.d.ts +10 -0
- package/api/types/CollectionItemUnpublished.js +5 -0
- package/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
- package/api/types/CollectionItemUnpublishedPayload.js +5 -0
- package/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
- package/api/types/CollectionItemUnpublishedPayloadFieldData.js +5 -0
- package/api/types/Comment.d.ts +12 -0
- package/api/types/Comment.js +5 -0
- package/api/types/CommentPayload.d.ts +38 -0
- package/api/types/CommentPayload.js +5 -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/api/types/ComponentNode.d.ts +3 -3
- 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/api/types/ImageNode.d.ts +2 -2
- 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/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 +1 -1
- package/api/types/NotEnterprisePlanSite.d.ts +1 -1
- package/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
- package/api/types/OAuthScope.d.ts +1 -1
- package/api/types/Order.d.ts +2 -2
- package/api/types/OrderAddressJapanType.d.ts +1 -1
- package/api/types/OrderAddressType.d.ts +1 -1
- package/api/types/OrderBillingAddress.d.ts +27 -0
- package/api/types/OrderBillingAddress.js +5 -0
- package/api/types/OrderBillingAddressJapanType.d.ts +11 -0
- package/api/types/OrderBillingAddressJapanType.js +10 -0
- package/api/types/OrderBillingAddressType.d.ts +11 -0
- package/api/types/OrderBillingAddressType.js +10 -0
- package/api/types/OrderDisputeLastStatus.d.ts +1 -1
- package/api/types/OrderShippingAddress.d.ts +27 -0
- package/api/types/OrderShippingAddress.js +5 -0
- package/api/types/OrderShippingAddressJapanType.d.ts +11 -0
- package/api/types/OrderShippingAddressJapanType.js +10 -0
- package/api/types/OrderShippingAddressType.d.ts +11 -0
- package/api/types/OrderShippingAddressType.js +10 -0
- package/api/types/OrderStatus.d.ts +1 -1
- package/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
- package/api/types/Page.d.ts +3 -1
- package/api/types/PageCreatedWebhook.d.ts +13 -0
- package/api/types/PageCreatedWebhook.js +5 -0
- package/api/types/PageCreatedWebhookPayload.d.ts +13 -0
- package/api/types/PageCreatedWebhookPayload.js +5 -0
- package/api/types/PageDeletedWebhook.d.ts +13 -0
- package/api/types/PageDeletedWebhook.js +5 -0
- package/api/types/PageDeletedWebhookPayload.d.ts +13 -0
- package/api/types/PageDeletedWebhookPayload.js +5 -0
- package/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
- package/api/types/PageMetadataUpdatedWebhook.js +5 -0
- package/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
- package/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
- package/api/types/Payload.d.ts +25 -0
- package/api/types/Payload.js +5 -0
- package/api/types/PayloadFieldData.d.ts +9 -0
- package/api/types/PayloadFieldData.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/{dist/api/types/SelectNodeWrite.d.ts → api/types/Select.d.ts} +1 -1
- package/api/types/Select.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/SiteMembership.d.ts +1 -0
- package/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
- package/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
- 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/SkuFieldData.d.ts +0 -4
- 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/api/types/TextNode.d.ts +2 -2
- package/api/types/TriggerType.d.ts +2 -1
- package/api/types/TriggerType.js +1 -0
- 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/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +5 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +5 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/api/types/WorkspaceInvitation.d.ts +1 -0
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/index.d.ts +47 -3
- package/api/types/index.js +47 -3
- 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 +22 -18
- package/dist/Client.js +44 -2
- 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 +15 -6
- package/dist/api/resources/accessGroups/client/Client.js +62 -31
- package/dist/api/resources/accessGroups/client/index.d.ts +1 -0
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
- package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +29 -13
- package/dist/api/resources/assets/client/Client.js +232 -137
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
- package/dist/api/resources/assets/client/requests/AssetsListRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +23 -13
- package/dist/api/resources/collections/client/Client.js +127 -79
- package/dist/api/resources/collections/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +20 -11
- package/dist/api/resources/collections/resources/fields/client/Client.js +98 -56
- 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 +174 -86
- package/dist/api/resources/collections/resources/items/client/Client.js +631 -330
- 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 +8 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +47 -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 +47 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +13 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +13 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +25 -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 +25 -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 +8 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +6 -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 +39 -15
- package/dist/api/resources/components/client/Client.js +194 -105
- package/dist/api/resources/components/client/index.d.ts +1 -0
- package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +8 -1
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +8 -1
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +11 -2
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +11 -2
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +9 -1
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +10 -5
- package/dist/api/resources/ecommerce/client/Client.js +51 -28
- package/dist/api/resources/forms/client/Client.d.ts +33 -14
- package/dist/api/resources/forms/client/Client.js +215 -137
- package/dist/api/resources/forms/client/index.d.ts +1 -0
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/inventory/client/Client.d.ts +18 -12
- package/dist/api/resources/inventory/client/Client.js +88 -55
- 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 +25 -11
- package/dist/api/resources/orders/client/Client.js +201 -124
- package/dist/api/resources/orders/client/index.d.ts +1 -0
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
- 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 +43 -47
- package/dist/api/resources/pages/client/Client.js +185 -139
- package/dist/api/resources/pages/client/index.d.ts +1 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +43 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
- 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 +19 -10
- package/dist/api/resources/pages/resources/scripts/client/Client.js +96 -56
- 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 +36 -13
- package/dist/api/resources/products/client/Client.js +204 -120
- 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/ProductsListRequest.d.ts +4 -1
- 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 +14 -7
- package/dist/api/resources/scripts/client/Client.js +99 -56
- package/dist/api/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/client/Client.d.ts +43 -27
- package/dist/api/resources/sites/client/Client.js +228 -149
- 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 +14 -6
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +53 -27
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +29 -10
- package/dist/api/resources/sites/resources/comments/client/Client.js +148 -73
- package/dist/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
- 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 +10 -5
- package/dist/api/resources/sites/resources/plans/client/Client.js +49 -26
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +16 -8
- package/dist/api/resources/sites/resources/redirects/client/Client.js +124 -73
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +16 -8
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +124 -71
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +26 -11
- package/dist/api/resources/sites/resources/scripts/client/Client.js +126 -73
- package/dist/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +15 -8
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +60 -30
- package/dist/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
- package/dist/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +12 -6
- package/dist/api/resources/token/client/Client.js +67 -36
- package/dist/api/resources/users/client/Client.d.ts +36 -18
- package/dist/api/resources/users/client/Client.js +173 -104
- 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/UsersListRequest.d.ts +5 -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 +18 -10
- package/dist/api/resources/webhooks/client/Client.js +117 -71
- package/dist/api/resources/workspaces/client/Client.d.ts +6 -12
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +16 -7
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +69 -32
- 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 +6 -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/CollectionItemCreated.d.ts +12 -0
- package/dist/api/types/CollectionItemCreated.js +5 -0
- package/dist/api/types/CollectionItemPublished.d.ts +9 -0
- package/dist/api/types/CollectionItemPublished.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/dist/api/types/ComponentNode.d.ts +3 -3
- 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/dist/api/types/ImageNode.d.ts +2 -2
- 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/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 +1 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
- package/dist/api/types/OAuthScope.d.ts +1 -1
- package/dist/api/types/Order.d.ts +2 -2
- package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
- package/dist/api/types/OrderAddressType.d.ts +1 -1
- package/dist/api/types/OrderBillingAddress.d.ts +27 -0
- package/dist/api/types/OrderBillingAddress.js +5 -0
- package/dist/api/types/OrderBillingAddressJapanType.d.ts +11 -0
- package/dist/api/types/OrderBillingAddressJapanType.js +10 -0
- package/dist/api/types/OrderBillingAddressType.d.ts +11 -0
- package/dist/api/types/OrderBillingAddressType.js +10 -0
- package/dist/api/types/OrderDisputeLastStatus.d.ts +1 -1
- package/dist/api/types/OrderShippingAddress.d.ts +27 -0
- package/dist/api/types/OrderShippingAddress.js +5 -0
- package/dist/api/types/OrderShippingAddressJapanType.d.ts +11 -0
- package/dist/api/types/OrderShippingAddressJapanType.js +10 -0
- package/dist/api/types/OrderShippingAddressType.d.ts +11 -0
- package/dist/api/types/OrderShippingAddressType.js +10 -0
- package/dist/api/types/OrderStatus.d.ts +1 -1
- package/dist/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
- package/dist/api/types/Page.d.ts +3 -1
- package/dist/api/types/PageCreatedWebhook.d.ts +13 -0
- package/dist/api/types/PageCreatedWebhook.js +5 -0
- package/dist/api/types/PageCreatedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageCreatedWebhookPayload.js +5 -0
- package/dist/api/types/PageDeletedWebhook.d.ts +13 -0
- package/dist/api/types/PageDeletedWebhook.js +5 -0
- package/dist/api/types/PageDeletedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageDeletedWebhookPayload.js +5 -0
- package/dist/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
- package/dist/api/types/PageMetadataUpdatedWebhook.js +5 -0
- package/dist/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
- package/dist/api/types/Payload.d.ts +25 -0
- package/dist/api/types/Payload.js +5 -0
- package/dist/api/types/PayloadFieldData.d.ts +9 -0
- package/dist/api/types/PayloadFieldData.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/{api/types/SelectNodeWrite.d.ts → dist/api/types/Select.d.ts} +1 -1
- package/dist/api/types/Select.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/SiteMembership.d.ts +1 -0
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
- 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/SkuFieldData.d.ts +0 -4
- 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/dist/api/types/TextNode.d.ts +2 -2
- package/dist/api/types/TriggerType.d.ts +2 -1
- package/dist/api/types/TriggerType.js +1 -0
- 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/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +5 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +5 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceInvitation.d.ts +1 -0
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/dist/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/index.d.ts +47 -3
- package/dist/api/types/index.js +47 -3
- 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 -5
- package/dist/environments.js +0 -2
- 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/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → 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 +2 -2
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +19 -9
- 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 +2 -2
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +19 -9
- 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/CollectionItemCreated.d.ts +14 -0
- package/dist/serialization/types/CollectionItemCreated.js +45 -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/CollectionItemPublished.d.ts +14 -0
- package/dist/serialization/types/CollectionItemPublished.js +45 -0
- 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/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +17 -7
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/dist/serialization/types/ComponentList.js +17 -7
- package/dist/serialization/types/ComponentNode.d.ts +3 -3
- package/dist/serialization/types/ComponentNode.js +20 -10
- 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/dist/serialization/types/ImageNode.d.ts +2 -2
- package/dist/serialization/types/ImageNode.js +19 -9
- 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/Metadata.js +17 -7
- package/dist/serialization/types/MetadataOptionsItem.js +17 -7
- 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.js +17 -7
- package/dist/serialization/types/NotEnterprisePlanSite.js +17 -7
- package/dist/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
- package/dist/serialization/types/OptionField.js +17 -7
- package/dist/serialization/types/Order.d.ts +4 -2
- package/dist/serialization/types/Order.js +21 -9
- package/dist/serialization/types/OrderAddress.js +17 -7
- package/dist/serialization/types/OrderAddressJapanType.js +17 -7
- package/dist/serialization/types/OrderAddressType.js +17 -7
- package/dist/serialization/types/OrderBillingAddress.d.ts +22 -0
- package/dist/serialization/types/OrderBillingAddress.js +53 -0
- package/dist/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
- package/dist/serialization/types/OrderBillingAddressJapanType.js +41 -0
- package/dist/serialization/types/OrderBillingAddressType.d.ts +10 -0
- package/dist/serialization/types/OrderBillingAddressType.js +41 -0
- package/dist/serialization/types/OrderCustomerInfo.js +17 -7
- package/dist/serialization/types/OrderDisputeLastStatus.js +17 -7
- package/dist/serialization/types/OrderDownloadFilesItem.js +17 -7
- package/dist/serialization/types/OrderList.js +17 -7
- package/dist/serialization/types/OrderMetadata.js +17 -7
- package/dist/serialization/types/OrderPrice.js +17 -7
- package/dist/serialization/types/OrderPurchasedItem.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
- package/dist/serialization/types/OrderShippingAddress.d.ts +22 -0
- package/dist/serialization/types/OrderShippingAddress.js +53 -0
- package/dist/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
- package/dist/serialization/types/OrderShippingAddressJapanType.js +41 -0
- package/dist/serialization/types/OrderShippingAddressType.d.ts +10 -0
- package/dist/serialization/types/OrderShippingAddressType.js +41 -0
- package/dist/serialization/types/OrderStatus.js +17 -7
- package/dist/serialization/types/OrderTotals.js +17 -7
- package/dist/serialization/types/OrderTotalsExtrasItem.js +17 -7
- package/dist/serialization/types/OrderTotalsExtrasItemType.js +17 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +18 -7
- package/dist/serialization/types/PageCreatedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageCreatedWebhook.js +45 -0
- package/dist/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageCreatedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageDeletedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageDeletedWebhook.js +45 -0
- package/dist/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageDeletedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageList.js +17 -7
- package/dist/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageOpenGraph.js +17 -7
- package/dist/serialization/types/PageSeo.js +17 -7
- package/dist/serialization/types/Pagination.js +17 -7
- package/dist/serialization/types/Payload.d.ts +23 -0
- package/dist/serialization/types/Payload.js +54 -0
- package/dist/serialization/types/PayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/PayloadFieldData.js +46 -0
- 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/dist/serialization/types/SearchButtonNode.js +17 -7
- package/dist/serialization/types/SearchButtonNodeWrite.js +17 -7
- 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/SelectNode.js +17 -7
- package/dist/serialization/types/SelectNodeChoicesItem.js +17 -7
- package/dist/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- 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.d.ts +2 -0
- package/dist/serialization/types/SiteMembership.js +19 -7
- package/dist/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +18 -8
- 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.d.ts +0 -2
- package/dist/serialization/types/SkuFieldData.js +17 -9
- 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/dist/serialization/types/SubmitButtonNode.js +17 -7
- package/dist/serialization/types/SubmitButtonNodeWrite.js +17 -7
- package/dist/serialization/types/Text.js +17 -7
- package/dist/serialization/types/TextInputNode.js +17 -7
- package/dist/serialization/types/TextInputNodeWrite.js +17 -7
- package/dist/serialization/types/TextNode.d.ts +2 -2
- package/dist/serialization/types/TextNode.js +19 -9
- package/dist/serialization/types/TextNodeText.js +17 -7
- package/dist/serialization/types/TextNodeWrite.js +17 -7
- package/dist/serialization/types/TriggerType.d.ts +1 -1
- package/dist/serialization/types/TriggerType.js +18 -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/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +18 -8
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +18 -8
- 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.d.ts +2 -0
- package/dist/serialization/types/WorkspaceInvitation.js +19 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +18 -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 +47 -3
- package/dist/serialization/types/index.js +47 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AssetsClient.d.ts +24 -0
- package/dist/wrapper/AssetsClient.js +42 -0
- package/dist/wrapper/AssetsUtilitiesClient.d.ts +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 -5
- package/environments.js +0 -2
- package/errors/WebflowError.d.ts +4 -1
- package/errors/WebflowError.js +6 -8
- package/index.js +17 -7
- package/jest.config.mjs +9 -0
- package/package.json +25 -20
- package/reference.md +259 -131
- 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/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → 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 +2 -2
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +19 -9
- 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 +2 -2
- package/serialization/resources/pages/types/PageDomWriteNodesItem.js +19 -9
- 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/CollectionItemCreated.d.ts +14 -0
- package/serialization/types/CollectionItemCreated.js +45 -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/CollectionItemPublished.d.ts +14 -0
- package/serialization/types/CollectionItemPublished.js +45 -0
- 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/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +17 -7
- package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/serialization/types/ComponentList.js +17 -7
- package/serialization/types/ComponentNode.d.ts +3 -3
- package/serialization/types/ComponentNode.js +20 -10
- 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/serialization/types/ImageNode.d.ts +2 -2
- package/serialization/types/ImageNode.js +19 -9
- 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/Metadata.js +17 -7
- package/serialization/types/MetadataOptionsItem.js +17 -7
- 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.js +17 -7
- package/serialization/types/NotEnterprisePlanSite.js +17 -7
- package/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
- package/serialization/types/OptionField.js +17 -7
- package/serialization/types/Order.d.ts +4 -2
- package/serialization/types/Order.js +21 -9
- package/serialization/types/OrderAddress.js +17 -7
- package/serialization/types/OrderAddressJapanType.js +17 -7
- package/serialization/types/OrderAddressType.js +17 -7
- package/serialization/types/OrderBillingAddress.d.ts +22 -0
- package/serialization/types/OrderBillingAddress.js +53 -0
- package/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
- package/serialization/types/OrderBillingAddressJapanType.js +41 -0
- package/serialization/types/OrderBillingAddressType.d.ts +10 -0
- package/serialization/types/OrderBillingAddressType.js +41 -0
- package/serialization/types/OrderCustomerInfo.js +17 -7
- package/serialization/types/OrderDisputeLastStatus.js +17 -7
- package/serialization/types/OrderDownloadFilesItem.js +17 -7
- package/serialization/types/OrderList.js +17 -7
- package/serialization/types/OrderMetadata.js +17 -7
- package/serialization/types/OrderPrice.js +17 -7
- package/serialization/types/OrderPurchasedItem.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
- package/serialization/types/OrderShippingAddress.d.ts +22 -0
- package/serialization/types/OrderShippingAddress.js +53 -0
- package/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
- package/serialization/types/OrderShippingAddressJapanType.js +41 -0
- package/serialization/types/OrderShippingAddressType.d.ts +10 -0
- package/serialization/types/OrderShippingAddressType.js +41 -0
- package/serialization/types/OrderStatus.js +17 -7
- package/serialization/types/OrderTotals.js +17 -7
- package/serialization/types/OrderTotalsExtrasItem.js +17 -7
- package/serialization/types/OrderTotalsExtrasItemType.js +17 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +18 -7
- package/serialization/types/PageCreatedWebhook.d.ts +14 -0
- package/serialization/types/PageCreatedWebhook.js +45 -0
- package/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageCreatedWebhookPayload.js +47 -0
- package/serialization/types/PageDeletedWebhook.d.ts +14 -0
- package/serialization/types/PageDeletedWebhook.js +45 -0
- package/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageDeletedWebhookPayload.js +47 -0
- package/serialization/types/PageList.js +17 -7
- package/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
- package/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
- package/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
- package/serialization/types/PageOpenGraph.js +17 -7
- package/serialization/types/PageSeo.js +17 -7
- package/serialization/types/Pagination.js +17 -7
- package/serialization/types/Payload.d.ts +23 -0
- package/serialization/types/Payload.js +54 -0
- package/serialization/types/PayloadFieldData.d.ts +14 -0
- package/serialization/types/PayloadFieldData.js +46 -0
- 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/serialization/types/SearchButtonNode.js +17 -7
- package/serialization/types/SearchButtonNodeWrite.js +17 -7
- 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/SelectNode.js +17 -7
- package/serialization/types/SelectNodeChoicesItem.js +17 -7
- package/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- 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.d.ts +2 -0
- package/serialization/types/SiteMembership.js +19 -7
- package/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +18 -8
- 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.d.ts +0 -2
- package/serialization/types/SkuFieldData.js +17 -9
- 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/serialization/types/SubmitButtonNode.js +17 -7
- package/serialization/types/SubmitButtonNodeWrite.js +17 -7
- package/serialization/types/Text.js +17 -7
- package/serialization/types/TextInputNode.js +17 -7
- package/serialization/types/TextInputNodeWrite.js +17 -7
- package/serialization/types/TextNode.d.ts +2 -2
- package/serialization/types/TextNode.js +19 -9
- package/serialization/types/TextNodeText.js +17 -7
- package/serialization/types/TextNodeWrite.js +17 -7
- package/serialization/types/TriggerType.d.ts +1 -1
- package/serialization/types/TriggerType.js +18 -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/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +18 -8
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +18 -8
- 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.d.ts +2 -0
- package/serialization/types/WorkspaceInvitation.js +19 -7
- package/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +18 -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 +47 -3
- package/serialization/types/index.js +47 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AssetsClient.d.ts +24 -0
- package/wrapper/AssetsClient.js +42 -0
- package/wrapper/AssetsUtilitiesClient.d.ts +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/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/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/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/api/resources/{collections/resources/items/client/requests/ItemsPublishItemRequest.js → assets/client/requests/AssetsListRequest.js} +0 -0
- /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/{pages/client/requests/UpdatePageSettingsRequest.js → collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.js} +0 -0
- /package/api/resources/{users/client/requests/UsersUpdateRequest.js → collections/resources/items/client/requests/ItemsUpdateItemRequest.js} +0 -0
- /package/api/resources/{users/types/UsersUpdateRequestData.js → collections/resources/items/types/ItemIDs.js} +0 -0
- /package/api/{types/SelectNodeWrite.js → resources/collections/resources/items/types/ItemIDsWithLocales.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js → api/resources/collections/resources/items/types/ItemsPublishItemRequest.js} +0 -0
- /package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js → api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js} +0 -0
- /package/{dist/api/resources/users/client/requests/UsersUpdateRequest.js → api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js} +0 -0
- /package/{dist/api/resources/users/types/UsersUpdateRequestData.js → api/resources/inventory/types/EcommInventoryChangedPayload.js} +0 -0
- /package/{dist/api/types/SelectNodeWrite.js → api/resources/pages/client/requests/PageMetadataWrite.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,14 +52,15 @@ exports.Orders = void 0;
|
|
|
42
52
|
const environments = __importStar(require("../../../../environments"));
|
|
43
53
|
const core = __importStar(require("../../../../core"));
|
|
44
54
|
const Webflow = __importStar(require("../../../index"));
|
|
45
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
46
55
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
57
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
59
|
/**
|
|
49
60
|
* Orders are the orders for your Webflow site.
|
|
50
61
|
*/
|
|
51
62
|
class Orders {
|
|
52
|
-
constructor(_options) {
|
|
63
|
+
constructor(_options = {}) {
|
|
53
64
|
this._options = _options;
|
|
54
65
|
}
|
|
55
66
|
/**
|
|
@@ -70,15 +81,26 @@ class Orders {
|
|
|
70
81
|
* @throws {@link Webflow.InternalServerError}
|
|
71
82
|
*
|
|
72
83
|
* @example
|
|
73
|
-
* await client.orders.list("580e63e98c9a982ac9b8b741"
|
|
84
|
+
* await client.orders.list("580e63e98c9a982ac9b8b741", {
|
|
85
|
+
* status: "pending",
|
|
86
|
+
* offset: 1.1,
|
|
87
|
+
* limit: 1.1
|
|
88
|
+
* })
|
|
74
89
|
*/
|
|
75
90
|
list(siteId, request = {}, requestOptions) {
|
|
76
|
-
|
|
77
|
-
|
|
91
|
+
return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions));
|
|
92
|
+
}
|
|
93
|
+
__list(siteId_1) {
|
|
94
|
+
return __awaiter(this, arguments, void 0, function* (siteId, request = {}, requestOptions) {
|
|
95
|
+
var _a, _b, _c;
|
|
78
96
|
const { status, offset, limit } = request;
|
|
79
97
|
const _queryParams = {};
|
|
80
98
|
if (status != null) {
|
|
81
|
-
_queryParams["status"] = status
|
|
99
|
+
_queryParams["status"] = serializers.OrdersListRequestStatus.jsonOrThrow(status, {
|
|
100
|
+
unrecognizedObjectKeys: "passthrough",
|
|
101
|
+
allowUnrecognizedUnionMembers: true,
|
|
102
|
+
allowUnrecognizedEnumValues: true,
|
|
103
|
+
});
|
|
82
104
|
}
|
|
83
105
|
if (offset != null) {
|
|
84
106
|
_queryParams["offset"] = offset.toString();
|
|
@@ -87,29 +109,31 @@ class Orders {
|
|
|
87
109
|
_queryParams["limit"] = limit.toString();
|
|
88
110
|
}
|
|
89
111
|
const _response = yield core.fetcher({
|
|
90
|
-
url: (0, url_join_1.default)((
|
|
112
|
+
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)
|
|
113
|
+
.base, `sites/${encodeURIComponent(siteId)}/orders`),
|
|
91
114
|
method: "GET",
|
|
92
|
-
headers:
|
|
93
|
-
contentType: "application/json",
|
|
115
|
+
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),
|
|
94
116
|
queryParameters: _queryParams,
|
|
95
|
-
requestType: "json",
|
|
96
117
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
97
118
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
119
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
120
|
});
|
|
100
121
|
if (_response.ok) {
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
122
|
+
return {
|
|
123
|
+
data: serializers.OrderList.parseOrThrow(_response.body, {
|
|
124
|
+
unrecognizedObjectKeys: "passthrough",
|
|
125
|
+
allowUnrecognizedUnionMembers: true,
|
|
126
|
+
allowUnrecognizedEnumValues: true,
|
|
127
|
+
skipValidation: true,
|
|
128
|
+
breadcrumbsPrefix: ["response"],
|
|
129
|
+
}),
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
};
|
|
108
132
|
}
|
|
109
133
|
if (_response.error.reason === "status-code") {
|
|
110
134
|
switch (_response.error.statusCode) {
|
|
111
135
|
case 400:
|
|
112
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
136
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
113
137
|
case 401:
|
|
114
138
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
115
139
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -117,9 +141,9 @@ class Orders {
|
|
|
117
141
|
allowUnrecognizedEnumValues: true,
|
|
118
142
|
skipValidation: true,
|
|
119
143
|
breadcrumbsPrefix: ["response"],
|
|
120
|
-
}));
|
|
144
|
+
}), _response.rawResponse);
|
|
121
145
|
case 403:
|
|
122
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
146
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
123
147
|
case 404:
|
|
124
148
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
125
149
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -127,9 +151,9 @@ class Orders {
|
|
|
127
151
|
allowUnrecognizedEnumValues: true,
|
|
128
152
|
skipValidation: true,
|
|
129
153
|
breadcrumbsPrefix: ["response"],
|
|
130
|
-
}));
|
|
154
|
+
}), _response.rawResponse);
|
|
131
155
|
case 409:
|
|
132
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
156
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
133
157
|
case 429:
|
|
134
158
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
135
159
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -137,7 +161,7 @@ class Orders {
|
|
|
137
161
|
allowUnrecognizedEnumValues: true,
|
|
138
162
|
skipValidation: true,
|
|
139
163
|
breadcrumbsPrefix: ["response"],
|
|
140
|
-
}));
|
|
164
|
+
}), _response.rawResponse);
|
|
141
165
|
case 500:
|
|
142
166
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
143
167
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -145,11 +169,12 @@ class Orders {
|
|
|
145
169
|
allowUnrecognizedEnumValues: true,
|
|
146
170
|
skipValidation: true,
|
|
147
171
|
breadcrumbsPrefix: ["response"],
|
|
148
|
-
}));
|
|
172
|
+
}), _response.rawResponse);
|
|
149
173
|
default:
|
|
150
174
|
throw new errors.WebflowError({
|
|
151
175
|
statusCode: _response.error.statusCode,
|
|
152
176
|
body: _response.error.body,
|
|
177
|
+
rawResponse: _response.rawResponse,
|
|
153
178
|
});
|
|
154
179
|
}
|
|
155
180
|
}
|
|
@@ -158,12 +183,14 @@ class Orders {
|
|
|
158
183
|
throw new errors.WebflowError({
|
|
159
184
|
statusCode: _response.error.statusCode,
|
|
160
185
|
body: _response.error.rawBody,
|
|
186
|
+
rawResponse: _response.rawResponse,
|
|
161
187
|
});
|
|
162
188
|
case "timeout":
|
|
163
189
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/orders.");
|
|
164
190
|
case "unknown":
|
|
165
191
|
throw new errors.WebflowError({
|
|
166
192
|
message: _response.error.errorMessage,
|
|
193
|
+
rawResponse: _response.rawResponse,
|
|
167
194
|
});
|
|
168
195
|
}
|
|
169
196
|
});
|
|
@@ -190,31 +217,36 @@ class Orders {
|
|
|
190
217
|
* await client.orders.get("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
191
218
|
*/
|
|
192
219
|
get(siteId, orderId, requestOptions) {
|
|
193
|
-
|
|
220
|
+
return core.HttpResponsePromise.fromPromise(this.__get(siteId, orderId, requestOptions));
|
|
221
|
+
}
|
|
222
|
+
__get(siteId, orderId, requestOptions) {
|
|
194
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
var _a, _b, _c;
|
|
195
225
|
const _response = yield core.fetcher({
|
|
196
|
-
url: (0, url_join_1.default)((
|
|
226
|
+
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)
|
|
227
|
+
.base, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}`),
|
|
197
228
|
method: "GET",
|
|
198
|
-
headers:
|
|
199
|
-
contentType: "application/json",
|
|
200
|
-
requestType: "json",
|
|
229
|
+
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),
|
|
201
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
202
231
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
203
232
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
204
233
|
});
|
|
205
234
|
if (_response.ok) {
|
|
206
|
-
return
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
235
|
+
return {
|
|
236
|
+
data: serializers.Order.parseOrThrow(_response.body, {
|
|
237
|
+
unrecognizedObjectKeys: "passthrough",
|
|
238
|
+
allowUnrecognizedUnionMembers: true,
|
|
239
|
+
allowUnrecognizedEnumValues: true,
|
|
240
|
+
skipValidation: true,
|
|
241
|
+
breadcrumbsPrefix: ["response"],
|
|
242
|
+
}),
|
|
243
|
+
rawResponse: _response.rawResponse,
|
|
244
|
+
};
|
|
213
245
|
}
|
|
214
246
|
if (_response.error.reason === "status-code") {
|
|
215
247
|
switch (_response.error.statusCode) {
|
|
216
248
|
case 400:
|
|
217
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
249
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
218
250
|
case 401:
|
|
219
251
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
220
252
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -222,9 +254,9 @@ class Orders {
|
|
|
222
254
|
allowUnrecognizedEnumValues: true,
|
|
223
255
|
skipValidation: true,
|
|
224
256
|
breadcrumbsPrefix: ["response"],
|
|
225
|
-
}));
|
|
257
|
+
}), _response.rawResponse);
|
|
226
258
|
case 403:
|
|
227
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
259
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
228
260
|
case 404:
|
|
229
261
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
230
262
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -232,9 +264,9 @@ class Orders {
|
|
|
232
264
|
allowUnrecognizedEnumValues: true,
|
|
233
265
|
skipValidation: true,
|
|
234
266
|
breadcrumbsPrefix: ["response"],
|
|
235
|
-
}));
|
|
267
|
+
}), _response.rawResponse);
|
|
236
268
|
case 409:
|
|
237
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
269
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
238
270
|
case 429:
|
|
239
271
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
240
272
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -242,7 +274,7 @@ class Orders {
|
|
|
242
274
|
allowUnrecognizedEnumValues: true,
|
|
243
275
|
skipValidation: true,
|
|
244
276
|
breadcrumbsPrefix: ["response"],
|
|
245
|
-
}));
|
|
277
|
+
}), _response.rawResponse);
|
|
246
278
|
case 500:
|
|
247
279
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
248
280
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -250,11 +282,12 @@ class Orders {
|
|
|
250
282
|
allowUnrecognizedEnumValues: true,
|
|
251
283
|
skipValidation: true,
|
|
252
284
|
breadcrumbsPrefix: ["response"],
|
|
253
|
-
}));
|
|
285
|
+
}), _response.rawResponse);
|
|
254
286
|
default:
|
|
255
287
|
throw new errors.WebflowError({
|
|
256
288
|
statusCode: _response.error.statusCode,
|
|
257
289
|
body: _response.error.body,
|
|
290
|
+
rawResponse: _response.rawResponse,
|
|
258
291
|
});
|
|
259
292
|
}
|
|
260
293
|
}
|
|
@@ -263,12 +296,14 @@ class Orders {
|
|
|
263
296
|
throw new errors.WebflowError({
|
|
264
297
|
statusCode: _response.error.statusCode,
|
|
265
298
|
body: _response.error.rawBody,
|
|
299
|
+
rawResponse: _response.rawResponse,
|
|
266
300
|
});
|
|
267
301
|
case "timeout":
|
|
268
302
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/orders/{order_id}.");
|
|
269
303
|
case "unknown":
|
|
270
304
|
throw new errors.WebflowError({
|
|
271
305
|
message: _response.error.errorMessage,
|
|
306
|
+
rawResponse: _response.rawResponse,
|
|
272
307
|
});
|
|
273
308
|
}
|
|
274
309
|
});
|
|
@@ -297,12 +332,16 @@ class Orders {
|
|
|
297
332
|
* await client.orders.update("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
298
333
|
*/
|
|
299
334
|
update(siteId, orderId, request = {}, requestOptions) {
|
|
300
|
-
|
|
301
|
-
|
|
335
|
+
return core.HttpResponsePromise.fromPromise(this.__update(siteId, orderId, request, requestOptions));
|
|
336
|
+
}
|
|
337
|
+
__update(siteId_1, orderId_1) {
|
|
338
|
+
return __awaiter(this, arguments, void 0, function* (siteId, orderId, request = {}, requestOptions) {
|
|
339
|
+
var _a, _b, _c;
|
|
302
340
|
const _response = yield core.fetcher({
|
|
303
|
-
url: (0, url_join_1.default)((
|
|
341
|
+
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)
|
|
342
|
+
.base, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}`),
|
|
304
343
|
method: "PATCH",
|
|
305
|
-
headers:
|
|
344
|
+
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),
|
|
306
345
|
contentType: "application/json",
|
|
307
346
|
requestType: "json",
|
|
308
347
|
body: serializers.OrdersUpdateRequest.jsonOrThrow(request, {
|
|
@@ -315,18 +354,21 @@ class Orders {
|
|
|
315
354
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
316
355
|
});
|
|
317
356
|
if (_response.ok) {
|
|
318
|
-
return
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
357
|
+
return {
|
|
358
|
+
data: serializers.Order.parseOrThrow(_response.body, {
|
|
359
|
+
unrecognizedObjectKeys: "passthrough",
|
|
360
|
+
allowUnrecognizedUnionMembers: true,
|
|
361
|
+
allowUnrecognizedEnumValues: true,
|
|
362
|
+
skipValidation: true,
|
|
363
|
+
breadcrumbsPrefix: ["response"],
|
|
364
|
+
}),
|
|
365
|
+
rawResponse: _response.rawResponse,
|
|
366
|
+
};
|
|
325
367
|
}
|
|
326
368
|
if (_response.error.reason === "status-code") {
|
|
327
369
|
switch (_response.error.statusCode) {
|
|
328
370
|
case 400:
|
|
329
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
371
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
330
372
|
case 401:
|
|
331
373
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
332
374
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -334,9 +376,9 @@ class Orders {
|
|
|
334
376
|
allowUnrecognizedEnumValues: true,
|
|
335
377
|
skipValidation: true,
|
|
336
378
|
breadcrumbsPrefix: ["response"],
|
|
337
|
-
}));
|
|
379
|
+
}), _response.rawResponse);
|
|
338
380
|
case 403:
|
|
339
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
381
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
340
382
|
case 404:
|
|
341
383
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
342
384
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -344,9 +386,9 @@ class Orders {
|
|
|
344
386
|
allowUnrecognizedEnumValues: true,
|
|
345
387
|
skipValidation: true,
|
|
346
388
|
breadcrumbsPrefix: ["response"],
|
|
347
|
-
}));
|
|
389
|
+
}), _response.rawResponse);
|
|
348
390
|
case 409:
|
|
349
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
391
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
350
392
|
case 429:
|
|
351
393
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
352
394
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -354,7 +396,7 @@ class Orders {
|
|
|
354
396
|
allowUnrecognizedEnumValues: true,
|
|
355
397
|
skipValidation: true,
|
|
356
398
|
breadcrumbsPrefix: ["response"],
|
|
357
|
-
}));
|
|
399
|
+
}), _response.rawResponse);
|
|
358
400
|
case 500:
|
|
359
401
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
360
402
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -362,11 +404,12 @@ class Orders {
|
|
|
362
404
|
allowUnrecognizedEnumValues: true,
|
|
363
405
|
skipValidation: true,
|
|
364
406
|
breadcrumbsPrefix: ["response"],
|
|
365
|
-
}));
|
|
407
|
+
}), _response.rawResponse);
|
|
366
408
|
default:
|
|
367
409
|
throw new errors.WebflowError({
|
|
368
410
|
statusCode: _response.error.statusCode,
|
|
369
411
|
body: _response.error.body,
|
|
412
|
+
rawResponse: _response.rawResponse,
|
|
370
413
|
});
|
|
371
414
|
}
|
|
372
415
|
}
|
|
@@ -375,12 +418,14 @@ class Orders {
|
|
|
375
418
|
throw new errors.WebflowError({
|
|
376
419
|
statusCode: _response.error.statusCode,
|
|
377
420
|
body: _response.error.rawBody,
|
|
421
|
+
rawResponse: _response.rawResponse,
|
|
378
422
|
});
|
|
379
423
|
case "timeout":
|
|
380
424
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /sites/{site_id}/orders/{order_id}.");
|
|
381
425
|
case "unknown":
|
|
382
426
|
throw new errors.WebflowError({
|
|
383
427
|
message: _response.error.errorMessage,
|
|
428
|
+
rawResponse: _response.rawResponse,
|
|
384
429
|
});
|
|
385
430
|
}
|
|
386
431
|
});
|
|
@@ -407,12 +452,16 @@ class Orders {
|
|
|
407
452
|
* await client.orders.updateFulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
408
453
|
*/
|
|
409
454
|
updateFulfill(siteId, orderId, request = {}, requestOptions) {
|
|
410
|
-
|
|
411
|
-
|
|
455
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFulfill(siteId, orderId, request, requestOptions));
|
|
456
|
+
}
|
|
457
|
+
__updateFulfill(siteId_1, orderId_1) {
|
|
458
|
+
return __awaiter(this, arguments, void 0, function* (siteId, orderId, request = {}, requestOptions) {
|
|
459
|
+
var _a, _b, _c;
|
|
412
460
|
const _response = yield core.fetcher({
|
|
413
|
-
url: (0, url_join_1.default)((
|
|
461
|
+
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)
|
|
462
|
+
.base, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/fulfill`),
|
|
414
463
|
method: "POST",
|
|
415
|
-
headers:
|
|
464
|
+
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),
|
|
416
465
|
contentType: "application/json",
|
|
417
466
|
requestType: "json",
|
|
418
467
|
body: serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, {
|
|
@@ -425,18 +474,21 @@ class Orders {
|
|
|
425
474
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
426
475
|
});
|
|
427
476
|
if (_response.ok) {
|
|
428
|
-
return
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
477
|
+
return {
|
|
478
|
+
data: serializers.Order.parseOrThrow(_response.body, {
|
|
479
|
+
unrecognizedObjectKeys: "passthrough",
|
|
480
|
+
allowUnrecognizedUnionMembers: true,
|
|
481
|
+
allowUnrecognizedEnumValues: true,
|
|
482
|
+
skipValidation: true,
|
|
483
|
+
breadcrumbsPrefix: ["response"],
|
|
484
|
+
}),
|
|
485
|
+
rawResponse: _response.rawResponse,
|
|
486
|
+
};
|
|
435
487
|
}
|
|
436
488
|
if (_response.error.reason === "status-code") {
|
|
437
489
|
switch (_response.error.statusCode) {
|
|
438
490
|
case 400:
|
|
439
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
491
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
440
492
|
case 401:
|
|
441
493
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
442
494
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -444,9 +496,9 @@ class Orders {
|
|
|
444
496
|
allowUnrecognizedEnumValues: true,
|
|
445
497
|
skipValidation: true,
|
|
446
498
|
breadcrumbsPrefix: ["response"],
|
|
447
|
-
}));
|
|
499
|
+
}), _response.rawResponse);
|
|
448
500
|
case 403:
|
|
449
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
501
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
450
502
|
case 404:
|
|
451
503
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
452
504
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -454,9 +506,9 @@ class Orders {
|
|
|
454
506
|
allowUnrecognizedEnumValues: true,
|
|
455
507
|
skipValidation: true,
|
|
456
508
|
breadcrumbsPrefix: ["response"],
|
|
457
|
-
}));
|
|
509
|
+
}), _response.rawResponse);
|
|
458
510
|
case 409:
|
|
459
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
511
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
460
512
|
case 429:
|
|
461
513
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
462
514
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -464,7 +516,7 @@ class Orders {
|
|
|
464
516
|
allowUnrecognizedEnumValues: true,
|
|
465
517
|
skipValidation: true,
|
|
466
518
|
breadcrumbsPrefix: ["response"],
|
|
467
|
-
}));
|
|
519
|
+
}), _response.rawResponse);
|
|
468
520
|
case 500:
|
|
469
521
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
470
522
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -472,11 +524,12 @@ class Orders {
|
|
|
472
524
|
allowUnrecognizedEnumValues: true,
|
|
473
525
|
skipValidation: true,
|
|
474
526
|
breadcrumbsPrefix: ["response"],
|
|
475
|
-
}));
|
|
527
|
+
}), _response.rawResponse);
|
|
476
528
|
default:
|
|
477
529
|
throw new errors.WebflowError({
|
|
478
530
|
statusCode: _response.error.statusCode,
|
|
479
531
|
body: _response.error.body,
|
|
532
|
+
rawResponse: _response.rawResponse,
|
|
480
533
|
});
|
|
481
534
|
}
|
|
482
535
|
}
|
|
@@ -485,12 +538,14 @@ class Orders {
|
|
|
485
538
|
throw new errors.WebflowError({
|
|
486
539
|
statusCode: _response.error.statusCode,
|
|
487
540
|
body: _response.error.rawBody,
|
|
541
|
+
rawResponse: _response.rawResponse,
|
|
488
542
|
});
|
|
489
543
|
case "timeout":
|
|
490
544
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /sites/{site_id}/orders/{order_id}/fulfill.");
|
|
491
545
|
case "unknown":
|
|
492
546
|
throw new errors.WebflowError({
|
|
493
547
|
message: _response.error.errorMessage,
|
|
548
|
+
rawResponse: _response.rawResponse,
|
|
494
549
|
});
|
|
495
550
|
}
|
|
496
551
|
});
|
|
@@ -516,31 +571,36 @@ class Orders {
|
|
|
516
571
|
* await client.orders.updateUnfulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
517
572
|
*/
|
|
518
573
|
updateUnfulfill(siteId, orderId, requestOptions) {
|
|
519
|
-
|
|
574
|
+
return core.HttpResponsePromise.fromPromise(this.__updateUnfulfill(siteId, orderId, requestOptions));
|
|
575
|
+
}
|
|
576
|
+
__updateUnfulfill(siteId, orderId, requestOptions) {
|
|
520
577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
var _a, _b, _c;
|
|
521
579
|
const _response = yield core.fetcher({
|
|
522
|
-
url: (0, url_join_1.default)((
|
|
580
|
+
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)
|
|
581
|
+
.base, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/unfulfill`),
|
|
523
582
|
method: "POST",
|
|
524
|
-
headers:
|
|
525
|
-
contentType: "application/json",
|
|
526
|
-
requestType: "json",
|
|
583
|
+
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),
|
|
527
584
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
528
585
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
529
586
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
530
587
|
});
|
|
531
588
|
if (_response.ok) {
|
|
532
|
-
return
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
589
|
+
return {
|
|
590
|
+
data: serializers.Order.parseOrThrow(_response.body, {
|
|
591
|
+
unrecognizedObjectKeys: "passthrough",
|
|
592
|
+
allowUnrecognizedUnionMembers: true,
|
|
593
|
+
allowUnrecognizedEnumValues: true,
|
|
594
|
+
skipValidation: true,
|
|
595
|
+
breadcrumbsPrefix: ["response"],
|
|
596
|
+
}),
|
|
597
|
+
rawResponse: _response.rawResponse,
|
|
598
|
+
};
|
|
539
599
|
}
|
|
540
600
|
if (_response.error.reason === "status-code") {
|
|
541
601
|
switch (_response.error.statusCode) {
|
|
542
602
|
case 400:
|
|
543
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
603
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
544
604
|
case 401:
|
|
545
605
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
546
606
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -548,9 +608,9 @@ class Orders {
|
|
|
548
608
|
allowUnrecognizedEnumValues: true,
|
|
549
609
|
skipValidation: true,
|
|
550
610
|
breadcrumbsPrefix: ["response"],
|
|
551
|
-
}));
|
|
611
|
+
}), _response.rawResponse);
|
|
552
612
|
case 403:
|
|
553
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
613
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
554
614
|
case 404:
|
|
555
615
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
556
616
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -558,9 +618,9 @@ class Orders {
|
|
|
558
618
|
allowUnrecognizedEnumValues: true,
|
|
559
619
|
skipValidation: true,
|
|
560
620
|
breadcrumbsPrefix: ["response"],
|
|
561
|
-
}));
|
|
621
|
+
}), _response.rawResponse);
|
|
562
622
|
case 409:
|
|
563
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
623
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
564
624
|
case 429:
|
|
565
625
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
566
626
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -568,7 +628,7 @@ class Orders {
|
|
|
568
628
|
allowUnrecognizedEnumValues: true,
|
|
569
629
|
skipValidation: true,
|
|
570
630
|
breadcrumbsPrefix: ["response"],
|
|
571
|
-
}));
|
|
631
|
+
}), _response.rawResponse);
|
|
572
632
|
case 500:
|
|
573
633
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
574
634
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -576,11 +636,12 @@ class Orders {
|
|
|
576
636
|
allowUnrecognizedEnumValues: true,
|
|
577
637
|
skipValidation: true,
|
|
578
638
|
breadcrumbsPrefix: ["response"],
|
|
579
|
-
}));
|
|
639
|
+
}), _response.rawResponse);
|
|
580
640
|
default:
|
|
581
641
|
throw new errors.WebflowError({
|
|
582
642
|
statusCode: _response.error.statusCode,
|
|
583
643
|
body: _response.error.body,
|
|
644
|
+
rawResponse: _response.rawResponse,
|
|
584
645
|
});
|
|
585
646
|
}
|
|
586
647
|
}
|
|
@@ -589,12 +650,14 @@ class Orders {
|
|
|
589
650
|
throw new errors.WebflowError({
|
|
590
651
|
statusCode: _response.error.statusCode,
|
|
591
652
|
body: _response.error.rawBody,
|
|
653
|
+
rawResponse: _response.rawResponse,
|
|
592
654
|
});
|
|
593
655
|
case "timeout":
|
|
594
656
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /sites/{site_id}/orders/{order_id}/unfulfill.");
|
|
595
657
|
case "unknown":
|
|
596
658
|
throw new errors.WebflowError({
|
|
597
659
|
message: _response.error.errorMessage,
|
|
660
|
+
rawResponse: _response.rawResponse,
|
|
598
661
|
});
|
|
599
662
|
}
|
|
600
663
|
});
|
|
@@ -622,12 +685,16 @@ class Orders {
|
|
|
622
685
|
* await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
623
686
|
*/
|
|
624
687
|
refund(siteId, orderId, request = {}, requestOptions) {
|
|
625
|
-
|
|
626
|
-
|
|
688
|
+
return core.HttpResponsePromise.fromPromise(this.__refund(siteId, orderId, request, requestOptions));
|
|
689
|
+
}
|
|
690
|
+
__refund(siteId_1, orderId_1) {
|
|
691
|
+
return __awaiter(this, arguments, void 0, function* (siteId, orderId, request = {}, requestOptions) {
|
|
692
|
+
var _a, _b, _c;
|
|
627
693
|
const _response = yield core.fetcher({
|
|
628
|
-
url: (0, url_join_1.default)((
|
|
694
|
+
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)
|
|
695
|
+
.base, `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/refund`),
|
|
629
696
|
method: "POST",
|
|
630
|
-
headers:
|
|
697
|
+
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),
|
|
631
698
|
contentType: "application/json",
|
|
632
699
|
requestType: "json",
|
|
633
700
|
body: serializers.OrdersRefundRequest.jsonOrThrow(request, {
|
|
@@ -640,18 +707,21 @@ class Orders {
|
|
|
640
707
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
641
708
|
});
|
|
642
709
|
if (_response.ok) {
|
|
643
|
-
return
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
710
|
+
return {
|
|
711
|
+
data: serializers.Order.parseOrThrow(_response.body, {
|
|
712
|
+
unrecognizedObjectKeys: "passthrough",
|
|
713
|
+
allowUnrecognizedUnionMembers: true,
|
|
714
|
+
allowUnrecognizedEnumValues: true,
|
|
715
|
+
skipValidation: true,
|
|
716
|
+
breadcrumbsPrefix: ["response"],
|
|
717
|
+
}),
|
|
718
|
+
rawResponse: _response.rawResponse,
|
|
719
|
+
};
|
|
650
720
|
}
|
|
651
721
|
if (_response.error.reason === "status-code") {
|
|
652
722
|
switch (_response.error.statusCode) {
|
|
653
723
|
case 400:
|
|
654
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
724
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
655
725
|
case 401:
|
|
656
726
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
657
727
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -659,9 +729,9 @@ class Orders {
|
|
|
659
729
|
allowUnrecognizedEnumValues: true,
|
|
660
730
|
skipValidation: true,
|
|
661
731
|
breadcrumbsPrefix: ["response"],
|
|
662
|
-
}));
|
|
732
|
+
}), _response.rawResponse);
|
|
663
733
|
case 403:
|
|
664
|
-
throw new Webflow.ForbiddenError(_response.error.body);
|
|
734
|
+
throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
665
735
|
case 404:
|
|
666
736
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
667
737
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -669,9 +739,9 @@ class Orders {
|
|
|
669
739
|
allowUnrecognizedEnumValues: true,
|
|
670
740
|
skipValidation: true,
|
|
671
741
|
breadcrumbsPrefix: ["response"],
|
|
672
|
-
}));
|
|
742
|
+
}), _response.rawResponse);
|
|
673
743
|
case 409:
|
|
674
|
-
throw new Webflow.ConflictError(_response.error.body);
|
|
744
|
+
throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
|
|
675
745
|
case 429:
|
|
676
746
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
677
747
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -679,7 +749,7 @@ class Orders {
|
|
|
679
749
|
allowUnrecognizedEnumValues: true,
|
|
680
750
|
skipValidation: true,
|
|
681
751
|
breadcrumbsPrefix: ["response"],
|
|
682
|
-
}));
|
|
752
|
+
}), _response.rawResponse);
|
|
683
753
|
case 500:
|
|
684
754
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
685
755
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -687,11 +757,12 @@ class Orders {
|
|
|
687
757
|
allowUnrecognizedEnumValues: true,
|
|
688
758
|
skipValidation: true,
|
|
689
759
|
breadcrumbsPrefix: ["response"],
|
|
690
|
-
}));
|
|
760
|
+
}), _response.rawResponse);
|
|
691
761
|
default:
|
|
692
762
|
throw new errors.WebflowError({
|
|
693
763
|
statusCode: _response.error.statusCode,
|
|
694
764
|
body: _response.error.body,
|
|
765
|
+
rawResponse: _response.rawResponse,
|
|
695
766
|
});
|
|
696
767
|
}
|
|
697
768
|
}
|
|
@@ -700,19 +771,25 @@ class Orders {
|
|
|
700
771
|
throw new errors.WebflowError({
|
|
701
772
|
statusCode: _response.error.statusCode,
|
|
702
773
|
body: _response.error.rawBody,
|
|
774
|
+
rawResponse: _response.rawResponse,
|
|
703
775
|
});
|
|
704
776
|
case "timeout":
|
|
705
777
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /sites/{site_id}/orders/{order_id}/refund.");
|
|
706
778
|
case "unknown":
|
|
707
779
|
throw new errors.WebflowError({
|
|
708
780
|
message: _response.error.errorMessage,
|
|
781
|
+
rawResponse: _response.rawResponse,
|
|
709
782
|
});
|
|
710
783
|
}
|
|
711
784
|
});
|
|
712
785
|
}
|
|
713
786
|
_getAuthorizationHeader() {
|
|
714
787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
715
|
-
|
|
788
|
+
const bearer = yield core.Supplier.get(this._options.accessToken);
|
|
789
|
+
if (bearer != null) {
|
|
790
|
+
return `Bearer ${bearer}`;
|
|
791
|
+
}
|
|
792
|
+
return undefined;
|
|
716
793
|
});
|
|
717
794
|
}
|
|
718
795
|
}
|