diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index 2e9d00c6..86ca446a 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -386,8 +386,7 @@ types: openapi: ../../../openapi/referenced-specs/v2.yml User access: properties: - method: - type: optional + method: optional location: type: optional docs: The geolocation based on the logged IP address @@ -405,10 +404,8 @@ types: openapi: ../../../openapi/referenced-specs/v2.yml UserAccessAuditLogItem: properties: - eventSubType: - type: optional - payload: - type: optional + eventSubType: optional + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml Custom role: @@ -431,10 +428,8 @@ types: openapi: ../../../openapi/referenced-specs/v2.yml CustomRoleAuditLogItem: properties: - eventSubType: - type: optional - payload: - type: optional + eventSubType: optional + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser: @@ -449,6 +444,7 @@ types: - sso - dashboard - admin + - access_request inline: true source: openapi: ../../../openapi/referenced-specs/v2.yml @@ -463,12 +459,9 @@ types: openapi: ../../../openapi/referenced-specs/v2.yml Workspace membership: properties: - targetUser: - type: optional - method: - type: optional - userType: - type: optional + targetUser: optional + method: optional + userType: optional roleName: type: optional docs: The name of the role that was assigned to the user @@ -487,10 +480,8 @@ types: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceMembershipAuditLogItem: properties: - eventSubType: - type: optional - payload: - type: optional + eventSubType: optional + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceAuditLogItemPayloadSiteMembershipSite: @@ -514,6 +505,7 @@ types: - scim - dashboard - admin + - access_request inline: true source: openapi: ../../../openapi/referenced-specs/v2.yml @@ -526,22 +518,28 @@ types: inline: true source: openapi: ../../../openapi/referenced-specs/v2.yml + WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess: + properties: + id: optional + name: optional + type: optional> + restricted: optional + source: + openapi: ../../../openapi/referenced-specs/v2.yml + inline: true Site membership: properties: - site: - type: optional - targetUser: - type: optional - method: - type: optional - userType: - type: optional + site: optional + targetUser: optional + method: optional + userType: optional roleName: type: optional docs: The name of the role that was assigned to the user previousRoleName: type: optional docs: The previous role that the user had + granularAccess: optional source: openapi: ../../../openapi/referenced-specs/v2.yml SiteMembershipAuditLogItemEventSubType: @@ -549,15 +547,14 @@ types: - user_added - user_removed - user_role_updated + - user_granular_access_updated inline: true source: openapi: ../../../openapi/referenced-specs/v2.yml SiteMembershipAuditLogItem: properties: - eventSubType: - type: optional - payload: - type: optional + eventSubType: optional + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser: @@ -584,20 +581,26 @@ types: inline: true source: openapi: ../../../openapi/referenced-specs/v2.yml + WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem: + properties: + id: optional + email: optional + source: + openapi: ../../../openapi/referenced-specs/v2.yml + inline: true Workspace invitation: properties: - targetUser: - type: optional - method: - type: optional - userType: - type: optional + targetUser: optional + method: optional + userType: optional roleName: type: optional docs: The name of the role that was assigned to the user previousRoleName: type: optional docs: The previous role that the user had + targetUsers: >- + optional> source: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceInvitationAuditLogItemEventSubType: @@ -607,15 +610,14 @@ types: - invite_updated - invite_canceled - invite_declined + - access_request_accepted inline: true source: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceInvitationAuditLogItem: properties: - eventSubType: - type: optional - payload: - type: optional + eventSubType: optional + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceAuditLogItemActor: @@ -1093,7 +1095,7 @@ types: openapi: ../../../openapi/referenced-specs/v2.yml FieldValidationsAdditionalPropertiesAdditionalProperties: properties: - additionalProperties: optional + additionalProperties: unknown source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true @@ -1260,8 +1262,7 @@ types: items: type: optional> docs: List of Items within the collection - pagination: - type: optional + pagination: optional source: openapi: ../../../openapi/referenced-specs/v2.yml CollectionItemPostSingleFieldData: @@ -1817,7 +1818,7 @@ types: source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - Text Node DOM: + TextNode: docs: > Represents text content within the DOM. It contains both the raw text and its HTML representation. Additional attributes can be associated with the @@ -1842,7 +1843,7 @@ types: source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - Image Node DOM: + ImageNode: docs: > Represents an image within the DOM. It contains details about the image, such as its alternative text (alt) for accessibility and an asset @@ -1906,7 +1907,7 @@ types: and its HTML representation. source: openapi: ../../../openapi/referenced-specs/v2.yml - Component Node DOM: + ComponentNode: docs: > Represents a component instance within the DOM. It contains details about the component instance, such as its type and properties. @@ -1922,7 +1923,7 @@ types: type: list source: openapi: ../../../openapi/referenced-specs/v2.yml - Text Input Node DOM: + TextInputNode: docs: > Represents text input and textarea elements within the DOM. It contains the placeholder text in the input. Additional attributes can be associated @@ -1950,7 +1951,7 @@ types: source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - Select Node DOM: + SelectNode: docs: > Represents select elements within the DOM. It contains the list of choices in the select. Additional attributes can be associated with the text for @@ -1967,7 +1968,7 @@ types: docs: The custom attributes of the node source: openapi: ../../../openapi/referenced-specs/v2.yml - Submit Button Node DOM: + SubmitButtonNode: docs: > Represents submit button elements within the DOM. It contains the text and waiting text of the button. Additional attributes can be associated with @@ -1987,7 +1988,7 @@ types: docs: The custom attributes of the node source: openapi: ../../../openapi/referenced-specs/v2.yml - Search Button Node DOM: + SearchButtonNode: docs: > Represents search button elements within the DOM. It contains the text of the button. Additional attributes can be associated with the text for @@ -2013,19 +2014,19 @@ types: determines its content structure and attributes. union: text: - type: Text Node DOM + type: TextNode image: - type: Image Node DOM + type: ImageNode component-instance: - type: Component Node DOM + type: ComponentNode text-input: - type: Text Input Node DOM + type: TextInputNode select: - type: Select Node DOM + type: SelectNode submit-button: - type: Submit Button Node DOM + type: SubmitButtonNode search-button: - type: Search Button Node DOM + type: SearchButtonNode source: openapi: ../../../openapi/referenced-specs/v2.yml Dom: @@ -2042,7 +2043,9 @@ types: docs: Page ID branchId: type: optional - docs: If the page is a branch, this is the ID of the branch + docs: >- + The unique identifier of a [specific page + branch.](https://help.webflow.com/hc/en-us/articles/33961355506195-Page-branching) nodes: optional> pagination: optional lastUpdated: @@ -2051,7 +2054,7 @@ types: access: read-only source: openapi: ../../../openapi/referenced-specs/v2.yml - Text Node: + TextNodeWrite: docs: Update a text node properties: nodeId: @@ -2085,7 +2088,7 @@ types: source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - Component Instance: + ComponentInstanceNodePropertyOverridesWrite: docs: Update text property overrides of a component instance properties: nodeId: @@ -2120,7 +2123,7 @@ types: type: list source: openapi: ../../../openapi/referenced-specs/v2.yml - Text Input: + TextInputNodeWrite: docs: Update placeholder text on a text input node properties: nodeId: @@ -2131,7 +2134,7 @@ types: docs: The placeholder text of the input node source: openapi: ../../../openapi/referenced-specs/v2.yml - Submit Button: + SubmitButtonNodeWrite: docs: Update a submit button node properties: nodeId: @@ -2145,7 +2148,7 @@ types: docs: The text to show while the form is submitting. source: openapi: ../../../openapi/referenced-specs/v2.yml - Search Button: + SearchButtonNodeWrite: docs: Update a search button node properties: nodeId: @@ -2590,6 +2593,7 @@ types: - collection_item_created - collection_item_changed - collection_item_deleted + - collection_item_published - collection_item_unpublished - comment_created docs: > @@ -4130,231 +4134,82 @@ types: docs: Unique identifier of the CMS locale for this item validation: format: uuid - lastPublished: - type: optional - lastUpdated: - type: optional - createdOn: - type: optional - isArchived: - type: optional - isDraft: - type: optional + lastPublished: optional + lastUpdated: optional + createdOn: optional + isArchived: optional + isDraft: optional fieldData: SingleLocaleCreatedPayloadFieldData source: openapi: ../../../openapi/referenced-specs/v2.yml - LocalizedItem: - properties: - _cid: - type: string - docs: Collection ID the item belongs to - validation: - format: uuid - _id: - type: string - docs: Unique identifier for the item - validation: - format: uuid - _locale: - type: string - docs: Locale identifier for this version of the item - validation: - format: uuid - _draft: - type: boolean - docs: Whether the item is in draft state - _archived: - type: boolean - docs: Whether the item is archived - name: - type: string - docs: Name of the item - slug: - type: string - docs: URL-friendly version of the name - updated-on: - type: datetime - docs: Timestamp of last update - updated-by: - type: string - docs: Identifier of user who last updated the item - created-on: - type: datetime - docs: Timestamp of creation - created-by: - type: string - docs: Identifier of user who created the item - published-on: - type: optional - docs: Timestamp of last publish, if published - published-by: - type: optional - docs: Identifier of user who last published the item - source: - openapi: ../../../openapi/referenced-specs/v2.yml - MultiLocaleCreatedPayload: - properties: - siteId: - type: string - docs: Unique identifier of the site - validation: - format: uuid - workspaceId: - type: string - docs: Unique identifier of the workspace - validation: - format: uuid - collectionId: - type: string - docs: Unique identifier of the collection - validation: - format: uuid - cmsLocaleId: - type: optional - docs: Unique identifier of the CMS locale for this item - validation: - format: uuid - fieldData: - type: map - docs: Collection of localized items, keyed by locale index (0-n) - source: - openapi: ../../../openapi/referenced-specs/v2.yml - CollectionItemCreatedPayload: - discriminated: false - union: - - type: SingleLocaleCreatedPayload - - type: MultiLocaleCreatedPayload - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true CollectionItemCreated: docs: The Webhook payload for when a Collection Item is created properties: triggerType: type: literal<"collection_item_created"> docs: The type of event that triggered the request - payload: CollectionItemCreatedPayload - source: - openapi: ../../../openapi/referenced-specs/v2.yml - SingleLocaleChangedPayloadFieldData: - properties: - name: string - slug: string - extra-properties: true + payload: + type: SingleLocaleCreatedPayload source: openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - SingleLocaleChangedPayload: + CollectionItemChanged: + docs: The Webhook payload for when a Collection Item is changed properties: - id: - type: string - docs: Unique identifier for the Item - validation: - format: uuid - workspaceId: - type: string - docs: Unique identifier of the workspace - validation: - format: uuid - siteId: - type: string - docs: Unique identifier of the site - validation: - format: uuid - collectionId: - type: string - docs: Unique identifier of the collection - validation: - format: uuid - cmsLocaleId: - type: optional - docs: Unique identifier of the CMS locale for this item - validation: - format: uuid - lastPublished: - type: optional - lastUpdated: - type: optional - createdOn: - type: optional - isArchived: - type: optional - isDraft: - type: optional - fieldData: SingleLocaleChangedPayloadFieldData + triggerType: + type: literal<"collection_item_changed"> + docs: The type of event that triggered the request + payload: + type: SingleLocaleCreatedPayload source: openapi: ../../../openapi/referenced-specs/v2.yml - MultiLocaleChangedPayloadFieldData: + CollectionItemRemovedPayloadFieldData: properties: name: string slug: string - _locale: - type: string - docs: Locale identifier for this version of the item - validation: - format: uuid extra-properties: true source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - MultiLocaleChangedPayload: + CollectionItemRemovedPayload: + docs: The payload of data sent from Webflow properties: id: - type: string - docs: Unique identifier for the Item - validation: - format: uuid - workspaceId: - type: string - docs: Unique identifier of the workspace - validation: - format: uuid + type: optional + docs: The ID of the collection item that was deleted siteId: - type: string - docs: Unique identifier of the site - validation: - format: uuid + type: optional + docs: The ID of the site + workspaceId: + type: optional + docs: The ID of the workspace collectionId: - type: string - docs: Unique identifier of the collection - validation: - format: uuid + type: optional + docs: The ID of the collection cmsLocaleId: type: optional docs: Unique identifier of the CMS locale for this item validation: format: uuid - lastPublished: - type: optional - lastUpdated: - type: optional - createdOn: - type: optional - isArchived: - type: optional - isDraft: - type: optional - fieldData: MultiLocaleChangedPayloadFieldData - source: - openapi: ../../../openapi/referenced-specs/v2.yml - CollectionItemChangedPayload: - discriminated: false - union: - - type: SingleLocaleChangedPayload - - type: MultiLocaleChangedPayload + lastPublished: optional + lastUpdated: optional + createdOn: optional + isArchived: optional + isDraft: optional + fieldData: optional source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - CollectionItemChanged: - docs: The Webhook payload for when a Collection Item is changed + CollectionItemRemoved: properties: triggerType: - type: literal<"collection_item_changed"> + type: optional docs: The type of event that triggered the request - payload: CollectionItemChangedPayload + payload: + type: optional + docs: The payload of data sent from Webflow source: openapi: ../../../openapi/referenced-specs/v2.yml - CollectionItemRemovedPayloadFieldData: + PayloadFieldData: properties: name: string slug: string @@ -4362,12 +4217,12 @@ types: source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - CollectionItemRemovedPayload: + Payload: docs: The payload of data sent from Webflow properties: id: type: optional - docs: The ID of the collection item that was deleted + docs: The ID of the collection item that was unpublished siteId: type: optional docs: The ID of the site @@ -4387,18 +4242,15 @@ types: createdOn: optional isArchived: optional isDraft: optional - fieldData: optional + fieldData: optional source: openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - CollectionItemRemoved: + CollectionItemPublished: properties: triggerType: type: optional docs: The type of event that triggered the request - payload: - type: optional - docs: The payload of data sent from Webflow + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml CollectionItemUnpublishedPayloadFieldData: diff --git a/.mock/definition/accessGroups.yml b/.mock/definition/accessGroups.yml index 76895330..391abe22 100644 --- a/.mock/definition/accessGroups.yml +++ b/.mock/definition/accessGroups.yml @@ -18,7 +18,9 @@ service: list: path: /sites/{site_id}/accessgroups method: GET - auth: true + auth: + - OAuth2: + - users:read docs: | Get a list of access groups for a site @@ -60,6 +62,10 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + offset: 1.1 + limit: 1.1 + sort: CreatedOn response: body: count: 1 diff --git a/.mock/definition/api.yml b/.mock/definition/api.yml index b881d163..de74f2d6 100644 --- a/.mock/definition/api.yml +++ b/.mock/definition/api.yml @@ -8,8 +8,6 @@ environments: Base: https://api.webflow.com/v2 Data API: https://api.webflow.com/v2 Content Delivery API: https://api-cdn.webflow.com/v2 - Production: https://api.webflow.com/v2 - CDN: https://api-cdn.webflow.com/v2 default-environment: Data API default-url: Base auth-schemes: diff --git a/.mock/definition/assets.yml b/.mock/definition/assets.yml index 3d36d0b6..73c7559c 100644 --- a/.mock/definition/assets.yml +++ b/.mock/definition/assets.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/assets method: GET - auth: true + auth: + - OAuth2: + - assets:read docs: | List of assets uploaded to a site @@ -19,6 +21,17 @@ service: type: string docs: Unique identifier for a Site display-name: List Assets + request: + name: AssetsListRequest + query-parameters: + offset: + type: optional + docs: >- + Offset used for pagination if the results have more than limit + records + limit: + type: optional + docs: 'Maximum number of records to be returned (max limit: 100)' response: docs: Request was successful type: root.Assets @@ -32,6 +45,9 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + offset: 1.1 + limit: 1.1 response: body: assets: @@ -86,7 +102,9 @@ service: create: path: /sites/{site_id}/assets method: POST - auth: true + auth: + - OAuth2: + - assets:write docs: > The first step in uploading an asset to a site. @@ -175,7 +193,9 @@ service: get: path: /assets/{asset_id} method: GET - auth: true + auth: + - OAuth2: + - assets:read docs: | Get details about an asset @@ -226,7 +246,9 @@ service: delete: path: /assets/{asset_id} method: DELETE - auth: true + auth: + - OAuth2: + - assets:write docs: | Delete an Asset @@ -250,7 +272,9 @@ service: update: path: /assets/{asset_id} method: PATCH - auth: true + auth: + - OAuth2: + - assets:write docs: | Update details of an Asset. @@ -315,7 +339,9 @@ service: list-folders: path: /sites/{site_id}/asset_folders method: GET - auth: true + auth: + - OAuth2: + - assets:read docs: | List Asset Folders within a given site @@ -358,7 +384,9 @@ service: create-folder: path: /sites/{site_id}/asset_folders method: POST - auth: true + auth: + - OAuth2: + - assets:write docs: | Create an Asset Folder within a given site @@ -412,7 +440,9 @@ service: get-folder: path: /asset_folders/{asset_folder_id} method: GET - auth: true + auth: + - OAuth2: + - assets:read docs: | Get details about a specific Asset Folder diff --git a/.mock/definition/collections.yml b/.mock/definition/collections.yml index effcb1dd..5ddf39bb 100644 --- a/.mock/definition/collections.yml +++ b/.mock/definition/collections.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/collections method: GET - auth: true + auth: + - OAuth2: + - cms:read docs: | List of all Collections within a Site. @@ -56,7 +58,9 @@ service: create: path: /sites/{site_id}/collections method: POST - auth: true + auth: + - OAuth2: + - cms:write docs: > Create a Collection for a site with collection fields. @@ -159,7 +163,9 @@ service: get: path: /collections/{collection_id} method: GET - auth: true + auth: + - OAuth2: + - cms:read docs: | Get the full details of a collection from its ID. @@ -312,7 +318,9 @@ service: delete: path: /collections/{collection_id} method: DELETE - auth: true + auth: + - OAuth2: + - cms:write docs: | Delete a collection using its ID. diff --git a/.mock/definition/collections/fields.yml b/.mock/definition/collections/fields.yml index a7af253c..8d83b9fd 100644 --- a/.mock/definition/collections/fields.yml +++ b/.mock/definition/collections/fields.yml @@ -7,7 +7,9 @@ service: create: path: /collections/{collection_id}/fields method: POST - auth: true + auth: + - OAuth2: + - cms:write docs: > Create a custom field in a collection. @@ -114,7 +116,9 @@ service: delete: path: /collections/{collection_id}/fields/{field_id} method: DELETE - auth: true + auth: + - OAuth2: + - cms:write docs: > Delete a custom field in a collection. This endpoint does not currently support bulk deletion. @@ -144,7 +148,9 @@ service: update: path: /collections/{collection_id}/fields/{field_id} method: PATCH - auth: true + auth: + - OAuth2: + - cms:write docs: | Update a custom field in a collection. diff --git a/.mock/definition/collections/items.yml b/.mock/definition/collections/items.yml index 22270578..09d267c4 100644 --- a/.mock/definition/collections/items.yml +++ b/.mock/definition/collections/items.yml @@ -131,8 +131,7 @@ types: Item IDs: docs: An array of Item IDs in a single locale properties: - itemIds: - type: optional> + itemIds: optional> source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true @@ -150,8 +149,7 @@ types: Item IDs with Locales: docs: An array of Item IDs with included `cmsLocaleIds` properties: - items: - type: optional> + items: optional> source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true @@ -177,7 +175,9 @@ service: list-items: path: /collections/{collection_id}/items method: GET - auth: true + auth: + - OAuth2: + - cms:read docs: | List of all Items within a Collection. @@ -235,6 +235,14 @@ service: examples: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + cmsLocaleId: cmsLocaleId + offset: 1.1 + limit: 1.1 + name: name + slug: slug + sortBy: lastPublished + sortOrder: asc response: body: items: @@ -269,7 +277,9 @@ service: create-item: path: /collections/{collection_id}/items method: POST - auth: true + auth: + - OAuth2: + - cms:write docs: > Create Item(s) in a Collection. @@ -312,15 +322,44 @@ service: - name: SingleItem path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - date: '2022-11-18T00:00:00.000Z' - featured: true - color: '#db4b68' + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can have. + Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf response: body: id: 42b720ef280c7a7a3be8cabe @@ -331,14 +370,43 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf - name: MultipleItems path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - isArchived: false @@ -373,7 +441,9 @@ service: delete-items: path: /collections/{collection_id}/items method: DELETE - auth: true + auth: + - OAuth2: + - cms:write docs: > Delete Items from a Collection. @@ -412,7 +482,9 @@ service: update-items: path: /collections/{collection_id}/items method: PATCH - auth: true + auth: + - OAuth2: + - cms:write docs: > Update a single item or multiple items in a Collection. @@ -459,6 +531,8 @@ service: - name: LocalizedItems path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - id: 66f6ed9576ddacf3149d5ea6 @@ -539,6 +613,8 @@ service: - name: MultipleItems path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - id: 580e64008c9a982ac9b8b754 @@ -591,7 +667,9 @@ service: list-items-live: path: /collections/{collection_id}/items/live method: GET - auth: true + auth: + - OAuth2: + - cms:read docs: | List all published items in a collection. @@ -655,6 +733,14 @@ service: examples: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + cmsLocaleId: cmsLocaleId + offset: 1.1 + limit: 1.1 + name: name + slug: slug + sortBy: lastPublished + sortOrder: asc response: body: items: @@ -689,7 +775,9 @@ service: create-item-live: path: /collections/{collection_id}/items/live method: POST - auth: true + auth: + - OAuth2: + - cms:write docs: > Create item(s) in a collection that will be immediately published to the live site. @@ -734,15 +822,44 @@ service: - name: SingleItem path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - date: '2022-11-18T00:00:00.000Z' - featured: true - color: '#db4b68' + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can have. + Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf response: body: id: 42b720ef280c7a7a3be8cabe @@ -753,14 +870,43 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf - name: MultipleItems path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - isArchived: false @@ -787,15 +933,44 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf delete-items-live: path: /collections/{collection_id}/items/live method: DELETE - auth: true + auth: + - OAuth2: + - cms:write docs: > Unpublish up to 100 items from the live site and set the `isDraft` property to `true`. @@ -834,7 +1009,9 @@ service: update-items-live: path: /collections/{collection_id}/items/live method: PATCH - auth: true + auth: + - OAuth2: + - cms:write docs: > Update a single published item or multiple published items (up to 100) in a Collection @@ -880,6 +1057,8 @@ service: - name: LocalizedItems path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - id: 66f6ed9576ddacf3149d5ea6 @@ -956,6 +1135,8 @@ service: - name: MultipleItems path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - id: 580e64008c9a982ac9b8b754 @@ -1024,6 +1205,8 @@ service: - name: Multiple items updated across multiple locales path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - id: 66f6ed9576ddacf3149d5ea6 @@ -1100,6 +1283,8 @@ service: - name: Multiple items updated in a single locale path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: items: - id: 66f6ed9576ddacf3149d5ea6 @@ -1156,7 +1341,9 @@ service: create-items: path: /collections/{collection_id}/items/bulk method: POST - auth: true + auth: + - OAuth2: + - cms:write docs: > Create an item or multiple items in a CMS Collection across multiple corresponding locales. @@ -1216,6 +1403,8 @@ service: - name: Create a single item across multiple locales path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: cmsLocaleIds: - 66f6e966c9e1dc700a857ca3 @@ -1247,6 +1436,8 @@ service: - name: Create multiple items across multiple locales path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: cmsLocaleIds: - 66f6e966c9e1dc700a857ca3 @@ -1279,6 +1470,8 @@ service: - name: Single item created across multiple locales path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: cmsLocaleIds: - 66f6e966c9e1dc700a857ca3 @@ -1310,6 +1503,8 @@ service: - name: Multiple items created across multiple locales path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 + query-parameters: + skipInvalidFiles: true request: cmsLocaleIds: - 66f6e966c9e1dc700a857ca3 @@ -1341,7 +1536,9 @@ service: get-item: path: /collections/{collection_id}/items/{item_id} method: GET - auth: true + auth: + - OAuth2: + - cms:read docs: | Get details of a selected Collection Item. @@ -1370,7 +1567,6 @@ service: docs: Request was successful type: root.CollectionItem status-code: 200 - url: Production errors: - root.BadRequestError - root.UnauthorizedError @@ -1381,6 +1577,8 @@ service: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 item_id: 580e64008c9a982ac9b8b754 + query-parameters: + cmsLocaleId: cmsLocaleId response: body: id: 42b720ef280c7a7a3be8cabe @@ -1391,15 +1589,44 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf delete-item: path: /collections/{collection_id}/items/{item_id} method: DELETE - auth: true + auth: + - OAuth2: + - cms:write docs: | Delete an item from a collection. @@ -1434,10 +1661,14 @@ service: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 item_id: 580e64008c9a982ac9b8b754 + query-parameters: + cmsLocaleId: cmsLocaleId update-item: path: /collections/{collection_id}/items/{item_id} method: PATCH - auth: true + auth: + - OAuth2: + - cms:write docs: | Update a selected Item in a Collection. @@ -1477,15 +1708,44 @@ service: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 item_id: 580e64008c9a982ac9b8b754 + query-parameters: + skipInvalidFiles: true request: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - date: '2022-11-18T00:00:00.000Z' - featured: true - color: '#db4b68' + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can have. + Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf response: body: id: 42b720ef280c7a7a3be8cabe @@ -1496,15 +1756,44 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf get-item-live: path: /collections/{collection_id}/items/{item_id}/live method: GET - auth: true + auth: + - OAuth2: + - cms:read docs: | Get details of a selected Collection live Item. @@ -1549,6 +1838,8 @@ service: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 item_id: 580e64008c9a982ac9b8b754 + query-parameters: + cmsLocaleId: cmsLocaleId response: body: id: 42b720ef280c7a7a3be8cabe @@ -1559,15 +1850,44 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf delete-item-live: path: /collections/{collection_id}/items/{item_id}/live method: DELETE - auth: true + auth: + - OAuth2: + - cms:write docs: > Unpublish a live item from the site and set the `isDraft` property to `true`. @@ -1608,10 +1928,14 @@ service: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 item_id: 580e64008c9a982ac9b8b754 + query-parameters: + cmsLocaleId: cmsLocaleId update-item-live: path: /collections/{collection_id}/items/{item_id}/live method: PATCH - auth: true + auth: + - OAuth2: + - cms:write docs: > Update a selected live Item in a Collection. The updates for this Item will be published to the live site. @@ -1654,15 +1978,44 @@ service: - path-parameters: collection_id: 580e63fc8c9a982ac9b8b745 item_id: 580e64008c9a982ac9b8b754 + query-parameters: + skipInvalidFiles: true request: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - date: '2022-11-18T00:00:00.000Z' - featured: true - color: '#db4b68' + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can have. + Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf response: body: id: 42b720ef280c7a7a3be8cabe @@ -1673,15 +2026,44 @@ service: isArchived: false isDraft: false fieldData: - name: Pan Galactic Gargle Blaster Recipe - slug: pan-galactic-gargle-blaster - color: '#db4b68' - date: '2022-11-18T00:00:00.000Z' - featured: true + name: The Hitchhiker's Guide to the Galaxy + slug: hitchhikers-guide-to-the-galaxy + plain-text: Don't Panic. + rich-text: >- +

A Guide to Interstellar Travel

A towel is about the + most massively useful thing an interstellar hitchhiker can + have. Don't forget yours!

+ main-image: + fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + image-gallery: + - fileId: 62b720ef280c7a7a3be8cabd + url: /files/62b720ef280c7a7a3be8cabd_image.png + - fileId: 62b720ef280c7a7a3be8cabe + url: /files/62b720ef280c7a7a3be8cabe_image.png + intro-video: https://www.youtube.com/watch?v=aJ83KAggd-4 + official-site: >- + https://hitchhikers.fandom.com/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy + contact-email: zaphod.beeblebrox@heartofgold.gov + support-phone: 424-242-4242 + answer-to-everything: 42 + release-date: '1979-10-12T00:00:00.000Z' + is-featured: true + brand-color: '#000000' + category: 62b720ef280c7a7a3be8cabf + author: 62b720ef280c7a7a3be8cab0 + tags: + - 62b720ef280c7a7a3be8cab1 + - 62b720ef280c7a7a3be8cab2 + downloadable-asset: + fileId: 62b720ef280c7a7a3be8cab3 + url: /files/62b720ef280c7a7a3be8cab3_document.pdf publish-item: path: /collections/{collection_id}/items/publish method: POST - auth: true + auth: + - OAuth2: + - cms:write docs: | Publish an item or multiple items. diff --git a/.mock/definition/components.yml b/.mock/definition/components.yml index 2aacf19e..6a8a0077 100644 --- a/.mock/definition/components.yml +++ b/.mock/definition/components.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/components method: GET - auth: true + auth: + - OAuth2: + - components:read docs: | List of all components for a site. @@ -48,6 +50,8 @@ service: site_id: 580e63e98c9a982ac9b8b741 query-parameters: branchId: 68026fa68ef6dc744c75b833 + limit: 1.1 + offset: 1.1 response: body: components: @@ -76,7 +80,9 @@ service: get-content: path: /sites/{site_id}/components/{component_id}/dom method: GET - auth: true + auth: + - OAuth2: + - components:read docs: > Get static content from a component definition. This includes text nodes, image nodes, select nodes, text input nodes, submit button nodes, @@ -109,9 +115,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) branchId: type: optional docs: Scope the operation to work on a specific branch. @@ -140,6 +149,8 @@ service: query-parameters: localeId: 65427cf400e02b306eaa04a0 branchId: 68026fa68ef6dc744c75b833 + limit: 1.1 + offset: 1.1 response: body: componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5 @@ -189,7 +200,9 @@ service: update-content: path: /sites/{site_id}/components/{component_id}/dom method: POST - auth: true + auth: + - OAuth2: + - components:write docs: > This endpoint updates content within a component defintion for **secondary locales**. It supports updating up to 1000 nodes in a single @@ -200,13 +213,18 @@ service: 1. Use the [get component content](/data/reference/pages-and-components/components/get-content) - endpoint to identify available content nodes and their types + endpoint to identify available content nodes and their types. 2. If your component definition has a component instance nested within it, retrieve the nested component instance's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) - endpoint + endpoint. + + 3. DOM elements may include a `data-w-id` attribute. This attribute is + used by Webflow to maintain custom attributes and links across locales. + Always include the original `data-w-id` value in your update requests to + ensure consistent behavior across all locales. @@ -230,9 +248,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) branchId: type: optional docs: Scope the operation to work on a specific branch. @@ -294,7 +315,9 @@ service: get-properties: path: /sites/{site_id}/components/{component_id}/properties method: GET - auth: true + auth: + - OAuth2: + - components:read docs: > Get the default property values of a component definition. @@ -320,9 +343,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) branchId: type: optional docs: Scope the operation to work on a specific branch. @@ -351,6 +377,8 @@ service: query-parameters: localeId: 65427cf400e02b306eaa04a0 branchId: 68026fa68ef6dc744c75b833 + limit: 1.1 + offset: 1.1 response: body: componentId: 658205daa3e8206a523b5ad4 @@ -374,17 +402,26 @@ service: update-properties: path: /sites/{site_id}/components/{component_id}/properties method: POST - auth: true + auth: + - OAuth2: + - components:write docs: > Update the default property values of a component definition in a specificed locale. - Before making updates, use the [get component + Before making updates: + + 1. Use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify properties that can be updated in a secondary locale. + 2. Rich Text properties may include a `data-w-id` attribute. This + attribute is used by Webflow to maintain links across locales. Always + include the original `data-w-id` value in your update requests to ensure + consistent behavior across all locales. + The request requires a secondary locale ID. If a `localeId` is missing, the request will not be processed and will result in an @@ -407,9 +444,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) branchId: type: optional docs: Scope the operation to work on a specific branch. @@ -456,12 +496,12 @@ types: ComponentDomWriteNodesItem: discriminated: false union: - - type: root.Text Node - - type: root.Component Instance + - type: root.TextNodeWrite + - type: root.ComponentInstanceNodePropertyOverridesWrite - type: root.Select - - type: root.Text Input - - type: root.Submit Button - - type: root.Search Button + - type: root.TextInputNodeWrite + - type: root.SubmitButtonNodeWrite + - type: root.SearchButtonNodeWrite source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true diff --git a/.mock/definition/ecommerce.yml b/.mock/definition/ecommerce.yml index b3e9857e..426869fa 100644 --- a/.mock/definition/ecommerce.yml +++ b/.mock/definition/ecommerce.yml @@ -7,7 +7,9 @@ service: get-settings: path: /sites/{site_id}/ecommerce/settings method: GET - auth: true + auth: + - OAuth2: + - ecommerce:read docs: | Retrieve ecommerce settings for a site. diff --git a/.mock/definition/forms.yml b/.mock/definition/forms.yml index f7044cfc..44592f7d 100644 --- a/.mock/definition/forms.yml +++ b/.mock/definition/forms.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/forms method: GET - auth: true + auth: + - OAuth2: + - forms:read docs: | List forms for a given site. @@ -45,6 +47,9 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + limit: 1.1 + offset: 1.1 response: body: forms: @@ -94,7 +99,9 @@ service: get: path: /forms/{form_id} method: GET - auth: true + auth: + - OAuth2: + - forms:read docs: | Get information about a given form. @@ -149,7 +156,9 @@ service: list-submissions: path: /forms/{form_id}/submissions method: GET - auth: true + auth: + - OAuth2: + - forms:read docs: | List form submissions for a given form @@ -192,6 +201,9 @@ service: examples: - path-parameters: form_id: 580e63e98c9a982ac9b8b741 + query-parameters: + offset: 1.1 + limit: 1.1 response: body: formSubmissions: @@ -218,7 +230,9 @@ service: get-submission: path: /form_submissions/{form_submission_id} method: GET - auth: true + auth: + - OAuth2: + - forms:read docs: | Get information about a given form submissio. @@ -257,7 +271,9 @@ service: delete-submission: path: /form_submissions/{form_submission_id} method: DELETE - auth: true + auth: + - OAuth2: + - forms:write docs: | Delete a form submission @@ -284,7 +300,9 @@ service: update-submission: path: /form_submissions/{form_submission_id} method: PATCH - auth: true + auth: + - OAuth2: + - forms:write docs: | Update hidden fields on a form submission @@ -335,7 +353,9 @@ service: list-submissions-by-site: path: /sites/{site_id}/form_submissions method: GET - auth: true + auth: + - OAuth2: + - forms:read docs: > List form submissions for a given site. This endpoint differs from the existing [List Form Submissions @@ -385,6 +405,8 @@ service: site_id: 580e63e98c9a982ac9b8b741 query-parameters: elementId: 18259716-3e5a-646a-5f41-5dc4b9405aa0 + offset: 1.1 + limit: 1.1 response: body: formSubmissions: diff --git a/.mock/definition/inventory.yml b/.mock/definition/inventory.yml index 13694c0c..139fa045 100644 --- a/.mock/definition/inventory.yml +++ b/.mock/definition/inventory.yml @@ -7,7 +7,9 @@ service: list: path: /collections/{sku_collection_id}/items/{sku_id}/inventory method: GET - auth: true + auth: + - OAuth2: + - ecommerce:read docs: | List the current inventory levels for a particular SKU item. @@ -48,7 +50,9 @@ service: update: path: /collections/{sku_collection_id}/items/{sku_id}/inventory method: PATCH - auth: true + auth: + - OAuth2: + - ecommerce:write docs: > Updates the current inventory levels for a particular SKU item. @@ -144,5 +148,5 @@ webhooks: payload: triggerType: ecomm_inventory_changed payload: - ref: ./schemas/inventory.yml#/InventoryItem/example + \$ref: ./schemas/inventory.yml#/InventoryItem/example docs: Information about updated ecommerce inventory values diff --git a/.mock/definition/items.yml b/.mock/definition/items.yml index 4d2db993..f65b6d7b 100644 --- a/.mock/definition/items.yml +++ b/.mock/definition/items.yml @@ -15,7 +15,7 @@ webhooks: workspaceId: 625860a7a6c16d624927122f siteId: 65427cf400e02b306eaa049c collectionId: 664243617fcc8b464b23c4ee - cmsLocaleId: 681442a144bb80bd00480fda + lastPublished: '2023-03-17T18:47:35Z' lastUpdated: '2023-03-17T18:47:35Z' createdOn: '2023-03-17T18:47:35Z' isArchived: false @@ -34,18 +34,13 @@ webhooks: - payload: triggerType: collection_item_changed payload: - id: 580e64008c9a982ac9b8b754 - workspaceId: 625860a7a6c16d624927122f - siteId: 65427cf400e02b306eaa049c - collectionId: 664243617fcc8b464b23c4ee - cmsLocaleId: 681442a144bb80bd00480fda - lastUpdated: '2023-03-17T18:47:35Z' - createdOn: '2023-03-17T18:47:35Z' - isArchived: false - isDraft: false + id: id + workspaceId: workspaceId + siteId: siteId + collectionId: collectionId fieldData: - name: Pan-Galactic Gargle Blaster - slug: pan-galactic-gargle-blaster + name: name + slug: slug docs: Information about an updated collection item collection_item_deleted: audiences: [] @@ -67,11 +62,28 @@ webhooks: isArchived: false isDraft: false fieldData: - name: Anna Gunn - slug: anna-gunn - _locale: 681442a144bb80bd00480fda - _noSearch: false + name: Earth + slug: earth + description: Mostly harmless + color: '#0000FF' + type: planet + galaxy: Milky Way docs: Information about a deleted collection item + collection_item_published: + audiences: [] + method: POST + display-name: Collection Item Published + headers: {} + payload: root.CollectionItemPublished + examples: + - payload: + triggerType: collection_item_published + payload: + id: 6321ca84df3949bfc6752327 + siteId: 65427cf400e02b306eaa049c + workspaceId: 625860a7a6c16d624927122f + collectionId: 664243617fcc8b464b23c4ee + docs: Information about a collection item that was published collection_item_unpublished: audiences: [] method: POST diff --git a/.mock/definition/orders.yml b/.mock/definition/orders.yml index d7243c72..0eeeabde 100644 --- a/.mock/definition/orders.yml +++ b/.mock/definition/orders.yml @@ -28,7 +28,9 @@ service: list: path: /sites/{site_id}/orders method: GET - auth: true + auth: + - OAuth2: + - ecommerce:read docs: | List all orders created for a given site. @@ -69,6 +71,10 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + status: pending + offset: 1.1 + limit: 1.1 response: body: orders: @@ -85,15 +91,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 211.55 USD' + string: \$ 211.55 USD netAmount: unit: USD value: '5892' - string: ' 200.89 USD' + string: \$ 200.89 USD applicationFee: unit: USD value: '5892' - string: ' 4.23 USD' + string: \$ 4.23 USD allAddresses: - type: billing addressee: Arthur Dent @@ -141,7 +147,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 111.22 USD' + string: \$ 111.22 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -155,7 +161,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -164,7 +170,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 83.09 USD' + string: \$ 83.09 USD productId: 66072fb61b89448912e2678b productName: Incredible Bronze Towels productSlug: incredible-bronze-towels @@ -180,7 +186,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 83.09 USD' + string: \$ 83.09 USD width: 19 height: 72 length: 18 @@ -213,7 +219,7 @@ service: price: unit: USD value: '5892' - string: '3.44' + string: \$3.44 downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: The modern web design process - Webflow Ebook.pdf @@ -228,15 +234,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing addressee: Arthur Dent @@ -283,7 +289,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -297,7 +303,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -306,7 +312,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -324,7 +330,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -356,7 +362,7 @@ service: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -364,25 +370,25 @@ service: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -395,7 +401,9 @@ service: get: path: /sites/{site_id}/orders/{order_id} method: GET - auth: true + auth: + - OAuth2: + - ecommerce:read docs: | Retrieve a single product by its ID. All of its SKUs will also be retrieved. @@ -447,15 +455,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing japanType: kana @@ -506,7 +514,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -520,7 +528,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -529,7 +537,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -543,7 +551,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -575,7 +583,7 @@ service: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -583,25 +591,25 @@ service: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -610,7 +618,9 @@ service: update: path: /sites/{site_id}/orders/{order_id} method: PATCH - auth: true + auth: + - OAuth2: + - ecommerce:write docs: | This API lets you update the fields, `comment`, `shippingProvider`, and/or `shippingTracking` for a given order. All three fields can be @@ -681,15 +691,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing japanType: kana @@ -740,7 +750,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -754,7 +764,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -763,7 +773,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -777,7 +787,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -809,7 +819,7 @@ service: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -817,25 +827,25 @@ service: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -844,7 +854,9 @@ service: update-fulfill: path: /sites/{site_id}/orders/{order_id}/fulfill method: POST - auth: true + auth: + - OAuth2: + - ecommerce:write docs: | Updates an order's status to fulfilled @@ -905,15 +917,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing japanType: kana @@ -964,7 +976,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -978,7 +990,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -987,7 +999,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -1001,7 +1013,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -1033,7 +1045,7 @@ service: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -1041,25 +1053,25 @@ service: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -1068,7 +1080,9 @@ service: update-unfulfill: path: /sites/{site_id}/orders/{order_id}/unfulfill method: POST - auth: true + auth: + - OAuth2: + - ecommerce:write docs: | Updates an order's status to unfulfilled @@ -1119,15 +1133,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing japanType: kana @@ -1178,7 +1192,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -1192,7 +1206,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -1201,7 +1215,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -1215,7 +1229,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -1247,7 +1261,7 @@ service: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -1255,25 +1269,25 @@ service: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -1282,7 +1296,9 @@ service: refund: path: /sites/{site_id}/orders/{order_id}/refund method: POST - auth: true + auth: + - OAuth2: + - ecommerce:write docs: | This API will reverse a Stripe charge and refund an order back to a customer. It will also set the order's status to `refunded`. @@ -1343,15 +1359,15 @@ service: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing japanType: kana @@ -1402,7 +1418,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -1416,7 +1432,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -1425,7 +1441,7 @@ service: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -1439,7 +1455,7 @@ service: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -1471,7 +1487,7 @@ service: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -1479,25 +1495,25 @@ service: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -1531,15 +1547,15 @@ webhooks: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing addressee: Arthur Dent @@ -1587,7 +1603,7 @@ webhooks: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -1601,7 +1617,7 @@ webhooks: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -1610,7 +1626,7 @@ webhooks: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -1624,7 +1640,7 @@ webhooks: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -1656,7 +1672,7 @@ webhooks: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -1664,25 +1680,25 @@ webhooks: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide @@ -1717,15 +1733,15 @@ webhooks: customerPaid: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD netAmount: unit: USD value: '5892' - string: ' 112.62 USD' + string: \$ 112.62 USD applicationFee: unit: USD value: '5892' - string: ' 2.37 USD' + string: \$ 2.37 USD allAddresses: - type: billing addressee: Arthur Dent @@ -1773,7 +1789,7 @@ webhooks: rowTotal: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD productId: 66072fb61b89448912e26791 productName: Luxurious Fresh Ball productSlug: luxurious-fresh-ball @@ -1787,7 +1803,7 @@ webhooks: variantPrice: unit: USD value: '5892' - string: ' 55.61 USD' + string: \$ 55.61 USD weight: 11 width: 82 height: 70 @@ -1796,7 +1812,7 @@ webhooks: rowTotal: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD productId: 66072fb61b89448912e26799 productName: Recycled Steel Gloves productSlug: recycled-steel-gloves @@ -1810,7 +1826,7 @@ webhooks: variantPrice: unit: USD value: '5892' - string: ' 53.44 USD' + string: \$ 53.44 USD weight: 38 width: 76 height: 85 @@ -1842,7 +1858,7 @@ webhooks: subtotal: unit: USD value: '5892' - string: ' 109.05 USD' + string: \$ 109.05 USD extras: - type: tax name: State Taxes @@ -1850,25 +1866,25 @@ webhooks: price: unit: USD value: '5892' - string: ' 4.36 USD' + string: \$ 4.36 USD - type: tax name: City Taxes description: NEW YORK Taxes (4.88%) price: unit: USD value: '5892' - string: ' 5.32 USD' + string: \$ 5.32 USD - type: shipping name: Flat description: '' price: unit: USD value: '5892' - string: ' 0.00 USD' + string: \$ 0.00 USD total: unit: USD value: '5892' - string: ' 118.73 USD' + string: \$ 118.73 USD downloadFiles: - id: 5e9a5eba75e0ac242e1b6f64 name: New product guide diff --git a/.mock/definition/pages.yml b/.mock/definition/pages.yml index 4f46a952..88b8aa21 100644 --- a/.mock/definition/pages.yml +++ b/.mock/definition/pages.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/pages method: GET - auth: true + auth: + - OAuth2: + - page:read docs: | List of all pages for a site. @@ -24,9 +26,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) limit: type: optional docs: 'Maximum number of records to be returned (max limit: 100)' @@ -50,6 +55,8 @@ service: site_id: 580e63e98c9a982ac9b8b741 query-parameters: localeId: 65427cf400e02b306eaa04a0 + limit: 1.1 + offset: 1.1 response: body: pages: @@ -111,7 +118,9 @@ service: get-metadata: path: /pages/{page_id} method: GET - auth: true + auth: + - OAuth2: + - page:read docs: | Get metadata information for a single page. @@ -128,9 +137,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) response: docs: Request was successful type: root.Page @@ -176,14 +188,12 @@ service: update-page-settings: path: /pages/{page_id} method: PUT - auth: true + auth: + - OAuth2: + - page:write docs: | Update Page-level metadata, including SEO and Open Graph fields. - - Note: When updating Page Metadata in secondary locales, you may only add `slug` to the request if your Site has the [Advanced or Enterprise Localization](https://webflow.com/localization) add-on. - - Required scope | `pages:write` source: openapi: ../../../openapi/referenced-specs/v2.yml @@ -197,9 +207,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) body: properties: title: @@ -207,7 +220,14 @@ service: docs: Title for the page slug: type: optional - docs: Slug for the page + docs: > + Slug for the page. + + + + **Note:** Updating slugs in secondary locales is only supported + in Advanced and + Enterprise localization add-on plans. seo: type: optional docs: SEO-related fields for the Page @@ -275,24 +295,13 @@ service: get-content: path: /pages/{page_id}/dom method: GET - auth: true - docs: > - Get content from a static page. This includes text nodes, image nodes, - select nodes, text input nodes, submit button nodes, and component - instances with [property - overrides](https://help.webflow.com/hc/en-us/articles/33961219350547-Component-properties#how-to-modify-property-values-on-component-instances). - - - To retrieve the static content of a component instance, use the [Get - Component - Content](/data/reference/pages-and-components/components/get-content) - endpoint. - - - If you do not include a `localeId` in your request, the response - will return any content that can be localized from the Primary - locale. + auth: + - OAuth2: + - page:read + docs: | + Get text and component instance content from a static page. + Localization Required scope | `pages:read` source: @@ -307,9 +316,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) limit: type: optional docs: 'Maximum number of records to be returned (max limit: 100)' @@ -334,6 +346,8 @@ service: page_id: 63c720f9347c2139b248e552 query-parameters: localeId: 65427cf400e02b306eaa04a0 + limit: 1.1 + offset: 1.1 response: body: pageId: 658205daa3e8206a523b5ad4 @@ -384,7 +398,9 @@ service: update-static-content: path: /pages/{page_id}/dom method: POST - auth: true + auth: + - OAuth2: + - page:write docs: > This endpoint updates content on a static page in **secondary locales**. It supports updating up to 1000 nodes in a single request. @@ -394,12 +410,17 @@ service: 1. Use the [get page content](/data/reference/pages-and-components/pages/get-content) - endpoint to identify available content nodes and their types + endpoint to identify available content nodes and their types. 2. If the page has component instances, retrieve the component's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) - endpoint + endpoint. + + 3. DOM elements may include a `data-w-id` attribute. This attribute is + used by Webflow to maintain custom attributes and links across locales. + Always include the original `data-w-id` value in your update requests to + ensure consistent behavior across all locales. @@ -514,12 +535,12 @@ types: PageDomWriteNodesItem: discriminated: false union: - - type: root.Text Node - - type: root.Component Instance + - type: root.TextNodeWrite + - type: root.ComponentInstanceNodePropertyOverridesWrite - type: root.Select - - type: root.Text Input - - type: root.Submit Button - - type: root.Search Button + - type: root.TextInputNodeWrite + - type: root.SubmitButtonNodeWrite + - type: root.SearchButtonNodeWrite source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true diff --git a/.mock/definition/pages/scripts.yml b/.mock/definition/pages/scripts.yml index 02420aaa..59bc96a2 100644 --- a/.mock/definition/pages/scripts.yml +++ b/.mock/definition/pages/scripts.yml @@ -7,7 +7,9 @@ service: get-custom-code: path: /pages/{page_id}/custom_code method: GET - auth: true + auth: + - OAuth2: + - custom_code:read docs: | Get all scripts applied to a page. @@ -45,7 +47,9 @@ service: upsert-custom-code: path: /pages/{page_id}/custom_code method: PUT - auth: true + auth: + - OAuth2: + - custom_code:write docs: > Apply registered scripts to a page. If you have multiple scripts your App needs to apply or maintain on a page, ensure they are always @@ -112,7 +116,9 @@ service: delete-custom-code: path: /pages/{page_id}/custom_code method: DELETE - auth: true + auth: + - OAuth2: + - custom_code:write docs: > Remove all scripts from a page applied by the App. This endpoint will not remove scripts from the site's registered scripts. diff --git a/.mock/definition/products.yml b/.mock/definition/products.yml index 459946a4..712a4ef5 100644 --- a/.mock/definition/products.yml +++ b/.mock/definition/products.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/products method: GET - auth: true + auth: + - OAuth2: + - ecommerce:read docs: > Retrieve all products for a site. @@ -53,6 +55,9 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + offset: 1.1 + limit: 1.1 response: body: items: @@ -108,7 +113,9 @@ service: create: path: /sites/{site_id}/products method: POST - auth: true + auth: + - OAuth2: + - ecommerce:write docs: > Create a new ecommerce product and defaultSKU. A product, at minimum, must have a single SKU. @@ -254,7 +261,9 @@ service: get: path: /sites/{site_id}/products/{product_id} method: GET - auth: true + auth: + - OAuth2: + - ecommerce:read docs: | Retrieve a single product by its ID. All of its SKUs will also be retrieved. @@ -341,7 +350,9 @@ service: update: path: /sites/{site_id}/products/{product_id} method: PATCH - auth: true + auth: + - OAuth2: + - ecommerce:write docs: > Update an existing Product. @@ -416,7 +427,9 @@ service: create-sku: path: /sites/{site_id}/products/{product_id}/skus method: POST - auth: true + auth: + - OAuth2: + - ecommerce:write docs: > Create additional SKUs to manage every [option and variant of your Product.](https://help.webflow.com/hc/en-us/articles/33961334531347-Create-product-options-and-variants) @@ -507,7 +520,9 @@ service: update-sku: path: /sites/{site_id}/products/{product_id}/skus/{sku_id} method: PATCH - auth: true + auth: + - OAuth2: + - ecommerce:write docs: > Update a specified SKU. diff --git a/.mock/definition/scripts.yml b/.mock/definition/scripts.yml index a2a7b4b3..0989ace5 100644 --- a/.mock/definition/scripts.yml +++ b/.mock/definition/scripts.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/registered_scripts method: GET - auth: true + auth: + - OAuth2: + - custom_code:read docs: > Get a list of scripts that have been registered to a site. A site can have a maximum of 800 registered scripts. @@ -72,7 +74,9 @@ service: register-hosted: path: /sites/{site_id}/registered_scripts/hosted method: POST - auth: true + auth: + - OAuth2: + - custom_code:write docs: | Register a hosted script to a site. @@ -147,7 +151,9 @@ service: register-inline: path: /sites/{site_id}/registered_scripts/inline method: POST - auth: true + auth: + - OAuth2: + - custom_code:write docs: > Register an inline script to a site. Inline scripts are limited to 2000 characters. diff --git a/.mock/definition/sites.yml b/.mock/definition/sites.yml index 69410ee2..052dbbc2 100644 --- a/.mock/definition/sites.yml +++ b/.mock/definition/sites.yml @@ -7,7 +7,9 @@ service: create: path: /workspaces/{workspace_id}/sites method: POST - auth: true + auth: + - OAuth2: + - sites:write docs: > Create a site. @@ -73,7 +75,9 @@ service: list: path: /sites method: GET - auth: true + auth: + - OAuth2: + - sites:read docs: | List of all sites the provided access token is able to access. @@ -203,7 +207,9 @@ service: get: path: /sites/{site_id} method: GET - auth: true + auth: + - OAuth2: + - sites:read docs: | Get details of a site. @@ -226,7 +232,8 @@ service: - root.TooManyRequestsError - root.InternalServerError examples: - - path-parameters: + - name: SiteWithLocales + path-parameters: site_id: 580e63e98c9a982ac9b8b741 response: body: @@ -271,7 +278,9 @@ service: delete: path: /sites/{site_id} method: DELETE - auth: true + auth: + - OAuth2: + - sites:write docs: > Delete a site. @@ -301,7 +310,9 @@ service: update: path: /sites/{site_id} method: PATCH - auth: true + auth: + - OAuth2: + - sites:write docs: > Update a site. @@ -387,7 +398,9 @@ service: get-custom-domain: path: /sites/{site_id}/custom_domains method: GET - auth: true + auth: + - OAuth2: + - sites:read docs: | Get a list of all custom domains related to site. @@ -424,7 +437,9 @@ service: publish: path: /sites/{site_id}/publish method: POST - auth: true + auth: + - OAuth2: + - sites:write docs: > Publishes a site to one or more more domains. diff --git a/.mock/definition/sites/activityLogs.yml b/.mock/definition/sites/activityLogs.yml index adf24a59..88d0822f 100644 --- a/.mock/definition/sites/activityLogs.yml +++ b/.mock/definition/sites/activityLogs.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/activity_logs method: GET - auth: true + auth: + - OAuth2: + - site_activity:read docs: > Retrieve Activity Logs for a specific Site. @@ -47,6 +49,9 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + limit: 1.1 + offset: 1.1 response: body: items: diff --git a/.mock/definition/sites/comments.yml b/.mock/definition/sites/comments.yml index b14a9e5b..ac8b3a2d 100644 --- a/.mock/definition/sites/comments.yml +++ b/.mock/definition/sites/comments.yml @@ -44,7 +44,9 @@ service: list-comment-threads: path: /sites/{site_id}/comments method: GET - auth: true + auth: + - OAuth2: + - comments:read docs: | List all comment threads for a site. @@ -65,9 +67,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) offset: type: optional docs: >- @@ -99,6 +104,10 @@ service: site_id: 580e63e98c9a982ac9b8b741 query-parameters: localeId: 65427cf400e02b306eaa04a0 + offset: 1.1 + limit: 1.1 + sortBy: createdOn + sortOrder: asc response: body: comments: @@ -149,7 +158,9 @@ service: get-comment-thread: path: /sites/{site_id}/comments/{comment_thread_id} method: GET - auth: true + auth: + - OAuth2: + - comments:read docs: | Get details of a specific comment thread. @@ -173,9 +184,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) offset: type: optional docs: >- @@ -208,6 +222,10 @@ service: comment_thread_id: 580e63e98c9a982ac9b8b741 query-parameters: localeId: 65427cf400e02b306eaa04a0 + offset: 1.1 + limit: 1.1 + sortBy: createdOn + sortOrder: asc response: body: id: 580e64008c9a982ac9b8b754 @@ -233,7 +251,9 @@ service: list-comment-replies: path: /sites/{site_id}/comments/{comment_thread_id}/replies method: GET - auth: true + auth: + - OAuth2: + - comments:read docs: | List all replies to a specific comment thread. @@ -257,9 +277,12 @@ service: query-parameters: localeId: type: optional - docs: >- - Unique identifier for a specific locale. Applicable, when using - localization. + docs: > + Unique identifier for a specific Locale. + + + [Lear more about + localization.](/data/v2.0.0/docs/working-with-localization) offset: type: optional docs: >- @@ -292,6 +315,10 @@ service: comment_thread_id: 580e63e98c9a982ac9b8b741 query-parameters: localeId: 65427cf400e02b306eaa04a0 + offset: 1.1 + limit: 1.1 + sortBy: createdOn + sortOrder: asc response: body: comments: diff --git a/.mock/definition/sites/plans.yml b/.mock/definition/sites/plans.yml index f5073738..4f662bc4 100644 --- a/.mock/definition/sites/plans.yml +++ b/.mock/definition/sites/plans.yml @@ -7,7 +7,9 @@ service: get-site-plan: path: /sites/{site_id}/plan method: GET - auth: true + auth: + - OAuth2: + - sites:read docs: > Get site plan details for the specified Site. diff --git a/.mock/definition/sites/redirects.yml b/.mock/definition/sites/redirects.yml index 746923b4..806117ce 100644 --- a/.mock/definition/sites/redirects.yml +++ b/.mock/definition/sites/redirects.yml @@ -7,7 +7,9 @@ service: list: path: /sites/{site_id}/redirects method: GET - auth: true + auth: + - OAuth2: + - sites:read docs: > Fetch a list of all 301 redirect rules configured for a specific site. @@ -57,7 +59,9 @@ service: create: path: /sites/{site_id}/redirects method: POST - auth: true + auth: + - OAuth2: + - sites:write docs: > Add a new 301 redirection rule to a site. @@ -108,7 +112,9 @@ service: delete: path: /sites/{site_id}/redirects/{redirect_id} method: DELETE - auth: true + auth: + - OAuth2: + - sites:write docs: > Remove a 301 redirection rule from a site. @@ -163,7 +169,9 @@ service: update: path: /sites/{site_id}/redirects/{redirect_id} method: PATCH - auth: true + auth: + - OAuth2: + - sites:write docs: > Update a 301 redirection rule from a site. diff --git a/.mock/definition/sites/robotsTxt.yml b/.mock/definition/sites/robotsTxt.yml index 1259a149..1aaf6cff 100644 --- a/.mock/definition/sites/robotsTxt.yml +++ b/.mock/definition/sites/robotsTxt.yml @@ -7,7 +7,9 @@ service: get: path: /sites/{site_id}/robots_txt method: GET - auth: true + auth: + - OAuth2: + - site_config:read docs: > Retrieve the robots.txt configuration for various user agents. @@ -50,7 +52,9 @@ service: put: path: /sites/{site_id}/robots_txt method: PUT - auth: true + auth: + - OAuth2: + - site_config:write docs: > Replace the `robots.txt` configuration for various user agents. @@ -105,7 +109,9 @@ service: delete: path: /sites/{site_id}/robots_txt method: DELETE - auth: true + auth: + - OAuth2: + - site_config:write docs: > Remove specific rules for a user-agent in your `robots.txt` file. To delete all rules for a user-agent, provide an empty rule set. This will @@ -165,7 +171,9 @@ service: patch: path: /sites/{site_id}/robots_txt method: PATCH - auth: true + auth: + - OAuth2: + - site_config:write docs: > Update the `robots.txt` configuration for various user agents. diff --git a/.mock/definition/sites/scripts.yml b/.mock/definition/sites/scripts.yml index 042c8480..ed57238c 100644 --- a/.mock/definition/sites/scripts.yml +++ b/.mock/definition/sites/scripts.yml @@ -7,7 +7,9 @@ service: get-custom-code: path: /sites/{site_id}/custom_code method: GET - auth: true + auth: + - OAuth2: + - custom_code:read docs: | Get all scripts applied to a site by the App. @@ -54,7 +56,9 @@ service: upsert-custom-code: path: /sites/{site_id}/custom_code method: PUT - auth: true + auth: + - OAuth2: + - custom_code:write docs: > Apply registered scripts to a site. If you have multiple scripts your App needs to apply or maintain on a site, ensure they are always @@ -120,7 +124,9 @@ service: delete-custom-code: path: /sites/{site_id}/custom_code method: DELETE - auth: true + auth: + - OAuth2: + - custom_code:write docs: > Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts. @@ -156,7 +162,9 @@ service: list-custom-code-blocks: path: /sites/{site_id}/custom_code/blocks method: GET - auth: true + auth: + - OAuth2: + - custom_code:read docs: > Get a list of scripts that have been applied to a site and/or individual pages. @@ -201,6 +209,9 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + offset: 1.1 + limit: 1.1 response: body: blocks: diff --git a/.mock/definition/sites/wellKnown.yml b/.mock/definition/sites/wellKnown.yml index 0ba91e13..10ef3e05 100644 --- a/.mock/definition/sites/wellKnown.yml +++ b/.mock/definition/sites/wellKnown.yml @@ -19,7 +19,9 @@ service: put: path: /sites/{site_id}/well_known method: PUT - auth: true + auth: + - OAuth2: + - site_config:write docs: > Upload a supported well-known file to a site. @@ -70,12 +72,26 @@ service: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 request: - fileName: fileName - fileData: fileData + fileName: apple-app-site-association.txt + fileData: | + { + "applinks": { + "apps": [], + "details": [ + { + "appID": "ABCDE12345.com.example.app", + "paths": [ "/*", "/some/path/*" ] + } + ] + } + } + contentType: application/json delete: path: /sites/{site_id}/well_known method: DELETE - auth: true + auth: + - OAuth2: + - site_config:write docs: > Delete existing well-known files from a site. diff --git a/.mock/definition/token.yml b/.mock/definition/token.yml index 4b1cc1a0..4b0e3657 100644 --- a/.mock/definition/token.yml +++ b/.mock/definition/token.yml @@ -7,7 +7,9 @@ service: authorized-by: path: /token/authorized_by method: GET - auth: true + auth: + - OAuth2: + - authorized_user:read docs: | Information about the Authorized User @@ -32,7 +34,6 @@ service: introspect: path: /token/introspect method: GET - auth: true docs: > Information about the authorization token diff --git a/.mock/definition/users.yml b/.mock/definition/users.yml index 58a505f2..2a7f08e5 100644 --- a/.mock/definition/users.yml +++ b/.mock/definition/users.yml @@ -180,7 +180,9 @@ service: list: path: /sites/{site_id}/users method: GET - auth: true + auth: + - OAuth2: + - users:read docs: | Get a list of users for a site @@ -225,6 +227,10 @@ service: examples: - path-parameters: site_id: 580e63e98c9a982ac9b8b741 + query-parameters: + offset: 1.1 + limit: 1.1 + sort: CreatedOn response: body: count: 5 @@ -285,7 +291,9 @@ service: get: path: /sites/{site_id}/users/{user_id} method: GET - auth: true + auth: + - OAuth2: + - users:read docs: | Get a User by ID @@ -337,7 +345,9 @@ service: delete: path: /sites/{site_id}/users/{user_id} method: DELETE - auth: true + auth: + - OAuth2: + - users:write docs: | Delete a User by ID @@ -366,7 +376,9 @@ service: update: path: /sites/{site_id}/users/{user_id} method: PATCH - auth: true + auth: + - OAuth2: + - users:write docs: | Update a User by ID @@ -435,7 +447,9 @@ service: invite: path: /sites/{site_id}/users/invite method: POST - auth: true + auth: + - OAuth2: + - users:write docs: > Create and invite a user with an email address. diff --git a/.mock/definition/webhooks.yml b/.mock/definition/webhooks.yml index 47dbfc0a..7fbd0795 100644 --- a/.mock/definition/webhooks.yml +++ b/.mock/definition/webhooks.yml @@ -7,7 +7,6 @@ service: list: path: /sites/{site_id}/webhooks method: GET - auth: true docs: | List all App-created Webhooks registered for a given site @@ -69,7 +68,6 @@ service: create: path: /sites/{site_id}/webhooks method: POST - auth: true docs: > Create a new Webhook. @@ -124,7 +122,6 @@ service: get: path: /webhooks/{webhook_id} method: GET - auth: true docs: | Get a specific Webhook instance @@ -161,7 +158,6 @@ service: delete: path: /webhooks/{webhook_id} method: DELETE - auth: true docs: | Remove a Webhook diff --git a/.mock/definition/workspaces/auditLogs.yml b/.mock/definition/workspaces/auditLogs.yml index 73ae4df3..d30d7aec 100644 --- a/.mock/definition/workspaces/auditLogs.yml +++ b/.mock/definition/workspaces/auditLogs.yml @@ -23,7 +23,9 @@ service: get-workspace-audit_logs: path: /workspaces/{workspace_id_or_slug}/audit_logs method: GET - auth: true + auth: + - OAuth2: + - workspace_activity:read docs: > Get audit logs for a workspace. @@ -79,8 +81,12 @@ service: - path-parameters: workspace_id_or_slug: hitchhikers-workspace query-parameters: - from: '2024-04-22T16:00:31Z' - to: '2024-04-22T16:00:31Z' + limit: 1.1 + offset: 1.1 + sortOrder: asc + eventType: user_access + from: '2025-06-22T16:00:31Z' + to: '2025-07-22T16:00:31Z' response: body: items: diff --git a/.mock/fern.config.json b/.mock/fern.config.json index ab4ae42f..af40360d 100644 --- a/.mock/fern.config.json +++ b/.mock/fern.config.json @@ -1,4 +1,4 @@ { "organization" : "webflow", - "version" : "0.65.36" + "version" : "0.96.1" } \ No newline at end of file diff --git a/reference.md b/reference.md index ba566b73..d6d078e7 100644 --- a/reference.md +++ b/reference.md @@ -937,6 +937,8 @@ Required scope | `pages:read` ```typescript await client.pages.list("580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + limit: 1.1, + offset: 1.1, }); ``` @@ -1069,10 +1071,6 @@ await client.pages.getMetadata("63c720f9347c2139b248e552", { Update Page-level metadata, including SEO and Open Graph fields. - - Note: When updating Page Metadata in secondary locales, you may only add `slug` to the request if your Site has the [Advanced or Enterprise Localization](https://webflow.com/localization) add-on. - - Required scope | `pages:write` @@ -1159,11 +1157,9 @@ await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
-Get content from a static page. This includes text nodes, image nodes, select nodes, text input nodes, submit button nodes, and component instances with [property overrides](https://help.webflow.com/hc/en-us/articles/33961219350547-Component-properties#how-to-modify-property-values-on-component-instances). - -To retrieve the static content of a component instance, use the [Get Component Content](/data/reference/pages-and-components/components/get-content) endpoint. +Get text and component instance content from a static page. -If you do not include a `localeId` in your request, the response will return any content that can be localized from the Primary locale. +Localization Required scope | `pages:read` @@ -1183,6 +1179,8 @@ Required scope | `pages:read` ```typescript await client.pages.getContent("63c720f9347c2139b248e552", { localeId: "65427cf400e02b306eaa04a0", + limit: 1.1, + offset: 1.1, }); ``` @@ -1242,8 +1240,9 @@ This endpoint updates content on a static page in **secondary locales**. It supp Before making updates: -1. Use the [get page content](/data/reference/pages-and-components/pages/get-content) endpoint to identify available content nodes and their types -2. If the page has component instances, retrieve the component's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint +1. Use the [get page content](/data/reference/pages-and-components/pages/get-content) endpoint to identify available content nodes and their types. +2. If the page has component instances, retrieve the component's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint. +3. DOM elements may include a `data-w-id` attribute. This attribute is used by Webflow to maintain custom attributes and links across locales. Always include the original `data-w-id` value in your update requests to ensure consistent behavior across all locales. This endpoint is specifically for localized pages. Ensure that the specified `localeId` is a valid **secondary locale** for the site otherwise the request will fail. @@ -1389,6 +1388,8 @@ Required scope | `components:read` ```typescript await client.components.list("580e63e98c9a982ac9b8b741", { branchId: "68026fa68ef6dc744c75b833", + limit: 1.1, + offset: 1.1, }); ``` @@ -1468,6 +1469,8 @@ Required scope | `components:read` await client.components.getContent("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", { localeId: "65427cf400e02b306eaa04a0", branchId: "68026fa68ef6dc744c75b833", + limit: 1.1, + offset: 1.1, }); ``` @@ -1535,8 +1538,9 @@ This endpoint updates content within a component defintion for **secondary local Before making updates: -1. Use the [get component content](/data/reference/pages-and-components/components/get-content) endpoint to identify available content nodes and their types -2. If your component definition has a component instance nested within it, retrieve the nested component instance's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint +1. Use the [get component content](/data/reference/pages-and-components/components/get-content) endpoint to identify available content nodes and their types. +2. If your component definition has a component instance nested within it, retrieve the nested component instance's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint. +3. DOM elements may include a `data-w-id` attribute. This attribute is used by Webflow to maintain custom attributes and links across locales. Always include the original `data-w-id` value in your update requests to ensure consistent behavior across all locales. This endpoint is specifically for localizing component definitions. Ensure that the specified `localeId` is a valid **secondary locale** for the site otherwise the request will fail. @@ -1692,6 +1696,8 @@ Required scope | `components:read` await client.components.getProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", { localeId: "65427cf400e02b306eaa04a0", branchId: "68026fa68ef6dc744c75b833", + limit: 1.1, + offset: 1.1, }); ``` @@ -1757,7 +1763,10 @@ await client.components.getProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72 Update the default property values of a component definition in a specificed locale. -Before making updates, use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify properties that can be updated in a secondary locale. +Before making updates: + +1. Use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify properties that can be updated in a secondary locale. +2. Rich Text properties may include a `data-w-id` attribute. This attribute is used by Webflow to maintain links across locales. Always include the original `data-w-id` value in your update requests to ensure consistent behavior across all locales. The request requires a secondary locale ID. If a `localeId` is missing, the request will not be processed and will result in an error. @@ -2077,7 +2086,7 @@ await client.scripts.registerInline("580e63e98c9a982ac9b8b741", { ## Assets -
client.assets.list(siteId) -> Webflow.Assets +
client.assets.list(siteId, { ...params }) -> Webflow.Assets
@@ -2107,7 +2116,10 @@ Required scope | `assets:read`
```typescript -await client.assets.list("580e63e98c9a982ac9b8b741"); +await client.assets.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, +}); ```
@@ -2131,6 +2143,14 @@ await client.assets.list("580e63e98c9a982ac9b8b741");
+**request:** `Webflow.AssetsListRequest` + +
+
+ +
+
+ **requestOptions:** `Assets.RequestOptions`
@@ -2945,7 +2965,10 @@ Required scope | `forms:read`
```typescript -await client.forms.list("580e63e98c9a982ac9b8b741"); +await client.forms.list("580e63e98c9a982ac9b8b741", { + limit: 1.1, + offset: 1.1, +}); ```
@@ -3089,7 +3112,10 @@ Required scope | `forms:read`
```typescript -await client.forms.listSubmissions("580e63e98c9a982ac9b8b741"); +await client.forms.listSubmissions("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, +}); ```
@@ -3367,6 +3393,8 @@ Required scope | `forms:read` ```typescript await client.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", { elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0", + offset: 1.1, + limit: 1.1, }); ``` @@ -3442,7 +3470,11 @@ Required scope | `users:read`
```typescript -await client.users.list("580e63e98c9a982ac9b8b741"); +await client.users.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + sort: "CreatedOn", +}); ```
@@ -3839,7 +3871,11 @@ Required scope | `users:read`
```typescript -await client.accessGroups.list("580e63e98c9a982ac9b8b741"); +await client.accessGroups.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + sort: "CreatedOn", +}); ```
@@ -3917,7 +3953,10 @@ Required scope | `ecommerce:read`
```typescript -await client.products.list("580e63e98c9a982ac9b8b741"); +await client.products.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, +}); ```
@@ -4506,7 +4545,11 @@ Required scope | `ecommerce:read`
```typescript -await client.orders.list("580e63e98c9a982ac9b8b741"); +await client.orders.list("580e63e98c9a982ac9b8b741", { + status: "pending", + offset: 1.1, + limit: 1.1, +}); ```
@@ -5448,7 +5491,15 @@ Required scope | `CMS:read`
```typescript -await client.collections.items.listItems("580e63fc8c9a982ac9b8b745"); +await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", { + cmsLocaleId: "cmsLocaleId", + offset: 1.1, + limit: 1.1, + name: "name", + slug: "slug", + sortBy: "lastPublished", + sortOrder: "asc", +}); ```
@@ -5524,12 +5575,13 @@ Required scope | `CMS:write` ```typescript await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }); @@ -5691,6 +5743,7 @@ Required scope | `CMS:write` ```typescript await client.collections.items.updateItems("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, items: [ { id: "66f6ed9576ddacf3149d5ea6", @@ -5803,7 +5856,15 @@ Required scope | `CMS:read`
```typescript -await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745"); +await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", { + cmsLocaleId: "cmsLocaleId", + offset: 1.1, + limit: 1.1, + name: "name", + slug: "slug", + sortBy: "lastPublished", + sortOrder: "asc", +}); ```
@@ -5879,12 +5940,13 @@ Required scope | `CMS:write` ```typescript await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }); @@ -6044,6 +6106,7 @@ Required scope | `CMS:write` ```typescript await client.collections.items.updateItemsLive("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, items: [ { id: "66f6ed9576ddacf3149d5ea6", @@ -6157,6 +6220,7 @@ Required scope | `CMS:write` ```typescript await client.collections.items.createItems("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], isArchived: false, isDraft: false, @@ -6237,7 +6301,9 @@ Required scope | `CMS:read`
```typescript -await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); +await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + cmsLocaleId: "cmsLocaleId", +}); ```
@@ -6318,7 +6384,9 @@ Required scope | `CMS:write`
```typescript -await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); +await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + cmsLocaleId: "cmsLocaleId", +}); ```
@@ -6400,12 +6468,13 @@ Required scope | `CMS:write` ```typescript await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }); @@ -6494,7 +6563,9 @@ Required scope | `CMS:read`
```typescript -await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); +await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + cmsLocaleId: "cmsLocaleId", +}); ```
@@ -6577,7 +6648,9 @@ Required scope | `CMS:write`
```typescript -await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); +await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + cmsLocaleId: "cmsLocaleId", +}); ```
@@ -6659,12 +6732,13 @@ Required scope | `CMS:write` ```typescript await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }); @@ -7774,8 +7848,10 @@ Required scope: `site_config:write` ```typescript await client.sites.wellKnown.put("580e63e98c9a982ac9b8b741", { - fileName: "fileName", - fileData: "fileData", + fileName: "apple-app-site-association.txt", + fileData: + '{\n "applinks": {\n "apps": [],\n "details": [\n {\n "appID": "ABCDE12345.com.example.app",\n "paths": [ "/*", "/some/path/*" ]\n }\n ]\n }\n}\n', + contentType: "application/json", }); ``` @@ -7928,7 +8004,10 @@ Required scope: `site_activity:read`
```typescript -await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741"); +await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741", { + limit: 1.1, + offset: 1.1, +}); ```
@@ -8009,6 +8088,10 @@ Required scope | `comments:read` ```typescript await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + offset: 1.1, + limit: 1.1, + sortBy: "createdOn", + sortOrder: "asc", }); ``` @@ -8088,6 +8171,10 @@ Required scope | `comments:read` ```typescript await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + offset: 1.1, + limit: 1.1, + sortBy: "createdOn", + sortOrder: "asc", }); ``` @@ -8175,6 +8262,10 @@ Required scope | `comments:read` ```typescript await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + offset: 1.1, + limit: 1.1, + sortBy: "createdOn", + sortOrder: "asc", }); ``` @@ -8495,7 +8586,10 @@ Required scope | `custom_code:read`
```typescript -await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741"); +await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, +}); ```
@@ -8573,8 +8667,12 @@ Required scope | `workspace_activity:read` ```typescript await client.workspaces.auditLogs.getWorkspaceAuditLogs("hitchhikers-workspace", { - from: new Date("2024-04-22T16:00:31.000Z"), - to: new Date("2024-04-22T16:00:31.000Z"), + limit: 1.1, + offset: 1.1, + sortOrder: "asc", + eventType: "user_access", + from: new Date("2025-06-22T16:00:31.000Z"), + to: new Date("2025-07-22T16:00:31.000Z"), }); ``` diff --git a/src/Client.ts b/src/Client.ts index 45c760b2..ca5e992f 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -27,7 +27,7 @@ export declare namespace WebflowClient { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -63,7 +63,7 @@ export class WebflowClient { protected _ecommerce: Ecommerce | undefined; protected _workspaces: Workspaces | undefined; - constructor(_options: WebflowClient.Options) { + constructor(_options: WebflowClient.Options = {}) { this._options = { ..._options, headers: mergeHeaders( diff --git a/src/api/resources/accessGroups/client/Client.ts b/src/api/resources/accessGroups/client/Client.ts index ba62501e..40f0c056 100644 --- a/src/api/resources/accessGroups/client/Client.ts +++ b/src/api/resources/accessGroups/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace AccessGroups { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace AccessGroups { export class AccessGroups { protected readonly _options: AccessGroups.Options; - constructor(_options: AccessGroups.Options) { + constructor(_options: AccessGroups.Options = {}) { this._options = _options; } @@ -56,7 +56,11 @@ export class AccessGroups { * @throws {@link Webflow.InternalServerError} * * @example - * await client.accessGroups.list("580e63e98c9a982ac9b8b741") + * await client.accessGroups.list("580e63e98c9a982ac9b8b741", { + * offset: 1.1, + * limit: 1.1, + * sort: "CreatedOn" + * }) */ public list( siteId: string, @@ -198,7 +202,12 @@ export class AccessGroups { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts b/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts index 0fada7ea..49659032 100644 --- a/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts +++ b/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts @@ -6,7 +6,11 @@ import * as Webflow from "../../../../index"; /** * @example - * {} + * { + * offset: 1.1, + * limit: 1.1, + * sort: "CreatedOn" + * } */ export interface AccessGroupsListRequest { /** diff --git a/src/api/resources/assets/client/Client.ts b/src/api/resources/assets/client/Client.ts index 9d35f82b..142b83eb 100644 --- a/src/api/resources/assets/client/Client.ts +++ b/src/api/resources/assets/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Assets { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -38,7 +38,7 @@ export declare namespace Assets { export class Assets { protected readonly _options: Assets.Options; - constructor(_options: Assets.Options) { + constructor(_options: Assets.Options = {}) { this._options = _options; } @@ -48,6 +48,7 @@ export class Assets { * Required scope | `assets:read` * * @param {string} siteId - Unique identifier for a Site + * @param {Webflow.AssetsListRequest} request * @param {Assets.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} @@ -57,16 +58,34 @@ export class Assets { * @throws {@link Webflow.InternalServerError} * * @example - * await client.assets.list("580e63e98c9a982ac9b8b741") + * await client.assets.list("580e63e98c9a982ac9b8b741", { + * offset: 1.1, + * limit: 1.1 + * }) */ - public list(siteId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(siteId, requestOptions)); + public list( + siteId: string, + request: Webflow.AssetsListRequest = {}, + requestOptions?: Assets.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions)); } private async __list( siteId: string, + request: Webflow.AssetsListRequest = {}, requestOptions?: Assets.RequestOptions, ): Promise> { + const { offset, limit } = request; + const _queryParams: Record = {}; + if (offset != null) { + _queryParams["offset"] = offset.toString(); + } + + if (limit != null) { + _queryParams["limit"] = limit.toString(); + } + const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? @@ -80,6 +99,7 @@ export class Assets { mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), requestOptions?.headers, ), + queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1130,7 +1150,12 @@ export class Assets { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/assets/client/requests/AssetsListRequest.ts b/src/api/resources/assets/client/requests/AssetsListRequest.ts new file mode 100644 index 00000000..982b68c6 --- /dev/null +++ b/src/api/resources/assets/client/requests/AssetsListRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * offset: 1.1, + * limit: 1.1 + * } + */ +export interface AssetsListRequest { + /** + * Offset used for pagination if the results have more than limit records + */ + offset?: number; + /** + * Maximum number of records to be returned (max limit: 100) + */ + limit?: number; +} diff --git a/src/api/resources/assets/client/requests/index.ts b/src/api/resources/assets/client/requests/index.ts index 99239498..93250a4c 100644 --- a/src/api/resources/assets/client/requests/index.ts +++ b/src/api/resources/assets/client/requests/index.ts @@ -1,3 +1,4 @@ +export { type AssetsListRequest } from "./AssetsListRequest"; export { type AssetsCreateRequest } from "./AssetsCreateRequest"; export { type AssetsUpdateRequest } from "./AssetsUpdateRequest"; export { type AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest"; diff --git a/src/api/resources/collections/client/Client.ts b/src/api/resources/collections/client/Client.ts index 51e72030..e04ee1fc 100644 --- a/src/api/resources/collections/client/Client.ts +++ b/src/api/resources/collections/client/Client.ts @@ -17,7 +17,7 @@ export declare namespace Collections { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -42,7 +42,7 @@ export class Collections { protected _fields: Fields | undefined; protected _items: Items | undefined; - constructor(_options: Collections.Options) { + constructor(_options: Collections.Options = {}) { this._options = _options; } @@ -612,7 +612,12 @@ export class Collections { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/collections/resources/fields/client/Client.ts b/src/api/resources/collections/resources/fields/client/Client.ts index 137218b8..0324c0a1 100644 --- a/src/api/resources/collections/resources/fields/client/Client.ts +++ b/src/api/resources/collections/resources/fields/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Fields { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Fields { export class Fields { protected readonly _options: Fields.Options; - constructor(_options: Fields.Options) { + constructor(_options: Fields.Options = {}) { this._options = _options; } @@ -508,7 +508,12 @@ export class Fields { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/collections/resources/items/client/Client.ts b/src/api/resources/collections/resources/items/client/Client.ts index c0b08ee2..44c1c278 100644 --- a/src/api/resources/collections/resources/items/client/Client.ts +++ b/src/api/resources/collections/resources/items/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Items { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Items { export class Items { protected readonly _options: Items.Options; - constructor(_options: Items.Options) { + constructor(_options: Items.Options = {}) { this._options = _options; } @@ -55,7 +55,15 @@ export class Items { * @throws {@link Webflow.InternalServerError} * * @example - * await client.collections.items.listItems("580e63fc8c9a982ac9b8b745") + * await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", { + * cmsLocaleId: "cmsLocaleId", + * offset: 1.1, + * limit: 1.1, + * name: "name", + * slug: "slug", + * sortBy: "lastPublished", + * sortOrder: "asc" + * }) */ public listItems( collectionId: string, @@ -244,18 +252,20 @@ export class Items { * * @example * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * }) * * @example * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * body: { * items: [{ * isArchived: false, @@ -573,6 +583,7 @@ export class Items { * * @example * await client.collections.items.updateItems("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * items: [{ * id: "66f6ed9576ddacf3149d5ea6", * cmsLocaleId: "66f6e966c9e1dc700a857ca5", @@ -606,6 +617,7 @@ export class Items { * * @example * await client.collections.items.updateItems("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * items: [{ * id: "580e64008c9a982ac9b8b754", * isArchived: false, @@ -779,7 +791,15 @@ export class Items { * @throws {@link Webflow.InternalServerError} * * @example - * await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745") + * await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", { + * cmsLocaleId: "cmsLocaleId", + * offset: 1.1, + * limit: 1.1, + * name: "name", + * slug: "slug", + * sortBy: "lastPublished", + * sortOrder: "asc" + * }) */ public listItemsLive( collectionId: string, @@ -975,18 +995,20 @@ export class Items { * * @example * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * }) * * @example * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * body: { * items: [{ * isArchived: false, @@ -1300,6 +1322,7 @@ export class Items { * * @example * await client.collections.items.updateItemsLive("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * items: [{ * id: "66f6ed9576ddacf3149d5ea6", * cmsLocaleId: "66f6e966c9e1dc700a857ca5", @@ -1333,6 +1356,7 @@ export class Items { * * @example * await client.collections.items.updateItemsLive("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * items: [{ * id: "580e64008c9a982ac9b8b754", * isArchived: false, @@ -1509,6 +1533,7 @@ export class Items { * * @example * await client.collections.items.createItems("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], * isArchived: false, * isDraft: false, @@ -1520,6 +1545,7 @@ export class Items { * * @example * await client.collections.items.createItems("580e63fc8c9a982ac9b8b745", { + * skipInvalidFiles: true, * cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4"], * isArchived: false, * isDraft: false, @@ -1682,7 +1708,9 @@ export class Items { * @throws {@link Webflow.InternalServerError} * * @example - * await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754") + * await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * cmsLocaleId: "cmsLocaleId" + * }) */ public getItem( collectionId: string, @@ -1709,7 +1737,7 @@ export class Items { url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .production, + .base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`, ), method: "GET", @@ -1829,7 +1857,9 @@ export class Items { * @throws {@link Webflow.InternalServerError} * * @example - * await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754") + * await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * cmsLocaleId: "cmsLocaleId" + * }) */ public deleteItem( collectionId: string, @@ -1968,12 +1998,13 @@ export class Items { * * @example * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * }) @@ -2135,7 +2166,9 @@ export class Items { * @throws {@link Webflow.InternalServerError} * * @example - * await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754") + * await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * cmsLocaleId: "cmsLocaleId" + * }) */ public getItemLive( collectionId: string, @@ -2284,7 +2317,9 @@ export class Items { * @throws {@link Webflow.InternalServerError} * * @example - * await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754") + * await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * cmsLocaleId: "cmsLocaleId" + * }) */ public deleteItemLive( collectionId: string, @@ -2426,12 +2461,13 @@ export class Items { * * @example * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * }) @@ -2746,7 +2782,12 @@ export class Items { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.ts b/src/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.ts index 86dac151..c5fb0327 100644 --- a/src/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.ts +++ b/src/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.ts @@ -7,6 +7,7 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], * isArchived: false, * isDraft: false, @@ -18,6 +19,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4"], * isArchived: false, * isDraft: false, @@ -32,6 +34,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], * isArchived: false, * isDraft: false, @@ -43,6 +46,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], * isArchived: false, * isDraft: false, diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.ts index 16ace3d4..7f7178e4 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.ts @@ -7,18 +7,20 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * } * * @example * { + * skipInvalidFiles: true, * body: { * items: [{ * isArchived: false, diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.ts index 3036536b..77c0c974 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.ts @@ -7,18 +7,20 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * } * * @example * { + * skipInvalidFiles: true, * body: { * items: [{ * isArchived: false, diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts index 3c487283..dfe4d6f6 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts @@ -4,7 +4,9 @@ /** * @example - * {} + * { + * cmsLocaleId: "cmsLocaleId" + * } */ export interface ItemsDeleteItemLiveRequest { /** diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts index 3b38176c..49073411 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts @@ -4,7 +4,9 @@ /** * @example - * {} + * { + * cmsLocaleId: "cmsLocaleId" + * } */ export interface ItemsDeleteItemRequest { /** diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts index b4db0989..4b21ecae 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts @@ -4,7 +4,9 @@ /** * @example - * {} + * { + * cmsLocaleId: "cmsLocaleId" + * } */ export interface ItemsGetItemLiveRequest { /** diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts index d27617fd..13e082bc 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts @@ -4,7 +4,9 @@ /** * @example - * {} + * { + * cmsLocaleId: "cmsLocaleId" + * } */ export interface ItemsGetItemRequest { /** diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts index 77313d73..7f50d8be 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts @@ -6,7 +6,15 @@ import * as Webflow from "../../../../../../index"; /** * @example - * {} + * { + * cmsLocaleId: "cmsLocaleId", + * offset: 1.1, + * limit: 1.1, + * name: "name", + * slug: "slug", + * sortBy: "lastPublished", + * sortOrder: "asc" + * } */ export interface ItemsListItemsLiveRequest { /** diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts index bd98db5d..2edac40f 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts @@ -6,7 +6,15 @@ import * as Webflow from "../../../../../../index"; /** * @example - * {} + * { + * cmsLocaleId: "cmsLocaleId", + * offset: 1.1, + * limit: 1.1, + * name: "name", + * slug: "slug", + * sortBy: "lastPublished", + * sortOrder: "asc" + * } */ export interface ItemsListItemsRequest { /** diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.ts index af98818e..6ba836d8 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.ts @@ -7,12 +7,13 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * } diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.ts index 27341aca..3f1db05a 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.ts @@ -7,12 +7,13 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * body: { * isArchived: false, * isDraft: false, * fieldData: { - * name: "Pan Galactic Gargle Blaster Recipe", - * slug: "pan-galactic-gargle-blaster" + * name: "The Hitchhiker's Guide to the Galaxy", + * slug: "hitchhikers-guide-to-the-galaxy" * } * } * } diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.ts index b80d7a17..29caff27 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.ts @@ -7,6 +7,7 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * items: [{ * id: "66f6ed9576ddacf3149d5ea6", * cmsLocaleId: "66f6e966c9e1dc700a857ca5", @@ -40,6 +41,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * items: [{ * id: "580e64008c9a982ac9b8b754", * isArchived: false, @@ -61,6 +63,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * items: [{ * id: "66f6ed9576ddacf3149d5ea6", * cmsLocaleId: "66f6e966c9e1dc700a857ca5", @@ -94,6 +97,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * items: [{ * id: "66f6ed9576ddacf3149d5ea6", * cmsLocaleId: "66f6e966c9e1dc700a857ca5", diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.ts index 87f6b81d..303c316e 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.ts @@ -7,6 +7,7 @@ import * as Webflow from "../../../../../../index"; /** * @example * { + * skipInvalidFiles: true, * items: [{ * id: "66f6ed9576ddacf3149d5ea6", * cmsLocaleId: "66f6e966c9e1dc700a857ca5", @@ -40,6 +41,7 @@ import * as Webflow from "../../../../../../index"; * * @example * { + * skipInvalidFiles: true, * items: [{ * id: "580e64008c9a982ac9b8b754", * isArchived: false, diff --git a/src/api/resources/components/client/Client.ts b/src/api/resources/components/client/Client.ts index 56cc7260..202f3b59 100644 --- a/src/api/resources/components/client/Client.ts +++ b/src/api/resources/components/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Components { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Components { export class Components { protected readonly _options: Components.Options; - constructor(_options: Components.Options) { + constructor(_options: Components.Options = {}) { this._options = _options; } @@ -56,7 +56,9 @@ export class Components { * * @example * await client.components.list("580e63e98c9a982ac9b8b741", { - * branchId: "68026fa68ef6dc744c75b833" + * branchId: "68026fa68ef6dc744c75b833", + * limit: 1.1, + * offset: 1.1 * }) */ public list( @@ -213,7 +215,9 @@ export class Components { * @example * await client.components.getContent("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", { * localeId: "65427cf400e02b306eaa04a0", - * branchId: "68026fa68ef6dc744c75b833" + * branchId: "68026fa68ef6dc744c75b833", + * limit: 1.1, + * offset: 1.1 * }) */ public getContent( @@ -360,8 +364,9 @@ export class Components { * This endpoint updates content within a component defintion for **secondary locales**. It supports updating up to 1000 nodes in a single request. * * Before making updates: - * 1. Use the [get component content](/data/reference/pages-and-components/components/get-content) endpoint to identify available content nodes and their types - * 2. If your component definition has a component instance nested within it, retrieve the nested component instance's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint + * 1. Use the [get component content](/data/reference/pages-and-components/components/get-content) endpoint to identify available content nodes and their types. + * 2. If your component definition has a component instance nested within it, retrieve the nested component instance's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint. + * 3. DOM elements may include a `data-w-id` attribute. This attribute is used by Webflow to maintain custom attributes and links across locales. Always include the original `data-w-id` value in your update requests to ensure consistent behavior across all locales. * * * This endpoint is specifically for localizing component definitions. Ensure that the specified `localeId` is a valid **secondary locale** for the site otherwise the request will fail. @@ -581,7 +586,9 @@ export class Components { * @example * await client.components.getProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", { * localeId: "65427cf400e02b306eaa04a0", - * branchId: "68026fa68ef6dc744c75b833" + * branchId: "68026fa68ef6dc744c75b833", + * limit: 1.1, + * offset: 1.1 * }) */ public getProperties( @@ -727,7 +734,9 @@ export class Components { /** * Update the default property values of a component definition in a specificed locale. * - * Before making updates, use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify properties that can be updated in a secondary locale. + * Before making updates: + * 1. Use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify properties that can be updated in a secondary locale. + * 2. Rich Text properties may include a `data-w-id` attribute. This attribute is used by Webflow to maintain links across locales. Always include the original `data-w-id` value in your update requests to ensure consistent behavior across all locales. * * The request requires a secondary locale ID. If a `localeId` is missing, the request will not be processed and will result in an error. * @@ -898,7 +907,12 @@ export class Components { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/components/client/requests/ComponentDomWrite.ts b/src/api/resources/components/client/requests/ComponentDomWrite.ts index a4b61f74..421ed0b0 100644 --- a/src/api/resources/components/client/requests/ComponentDomWrite.ts +++ b/src/api/resources/components/client/requests/ComponentDomWrite.ts @@ -45,7 +45,9 @@ import * as Webflow from "../../../../index"; */ export interface ComponentDomWrite { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts b/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts index f7b0cebd..7c79d5a7 100644 --- a/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts +++ b/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts @@ -20,7 +20,9 @@ import * as Webflow from "../../../../index"; */ export interface ComponentPropertiesWrite { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts b/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts index 95179db5..810ffa3d 100644 --- a/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts +++ b/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts @@ -6,12 +6,16 @@ * @example * { * localeId: "65427cf400e02b306eaa04a0", - * branchId: "68026fa68ef6dc744c75b833" + * branchId: "68026fa68ef6dc744c75b833", + * limit: 1.1, + * offset: 1.1 * } */ export interface ComponentsGetContentRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts b/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts index 3416abb1..a2271bec 100644 --- a/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts +++ b/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts @@ -6,12 +6,16 @@ * @example * { * localeId: "65427cf400e02b306eaa04a0", - * branchId: "68026fa68ef6dc744c75b833" + * branchId: "68026fa68ef6dc744c75b833", + * limit: 1.1, + * offset: 1.1 * } */ export interface ComponentsGetPropertiesRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/components/client/requests/ComponentsListRequest.ts b/src/api/resources/components/client/requests/ComponentsListRequest.ts index 15895412..04d1beb5 100644 --- a/src/api/resources/components/client/requests/ComponentsListRequest.ts +++ b/src/api/resources/components/client/requests/ComponentsListRequest.ts @@ -5,7 +5,9 @@ /** * @example * { - * branchId: "68026fa68ef6dc744c75b833" + * branchId: "68026fa68ef6dc744c75b833", + * limit: 1.1, + * offset: 1.1 * } */ export interface ComponentsListRequest { diff --git a/src/api/resources/components/types/ComponentDomWriteNodesItem.ts b/src/api/resources/components/types/ComponentDomWriteNodesItem.ts index 0b3da451..4437947d 100644 --- a/src/api/resources/components/types/ComponentDomWriteNodesItem.ts +++ b/src/api/resources/components/types/ComponentDomWriteNodesItem.ts @@ -5,9 +5,9 @@ import * as Webflow from "../../../index"; export type ComponentDomWriteNodesItem = - | Webflow.TextNode - | Webflow.ComponentInstance + | Webflow.TextNodeWrite + | Webflow.ComponentInstanceNodePropertyOverridesWrite | Webflow.Select - | Webflow.TextInput - | Webflow.SubmitButton - | Webflow.SearchButton; + | Webflow.TextInputNodeWrite + | Webflow.SubmitButtonNodeWrite + | Webflow.SearchButtonNodeWrite; diff --git a/src/api/resources/ecommerce/client/Client.ts b/src/api/resources/ecommerce/client/Client.ts index 0bcf424d..f2e260ed 100644 --- a/src/api/resources/ecommerce/client/Client.ts +++ b/src/api/resources/ecommerce/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Ecommerce { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Ecommerce { export class Ecommerce { protected readonly _options: Ecommerce.Options; - constructor(_options: Ecommerce.Options) { + constructor(_options: Ecommerce.Options = {}) { this._options = _options; } @@ -179,7 +179,12 @@ export class Ecommerce { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/forms/client/Client.ts b/src/api/resources/forms/client/Client.ts index 8884d200..cfd483ac 100644 --- a/src/api/resources/forms/client/Client.ts +++ b/src/api/resources/forms/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Forms { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -38,7 +38,7 @@ export declare namespace Forms { export class Forms { protected readonly _options: Forms.Options; - constructor(_options: Forms.Options) { + constructor(_options: Forms.Options = {}) { this._options = _options; } @@ -60,7 +60,10 @@ export class Forms { * @throws {@link Webflow.InternalServerError} * * @example - * await client.forms.list("580e63e98c9a982ac9b8b741") + * await client.forms.list("580e63e98c9a982ac9b8b741", { + * limit: 1.1, + * offset: 1.1 + * }) */ public list( siteId: string, @@ -349,7 +352,10 @@ export class Forms { * @throws {@link Webflow.InternalServerError} * * @example - * await client.forms.listSubmissions("580e63e98c9a982ac9b8b741") + * await client.forms.listSubmissions("580e63e98c9a982ac9b8b741", { + * offset: 1.1, + * limit: 1.1 + * }) */ public listSubmissions( formId: string, @@ -920,7 +926,9 @@ export class Forms { * * @example * await client.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", { - * elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0" + * elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0", + * offset: 1.1, + * limit: 1.1 * }) */ public listSubmissionsBySite( @@ -1059,7 +1067,12 @@ export class Forms { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/forms/client/requests/FormsListRequest.ts b/src/api/resources/forms/client/requests/FormsListRequest.ts index 5341bfb2..4e085579 100644 --- a/src/api/resources/forms/client/requests/FormsListRequest.ts +++ b/src/api/resources/forms/client/requests/FormsListRequest.ts @@ -4,7 +4,10 @@ /** * @example - * {} + * { + * limit: 1.1, + * offset: 1.1 + * } */ export interface FormsListRequest { /** diff --git a/src/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.ts b/src/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.ts index 1b38bff2..8b7ddaf4 100644 --- a/src/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.ts +++ b/src/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.ts @@ -5,7 +5,9 @@ /** * @example * { - * elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0" + * elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0", + * offset: 1.1, + * limit: 1.1 * } */ export interface FormsListSubmissionsBySiteRequest { diff --git a/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts b/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts index 68766ac2..56f85c8a 100644 --- a/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts +++ b/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts @@ -4,7 +4,10 @@ /** * @example - * {} + * { + * offset: 1.1, + * limit: 1.1 + * } */ export interface FormsListSubmissionsRequest { /** diff --git a/src/api/resources/inventory/client/Client.ts b/src/api/resources/inventory/client/Client.ts index b621b366..7448e5be 100644 --- a/src/api/resources/inventory/client/Client.ts +++ b/src/api/resources/inventory/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Inventory { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -38,7 +38,7 @@ export declare namespace Inventory { export class Inventory { protected readonly _options: Inventory.Options; - constructor(_options: Inventory.Options) { + constructor(_options: Inventory.Options = {}) { this._options = _options; } @@ -344,7 +344,12 @@ export class Inventory { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts index 820f6df0..a2d5a6d7 100644 --- a/src/api/resources/orders/client/Client.ts +++ b/src/api/resources/orders/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Orders { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -38,7 +38,7 @@ export declare namespace Orders { export class Orders { protected readonly _options: Orders.Options; - constructor(_options: Orders.Options) { + constructor(_options: Orders.Options = {}) { this._options = _options; } @@ -60,7 +60,11 @@ export class Orders { * @throws {@link Webflow.InternalServerError} * * @example - * await client.orders.list("580e63e98c9a982ac9b8b741") + * await client.orders.list("580e63e98c9a982ac9b8b741", { + * status: "pending", + * offset: 1.1, + * limit: 1.1 + * }) */ public list( siteId: string, @@ -951,7 +955,12 @@ export class Orders { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/orders/client/requests/OrdersListRequest.ts b/src/api/resources/orders/client/requests/OrdersListRequest.ts index 6282942d..ac45d33f 100644 --- a/src/api/resources/orders/client/requests/OrdersListRequest.ts +++ b/src/api/resources/orders/client/requests/OrdersListRequest.ts @@ -6,7 +6,11 @@ import * as Webflow from "../../../../index"; /** * @example - * {} + * { + * status: "pending", + * offset: 1.1, + * limit: 1.1 + * } */ export interface OrdersListRequest { /** diff --git a/src/api/resources/pages/client/Client.ts b/src/api/resources/pages/client/Client.ts index e39ecb53..abc05512 100644 --- a/src/api/resources/pages/client/Client.ts +++ b/src/api/resources/pages/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Pages { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -40,7 +40,7 @@ export class Pages { protected readonly _options: Pages.Options; protected _scripts: Scripts | undefined; - constructor(_options: Pages.Options) { + constructor(_options: Pages.Options = {}) { this._options = _options; } @@ -65,7 +65,9 @@ export class Pages { * * @example * await client.pages.list("580e63e98c9a982ac9b8b741", { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * limit: 1.1, + * offset: 1.1 * }) */ public list( @@ -347,10 +349,6 @@ export class Pages { /** * Update Page-level metadata, including SEO and Open Graph fields. * - * - * Note: When updating Page Metadata in secondary locales, you may only add `slug` to the request if your Site has the [Advanced or Enterprise Localization](https://webflow.com/localization) add-on. - * - * * Required scope | `pages:write` * * @param {string} pageId - Unique identifier for a Page @@ -512,11 +510,9 @@ export class Pages { } /** - * Get content from a static page. This includes text nodes, image nodes, select nodes, text input nodes, submit button nodes, and component instances with [property overrides](https://help.webflow.com/hc/en-us/articles/33961219350547-Component-properties#how-to-modify-property-values-on-component-instances). + * Get text and component instance content from a static page. * - * To retrieve the static content of a component instance, use the [Get Component Content](/data/reference/pages-and-components/components/get-content) endpoint. - * - * If you do not include a `localeId` in your request, the response will return any content that can be localized from the Primary locale. + * Localization * * Required scope | `pages:read` * @@ -533,7 +529,9 @@ export class Pages { * * @example * await client.pages.getContent("63c720f9347c2139b248e552", { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * limit: 1.1, + * offset: 1.1 * }) */ public getContent( @@ -674,8 +672,9 @@ export class Pages { * This endpoint updates content on a static page in **secondary locales**. It supports updating up to 1000 nodes in a single request. * * Before making updates: - * 1. Use the [get page content](/data/reference/pages-and-components/pages/get-content) endpoint to identify available content nodes and their types - * 2. If the page has component instances, retrieve the component's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint + * 1. Use the [get page content](/data/reference/pages-and-components/pages/get-content) endpoint to identify available content nodes and their types. + * 2. If the page has component instances, retrieve the component's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint. + * 3. DOM elements may include a `data-w-id` attribute. This attribute is used by Webflow to maintain custom attributes and links across locales. Always include the original `data-w-id` value in your update requests to ensure consistent behavior across all locales. * * * This endpoint is specifically for localized pages. Ensure that the specified `localeId` is a valid **secondary locale** for the site otherwise the request will fail. @@ -861,7 +860,12 @@ export class Pages { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/pages/client/requests/PageMetadataWrite.ts b/src/api/resources/pages/client/requests/PageMetadataWrite.ts index 4e85b1ff..6b91f91c 100644 --- a/src/api/resources/pages/client/requests/PageMetadataWrite.ts +++ b/src/api/resources/pages/client/requests/PageMetadataWrite.ts @@ -24,12 +24,19 @@ import * as Webflow from "../../../../index"; */ export interface PageMetadataWrite { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Title for the page */ title?: string; - /** Slug for the page */ + /** + * Slug for the page. + * + * + * **Note:** Updating slugs in secondary locales is only supported in Advanced and Enterprise localization add-on plans. + */ slug?: string; /** SEO-related fields for the Page */ seo?: Webflow.PageMetadataWriteSeo; diff --git a/src/api/resources/pages/client/requests/PagesGetContentRequest.ts b/src/api/resources/pages/client/requests/PagesGetContentRequest.ts index 498d1f87..e28a93d2 100644 --- a/src/api/resources/pages/client/requests/PagesGetContentRequest.ts +++ b/src/api/resources/pages/client/requests/PagesGetContentRequest.ts @@ -5,12 +5,16 @@ /** * @example * { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * limit: 1.1, + * offset: 1.1 * } */ export interface PagesGetContentRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts b/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts index 6afc0c77..68114fa7 100644 --- a/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts +++ b/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts @@ -10,7 +10,9 @@ */ export interface PagesGetMetadataRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; } diff --git a/src/api/resources/pages/client/requests/PagesListRequest.ts b/src/api/resources/pages/client/requests/PagesListRequest.ts index 5ba1736d..adcce34a 100644 --- a/src/api/resources/pages/client/requests/PagesListRequest.ts +++ b/src/api/resources/pages/client/requests/PagesListRequest.ts @@ -5,12 +5,16 @@ /** * @example * { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * limit: 1.1, + * offset: 1.1 * } */ export interface PagesListRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/pages/resources/scripts/client/Client.ts b/src/api/resources/pages/resources/scripts/client/Client.ts index febd913c..2622188b 100644 --- a/src/api/resources/pages/resources/scripts/client/Client.ts +++ b/src/api/resources/pages/resources/scripts/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Scripts { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Scripts { export class Scripts { protected readonly _options: Scripts.Options; - constructor(_options: Scripts.Options) { + constructor(_options: Scripts.Options = {}) { this._options = _options; } @@ -459,7 +459,12 @@ export class Scripts { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/pages/types/PageDomWriteNodesItem.ts b/src/api/resources/pages/types/PageDomWriteNodesItem.ts index 689d80b3..09895469 100644 --- a/src/api/resources/pages/types/PageDomWriteNodesItem.ts +++ b/src/api/resources/pages/types/PageDomWriteNodesItem.ts @@ -5,9 +5,9 @@ import * as Webflow from "../../../index"; export type PageDomWriteNodesItem = - | Webflow.TextNode - | Webflow.ComponentInstance + | Webflow.TextNodeWrite + | Webflow.ComponentInstanceNodePropertyOverridesWrite | Webflow.Select - | Webflow.TextInput - | Webflow.SubmitButton - | Webflow.SearchButton; + | Webflow.TextInputNodeWrite + | Webflow.SubmitButtonNodeWrite + | Webflow.SearchButtonNodeWrite; diff --git a/src/api/resources/products/client/Client.ts b/src/api/resources/products/client/Client.ts index 289e5d40..8da928e6 100644 --- a/src/api/resources/products/client/Client.ts +++ b/src/api/resources/products/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Products { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Products { export class Products { protected readonly _options: Products.Options; - constructor(_options: Products.Options) { + constructor(_options: Products.Options = {}) { this._options = _options; } @@ -60,7 +60,10 @@ export class Products { * @throws {@link Webflow.InternalServerError} * * @example - * await client.products.list("580e63e98c9a982ac9b8b741") + * await client.products.list("580e63e98c9a982ac9b8b741", { + * offset: 1.1, + * limit: 1.1 + * }) */ public list( siteId: string, @@ -1051,7 +1054,12 @@ export class Products { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/products/client/requests/ProductsListRequest.ts b/src/api/resources/products/client/requests/ProductsListRequest.ts index f29738c4..d89e80fd 100644 --- a/src/api/resources/products/client/requests/ProductsListRequest.ts +++ b/src/api/resources/products/client/requests/ProductsListRequest.ts @@ -4,7 +4,10 @@ /** * @example - * {} + * { + * offset: 1.1, + * limit: 1.1 + * } */ export interface ProductsListRequest { /** diff --git a/src/api/resources/scripts/client/Client.ts b/src/api/resources/scripts/client/Client.ts index c8d9a525..dce2f569 100644 --- a/src/api/resources/scripts/client/Client.ts +++ b/src/api/resources/scripts/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Scripts { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Scripts { export class Scripts { protected readonly _options: Scripts.Options; - constructor(_options: Scripts.Options) { + constructor(_options: Scripts.Options = {}) { this._options = _options; } @@ -482,7 +482,12 @@ export class Scripts { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 49468918..ccbfcdc7 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -22,7 +22,7 @@ export declare namespace Sites { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -52,7 +52,7 @@ export class Sites { protected _comments: Comments | undefined; protected _scripts: Scripts | undefined; - constructor(_options: Sites.Options) { + constructor(_options: Sites.Options = {}) { this._options = _options; } @@ -1017,7 +1017,12 @@ export class Sites { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/activityLogs/client/Client.ts b/src/api/resources/sites/resources/activityLogs/client/Client.ts index be8ad675..3bb413b1 100644 --- a/src/api/resources/sites/resources/activityLogs/client/Client.ts +++ b/src/api/resources/sites/resources/activityLogs/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace ActivityLogs { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace ActivityLogs { export class ActivityLogs { protected readonly _options: ActivityLogs.Options; - constructor(_options: ActivityLogs.Options) { + constructor(_options: ActivityLogs.Options = {}) { this._options = _options; } @@ -56,7 +56,10 @@ export class ActivityLogs { * @throws {@link Webflow.InternalServerError} * * @example - * await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741") + * await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741", { + * limit: 1.1, + * offset: 1.1 + * }) */ public list( siteId: string, @@ -177,7 +180,12 @@ export class ActivityLogs { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.ts b/src/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.ts index 190390d5..e9351691 100644 --- a/src/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.ts +++ b/src/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.ts @@ -4,7 +4,10 @@ /** * @example - * {} + * { + * limit: 1.1, + * offset: 1.1 + * } */ export interface ActivityLogsListRequest { /** diff --git a/src/api/resources/sites/resources/comments/client/Client.ts b/src/api/resources/sites/resources/comments/client/Client.ts index 7c08aa08..eeba63bf 100644 --- a/src/api/resources/sites/resources/comments/client/Client.ts +++ b/src/api/resources/sites/resources/comments/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Comments { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Comments { export class Comments { protected readonly _options: Comments.Options; - constructor(_options: Comments.Options) { + constructor(_options: Comments.Options = {}) { this._options = _options; } @@ -60,7 +60,11 @@ export class Comments { * * @example * await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * offset: 1.1, + * limit: 1.1, + * sortBy: "createdOn", + * sortOrder: "asc" * }) */ public listCommentThreads( @@ -236,7 +240,11 @@ export class Comments { * * @example * await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * offset: 1.1, + * limit: 1.1, + * sortBy: "createdOn", + * sortOrder: "asc" * }) */ public getCommentThread( @@ -418,7 +426,11 @@ export class Comments { * * @example * await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * offset: 1.1, + * limit: 1.1, + * sortBy: "createdOn", + * sortOrder: "asc" * }) */ public listCommentReplies( @@ -578,7 +590,12 @@ export class Comments { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.ts b/src/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.ts index 451ff87b..5d0862c9 100644 --- a/src/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.ts +++ b/src/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.ts @@ -7,12 +7,18 @@ import * as Webflow from "../../../../../../index"; /** * @example * { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * offset: 1.1, + * limit: 1.1, + * sortBy: "createdOn", + * sortOrder: "asc" * } */ export interface CommentsGetCommentThreadRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.ts b/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.ts index 5e2589dd..25c64593 100644 --- a/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.ts +++ b/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.ts @@ -7,12 +7,18 @@ import * as Webflow from "../../../../../../index"; /** * @example * { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * offset: 1.1, + * limit: 1.1, + * sortBy: "createdOn", + * sortOrder: "asc" * } */ export interface CommentsListCommentRepliesRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.ts b/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.ts index 2f9fac0b..3aaa0c23 100644 --- a/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.ts +++ b/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.ts @@ -7,12 +7,18 @@ import * as Webflow from "../../../../../../index"; /** * @example * { - * localeId: "65427cf400e02b306eaa04a0" + * localeId: "65427cf400e02b306eaa04a0", + * offset: 1.1, + * limit: 1.1, + * sortBy: "createdOn", + * sortOrder: "asc" * } */ export interface CommentsListCommentThreadsRequest { /** - * Unique identifier for a specific locale. Applicable, when using localization. + * Unique identifier for a specific Locale. + * + * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** diff --git a/src/api/resources/sites/resources/plans/client/Client.ts b/src/api/resources/sites/resources/plans/client/Client.ts index 8a4aed88..740813e2 100644 --- a/src/api/resources/sites/resources/plans/client/Client.ts +++ b/src/api/resources/sites/resources/plans/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Plans { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Plans { export class Plans { protected readonly _options: Plans.Options; - constructor(_options: Plans.Options) { + constructor(_options: Plans.Options = {}) { this._options = _options; } @@ -173,7 +173,12 @@ export class Plans { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/redirects/client/Client.ts b/src/api/resources/sites/resources/redirects/client/Client.ts index ffa99f24..8d393634 100644 --- a/src/api/resources/sites/resources/redirects/client/Client.ts +++ b/src/api/resources/sites/resources/redirects/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Redirects { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Redirects { export class Redirects { protected readonly _options: Redirects.Options; - constructor(_options: Redirects.Options) { + constructor(_options: Redirects.Options = {}) { this._options = _options; } @@ -619,7 +619,12 @@ export class Redirects { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/robotsTxt/client/Client.ts b/src/api/resources/sites/resources/robotsTxt/client/Client.ts index 6f527daa..719e5607 100644 --- a/src/api/resources/sites/resources/robotsTxt/client/Client.ts +++ b/src/api/resources/sites/resources/robotsTxt/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace RobotsTxt { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace RobotsTxt { export class RobotsTxt { protected readonly _options: RobotsTxt.Options; - constructor(_options: RobotsTxt.Options) { + constructor(_options: RobotsTxt.Options = {}) { this._options = _options; } @@ -628,7 +628,12 @@ export class RobotsTxt { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/scripts/client/Client.ts b/src/api/resources/sites/resources/scripts/client/Client.ts index 95660e93..dcc9031a 100644 --- a/src/api/resources/sites/resources/scripts/client/Client.ts +++ b/src/api/resources/sites/resources/scripts/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Scripts { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Scripts { export class Scripts { protected readonly _options: Scripts.Options; - constructor(_options: Scripts.Options) { + constructor(_options: Scripts.Options = {}) { this._options = _options; } @@ -482,7 +482,10 @@ export class Scripts { * @throws {@link Webflow.InternalServerError} * * @example - * await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741") + * await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", { + * offset: 1.1, + * limit: 1.1 + * }) */ public listCustomCodeBlocks( siteId: string, @@ -614,7 +617,12 @@ export class Scripts { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.ts b/src/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.ts index 696f9805..5063abf4 100644 --- a/src/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.ts +++ b/src/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.ts @@ -4,7 +4,10 @@ /** * @example - * {} + * { + * offset: 1.1, + * limit: 1.1 + * } */ export interface ScriptsListCustomCodeBlocksRequest { /** diff --git a/src/api/resources/sites/resources/wellKnown/client/Client.ts b/src/api/resources/sites/resources/wellKnown/client/Client.ts index a52d8361..8346e2dd 100644 --- a/src/api/resources/sites/resources/wellKnown/client/Client.ts +++ b/src/api/resources/sites/resources/wellKnown/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace WellKnown { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace WellKnown { export class WellKnown { protected readonly _options: WellKnown.Options; - constructor(_options: WellKnown.Options) { + constructor(_options: WellKnown.Options = {}) { this._options = _options; } @@ -67,8 +67,9 @@ export class WellKnown { * * @example * await client.sites.wellKnown.put("580e63e98c9a982ac9b8b741", { - * fileName: "fileName", - * fileData: "fileData" + * fileName: "apple-app-site-association.txt", + * fileData: "{\n \"applinks\": {\n \"apps\": [],\n \"details\": [\n {\n \"appID\": \"ABCDE12345.com.example.app\",\n \"paths\": [ \"/*\", \"/some/path/*\" ]\n }\n ]\n }\n}\n", + * contentType: "application/json" * }) */ public put( @@ -323,7 +324,12 @@ export class WellKnown { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.ts b/src/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.ts index 14b408f6..62a7c2cc 100644 --- a/src/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.ts +++ b/src/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.ts @@ -7,8 +7,9 @@ import * as Webflow from "../../../../../../index"; /** * @example * { - * fileName: "fileName", - * fileData: "fileData" + * fileName: "apple-app-site-association.txt", + * fileData: "{\n \"applinks\": {\n \"apps\": [],\n \"details\": [\n {\n \"appID\": \"ABCDE12345.com.example.app\",\n \"paths\": [ \"/*\", \"/some/path/*\" ]\n }\n ]\n }\n}\n", + * contentType: "application/json" * } */ export interface WellKnownFile { diff --git a/src/api/resources/token/client/Client.ts b/src/api/resources/token/client/Client.ts index a06c9113..8daffbd1 100644 --- a/src/api/resources/token/client/Client.ts +++ b/src/api/resources/token/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Token { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Token { export class Token { protected readonly _options: Token.Options; - constructor(_options: Token.Options) { + constructor(_options: Token.Options = {}) { this._options = _options; } @@ -218,7 +218,12 @@ export class Token { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 4b9bc67b..881c258e 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Users { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace Users { export class Users { protected readonly _options: Users.Options; - constructor(_options: Users.Options) { + constructor(_options: Users.Options = {}) { this._options = _options; } @@ -56,7 +56,11 @@ export class Users { * @throws {@link Webflow.InternalServerError} * * @example - * await client.users.list("580e63e98c9a982ac9b8b741") + * await client.users.list("580e63e98c9a982ac9b8b741", { + * offset: 1.1, + * limit: 1.1, + * sort: "CreatedOn" + * }) */ public list( siteId: string, @@ -787,7 +791,12 @@ export class Users { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/users/client/requests/UsersListRequest.ts index 449c9389..e583aadb 100644 --- a/src/api/resources/users/client/requests/UsersListRequest.ts +++ b/src/api/resources/users/client/requests/UsersListRequest.ts @@ -6,7 +6,11 @@ import * as Webflow from "../../../../index"; /** * @example - * {} + * { + * offset: 1.1, + * limit: 1.1, + * sort: "CreatedOn" + * } */ export interface UsersListRequest { /** diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index 590a3993..3fef40e1 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Webhooks { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -38,7 +38,7 @@ export declare namespace Webhooks { export class Webhooks { protected readonly _options: Webhooks.Options; - constructor(_options: Webhooks.Options) { + constructor(_options: Webhooks.Options = {}) { this._options = _options; } @@ -576,7 +576,12 @@ export class Webhooks { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/workspaces/client/Client.ts b/src/api/resources/workspaces/client/Client.ts index c584ada4..579b9e20 100644 --- a/src/api/resources/workspaces/client/Client.ts +++ b/src/api/resources/workspaces/client/Client.ts @@ -11,7 +11,7 @@ export declare namespace Workspaces { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -21,7 +21,7 @@ export class Workspaces { protected readonly _options: Workspaces.Options; protected _auditLogs: AuditLogs | undefined; - constructor(_options: Workspaces.Options) { + constructor(_options: Workspaces.Options = {}) { this._options = _options; } diff --git a/src/api/resources/workspaces/resources/auditLogs/client/Client.ts b/src/api/resources/workspaces/resources/auditLogs/client/Client.ts index 3ddce97f..2891a903 100644 --- a/src/api/resources/workspaces/resources/auditLogs/client/Client.ts +++ b/src/api/resources/workspaces/resources/auditLogs/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace AuditLogs { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; - accessToken: core.Supplier; + accessToken?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } @@ -35,7 +35,7 @@ export declare namespace AuditLogs { export class AuditLogs { protected readonly _options: AuditLogs.Options; - constructor(_options: AuditLogs.Options) { + constructor(_options: AuditLogs.Options = {}) { this._options = _options; } @@ -58,8 +58,12 @@ export class AuditLogs { * * @example * await client.workspaces.auditLogs.getWorkspaceAuditLogs("hitchhikers-workspace", { - * from: new Date("2024-04-22T16:00:31.000Z"), - * to: new Date("2024-04-22T16:00:31.000Z") + * limit: 1.1, + * offset: 1.1, + * sortOrder: "asc", + * eventType: "user_access", + * from: new Date("2025-06-22T16:00:31.000Z"), + * to: new Date("2025-07-22T16:00:31.000Z") * }) */ public getWorkspaceAuditLogs( @@ -220,7 +224,12 @@ export class AuditLogs { } } - protected async _getAuthorizationHeader(): Promise { - return `Bearer ${await core.Supplier.get(this._options.accessToken)}`; + protected async _getAuthorizationHeader(): Promise { + const bearer = await core.Supplier.get(this._options.accessToken); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; } } diff --git a/src/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.ts b/src/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.ts index 4a360ad2..9d125874 100644 --- a/src/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.ts +++ b/src/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.ts @@ -7,8 +7,12 @@ import * as Webflow from "../../../../../../index"; /** * @example * { - * from: new Date("2024-04-22T16:00:31.000Z"), - * to: new Date("2024-04-22T16:00:31.000Z") + * limit: 1.1, + * offset: 1.1, + * sortOrder: "asc", + * eventType: "user_access", + * from: new Date("2025-06-22T16:00:31.000Z"), + * to: new Date("2025-07-22T16:00:31.000Z") * } */ export interface AuditLogsGetWorkspaceAuditLogsRequest { diff --git a/src/api/types/CollectionItemChanged.ts b/src/api/types/CollectionItemChanged.ts index 46083e63..1b301c10 100644 --- a/src/api/types/CollectionItemChanged.ts +++ b/src/api/types/CollectionItemChanged.ts @@ -10,5 +10,5 @@ import * as Webflow from "../index"; export interface CollectionItemChanged { /** The type of event that triggered the request */ triggerType: "collection_item_changed"; - payload: Webflow.CollectionItemChangedPayload; + payload: Webflow.SingleLocaleCreatedPayload; } diff --git a/src/api/types/CollectionItemChangedPayload.ts b/src/api/types/CollectionItemChangedPayload.ts deleted file mode 100644 index 1d162590..00000000 --- a/src/api/types/CollectionItemChangedPayload.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export type CollectionItemChangedPayload = Webflow.SingleLocaleChangedPayload | Webflow.MultiLocaleChangedPayload; diff --git a/src/api/types/CollectionItemCreated.ts b/src/api/types/CollectionItemCreated.ts index ea139d1d..63474fa4 100644 --- a/src/api/types/CollectionItemCreated.ts +++ b/src/api/types/CollectionItemCreated.ts @@ -10,5 +10,5 @@ import * as Webflow from "../index"; export interface CollectionItemCreated { /** The type of event that triggered the request */ triggerType: "collection_item_created"; - payload: Webflow.CollectionItemCreatedPayload; + payload: Webflow.SingleLocaleCreatedPayload; } diff --git a/src/api/types/CollectionItemCreatedPayload.ts b/src/api/types/CollectionItemCreatedPayload.ts deleted file mode 100644 index 629ad5d3..00000000 --- a/src/api/types/CollectionItemCreatedPayload.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export type CollectionItemCreatedPayload = Webflow.SingleLocaleCreatedPayload | Webflow.MultiLocaleCreatedPayload; diff --git a/src/api/types/CollectionItemPublished.ts b/src/api/types/CollectionItemPublished.ts new file mode 100644 index 00000000..ac069407 --- /dev/null +++ b/src/api/types/CollectionItemPublished.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from "../index"; + +export interface CollectionItemPublished { + /** The type of event that triggered the request */ + triggerType?: string; + payload?: Webflow.Payload; +} diff --git a/src/api/types/ComponentInstance.ts b/src/api/types/ComponentInstanceNodePropertyOverridesWrite.ts similarity index 87% rename from src/api/types/ComponentInstance.ts rename to src/api/types/ComponentInstanceNodePropertyOverridesWrite.ts index 0454ca1d..2fe7cd3b 100644 --- a/src/api/types/ComponentInstance.ts +++ b/src/api/types/ComponentInstanceNodePropertyOverridesWrite.ts @@ -7,7 +7,7 @@ import * as Webflow from "../index"; /** * Update text property overrides of a component instance */ -export interface ComponentInstance { +export interface ComponentInstanceNodePropertyOverridesWrite { /** Node UUID */ nodeId: string; /** A list of component instance properties to override within the specified secondary locale. */ diff --git a/src/api/types/ComponentNodeDom.ts b/src/api/types/ComponentNode.ts similarity index 93% rename from src/api/types/ComponentNodeDom.ts rename to src/api/types/ComponentNode.ts index dd238ddd..6b1d4a62 100644 --- a/src/api/types/ComponentNodeDom.ts +++ b/src/api/types/ComponentNode.ts @@ -7,7 +7,7 @@ import * as Webflow from "../index"; /** * Represents a component instance within the DOM. It contains details about the component instance, such as its type and properties. */ -export interface ComponentNodeDom { +export interface ComponentNode { /** The unique identifier of the component instance node */ id: string; /** The unique identifier of the component */ diff --git a/src/api/types/Dom.ts b/src/api/types/Dom.ts index e84462ba..5a387c24 100644 --- a/src/api/types/Dom.ts +++ b/src/api/types/Dom.ts @@ -10,7 +10,7 @@ import * as Webflow from "../index"; export interface Dom { /** Page ID */ pageId?: string; - /** If the page is a branch, this is the ID of the branch */ + /** The unique identifier of a [specific page branch.](https://help.webflow.com/hc/en-us/articles/33961355506195-Page-branching) */ branchId?: string; nodes?: Webflow.Node[]; pagination?: Webflow.Pagination; diff --git a/src/api/types/ImageNodeDom.ts b/src/api/types/ImageNode.ts similarity index 94% rename from src/api/types/ImageNodeDom.ts rename to src/api/types/ImageNode.ts index 02048f84..8134be46 100644 --- a/src/api/types/ImageNodeDom.ts +++ b/src/api/types/ImageNode.ts @@ -7,7 +7,7 @@ import * as Webflow from "../index"; /** * Represents an image within the DOM. It contains details about the image, such as its alternative text (alt) for accessibility and an asset identifier for fetching the actual image resource. Additional attributes can be associated with the image for styling or other purposes. */ -export interface ImageNodeDom { +export interface ImageNode { /** Node UUID */ id: string; /** The image details of the node */ diff --git a/src/api/types/LocalizedItem.ts b/src/api/types/LocalizedItem.ts deleted file mode 100644 index 517b0bea..00000000 --- a/src/api/types/LocalizedItem.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LocalizedItem { - /** Collection ID the item belongs to */ - cid: string; - /** Unique identifier for the item */ - id: string; - /** Locale identifier for this version of the item */ - locale: string; - /** Whether the item is in draft state */ - draft: boolean; - /** Whether the item is archived */ - archived: boolean; - /** Name of the item */ - name: string; - /** URL-friendly version of the name */ - slug: string; - /** Timestamp of last update */ - updatedOn: Date; - /** Identifier of user who last updated the item */ - updatedBy: string; - /** Timestamp of creation */ - createdOn: Date; - /** Identifier of user who created the item */ - createdBy: string; - /** Timestamp of last publish, if published */ - publishedOn?: Date; - /** Identifier of user who last published the item */ - publishedBy?: string; -} diff --git a/src/api/types/MultiLocaleChangedPayload.ts b/src/api/types/MultiLocaleChangedPayload.ts deleted file mode 100644 index bec891f6..00000000 --- a/src/api/types/MultiLocaleChangedPayload.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export interface MultiLocaleChangedPayload { - /** Unique identifier for the Item */ - id: string; - /** Unique identifier of the workspace */ - workspaceId: string; - /** Unique identifier of the site */ - siteId: string; - /** Unique identifier of the collection */ - collectionId: string; - /** Unique identifier of the CMS locale for this item */ - cmsLocaleId?: string; - lastPublished?: Date; - lastUpdated?: Date; - createdOn?: Date; - isArchived?: boolean; - isDraft?: boolean; - fieldData: Webflow.MultiLocaleChangedPayloadFieldData; -} diff --git a/src/api/types/MultiLocaleChangedPayloadFieldData.ts b/src/api/types/MultiLocaleChangedPayloadFieldData.ts deleted file mode 100644 index 43322f64..00000000 --- a/src/api/types/MultiLocaleChangedPayloadFieldData.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface MultiLocaleChangedPayloadFieldData { - name: string; - slug: string; - /** Locale identifier for this version of the item */ - locale: string; - /** Accepts any additional properties */ - [key: string]: any; -} diff --git a/src/api/types/MultiLocaleCreatedPayload.ts b/src/api/types/MultiLocaleCreatedPayload.ts deleted file mode 100644 index d26e3f04..00000000 --- a/src/api/types/MultiLocaleCreatedPayload.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export interface MultiLocaleCreatedPayload { - /** Unique identifier of the site */ - siteId: string; - /** Unique identifier of the workspace */ - workspaceId: string; - /** Unique identifier of the collection */ - collectionId: string; - /** Unique identifier of the CMS locale for this item */ - cmsLocaleId?: string; - /** Collection of localized items, keyed by locale index (0-n) */ - fieldData: Record; -} diff --git a/src/api/types/Node.ts b/src/api/types/Node.ts index 6d2d21fc..3aee1b92 100644 --- a/src/api/types/Node.ts +++ b/src/api/types/Node.ts @@ -17,31 +17,31 @@ export type Node = | Webflow.Node.SearchButton; export namespace Node { - export interface Text extends Webflow.TextNodeDom { + export interface Text extends Webflow.TextNode { type: "text"; } - export interface Image extends Webflow.ImageNodeDom { + export interface Image extends Webflow.ImageNode { type: "image"; } - export interface ComponentInstance extends Webflow.ComponentNodeDom { + export interface ComponentInstance extends Webflow.ComponentNode { type: "component-instance"; } - export interface TextInput extends Webflow.TextInputNodeDom { + export interface TextInput extends Webflow.TextInputNode { type: "text-input"; } - export interface Select extends Webflow.SelectNodeDom { + export interface Select extends Webflow.SelectNode { type: "select"; } - export interface SubmitButton extends Webflow.SubmitButtonNodeDom { + export interface SubmitButton extends Webflow.SubmitButtonNode { type: "submit-button"; } - export interface SearchButton extends Webflow.SearchButtonNodeDom { + export interface SearchButton extends Webflow.SearchButtonNode { type: "search-button"; } } diff --git a/src/api/types/Payload.ts b/src/api/types/Payload.ts new file mode 100644 index 00000000..4690b4cc --- /dev/null +++ b/src/api/types/Payload.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from "../index"; + +/** + * The payload of data sent from Webflow + */ +export interface Payload { + /** The ID of the collection item that was unpublished */ + id?: string; + /** The ID of the site */ + siteId?: string; + /** The ID of the workspace */ + workspaceId?: string; + /** The ID of the collection */ + collectionId?: string; + /** Unique identifier of the CMS locale for this item */ + cmsLocaleId?: string; + lastPublished?: Date; + lastUpdated?: Date; + createdOn?: Date; + isArchived?: boolean; + isDraft?: boolean; + fieldData?: Webflow.PayloadFieldData; +} diff --git a/src/api/types/SingleLocaleChangedPayloadFieldData.ts b/src/api/types/PayloadFieldData.ts similarity index 76% rename from src/api/types/SingleLocaleChangedPayloadFieldData.ts rename to src/api/types/PayloadFieldData.ts index d566ccb2..526ec184 100644 --- a/src/api/types/SingleLocaleChangedPayloadFieldData.ts +++ b/src/api/types/PayloadFieldData.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface SingleLocaleChangedPayloadFieldData { +export interface PayloadFieldData { name: string; slug: string; /** Accepts any additional properties */ diff --git a/src/api/types/SearchButtonNodeDom.ts b/src/api/types/SearchButtonNode.ts similarity index 92% rename from src/api/types/SearchButtonNodeDom.ts rename to src/api/types/SearchButtonNode.ts index c049d03c..5c05178b 100644 --- a/src/api/types/SearchButtonNodeDom.ts +++ b/src/api/types/SearchButtonNode.ts @@ -5,7 +5,7 @@ /** * Represents search button elements within the DOM. It contains the text of the button. Additional attributes can be associated with the text for styling or other purposes. */ -export interface SearchButtonNodeDom { +export interface SearchButtonNode { /** Node UUID */ id: string; /** The text content of the search button. */ diff --git a/src/api/types/SearchButton.ts b/src/api/types/SearchButtonNodeWrite.ts similarity index 84% rename from src/api/types/SearchButton.ts rename to src/api/types/SearchButtonNodeWrite.ts index e7d1b806..b3e53d29 100644 --- a/src/api/types/SearchButton.ts +++ b/src/api/types/SearchButtonNodeWrite.ts @@ -5,7 +5,7 @@ /** * Update a search button node */ -export interface SearchButton { +export interface SearchButtonNodeWrite { /** Node UUID */ nodeId: string; /** The text content of the search button. */ diff --git a/src/api/types/SelectNodeDom.ts b/src/api/types/SelectNode.ts similarity index 94% rename from src/api/types/SelectNodeDom.ts rename to src/api/types/SelectNode.ts index f0d591f9..772862be 100644 --- a/src/api/types/SelectNodeDom.ts +++ b/src/api/types/SelectNode.ts @@ -7,7 +7,7 @@ import * as Webflow from "../index"; /** * Represents select elements within the DOM. It contains the list of choices in the select. Additional attributes can be associated with the text for styling or other purposes. */ -export interface SelectNodeDom { +export interface SelectNode { /** Node UUID */ id: string; /** The list of choices in this select node. */ diff --git a/src/api/types/SingleLocaleChangedPayload.ts b/src/api/types/SingleLocaleChangedPayload.ts deleted file mode 100644 index 5e2f5227..00000000 --- a/src/api/types/SingleLocaleChangedPayload.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export interface SingleLocaleChangedPayload { - /** Unique identifier for the Item */ - id: string; - /** Unique identifier of the workspace */ - workspaceId: string; - /** Unique identifier of the site */ - siteId: string; - /** Unique identifier of the collection */ - collectionId: string; - /** Unique identifier of the CMS locale for this item */ - cmsLocaleId?: string; - lastPublished?: Date; - lastUpdated?: Date; - createdOn?: Date; - isArchived?: boolean; - isDraft?: boolean; - fieldData: Webflow.SingleLocaleChangedPayloadFieldData; -} diff --git a/src/api/types/SiteMembership.ts b/src/api/types/SiteMembership.ts index 48318af1..be0c8259 100644 --- a/src/api/types/SiteMembership.ts +++ b/src/api/types/SiteMembership.ts @@ -13,4 +13,5 @@ export interface SiteMembership { roleName?: string; /** The previous role that the user had */ previousRoleName?: string; + granularAccess?: Webflow.WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess; } diff --git a/src/api/types/SiteMembershipAuditLogItemEventSubType.ts b/src/api/types/SiteMembershipAuditLogItemEventSubType.ts index 949efce8..7cf2375a 100644 --- a/src/api/types/SiteMembershipAuditLogItemEventSubType.ts +++ b/src/api/types/SiteMembershipAuditLogItemEventSubType.ts @@ -2,9 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SiteMembershipAuditLogItemEventSubType = "user_added" | "user_removed" | "user_role_updated"; +export type SiteMembershipAuditLogItemEventSubType = + | "user_added" + | "user_removed" + | "user_role_updated" + | "user_granular_access_updated"; export const SiteMembershipAuditLogItemEventSubType = { UserAdded: "user_added", UserRemoved: "user_removed", UserRoleUpdated: "user_role_updated", + UserGranularAccessUpdated: "user_granular_access_updated", } as const; diff --git a/src/api/types/SubmitButtonNodeDom.ts b/src/api/types/SubmitButtonNode.ts similarity index 93% rename from src/api/types/SubmitButtonNodeDom.ts rename to src/api/types/SubmitButtonNode.ts index e86f58c8..18b31327 100644 --- a/src/api/types/SubmitButtonNodeDom.ts +++ b/src/api/types/SubmitButtonNode.ts @@ -5,7 +5,7 @@ /** * Represents submit button elements within the DOM. It contains the text and waiting text of the button. Additional attributes can be associated with the text for styling or other purposes. */ -export interface SubmitButtonNodeDom { +export interface SubmitButtonNode { /** Node UUID */ id: string; /** The text content of the submit button. */ diff --git a/src/api/types/SubmitButton.ts b/src/api/types/SubmitButtonNodeWrite.ts similarity index 88% rename from src/api/types/SubmitButton.ts rename to src/api/types/SubmitButtonNodeWrite.ts index a0b0f91b..f7f5e428 100644 --- a/src/api/types/SubmitButton.ts +++ b/src/api/types/SubmitButtonNodeWrite.ts @@ -5,7 +5,7 @@ /** * Update a submit button node */ -export interface SubmitButton { +export interface SubmitButtonNodeWrite { /** Node UUID */ nodeId: string; /** The text content of the submit button. */ diff --git a/src/api/types/TextInputNodeDom.ts b/src/api/types/TextInputNode.ts similarity index 92% rename from src/api/types/TextInputNodeDom.ts rename to src/api/types/TextInputNode.ts index 229bbc2b..17dca89c 100644 --- a/src/api/types/TextInputNodeDom.ts +++ b/src/api/types/TextInputNode.ts @@ -5,7 +5,7 @@ /** * Represents text input and textarea elements within the DOM. It contains the placeholder text in the input. Additional attributes can be associated with the text for styling or other purposes. */ -export interface TextInputNodeDom { +export interface TextInputNode { /** Node UUID */ id: string; /** The placeholder text of the input node */ diff --git a/src/api/types/TextInput.ts b/src/api/types/TextInputNodeWrite.ts similarity index 86% rename from src/api/types/TextInput.ts rename to src/api/types/TextInputNodeWrite.ts index 524c2bd2..4e25aded 100644 --- a/src/api/types/TextInput.ts +++ b/src/api/types/TextInputNodeWrite.ts @@ -5,7 +5,7 @@ /** * Update placeholder text on a text input node */ -export interface TextInput { +export interface TextInputNodeWrite { /** Node UUID */ nodeId: string; /** The placeholder text of the input node */ diff --git a/src/api/types/TextNode.ts b/src/api/types/TextNode.ts index e3fe015c..13015905 100644 --- a/src/api/types/TextNode.ts +++ b/src/api/types/TextNode.ts @@ -2,12 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Webflow from "../index"; + /** - * Update a text node + * Represents text content within the DOM. It contains both the raw text and its HTML representation. Additional attributes can be associated with the text for styling or other purposes. */ export interface TextNode { /** Node UUID */ - nodeId: string; - /** HTML content of the node, including the HTML tag. The HTML tags must be the same as what's returned from the Get Content endpoint. */ - text: string; + id: string; + /** The text content of the node */ + text: Webflow.TextNodeText; + /** The custom attributes of the node */ + attributes?: Record; } diff --git a/src/api/types/TextNodeDom.ts b/src/api/types/TextNodeDom.ts deleted file mode 100644 index 49e88086..00000000 --- a/src/api/types/TextNodeDom.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -/** - * Represents text content within the DOM. It contains both the raw text and its HTML representation. Additional attributes can be associated with the text for styling or other purposes. - */ -export interface TextNodeDom { - /** Node UUID */ - id: string; - /** The text content of the node */ - text: Webflow.TextNodeText; - /** The custom attributes of the node */ - attributes?: Record; -} diff --git a/src/api/types/TextNodeWrite.ts b/src/api/types/TextNodeWrite.ts new file mode 100644 index 00000000..0c52cf2c --- /dev/null +++ b/src/api/types/TextNodeWrite.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Update a text node + */ +export interface TextNodeWrite { + /** Node UUID */ + nodeId: string; + /** HTML content of the node, including the HTML tag. The HTML tags must be the same as what's returned from the Get Content endpoint. */ + text: string; +} diff --git a/src/api/types/TriggerType.ts b/src/api/types/TriggerType.ts index 5d4eed0f..a059fadb 100644 --- a/src/api/types/TriggerType.ts +++ b/src/api/types/TriggerType.ts @@ -20,6 +20,7 @@ export type TriggerType = | "collection_item_created" | "collection_item_changed" | "collection_item_deleted" + | "collection_item_published" | "collection_item_unpublished" | "comment_created"; export const TriggerType = { @@ -37,6 +38,7 @@ export const TriggerType = { CollectionItemCreated: "collection_item_created", CollectionItemChanged: "collection_item_changed", CollectionItemDeleted: "collection_item_deleted", + CollectionItemPublished: "collection_item_published", CollectionItemUnpublished: "collection_item_unpublished", CommentCreated: "comment_created", } as const; diff --git a/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.ts b/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.ts new file mode 100644 index 00000000..3e0fbcb7 --- /dev/null +++ b/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess { + id?: string; + name?: string; + type?: "cms"; + restricted?: boolean; +} diff --git a/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts b/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts index e63419ef..950c77de 100644 --- a/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts +++ b/src/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts @@ -2,11 +2,18 @@ * This file was auto-generated by Fern from our API Definition. */ -export type WorkspaceAuditLogItemPayloadSiteMembershipMethod = "sso" | "invite" | "scim" | "dashboard" | "admin"; +export type WorkspaceAuditLogItemPayloadSiteMembershipMethod = + | "sso" + | "invite" + | "scim" + | "dashboard" + | "admin" + | "access_request"; export const WorkspaceAuditLogItemPayloadSiteMembershipMethod = { Sso: "sso", Invite: "invite", Scim: "scim", Dashboard: "dashboard", Admin: "admin", + AccessRequest: "access_request", } as const; diff --git a/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.ts b/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.ts new file mode 100644 index 00000000..860cdaad --- /dev/null +++ b/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem { + id?: string; + email?: string; +} diff --git a/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts b/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts index a063306d..22b080cc 100644 --- a/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts +++ b/src/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts @@ -2,9 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ -export type WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod = "sso" | "dashboard" | "admin"; +export type WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod = "sso" | "dashboard" | "admin" | "access_request"; export const WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod = { Sso: "sso", Dashboard: "dashboard", Admin: "admin", + AccessRequest: "access_request", } as const; diff --git a/src/api/types/WorkspaceInvitation.ts b/src/api/types/WorkspaceInvitation.ts index 59aa2857..448c82ae 100644 --- a/src/api/types/WorkspaceInvitation.ts +++ b/src/api/types/WorkspaceInvitation.ts @@ -12,4 +12,5 @@ export interface WorkspaceInvitation { roleName?: string; /** The previous role that the user had */ previousRoleName?: string; + targetUsers?: Webflow.WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem[]; } diff --git a/src/api/types/WorkspaceInvitationAuditLogItemEventSubType.ts b/src/api/types/WorkspaceInvitationAuditLogItemEventSubType.ts index 55366efa..bc474207 100644 --- a/src/api/types/WorkspaceInvitationAuditLogItemEventSubType.ts +++ b/src/api/types/WorkspaceInvitationAuditLogItemEventSubType.ts @@ -7,11 +7,13 @@ export type WorkspaceInvitationAuditLogItemEventSubType = | "invite_accepted" | "invite_updated" | "invite_canceled" - | "invite_declined"; + | "invite_declined" + | "access_request_accepted"; export const WorkspaceInvitationAuditLogItemEventSubType = { InviteSent: "invite_sent", InviteAccepted: "invite_accepted", InviteUpdated: "invite_updated", InviteCanceled: "invite_canceled", InviteDeclined: "invite_declined", + AccessRequestAccepted: "access_request_accepted", } as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 05a25767..226d0e81 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -34,12 +34,14 @@ export * from "./WorkspaceAuditLogItemPayloadSiteMembershipSite"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipTargetUser"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipMethod"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipUserType"; +export * from "./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess"; export * from "./SiteMembership"; export * from "./SiteMembershipAuditLogItemEventSubType"; export * from "./SiteMembershipAuditLogItem"; export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser"; export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod"; export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType"; +export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem"; export * from "./WorkspaceInvitation"; export * from "./WorkspaceInvitationAuditLogItemEventSubType"; export * from "./WorkspaceInvitationAuditLogItem"; @@ -111,28 +113,28 @@ export * from "./PageOpenGraph"; export * from "./Page"; export * from "./PageList"; export * from "./TextNodeText"; -export * from "./TextNodeDom"; +export * from "./TextNode"; export * from "./ImageNodeImage"; -export * from "./ImageNodeDom"; +export * from "./ImageNode"; export * from "./Text"; export * from "./ComponentPropertyType"; export * from "./ComponentProperty"; -export * from "./ComponentNodeDom"; -export * from "./TextInputNodeDom"; +export * from "./ComponentNode"; +export * from "./TextInputNode"; export * from "./SelectNodeChoicesItem"; -export * from "./SelectNodeDom"; -export * from "./SubmitButtonNodeDom"; -export * from "./SearchButtonNodeDom"; +export * from "./SelectNode"; +export * from "./SubmitButtonNode"; +export * from "./SearchButtonNode"; export * from "./Node"; export * from "./Dom"; -export * from "./TextNode"; +export * from "./TextNodeWrite"; export * from "./ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem"; -export * from "./ComponentInstance"; +export * from "./ComponentInstanceNodePropertyOverridesWrite"; export * from "./SelectNodeWriteChoicesItem"; export * from "./Select"; -export * from "./TextInput"; -export * from "./SubmitButton"; -export * from "./SearchButton"; +export * from "./TextInputNodeWrite"; +export * from "./SubmitButtonNodeWrite"; +export * from "./SearchButtonNodeWrite"; export * from "./Component"; export * from "./ComponentList"; export * from "./ComponentDom"; @@ -239,19 +241,14 @@ export * from "./NewOrder"; export * from "./UpdatedOrder"; export * from "./SingleLocaleCreatedPayloadFieldData"; export * from "./SingleLocaleCreatedPayload"; -export * from "./LocalizedItem"; -export * from "./MultiLocaleCreatedPayload"; -export * from "./CollectionItemCreatedPayload"; export * from "./CollectionItemCreated"; -export * from "./SingleLocaleChangedPayloadFieldData"; -export * from "./SingleLocaleChangedPayload"; -export * from "./MultiLocaleChangedPayloadFieldData"; -export * from "./MultiLocaleChangedPayload"; -export * from "./CollectionItemChangedPayload"; export * from "./CollectionItemChanged"; export * from "./CollectionItemRemovedPayloadFieldData"; export * from "./CollectionItemRemovedPayload"; export * from "./CollectionItemRemoved"; +export * from "./PayloadFieldData"; +export * from "./Payload"; +export * from "./CollectionItemPublished"; export * from "./CollectionItemUnpublishedPayloadFieldData"; export * from "./CollectionItemUnpublishedPayload"; export * from "./CollectionItemUnpublished"; diff --git a/src/environments.ts b/src/environments.ts index 84e3537b..33bf50cf 100644 --- a/src/environments.ts +++ b/src/environments.ts @@ -6,8 +6,6 @@ export interface WebflowEnvironmentUrls { base: string; dataApi: string; contentDeliveryApi: string; - production: string; - cdn: string; } export const WebflowEnvironment = { @@ -15,8 +13,6 @@ export const WebflowEnvironment = { base: "https://api.webflow.com/v2", dataApi: "https://api.webflow.com/v2", contentDeliveryApi: "https://api-cdn.webflow.com/v2", - production: "https://api.webflow.com/v2", - cdn: "https://api-cdn.webflow.com/v2", }, } as const; diff --git a/src/serialization/resources/components/types/ComponentDomWriteNodesItem.ts b/src/serialization/resources/components/types/ComponentDomWriteNodesItem.ts index 942b68e4..b26c150f 100644 --- a/src/serialization/resources/components/types/ComponentDomWriteNodesItem.ts +++ b/src/serialization/resources/components/types/ComponentDomWriteNodesItem.ts @@ -5,31 +5,31 @@ import * as serializers from "../../../index"; import * as Webflow from "../../../../api/index"; import * as core from "../../../../core"; -import { TextNode } from "../../../types/TextNode"; -import { ComponentInstance } from "../../../types/ComponentInstance"; +import { TextNodeWrite } from "../../../types/TextNodeWrite"; +import { ComponentInstanceNodePropertyOverridesWrite } from "../../../types/ComponentInstanceNodePropertyOverridesWrite"; import { Select } from "../../../types/Select"; -import { TextInput } from "../../../types/TextInput"; -import { SubmitButton } from "../../../types/SubmitButton"; -import { SearchButton } from "../../../types/SearchButton"; +import { TextInputNodeWrite } from "../../../types/TextInputNodeWrite"; +import { SubmitButtonNodeWrite } from "../../../types/SubmitButtonNodeWrite"; +import { SearchButtonNodeWrite } from "../../../types/SearchButtonNodeWrite"; export const ComponentDomWriteNodesItem: core.serialization.Schema< serializers.ComponentDomWriteNodesItem.Raw, Webflow.ComponentDomWriteNodesItem > = core.serialization.undiscriminatedUnion([ - TextNode, - ComponentInstance, + TextNodeWrite, + ComponentInstanceNodePropertyOverridesWrite, Select, - TextInput, - SubmitButton, - SearchButton, + TextInputNodeWrite, + SubmitButtonNodeWrite, + SearchButtonNodeWrite, ]); export declare namespace ComponentDomWriteNodesItem { export type Raw = - | TextNode.Raw - | ComponentInstance.Raw + | TextNodeWrite.Raw + | ComponentInstanceNodePropertyOverridesWrite.Raw | Select.Raw - | TextInput.Raw - | SubmitButton.Raw - | SearchButton.Raw; + | TextInputNodeWrite.Raw + | SubmitButtonNodeWrite.Raw + | SearchButtonNodeWrite.Raw; } diff --git a/src/serialization/resources/pages/types/PageDomWriteNodesItem.ts b/src/serialization/resources/pages/types/PageDomWriteNodesItem.ts index 49ae4c50..e6c3c944 100644 --- a/src/serialization/resources/pages/types/PageDomWriteNodesItem.ts +++ b/src/serialization/resources/pages/types/PageDomWriteNodesItem.ts @@ -5,31 +5,31 @@ import * as serializers from "../../../index"; import * as Webflow from "../../../../api/index"; import * as core from "../../../../core"; -import { TextNode } from "../../../types/TextNode"; -import { ComponentInstance } from "../../../types/ComponentInstance"; +import { TextNodeWrite } from "../../../types/TextNodeWrite"; +import { ComponentInstanceNodePropertyOverridesWrite } from "../../../types/ComponentInstanceNodePropertyOverridesWrite"; import { Select } from "../../../types/Select"; -import { TextInput } from "../../../types/TextInput"; -import { SubmitButton } from "../../../types/SubmitButton"; -import { SearchButton } from "../../../types/SearchButton"; +import { TextInputNodeWrite } from "../../../types/TextInputNodeWrite"; +import { SubmitButtonNodeWrite } from "../../../types/SubmitButtonNodeWrite"; +import { SearchButtonNodeWrite } from "../../../types/SearchButtonNodeWrite"; export const PageDomWriteNodesItem: core.serialization.Schema< serializers.PageDomWriteNodesItem.Raw, Webflow.PageDomWriteNodesItem > = core.serialization.undiscriminatedUnion([ - TextNode, - ComponentInstance, + TextNodeWrite, + ComponentInstanceNodePropertyOverridesWrite, Select, - TextInput, - SubmitButton, - SearchButton, + TextInputNodeWrite, + SubmitButtonNodeWrite, + SearchButtonNodeWrite, ]); export declare namespace PageDomWriteNodesItem { export type Raw = - | TextNode.Raw - | ComponentInstance.Raw + | TextNodeWrite.Raw + | ComponentInstanceNodePropertyOverridesWrite.Raw | Select.Raw - | TextInput.Raw - | SubmitButton.Raw - | SearchButton.Raw; + | TextInputNodeWrite.Raw + | SubmitButtonNodeWrite.Raw + | SearchButtonNodeWrite.Raw; } diff --git a/src/serialization/types/CollectionItemChanged.ts b/src/serialization/types/CollectionItemChanged.ts index d286ddec..93bad748 100644 --- a/src/serialization/types/CollectionItemChanged.ts +++ b/src/serialization/types/CollectionItemChanged.ts @@ -5,19 +5,19 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -import { CollectionItemChangedPayload } from "./CollectionItemChangedPayload"; +import { SingleLocaleCreatedPayload } from "./SingleLocaleCreatedPayload"; export const CollectionItemChanged: core.serialization.ObjectSchema< serializers.CollectionItemChanged.Raw, Webflow.CollectionItemChanged > = core.serialization.object({ triggerType: core.serialization.stringLiteral("collection_item_changed"), - payload: CollectionItemChangedPayload, + payload: SingleLocaleCreatedPayload, }); export declare namespace CollectionItemChanged { export interface Raw { triggerType: "collection_item_changed"; - payload: CollectionItemChangedPayload.Raw; + payload: SingleLocaleCreatedPayload.Raw; } } diff --git a/src/serialization/types/CollectionItemChangedPayload.ts b/src/serialization/types/CollectionItemChangedPayload.ts deleted file mode 100644 index 751fb501..00000000 --- a/src/serialization/types/CollectionItemChangedPayload.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { SingleLocaleChangedPayload } from "./SingleLocaleChangedPayload"; -import { MultiLocaleChangedPayload } from "./MultiLocaleChangedPayload"; - -export const CollectionItemChangedPayload: core.serialization.Schema< - serializers.CollectionItemChangedPayload.Raw, - Webflow.CollectionItemChangedPayload -> = core.serialization.undiscriminatedUnion([SingleLocaleChangedPayload, MultiLocaleChangedPayload]); - -export declare namespace CollectionItemChangedPayload { - export type Raw = SingleLocaleChangedPayload.Raw | MultiLocaleChangedPayload.Raw; -} diff --git a/src/serialization/types/CollectionItemCreated.ts b/src/serialization/types/CollectionItemCreated.ts index ec730a47..0d508596 100644 --- a/src/serialization/types/CollectionItemCreated.ts +++ b/src/serialization/types/CollectionItemCreated.ts @@ -5,19 +5,19 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -import { CollectionItemCreatedPayload } from "./CollectionItemCreatedPayload"; +import { SingleLocaleCreatedPayload } from "./SingleLocaleCreatedPayload"; export const CollectionItemCreated: core.serialization.ObjectSchema< serializers.CollectionItemCreated.Raw, Webflow.CollectionItemCreated > = core.serialization.object({ triggerType: core.serialization.stringLiteral("collection_item_created"), - payload: CollectionItemCreatedPayload, + payload: SingleLocaleCreatedPayload, }); export declare namespace CollectionItemCreated { export interface Raw { triggerType: "collection_item_created"; - payload: CollectionItemCreatedPayload.Raw; + payload: SingleLocaleCreatedPayload.Raw; } } diff --git a/src/serialization/types/CollectionItemCreatedPayload.ts b/src/serialization/types/CollectionItemCreatedPayload.ts deleted file mode 100644 index b67ad22e..00000000 --- a/src/serialization/types/CollectionItemCreatedPayload.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { SingleLocaleCreatedPayload } from "./SingleLocaleCreatedPayload"; -import { MultiLocaleCreatedPayload } from "./MultiLocaleCreatedPayload"; - -export const CollectionItemCreatedPayload: core.serialization.Schema< - serializers.CollectionItemCreatedPayload.Raw, - Webflow.CollectionItemCreatedPayload -> = core.serialization.undiscriminatedUnion([SingleLocaleCreatedPayload, MultiLocaleCreatedPayload]); - -export declare namespace CollectionItemCreatedPayload { - export type Raw = SingleLocaleCreatedPayload.Raw | MultiLocaleCreatedPayload.Raw; -} diff --git a/src/serialization/types/CollectionItemPublished.ts b/src/serialization/types/CollectionItemPublished.ts new file mode 100644 index 00000000..dd096d58 --- /dev/null +++ b/src/serialization/types/CollectionItemPublished.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; +import { Payload } from "./Payload"; + +export const CollectionItemPublished: core.serialization.ObjectSchema< + serializers.CollectionItemPublished.Raw, + Webflow.CollectionItemPublished +> = core.serialization.object({ + triggerType: core.serialization.string().optional(), + payload: Payload.optional(), +}); + +export declare namespace CollectionItemPublished { + export interface Raw { + triggerType?: string | null; + payload?: Payload.Raw | null; + } +} diff --git a/src/serialization/types/ComponentInstance.ts b/src/serialization/types/ComponentInstanceNodePropertyOverridesWrite.ts similarity index 71% rename from src/serialization/types/ComponentInstance.ts rename to src/serialization/types/ComponentInstanceNodePropertyOverridesWrite.ts index c4d7c78a..b8c3596b 100644 --- a/src/serialization/types/ComponentInstance.ts +++ b/src/serialization/types/ComponentInstanceNodePropertyOverridesWrite.ts @@ -7,15 +7,15 @@ import * as Webflow from "../../api/index"; import * as core from "../../core"; import { ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem } from "./ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem"; -export const ComponentInstance: core.serialization.ObjectSchema< - serializers.ComponentInstance.Raw, - Webflow.ComponentInstance +export const ComponentInstanceNodePropertyOverridesWrite: core.serialization.ObjectSchema< + serializers.ComponentInstanceNodePropertyOverridesWrite.Raw, + Webflow.ComponentInstanceNodePropertyOverridesWrite > = core.serialization.object({ nodeId: core.serialization.string(), propertyOverrides: core.serialization.list(ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem), }); -export declare namespace ComponentInstance { +export declare namespace ComponentInstanceNodePropertyOverridesWrite { export interface Raw { nodeId: string; propertyOverrides: ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.Raw[]; diff --git a/src/serialization/types/ComponentNodeDom.ts b/src/serialization/types/ComponentNode.ts similarity index 51% rename from src/serialization/types/ComponentNodeDom.ts rename to src/serialization/types/ComponentNode.ts index 18a3534e..ac0e54c9 100644 --- a/src/serialization/types/ComponentNodeDom.ts +++ b/src/serialization/types/ComponentNode.ts @@ -7,16 +7,14 @@ import * as Webflow from "../../api/index"; import * as core from "../../core"; import { ComponentProperty } from "./ComponentProperty"; -export const ComponentNodeDom: core.serialization.ObjectSchema< - serializers.ComponentNodeDom.Raw, - Webflow.ComponentNodeDom -> = core.serialization.object({ - id: core.serialization.string(), - componentId: core.serialization.string(), - propertyOverrides: core.serialization.list(ComponentProperty), -}); +export const ComponentNode: core.serialization.ObjectSchema = + core.serialization.object({ + id: core.serialization.string(), + componentId: core.serialization.string(), + propertyOverrides: core.serialization.list(ComponentProperty), + }); -export declare namespace ComponentNodeDom { +export declare namespace ComponentNode { export interface Raw { id: string; componentId: string; diff --git a/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts b/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts index 33bf82f2..8d75dec8 100644 --- a/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts +++ b/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts @@ -10,11 +10,11 @@ export const FieldValidationsAdditionalPropertiesAdditionalProperties: core.seri serializers.FieldValidationsAdditionalPropertiesAdditionalProperties.Raw, Webflow.FieldValidationsAdditionalPropertiesAdditionalProperties > = core.serialization.object({ - additionalProperties: core.serialization.unknown().optional(), + additionalProperties: core.serialization.unknown(), }); export declare namespace FieldValidationsAdditionalPropertiesAdditionalProperties { export interface Raw { - additionalProperties?: unknown | null; + additionalProperties?: unknown; } } diff --git a/src/serialization/types/ImageNodeDom.ts b/src/serialization/types/ImageNode.ts similarity index 80% rename from src/serialization/types/ImageNodeDom.ts rename to src/serialization/types/ImageNode.ts index d1f7fd23..a95eb1b7 100644 --- a/src/serialization/types/ImageNodeDom.ts +++ b/src/serialization/types/ImageNode.ts @@ -7,14 +7,14 @@ import * as Webflow from "../../api/index"; import * as core from "../../core"; import { ImageNodeImage } from "./ImageNodeImage"; -export const ImageNodeDom: core.serialization.ObjectSchema = +export const ImageNode: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), image: ImageNodeImage, attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), }); -export declare namespace ImageNodeDom { +export declare namespace ImageNode { export interface Raw { id: string; image: ImageNodeImage.Raw; diff --git a/src/serialization/types/LocalizedItem.ts b/src/serialization/types/LocalizedItem.ts deleted file mode 100644 index 0cb5ff70..00000000 --- a/src/serialization/types/LocalizedItem.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const LocalizedItem: core.serialization.ObjectSchema = - core.serialization.object({ - cid: core.serialization.property("_cid", core.serialization.string()), - id: core.serialization.property("_id", core.serialization.string()), - locale: core.serialization.property("_locale", core.serialization.string()), - draft: core.serialization.property("_draft", core.serialization.boolean()), - archived: core.serialization.property("_archived", core.serialization.boolean()), - name: core.serialization.string(), - slug: core.serialization.string(), - updatedOn: core.serialization.property("updated-on", core.serialization.date()), - updatedBy: core.serialization.property("updated-by", core.serialization.string()), - createdOn: core.serialization.property("created-on", core.serialization.date()), - createdBy: core.serialization.property("created-by", core.serialization.string()), - publishedOn: core.serialization.property("published-on", core.serialization.date().optional()), - publishedBy: core.serialization.property("published-by", core.serialization.string().optional()), - }); - -export declare namespace LocalizedItem { - export interface Raw { - _cid: string; - _id: string; - _locale: string; - _draft: boolean; - _archived: boolean; - name: string; - slug: string; - "updated-on": string; - "updated-by": string; - "created-on": string; - "created-by": string; - "published-on"?: string | null; - "published-by"?: string | null; - } -} diff --git a/src/serialization/types/MultiLocaleChangedPayload.ts b/src/serialization/types/MultiLocaleChangedPayload.ts deleted file mode 100644 index d543b905..00000000 --- a/src/serialization/types/MultiLocaleChangedPayload.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { MultiLocaleChangedPayloadFieldData } from "./MultiLocaleChangedPayloadFieldData"; - -export const MultiLocaleChangedPayload: core.serialization.ObjectSchema< - serializers.MultiLocaleChangedPayload.Raw, - Webflow.MultiLocaleChangedPayload -> = core.serialization.object({ - id: core.serialization.string(), - workspaceId: core.serialization.string(), - siteId: core.serialization.string(), - collectionId: core.serialization.string(), - cmsLocaleId: core.serialization.string().optional(), - lastPublished: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - isArchived: core.serialization.boolean().optional(), - isDraft: core.serialization.boolean().optional(), - fieldData: MultiLocaleChangedPayloadFieldData, -}); - -export declare namespace MultiLocaleChangedPayload { - export interface Raw { - id: string; - workspaceId: string; - siteId: string; - collectionId: string; - cmsLocaleId?: string | null; - lastPublished?: string | null; - lastUpdated?: string | null; - createdOn?: string | null; - isArchived?: boolean | null; - isDraft?: boolean | null; - fieldData: MultiLocaleChangedPayloadFieldData.Raw; - } -} diff --git a/src/serialization/types/MultiLocaleChangedPayloadFieldData.ts b/src/serialization/types/MultiLocaleChangedPayloadFieldData.ts deleted file mode 100644 index c7788139..00000000 --- a/src/serialization/types/MultiLocaleChangedPayloadFieldData.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const MultiLocaleChangedPayloadFieldData: core.serialization.ObjectSchema< - serializers.MultiLocaleChangedPayloadFieldData.Raw, - Webflow.MultiLocaleChangedPayloadFieldData -> = core.serialization - .object({ - name: core.serialization.string(), - slug: core.serialization.string(), - locale: core.serialization.property("_locale", core.serialization.string()), - }) - .passthrough(); - -export declare namespace MultiLocaleChangedPayloadFieldData { - export interface Raw { - name: string; - slug: string; - _locale: string; - [key: string]: any; - } -} diff --git a/src/serialization/types/MultiLocaleCreatedPayload.ts b/src/serialization/types/MultiLocaleCreatedPayload.ts deleted file mode 100644 index 00a26e16..00000000 --- a/src/serialization/types/MultiLocaleCreatedPayload.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { LocalizedItem } from "./LocalizedItem"; - -export const MultiLocaleCreatedPayload: core.serialization.ObjectSchema< - serializers.MultiLocaleCreatedPayload.Raw, - Webflow.MultiLocaleCreatedPayload -> = core.serialization.object({ - siteId: core.serialization.string(), - workspaceId: core.serialization.string(), - collectionId: core.serialization.string(), - cmsLocaleId: core.serialization.string().optional(), - fieldData: core.serialization.record(core.serialization.string(), LocalizedItem), -}); - -export declare namespace MultiLocaleCreatedPayload { - export interface Raw { - siteId: string; - workspaceId: string; - collectionId: string; - cmsLocaleId?: string | null; - fieldData: Record; - } -} diff --git a/src/serialization/types/Node.ts b/src/serialization/types/Node.ts index 7ff635d1..dc6acf73 100644 --- a/src/serialization/types/Node.ts +++ b/src/serialization/types/Node.ts @@ -5,23 +5,23 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -import { TextNodeDom } from "./TextNodeDom"; -import { ImageNodeDom } from "./ImageNodeDom"; -import { ComponentNodeDom } from "./ComponentNodeDom"; -import { TextInputNodeDom } from "./TextInputNodeDom"; -import { SelectNodeDom } from "./SelectNodeDom"; -import { SubmitButtonNodeDom } from "./SubmitButtonNodeDom"; -import { SearchButtonNodeDom } from "./SearchButtonNodeDom"; +import { TextNode } from "./TextNode"; +import { ImageNode } from "./ImageNode"; +import { ComponentNode } from "./ComponentNode"; +import { TextInputNode } from "./TextInputNode"; +import { SelectNode } from "./SelectNode"; +import { SubmitButtonNode } from "./SubmitButtonNode"; +import { SearchButtonNode } from "./SearchButtonNode"; export const Node: core.serialization.Schema = core.serialization .union("type", { - text: TextNodeDom, - image: ImageNodeDom, - "component-instance": ComponentNodeDom, - "text-input": TextInputNodeDom, - select: SelectNodeDom, - "submit-button": SubmitButtonNodeDom, - "search-button": SearchButtonNodeDom, + text: TextNode, + image: ImageNode, + "component-instance": ComponentNode, + "text-input": TextInputNode, + select: SelectNode, + "submit-button": SubmitButtonNode, + "search-button": SearchButtonNode, }) .transform({ transform: (value) => value, @@ -38,31 +38,31 @@ export declare namespace Node { | Node.SubmitButton | Node.SearchButton; - export interface Text extends TextNodeDom.Raw { + export interface Text extends TextNode.Raw { type: "text"; } - export interface Image extends ImageNodeDom.Raw { + export interface Image extends ImageNode.Raw { type: "image"; } - export interface ComponentInstance extends ComponentNodeDom.Raw { + export interface ComponentInstance extends ComponentNode.Raw { type: "component-instance"; } - export interface TextInput extends TextInputNodeDom.Raw { + export interface TextInput extends TextInputNode.Raw { type: "text-input"; } - export interface Select extends SelectNodeDom.Raw { + export interface Select extends SelectNode.Raw { type: "select"; } - export interface SubmitButton extends SubmitButtonNodeDom.Raw { + export interface SubmitButton extends SubmitButtonNode.Raw { type: "submit-button"; } - export interface SearchButton extends SearchButtonNodeDom.Raw { + export interface SearchButton extends SearchButtonNode.Raw { type: "search-button"; } } diff --git a/src/serialization/types/Payload.ts b/src/serialization/types/Payload.ts new file mode 100644 index 00000000..ffaf5cb9 --- /dev/null +++ b/src/serialization/types/Payload.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; +import { PayloadFieldData } from "./PayloadFieldData"; + +export const Payload: core.serialization.ObjectSchema = + core.serialization.object({ + id: core.serialization.string().optional(), + siteId: core.serialization.string().optional(), + workspaceId: core.serialization.string().optional(), + collectionId: core.serialization.string().optional(), + cmsLocaleId: core.serialization.string().optional(), + lastPublished: core.serialization.date().optional(), + lastUpdated: core.serialization.date().optional(), + createdOn: core.serialization.date().optional(), + isArchived: core.serialization.boolean().optional(), + isDraft: core.serialization.boolean().optional(), + fieldData: PayloadFieldData.optional(), + }); + +export declare namespace Payload { + export interface Raw { + id?: string | null; + siteId?: string | null; + workspaceId?: string | null; + collectionId?: string | null; + cmsLocaleId?: string | null; + lastPublished?: string | null; + lastUpdated?: string | null; + createdOn?: string | null; + isArchived?: boolean | null; + isDraft?: boolean | null; + fieldData?: PayloadFieldData.Raw | null; + } +} diff --git a/src/serialization/types/SingleLocaleChangedPayloadFieldData.ts b/src/serialization/types/PayloadFieldData.ts similarity index 64% rename from src/serialization/types/SingleLocaleChangedPayloadFieldData.ts rename to src/serialization/types/PayloadFieldData.ts index ff2894ce..1076c24c 100644 --- a/src/serialization/types/SingleLocaleChangedPayloadFieldData.ts +++ b/src/serialization/types/PayloadFieldData.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -export const SingleLocaleChangedPayloadFieldData: core.serialization.ObjectSchema< - serializers.SingleLocaleChangedPayloadFieldData.Raw, - Webflow.SingleLocaleChangedPayloadFieldData +export const PayloadFieldData: core.serialization.ObjectSchema< + serializers.PayloadFieldData.Raw, + Webflow.PayloadFieldData > = core.serialization .object({ name: core.serialization.string(), @@ -16,7 +16,7 @@ export const SingleLocaleChangedPayloadFieldData: core.serialization.ObjectSchem }) .passthrough(); -export declare namespace SingleLocaleChangedPayloadFieldData { +export declare namespace PayloadFieldData { export interface Raw { name: string; slug: string; diff --git a/src/serialization/types/SearchButton.ts b/src/serialization/types/SearchButton.ts deleted file mode 100644 index 9335c703..00000000 --- a/src/serialization/types/SearchButton.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const SearchButton: core.serialization.ObjectSchema = - core.serialization.object({ - nodeId: core.serialization.string(), - value: core.serialization.string(), - }); - -export declare namespace SearchButton { - export interface Raw { - nodeId: string; - value: string; - } -} diff --git a/src/serialization/types/SearchButtonNodeDom.ts b/src/serialization/types/SearchButtonNode.ts similarity index 74% rename from src/serialization/types/SearchButtonNodeDom.ts rename to src/serialization/types/SearchButtonNode.ts index 91d6f06e..9cb3904d 100644 --- a/src/serialization/types/SearchButtonNodeDom.ts +++ b/src/serialization/types/SearchButtonNode.ts @@ -6,16 +6,16 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -export const SearchButtonNodeDom: core.serialization.ObjectSchema< - serializers.SearchButtonNodeDom.Raw, - Webflow.SearchButtonNodeDom +export const SearchButtonNode: core.serialization.ObjectSchema< + serializers.SearchButtonNode.Raw, + Webflow.SearchButtonNode > = core.serialization.object({ id: core.serialization.string(), value: core.serialization.string(), attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), }); -export declare namespace SearchButtonNodeDom { +export declare namespace SearchButtonNode { export interface Raw { id: string; value: string; diff --git a/src/serialization/types/SearchButtonNodeWrite.ts b/src/serialization/types/SearchButtonNodeWrite.ts new file mode 100644 index 00000000..b0fbc7e8 --- /dev/null +++ b/src/serialization/types/SearchButtonNodeWrite.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; + +export const SearchButtonNodeWrite: core.serialization.ObjectSchema< + serializers.SearchButtonNodeWrite.Raw, + Webflow.SearchButtonNodeWrite +> = core.serialization.object({ + nodeId: core.serialization.string(), + value: core.serialization.string(), +}); + +export declare namespace SearchButtonNodeWrite { + export interface Raw { + nodeId: string; + value: string; + } +} diff --git a/src/serialization/types/SelectNodeDom.ts b/src/serialization/types/SelectNode.ts similarity index 81% rename from src/serialization/types/SelectNodeDom.ts rename to src/serialization/types/SelectNode.ts index 0270847c..78828b27 100644 --- a/src/serialization/types/SelectNodeDom.ts +++ b/src/serialization/types/SelectNode.ts @@ -7,14 +7,14 @@ import * as Webflow from "../../api/index"; import * as core from "../../core"; import { SelectNodeChoicesItem } from "./SelectNodeChoicesItem"; -export const SelectNodeDom: core.serialization.ObjectSchema = +export const SelectNode: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), choices: core.serialization.list(SelectNodeChoicesItem), attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), }); -export declare namespace SelectNodeDom { +export declare namespace SelectNode { export interface Raw { id: string; choices: SelectNodeChoicesItem.Raw[]; diff --git a/src/serialization/types/SingleLocaleChangedPayload.ts b/src/serialization/types/SingleLocaleChangedPayload.ts deleted file mode 100644 index 040a37c9..00000000 --- a/src/serialization/types/SingleLocaleChangedPayload.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { SingleLocaleChangedPayloadFieldData } from "./SingleLocaleChangedPayloadFieldData"; - -export const SingleLocaleChangedPayload: core.serialization.ObjectSchema< - serializers.SingleLocaleChangedPayload.Raw, - Webflow.SingleLocaleChangedPayload -> = core.serialization.object({ - id: core.serialization.string(), - workspaceId: core.serialization.string(), - siteId: core.serialization.string(), - collectionId: core.serialization.string(), - cmsLocaleId: core.serialization.string().optional(), - lastPublished: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - isArchived: core.serialization.boolean().optional(), - isDraft: core.serialization.boolean().optional(), - fieldData: SingleLocaleChangedPayloadFieldData, -}); - -export declare namespace SingleLocaleChangedPayload { - export interface Raw { - id: string; - workspaceId: string; - siteId: string; - collectionId: string; - cmsLocaleId?: string | null; - lastPublished?: string | null; - lastUpdated?: string | null; - createdOn?: string | null; - isArchived?: boolean | null; - isDraft?: boolean | null; - fieldData: SingleLocaleChangedPayloadFieldData.Raw; - } -} diff --git a/src/serialization/types/SiteMembership.ts b/src/serialization/types/SiteMembership.ts index 2149b3f8..8208542c 100644 --- a/src/serialization/types/SiteMembership.ts +++ b/src/serialization/types/SiteMembership.ts @@ -9,6 +9,7 @@ import { WorkspaceAuditLogItemPayloadSiteMembershipSite } from "./WorkspaceAudit import { WorkspaceAuditLogItemPayloadSiteMembershipTargetUser } from "./WorkspaceAuditLogItemPayloadSiteMembershipTargetUser"; import { WorkspaceAuditLogItemPayloadSiteMembershipMethod } from "./WorkspaceAuditLogItemPayloadSiteMembershipMethod"; import { WorkspaceAuditLogItemPayloadSiteMembershipUserType } from "./WorkspaceAuditLogItemPayloadSiteMembershipUserType"; +import { WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess } from "./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess"; export const SiteMembership: core.serialization.ObjectSchema = core.serialization.object({ @@ -18,6 +19,7 @@ export const SiteMembership: core.serialization.ObjectSchema = core.serialization.enum_(["user_added", "user_removed", "user_role_updated"]); +> = core.serialization.enum_(["user_added", "user_removed", "user_role_updated", "user_granular_access_updated"]); export declare namespace SiteMembershipAuditLogItemEventSubType { - export type Raw = "user_added" | "user_removed" | "user_role_updated"; + export type Raw = "user_added" | "user_removed" | "user_role_updated" | "user_granular_access_updated"; } diff --git a/src/serialization/types/SubmitButton.ts b/src/serialization/types/SubmitButton.ts deleted file mode 100644 index fa39f98f..00000000 --- a/src/serialization/types/SubmitButton.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const SubmitButton: core.serialization.ObjectSchema = - core.serialization.object({ - nodeId: core.serialization.string(), - value: core.serialization.string().optional(), - waitingText: core.serialization.string().optional(), - }); - -export declare namespace SubmitButton { - export interface Raw { - nodeId: string; - value?: string | null; - waitingText?: string | null; - } -} diff --git a/src/serialization/types/SubmitButtonNodeDom.ts b/src/serialization/types/SubmitButtonNode.ts similarity index 77% rename from src/serialization/types/SubmitButtonNodeDom.ts rename to src/serialization/types/SubmitButtonNode.ts index e0e77384..794a1d5a 100644 --- a/src/serialization/types/SubmitButtonNodeDom.ts +++ b/src/serialization/types/SubmitButtonNode.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -export const SubmitButtonNodeDom: core.serialization.ObjectSchema< - serializers.SubmitButtonNodeDom.Raw, - Webflow.SubmitButtonNodeDom +export const SubmitButtonNode: core.serialization.ObjectSchema< + serializers.SubmitButtonNode.Raw, + Webflow.SubmitButtonNode > = core.serialization.object({ id: core.serialization.string(), value: core.serialization.string(), @@ -16,7 +16,7 @@ export const SubmitButtonNodeDom: core.serialization.ObjectSchema< attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), }); -export declare namespace SubmitButtonNodeDom { +export declare namespace SubmitButtonNode { export interface Raw { id: string; value: string; diff --git a/src/serialization/types/SubmitButtonNodeWrite.ts b/src/serialization/types/SubmitButtonNodeWrite.ts new file mode 100644 index 00000000..8cf1a7f8 --- /dev/null +++ b/src/serialization/types/SubmitButtonNodeWrite.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; + +export const SubmitButtonNodeWrite: core.serialization.ObjectSchema< + serializers.SubmitButtonNodeWrite.Raw, + Webflow.SubmitButtonNodeWrite +> = core.serialization.object({ + nodeId: core.serialization.string(), + value: core.serialization.string().optional(), + waitingText: core.serialization.string().optional(), +}); + +export declare namespace SubmitButtonNodeWrite { + export interface Raw { + nodeId: string; + value?: string | null; + waitingText?: string | null; + } +} diff --git a/src/serialization/types/TextNodeDom.ts b/src/serialization/types/TextInputNode.ts similarity index 66% rename from src/serialization/types/TextNodeDom.ts rename to src/serialization/types/TextInputNode.ts index 3e6d704c..71726816 100644 --- a/src/serialization/types/TextNodeDom.ts +++ b/src/serialization/types/TextInputNode.ts @@ -5,19 +5,18 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -import { TextNodeText } from "./TextNodeText"; -export const TextNodeDom: core.serialization.ObjectSchema = +export const TextInputNode: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), - text: TextNodeText, + placeholder: core.serialization.string(), attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), }); -export declare namespace TextNodeDom { +export declare namespace TextInputNode { export interface Raw { id: string; - text: TextNodeText.Raw; + placeholder: string; attributes?: Record | null; } } diff --git a/src/serialization/types/TextInputNodeDom.ts b/src/serialization/types/TextInputNodeDom.ts deleted file mode 100644 index 8c500a29..00000000 --- a/src/serialization/types/TextInputNodeDom.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const TextInputNodeDom: core.serialization.ObjectSchema< - serializers.TextInputNodeDom.Raw, - Webflow.TextInputNodeDom -> = core.serialization.object({ - id: core.serialization.string(), - placeholder: core.serialization.string(), - attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), -}); - -export declare namespace TextInputNodeDom { - export interface Raw { - id: string; - placeholder: string; - attributes?: Record | null; - } -} diff --git a/src/serialization/types/TextInputNodeWrite.ts b/src/serialization/types/TextInputNodeWrite.ts new file mode 100644 index 00000000..737b37a0 --- /dev/null +++ b/src/serialization/types/TextInputNodeWrite.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; + +export const TextInputNodeWrite: core.serialization.ObjectSchema< + serializers.TextInputNodeWrite.Raw, + Webflow.TextInputNodeWrite +> = core.serialization.object({ + nodeId: core.serialization.string(), + placeholder: core.serialization.string(), +}); + +export declare namespace TextInputNodeWrite { + export interface Raw { + nodeId: string; + placeholder: string; + } +} diff --git a/src/serialization/types/TextNode.ts b/src/serialization/types/TextNode.ts index 44e7eac9..b0cca75c 100644 --- a/src/serialization/types/TextNode.ts +++ b/src/serialization/types/TextNode.ts @@ -5,16 +5,19 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; +import { TextNodeText } from "./TextNodeText"; export const TextNode: core.serialization.ObjectSchema = core.serialization.object({ - nodeId: core.serialization.string(), - text: core.serialization.string(), + id: core.serialization.string(), + text: TextNodeText, + attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), }); export declare namespace TextNode { export interface Raw { - nodeId: string; - text: string; + id: string; + text: TextNodeText.Raw; + attributes?: Record | null; } } diff --git a/src/serialization/types/TextInput.ts b/src/serialization/types/TextNodeWrite.ts similarity index 60% rename from src/serialization/types/TextInput.ts rename to src/serialization/types/TextNodeWrite.ts index 688c190f..ab1d060e 100644 --- a/src/serialization/types/TextInput.ts +++ b/src/serialization/types/TextNodeWrite.ts @@ -6,15 +6,15 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -export const TextInput: core.serialization.ObjectSchema = +export const TextNodeWrite: core.serialization.ObjectSchema = core.serialization.object({ nodeId: core.serialization.string(), - placeholder: core.serialization.string(), + text: core.serialization.string(), }); -export declare namespace TextInput { +export declare namespace TextNodeWrite { export interface Raw { nodeId: string; - placeholder: string; + text: string; } } diff --git a/src/serialization/types/TriggerType.ts b/src/serialization/types/TriggerType.ts index 23b39f06..b3c9eb26 100644 --- a/src/serialization/types/TriggerType.ts +++ b/src/serialization/types/TriggerType.ts @@ -22,6 +22,7 @@ export const TriggerType: core.serialization.Schema = core.serialization.object({ + id: core.serialization.string().optional(), + name: core.serialization.string().optional(), + type: core.serialization.stringLiteral("cms").optional(), + restricted: core.serialization.boolean().optional(), +}); + +export declare namespace WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess { + export interface Raw { + id?: string | null; + name?: string | null; + type?: "cms" | null; + restricted?: boolean | null; + } +} diff --git a/src/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts b/src/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts index c8d90a28..aec1001e 100644 --- a/src/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts +++ b/src/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.ts @@ -9,8 +9,8 @@ import * as core from "../../core"; export const WorkspaceAuditLogItemPayloadSiteMembershipMethod: core.serialization.Schema< serializers.WorkspaceAuditLogItemPayloadSiteMembershipMethod.Raw, Webflow.WorkspaceAuditLogItemPayloadSiteMembershipMethod -> = core.serialization.enum_(["sso", "invite", "scim", "dashboard", "admin"]); +> = core.serialization.enum_(["sso", "invite", "scim", "dashboard", "admin", "access_request"]); export declare namespace WorkspaceAuditLogItemPayloadSiteMembershipMethod { - export type Raw = "sso" | "invite" | "scim" | "dashboard" | "admin"; + export type Raw = "sso" | "invite" | "scim" | "dashboard" | "admin" | "access_request"; } diff --git a/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.ts b/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.ts new file mode 100644 index 00000000..eae9726b --- /dev/null +++ b/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; + +export const WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem: core.serialization.ObjectSchema< + serializers.WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.Raw, + Webflow.WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem +> = core.serialization.object({ + id: core.serialization.string().optional(), + email: core.serialization.string().optional(), +}); + +export declare namespace WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem { + export interface Raw { + id?: string | null; + email?: string | null; + } +} diff --git a/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts b/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts index 17a5815e..6b07d19c 100644 --- a/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts +++ b/src/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.ts @@ -9,8 +9,8 @@ import * as core from "../../core"; export const WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod: core.serialization.Schema< serializers.WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.Raw, Webflow.WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod -> = core.serialization.enum_(["sso", "dashboard", "admin"]); +> = core.serialization.enum_(["sso", "dashboard", "admin", "access_request"]); export declare namespace WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod { - export type Raw = "sso" | "dashboard" | "admin"; + export type Raw = "sso" | "dashboard" | "admin" | "access_request"; } diff --git a/src/serialization/types/WorkspaceInvitation.ts b/src/serialization/types/WorkspaceInvitation.ts index da3e4921..14fc0ed4 100644 --- a/src/serialization/types/WorkspaceInvitation.ts +++ b/src/serialization/types/WorkspaceInvitation.ts @@ -8,6 +8,7 @@ import * as core from "../../core"; import { WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser } from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser"; import { WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod } from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod"; import { WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType } from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType"; +import { WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem } from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem"; export const WorkspaceInvitation: core.serialization.ObjectSchema< serializers.WorkspaceInvitation.Raw, @@ -18,6 +19,7 @@ export const WorkspaceInvitation: core.serialization.ObjectSchema< userType: WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.optional(), roleName: core.serialization.string().optional(), previousRoleName: core.serialization.string().optional(), + targetUsers: core.serialization.list(WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem).optional(), }); export declare namespace WorkspaceInvitation { @@ -27,5 +29,6 @@ export declare namespace WorkspaceInvitation { userType?: WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.Raw | null; roleName?: string | null; previousRoleName?: string | null; + targetUsers?: WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.Raw[] | null; } } diff --git a/src/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.ts b/src/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.ts index 1b045acc..3e1feda3 100644 --- a/src/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.ts +++ b/src/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.ts @@ -15,8 +15,15 @@ export const WorkspaceInvitationAuditLogItemEventSubType: core.serialization.Sch "invite_updated", "invite_canceled", "invite_declined", + "access_request_accepted", ]); export declare namespace WorkspaceInvitationAuditLogItemEventSubType { - export type Raw = "invite_sent" | "invite_accepted" | "invite_updated" | "invite_canceled" | "invite_declined"; + export type Raw = + | "invite_sent" + | "invite_accepted" + | "invite_updated" + | "invite_canceled" + | "invite_declined" + | "access_request_accepted"; } diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 05a25767..226d0e81 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -34,12 +34,14 @@ export * from "./WorkspaceAuditLogItemPayloadSiteMembershipSite"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipTargetUser"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipMethod"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipUserType"; +export * from "./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess"; export * from "./SiteMembership"; export * from "./SiteMembershipAuditLogItemEventSubType"; export * from "./SiteMembershipAuditLogItem"; export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser"; export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod"; export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType"; +export * from "./WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem"; export * from "./WorkspaceInvitation"; export * from "./WorkspaceInvitationAuditLogItemEventSubType"; export * from "./WorkspaceInvitationAuditLogItem"; @@ -111,28 +113,28 @@ export * from "./PageOpenGraph"; export * from "./Page"; export * from "./PageList"; export * from "./TextNodeText"; -export * from "./TextNodeDom"; +export * from "./TextNode"; export * from "./ImageNodeImage"; -export * from "./ImageNodeDom"; +export * from "./ImageNode"; export * from "./Text"; export * from "./ComponentPropertyType"; export * from "./ComponentProperty"; -export * from "./ComponentNodeDom"; -export * from "./TextInputNodeDom"; +export * from "./ComponentNode"; +export * from "./TextInputNode"; export * from "./SelectNodeChoicesItem"; -export * from "./SelectNodeDom"; -export * from "./SubmitButtonNodeDom"; -export * from "./SearchButtonNodeDom"; +export * from "./SelectNode"; +export * from "./SubmitButtonNode"; +export * from "./SearchButtonNode"; export * from "./Node"; export * from "./Dom"; -export * from "./TextNode"; +export * from "./TextNodeWrite"; export * from "./ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem"; -export * from "./ComponentInstance"; +export * from "./ComponentInstanceNodePropertyOverridesWrite"; export * from "./SelectNodeWriteChoicesItem"; export * from "./Select"; -export * from "./TextInput"; -export * from "./SubmitButton"; -export * from "./SearchButton"; +export * from "./TextInputNodeWrite"; +export * from "./SubmitButtonNodeWrite"; +export * from "./SearchButtonNodeWrite"; export * from "./Component"; export * from "./ComponentList"; export * from "./ComponentDom"; @@ -239,19 +241,14 @@ export * from "./NewOrder"; export * from "./UpdatedOrder"; export * from "./SingleLocaleCreatedPayloadFieldData"; export * from "./SingleLocaleCreatedPayload"; -export * from "./LocalizedItem"; -export * from "./MultiLocaleCreatedPayload"; -export * from "./CollectionItemCreatedPayload"; export * from "./CollectionItemCreated"; -export * from "./SingleLocaleChangedPayloadFieldData"; -export * from "./SingleLocaleChangedPayload"; -export * from "./MultiLocaleChangedPayloadFieldData"; -export * from "./MultiLocaleChangedPayload"; -export * from "./CollectionItemChangedPayload"; export * from "./CollectionItemChanged"; export * from "./CollectionItemRemovedPayloadFieldData"; export * from "./CollectionItemRemovedPayload"; export * from "./CollectionItemRemoved"; +export * from "./PayloadFieldData"; +export * from "./Payload"; +export * from "./CollectionItemPublished"; export * from "./CollectionItemUnpublishedPayloadFieldData"; export * from "./CollectionItemUnpublishedPayload"; export * from "./CollectionItemUnpublished"; diff --git a/tests/wire/accessGroups.test.ts b/tests/wire/accessGroups.test.ts index 3874beee..808ca1e2 100644 --- a/tests/wire/accessGroups.test.ts +++ b/tests/wire/accessGroups.test.ts @@ -10,13 +10,7 @@ describe("AccessGroups", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -49,7 +43,11 @@ describe("AccessGroups", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.accessGroups.list("580e63e98c9a982ac9b8b741"); + const response = await client.accessGroups.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + sort: "CreatedOn", + }); expect(response).toEqual({ count: 1, limit: 10, diff --git a/tests/wire/assets.test.ts b/tests/wire/assets.test.ts index a93ca8e7..bdcc5980 100644 --- a/tests/wire/assets.test.ts +++ b/tests/wire/assets.test.ts @@ -10,13 +10,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -84,7 +78,10 @@ describe("Assets", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.assets.list("580e63e98c9a982ac9b8b741"); + const response = await client.assets.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + }); expect(response).toEqual({ assets: [ { @@ -152,13 +149,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { fileName: "file.png", fileHash: "3c7d87c9575702bc3b1e991f4d3c638e" }; const rawResponseBody = { @@ -234,13 +225,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -308,13 +293,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server.mockEndpoint().delete("/assets/580e63fc8c9a982ac9b8b745").respondWith().statusCode(200).build(); @@ -327,13 +306,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -402,13 +375,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -456,13 +423,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { displayName: "my asset folder" }; const rawResponseBody = { @@ -501,13 +462,7 @@ describe("Assets", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { diff --git a/tests/wire/collections.test.ts b/tests/wire/collections.test.ts index fd887cef..e5f88e65 100644 --- a/tests/wire/collections.test.ts +++ b/tests/wire/collections.test.ts @@ -10,13 +10,7 @@ describe("Collections", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -90,13 +84,7 @@ describe("Collections", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { displayName: "Blog Posts", @@ -236,13 +224,7 @@ describe("Collections", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -580,13 +562,7 @@ describe("Collections", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server.mockEndpoint().delete("/collections/580e63fc8c9a982ac9b8b745").respondWith().statusCode(200).build(); diff --git a/tests/wire/collections/fields.test.ts b/tests/wire/collections/fields.test.ts index 2363c952..6e27aaf6 100644 --- a/tests/wire/collections/fields.test.ts +++ b/tests/wire/collections/fields.test.ts @@ -10,13 +10,7 @@ describe("Fields", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { id: "562ac0395358780a1f5e6fbc", @@ -65,13 +59,7 @@ describe("Fields", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server @@ -89,13 +77,7 @@ describe("Fields", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { isRequired: false, diff --git a/tests/wire/collections/items.test.ts b/tests/wire/collections/items.test.ts index 121c57e6..e3500c2d 100644 --- a/tests/wire/collections/items.test.ts +++ b/tests/wire/collections/items.test.ts @@ -10,13 +10,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -52,7 +46,15 @@ describe("Items", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.collections.items.listItems("580e63fc8c9a982ac9b8b745"); + const response = await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", { + cmsLocaleId: "cmsLocaleId", + offset: 1.1, + limit: 1.1, + name: "name", + slug: "slug", + sortBy: "lastPublished", + sortOrder: "asc", + }); expect(response).toEqual({ items: [ { @@ -94,18 +96,12 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; const rawResponseBody = { id: "42b720ef280c7a7a3be8cabe", @@ -115,7 +111,7 @@ describe("Items", () => { createdOn: "2022-11-17T17:11:57.148Z", isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; server .mockEndpoint() @@ -127,12 +123,13 @@ describe("Items", () => { .build(); const response = await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }); @@ -145,8 +142,8 @@ describe("Items", () => { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }); }); @@ -155,13 +152,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { items: [{ id: "580e64008c9a982ac9b8b754" }] }; @@ -187,13 +178,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { items: [ @@ -274,6 +259,7 @@ describe("Items", () => { .build(); const response = await client.collections.items.updateItems("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, items: [ { id: "66f6ed9576ddacf3149d5ea6", @@ -376,13 +362,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -418,7 +398,15 @@ describe("Items", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745"); + const response = await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", { + cmsLocaleId: "cmsLocaleId", + offset: 1.1, + limit: 1.1, + name: "name", + slug: "slug", + sortBy: "lastPublished", + sortOrder: "asc", + }); expect(response).toEqual({ items: [ { @@ -460,18 +448,12 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; const rawResponseBody = { id: "42b720ef280c7a7a3be8cabe", @@ -481,7 +463,7 @@ describe("Items", () => { createdOn: "2022-11-17T17:11:57.148Z", isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; server .mockEndpoint() @@ -493,12 +475,13 @@ describe("Items", () => { .build(); const response = await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }); @@ -511,8 +494,8 @@ describe("Items", () => { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }); }); @@ -521,13 +504,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { items: [{ id: "580e64008c9a982ac9b8b754" }] }; @@ -553,13 +530,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { items: [ @@ -639,6 +610,7 @@ describe("Items", () => { .build(); const response = await client.collections.items.updateItemsLive("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, items: [ { id: "66f6ed9576ddacf3149d5ea6", @@ -736,13 +708,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], @@ -770,6 +736,7 @@ describe("Items", () => { .build(); const response = await client.collections.items.createItems("580e63fc8c9a982ac9b8b745", { + skipInvalidFiles: true, cmsLocaleIds: ["66f6e966c9e1dc700a857ca3", "66f6e966c9e1dc700a857ca4", "66f6e966c9e1dc700a857ca5"], isArchived: false, isDraft: false, @@ -797,13 +764,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -814,7 +775,7 @@ describe("Items", () => { createdOn: "2022-11-17T17:11:57.148Z", isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; server .mockEndpoint() @@ -824,7 +785,13 @@ describe("Items", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); + const response = await client.collections.items.getItem( + "580e63fc8c9a982ac9b8b745", + "580e64008c9a982ac9b8b754", + { + cmsLocaleId: "cmsLocaleId", + }, + ); expect(response).toEqual({ id: "42b720ef280c7a7a3be8cabe", cmsLocaleId: "653ad57de882f528b32e810e", @@ -834,8 +801,8 @@ describe("Items", () => { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }); }); @@ -844,13 +811,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server @@ -863,6 +824,9 @@ describe("Items", () => { const response = await client.collections.items.deleteItem( "580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", + { + cmsLocaleId: "cmsLocaleId", + }, ); expect(response).toEqual(undefined); }); @@ -871,18 +835,12 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; const rawResponseBody = { id: "42b720ef280c7a7a3be8cabe", @@ -892,7 +850,7 @@ describe("Items", () => { createdOn: "2022-11-17T17:11:57.148Z", isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; server .mockEndpoint() @@ -907,12 +865,13 @@ describe("Items", () => { "580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }, @@ -926,8 +885,8 @@ describe("Items", () => { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }); }); @@ -936,13 +895,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -953,7 +906,7 @@ describe("Items", () => { createdOn: "2022-11-17T17:11:57.148Z", isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; server .mockEndpoint() @@ -966,6 +919,9 @@ describe("Items", () => { const response = await client.collections.items.getItemLive( "580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", + { + cmsLocaleId: "cmsLocaleId", + }, ); expect(response).toEqual({ id: "42b720ef280c7a7a3be8cabe", @@ -976,8 +932,8 @@ describe("Items", () => { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }); }); @@ -986,13 +942,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server @@ -1005,6 +955,9 @@ describe("Items", () => { const response = await client.collections.items.deleteItemLive( "580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", + { + cmsLocaleId: "cmsLocaleId", + }, ); expect(response).toEqual(undefined); }); @@ -1013,18 +966,12 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; const rawResponseBody = { id: "42b720ef280c7a7a3be8cabe", @@ -1034,7 +981,7 @@ describe("Items", () => { createdOn: "2022-11-17T17:11:57.148Z", isArchived: false, isDraft: false, - fieldData: { name: "Pan Galactic Gargle Blaster Recipe", slug: "pan-galactic-gargle-blaster" }, + fieldData: { name: "The Hitchhiker's Guide to the Galaxy", slug: "hitchhikers-guide-to-the-galaxy" }, }; server .mockEndpoint() @@ -1049,12 +996,13 @@ describe("Items", () => { "580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + skipInvalidFiles: true, body: { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }, }, @@ -1068,8 +1016,8 @@ describe("Items", () => { isArchived: false, isDraft: false, fieldData: { - name: "Pan Galactic Gargle Blaster Recipe", - slug: "pan-galactic-gargle-blaster", + name: "The Hitchhiker's Guide to the Galaxy", + slug: "hitchhikers-guide-to-the-galaxy", }, }); }); @@ -1078,13 +1026,7 @@ describe("Items", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { itemIds: ["643fd856d66b6528195ee2ca", "643fd856d66b6528195ee2cb", "643fd856d66b6528195ee2cc"], diff --git a/tests/wire/components.test.ts b/tests/wire/components.test.ts index f93ef8a3..91326143 100644 --- a/tests/wire/components.test.ts +++ b/tests/wire/components.test.ts @@ -10,13 +10,7 @@ describe("Components", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -50,6 +44,8 @@ describe("Components", () => { const response = await client.components.list("580e63e98c9a982ac9b8b741", { branchId: "68026fa68ef6dc744c75b833", + limit: 1.1, + offset: 1.1, }); expect(response).toEqual({ components: [ @@ -90,13 +86,7 @@ describe("Components", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -137,6 +127,8 @@ describe("Components", () => { { localeId: "65427cf400e02b306eaa04a0", branchId: "68026fa68ef6dc744c75b833", + limit: 1.1, + offset: 1.1, }, ); expect(response).toEqual({ @@ -219,13 +211,7 @@ describe("Components", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { nodes: [ @@ -333,13 +319,7 @@ describe("Components", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -374,6 +354,8 @@ describe("Components", () => { { localeId: "65427cf400e02b306eaa04a0", branchId: "68026fa68ef6dc744c75b833", + limit: 1.1, + offset: 1.1, }, ); expect(response).toEqual({ @@ -408,13 +390,7 @@ describe("Components", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { properties: [ diff --git a/tests/wire/ecommerce.test.ts b/tests/wire/ecommerce.test.ts index 5e239d8e..0b004ea8 100644 --- a/tests/wire/ecommerce.test.ts +++ b/tests/wire/ecommerce.test.ts @@ -10,13 +10,7 @@ describe("Ecommerce", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { diff --git a/tests/wire/forms.test.ts b/tests/wire/forms.test.ts index d700e9f7..cb203a6d 100644 --- a/tests/wire/forms.test.ts +++ b/tests/wire/forms.test.ts @@ -10,13 +10,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -71,7 +65,10 @@ describe("Forms", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.forms.list("580e63e98c9a982ac9b8b741"); + const response = await client.forms.list("580e63e98c9a982ac9b8b741", { + limit: 1.1, + offset: 1.1, + }); expect(response).toEqual({ forms: [ { @@ -137,13 +134,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -217,13 +208,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -255,7 +240,10 @@ describe("Forms", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.forms.listSubmissions("580e63e98c9a982ac9b8b741"); + const response = await client.forms.listSubmissions("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + }); expect(response).toEqual({ formSubmissions: [ { @@ -293,13 +281,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -336,13 +318,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server @@ -360,13 +336,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -404,13 +374,7 @@ describe("Forms", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -444,6 +408,8 @@ describe("Forms", () => { const response = await client.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", { elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0", + offset: 1.1, + limit: 1.1, }); expect(response).toEqual({ formSubmissions: [ diff --git a/tests/wire/inventory.test.ts b/tests/wire/inventory.test.ts index f04ae495..c64b448f 100644 --- a/tests/wire/inventory.test.ts +++ b/tests/wire/inventory.test.ts @@ -10,13 +10,7 @@ describe("Inventory", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { id: "5bfedb42bab0ad90fa7dad39", quantity: 100, inventoryType: "finite" }; @@ -40,13 +34,7 @@ describe("Inventory", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { inventoryType: "infinite" }; const rawResponseBody = { id: "5bfedb42bab0ad90fa7dad39", quantity: 100, inventoryType: "finite" }; diff --git a/tests/wire/orders.test.ts b/tests/wire/orders.test.ts index 685f5e5c..e21f8ddc 100644 --- a/tests/wire/orders.test.ts +++ b/tests/wire/orders.test.ts @@ -10,13 +10,7 @@ describe("Orders", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -28,9 +22,9 @@ describe("Orders", () => { "Customer requested gift wrapping and a personalized note saying: Happy Birthday, Ford! 🎉 Please ensure the item is packed with extra bubble wrap for safe transit.", orderComment: 'Please gift wrap with a personal note saying "Happy Birthday, Ford! 🎉', acceptedOn: "2024-04-10T13:16:21Z", - customerPaid: { unit: "USD", value: "5892", string: " 211.55 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 200.89 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 4.23 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 211.55 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 200.89 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 4.23 USD" }, allAddresses: [ { type: "billing", @@ -81,7 +75,7 @@ describe("Orders", () => { purchasedItems: [ { count: 2, - rowTotal: { unit: "USD", value: "5892", string: " 111.22 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 111.22 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -92,7 +86,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -100,7 +94,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 83.09 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 83.09 USD" }, productId: "66072fb61b89448912e2678b", productName: "Incredible Bronze Towels", productSlug: "incredible-bronze-towels", @@ -111,7 +105,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e26729_image16.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 83.09 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 83.09 USD" }, width: 19, height: 72, length: 18, @@ -142,7 +136,7 @@ describe("Orders", () => { type: "tax", name: "State Taxes", description: "CA Taxes (6.25%)", - price: { unit: "USD", value: "5892", string: "3.44" }, + price: { unit: "USD", value: "5892", string: "$3.44" }, }, ], }, @@ -161,9 +155,9 @@ describe("Orders", () => { orderComment: "", acceptedOn: "2024-03-29T21:29:21Z", refundedOn: "2024-04-08T18:25:04Z", - customerPaid: { unit: "USD", value: "5892", string: " 118.73 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 112.62 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 2.37 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -213,7 +207,7 @@ describe("Orders", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 55.61 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -224,7 +218,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -232,7 +226,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 53.44 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -243,7 +237,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2671e_image2.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 53.44 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -272,28 +266,28 @@ describe("Orders", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: " 109.05 USD" }, + subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, extras: [ { type: "tax", name: "State Taxes", description: "NY Taxes (4.00%)", - price: { unit: "USD", value: "5892", string: " 4.36 USD" }, + price: { unit: "USD", value: "5892", string: "$ 4.36 USD" }, }, { type: "tax", name: "City Taxes", description: "NEW YORK Taxes (4.88%)", - price: { unit: "USD", value: "5892", string: " 5.32 USD" }, + price: { unit: "USD", value: "5892", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: " 0.00 USD" }, + price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: " 118.73 USD" }, + total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -314,7 +308,11 @@ describe("Orders", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.orders.list("580e63e98c9a982ac9b8b741"); + const response = await client.orders.list("580e63e98c9a982ac9b8b741", { + status: "pending", + offset: 1.1, + limit: 1.1, + }); expect(response).toEqual({ orders: [ { @@ -327,17 +325,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 211.55 USD", + string: "$ 211.55 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 200.89 USD", + string: "$ 200.89 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 4.23 USD", + string: "$ 4.23 USD", }, allAddresses: [ { @@ -395,7 +393,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 111.22 USD", + string: "$ 111.22 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -410,7 +408,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -422,7 +420,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 83.09 USD", + string: "$ 83.09 USD", }, productId: "66072fb61b89448912e2678b", productName: "Incredible Bronze Towels", @@ -437,7 +435,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 83.09 USD", + string: "$ 83.09 USD", }, width: 19, height: 72, @@ -481,7 +479,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: "3.44", + string: "$3.44", }, }, ], @@ -504,17 +502,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 112.62 USD", + string: "$ 112.62 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 2.37 USD", + string: "$ 2.37 USD", }, allAddresses: [ { @@ -571,7 +569,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -586,7 +584,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -598,7 +596,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", @@ -613,7 +611,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, weight: 38, width: 76, @@ -655,7 +653,7 @@ describe("Orders", () => { subtotal: { unit: "USD", value: "5892", - string: " 109.05 USD", + string: "$ 109.05 USD", }, extras: [ { @@ -665,7 +663,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 4.36 USD", + string: "$ 4.36 USD", }, }, { @@ -675,7 +673,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 5.32 USD", + string: "$ 5.32 USD", }, }, { @@ -685,14 +683,14 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 0.00 USD", + string: "$ 0.00 USD", }, }, ], total: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, }, downloadFiles: [ @@ -716,13 +714,7 @@ describe("Orders", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -737,9 +729,9 @@ describe("Orders", () => { disputedOn: "2024-03-29T21:29:21Z", disputeUpdatedOn: "2024-03-29T21:29:21Z", disputeLastStatus: "charge_refunded", - customerPaid: { unit: "USD", value: "5892", string: " 118.73 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 112.62 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 2.37 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -793,7 +785,7 @@ describe("Orders", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 55.61 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -804,7 +796,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -812,7 +804,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 53.44 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -823,7 +815,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2671e_image2.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 53.44 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -847,28 +839,28 @@ describe("Orders", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: " 109.05 USD" }, + subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, extras: [ { type: "tax", name: "State Taxes", description: "NY Taxes (4.00%)", - price: { unit: "USD", value: "5892", string: " 4.36 USD" }, + price: { unit: "USD", value: "5892", string: "$ 4.36 USD" }, }, { type: "tax", name: "City Taxes", description: "NEW YORK Taxes (4.88%)", - price: { unit: "USD", value: "5892", string: " 5.32 USD" }, + price: { unit: "USD", value: "5892", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: " 0.00 USD" }, + price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: " 118.73 USD" }, + total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -902,17 +894,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 112.62 USD", + string: "$ 112.62 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 2.37 USD", + string: "$ 2.37 USD", }, allAddresses: [ { @@ -973,7 +965,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -988,7 +980,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -1000,7 +992,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", @@ -1015,7 +1007,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, weight: 38, width: 76, @@ -1057,7 +1049,7 @@ describe("Orders", () => { subtotal: { unit: "USD", value: "5892", - string: " 109.05 USD", + string: "$ 109.05 USD", }, extras: [ { @@ -1067,7 +1059,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 4.36 USD", + string: "$ 4.36 USD", }, }, { @@ -1077,7 +1069,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 5.32 USD", + string: "$ 5.32 USD", }, }, { @@ -1087,14 +1079,14 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 0.00 USD", + string: "$ 0.00 USD", }, }, ], total: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, }, downloadFiles: [ @@ -1111,13 +1103,7 @@ describe("Orders", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -1132,9 +1118,9 @@ describe("Orders", () => { disputedOn: "2024-03-29T21:29:21Z", disputeUpdatedOn: "2024-03-29T21:29:21Z", disputeLastStatus: "charge_refunded", - customerPaid: { unit: "USD", value: "5892", string: " 118.73 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 112.62 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 2.37 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -1188,7 +1174,7 @@ describe("Orders", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 55.61 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -1199,7 +1185,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -1207,7 +1193,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 53.44 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -1218,7 +1204,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2671e_image2.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 53.44 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -1242,28 +1228,28 @@ describe("Orders", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: " 109.05 USD" }, + subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, extras: [ { type: "tax", name: "State Taxes", description: "NY Taxes (4.00%)", - price: { unit: "USD", value: "5892", string: " 4.36 USD" }, + price: { unit: "USD", value: "5892", string: "$ 4.36 USD" }, }, { type: "tax", name: "City Taxes", description: "NEW YORK Taxes (4.88%)", - price: { unit: "USD", value: "5892", string: " 5.32 USD" }, + price: { unit: "USD", value: "5892", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: " 0.00 USD" }, + price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: " 118.73 USD" }, + total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -1298,17 +1284,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 112.62 USD", + string: "$ 112.62 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 2.37 USD", + string: "$ 2.37 USD", }, allAddresses: [ { @@ -1369,7 +1355,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -1384,7 +1370,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -1396,7 +1382,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", @@ -1411,7 +1397,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, weight: 38, width: 76, @@ -1453,7 +1439,7 @@ describe("Orders", () => { subtotal: { unit: "USD", value: "5892", - string: " 109.05 USD", + string: "$ 109.05 USD", }, extras: [ { @@ -1463,7 +1449,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 4.36 USD", + string: "$ 4.36 USD", }, }, { @@ -1473,7 +1459,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 5.32 USD", + string: "$ 5.32 USD", }, }, { @@ -1483,14 +1469,14 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 0.00 USD", + string: "$ 0.00 USD", }, }, ], total: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, }, downloadFiles: [ @@ -1507,13 +1493,7 @@ describe("Orders", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -1528,9 +1508,9 @@ describe("Orders", () => { disputedOn: "2024-03-29T21:29:21Z", disputeUpdatedOn: "2024-03-29T21:29:21Z", disputeLastStatus: "charge_refunded", - customerPaid: { unit: "USD", value: "5892", string: " 118.73 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 112.62 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 2.37 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -1584,7 +1564,7 @@ describe("Orders", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 55.61 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -1595,7 +1575,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -1603,7 +1583,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 53.44 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -1614,7 +1594,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2671e_image2.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 53.44 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -1638,28 +1618,28 @@ describe("Orders", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: " 109.05 USD" }, + subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, extras: [ { type: "tax", name: "State Taxes", description: "NY Taxes (4.00%)", - price: { unit: "USD", value: "5892", string: " 4.36 USD" }, + price: { unit: "USD", value: "5892", string: "$ 4.36 USD" }, }, { type: "tax", name: "City Taxes", description: "NEW YORK Taxes (4.88%)", - price: { unit: "USD", value: "5892", string: " 5.32 USD" }, + price: { unit: "USD", value: "5892", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: " 0.00 USD" }, + price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: " 118.73 USD" }, + total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -1694,17 +1674,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 112.62 USD", + string: "$ 112.62 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 2.37 USD", + string: "$ 2.37 USD", }, allAddresses: [ { @@ -1765,7 +1745,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -1780,7 +1760,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -1792,7 +1772,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", @@ -1807,7 +1787,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, weight: 38, width: 76, @@ -1849,7 +1829,7 @@ describe("Orders", () => { subtotal: { unit: "USD", value: "5892", - string: " 109.05 USD", + string: "$ 109.05 USD", }, extras: [ { @@ -1859,7 +1839,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 4.36 USD", + string: "$ 4.36 USD", }, }, { @@ -1869,7 +1849,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 5.32 USD", + string: "$ 5.32 USD", }, }, { @@ -1879,14 +1859,14 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 0.00 USD", + string: "$ 0.00 USD", }, }, ], total: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, }, downloadFiles: [ @@ -1903,13 +1883,7 @@ describe("Orders", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -1924,9 +1898,9 @@ describe("Orders", () => { disputedOn: "2024-03-29T21:29:21Z", disputeUpdatedOn: "2024-03-29T21:29:21Z", disputeLastStatus: "charge_refunded", - customerPaid: { unit: "USD", value: "5892", string: " 118.73 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 112.62 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 2.37 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -1980,7 +1954,7 @@ describe("Orders", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 55.61 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -1991,7 +1965,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -1999,7 +1973,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 53.44 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -2010,7 +1984,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2671e_image2.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 53.44 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -2034,28 +2008,28 @@ describe("Orders", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: " 109.05 USD" }, + subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, extras: [ { type: "tax", name: "State Taxes", description: "NY Taxes (4.00%)", - price: { unit: "USD", value: "5892", string: " 4.36 USD" }, + price: { unit: "USD", value: "5892", string: "$ 4.36 USD" }, }, { type: "tax", name: "City Taxes", description: "NEW YORK Taxes (4.88%)", - price: { unit: "USD", value: "5892", string: " 5.32 USD" }, + price: { unit: "USD", value: "5892", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: " 0.00 USD" }, + price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: " 118.73 USD" }, + total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -2089,17 +2063,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 112.62 USD", + string: "$ 112.62 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 2.37 USD", + string: "$ 2.37 USD", }, allAddresses: [ { @@ -2160,7 +2134,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -2175,7 +2149,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -2187,7 +2161,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", @@ -2202,7 +2176,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, weight: 38, width: 76, @@ -2244,7 +2218,7 @@ describe("Orders", () => { subtotal: { unit: "USD", value: "5892", - string: " 109.05 USD", + string: "$ 109.05 USD", }, extras: [ { @@ -2254,7 +2228,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 4.36 USD", + string: "$ 4.36 USD", }, }, { @@ -2264,7 +2238,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 5.32 USD", + string: "$ 5.32 USD", }, }, { @@ -2274,14 +2248,14 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 0.00 USD", + string: "$ 0.00 USD", }, }, ], total: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, }, downloadFiles: [ @@ -2298,13 +2272,7 @@ describe("Orders", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -2319,9 +2287,9 @@ describe("Orders", () => { disputedOn: "2024-03-29T21:29:21Z", disputeUpdatedOn: "2024-03-29T21:29:21Z", disputeLastStatus: "charge_refunded", - customerPaid: { unit: "USD", value: "5892", string: " 118.73 USD" }, - netAmount: { unit: "USD", value: "5892", string: " 112.62 USD" }, - applicationFee: { unit: "USD", value: "5892", string: " 2.37 USD" }, + customerPaid: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "5892", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "5892", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -2375,7 +2343,7 @@ describe("Orders", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 55.61 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -2386,7 +2354,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2672c_image14.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 55.61 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -2394,7 +2362,7 @@ describe("Orders", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: " 53.44 USD" }, + rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -2405,7 +2373,7 @@ describe("Orders", () => { variantImage: { url: "https://dev-assets.website-files.com/66072f39417a2a35b2589cc7/66072fb51b89448912e2671e_image2.jpeg", }, - variantPrice: { unit: "USD", value: "5892", string: " 53.44 USD" }, + variantPrice: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -2429,28 +2397,28 @@ describe("Orders", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: " 109.05 USD" }, + subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, extras: [ { type: "tax", name: "State Taxes", description: "NY Taxes (4.00%)", - price: { unit: "USD", value: "5892", string: " 4.36 USD" }, + price: { unit: "USD", value: "5892", string: "$ 4.36 USD" }, }, { type: "tax", name: "City Taxes", description: "NEW YORK Taxes (4.88%)", - price: { unit: "USD", value: "5892", string: " 5.32 USD" }, + price: { unit: "USD", value: "5892", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: " 0.00 USD" }, + price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: " 118.73 USD" }, + total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -2485,17 +2453,17 @@ describe("Orders", () => { customerPaid: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, netAmount: { unit: "USD", value: "5892", - string: " 112.62 USD", + string: "$ 112.62 USD", }, applicationFee: { unit: "USD", value: "5892", - string: " 2.37 USD", + string: "$ 2.37 USD", }, allAddresses: [ { @@ -2556,7 +2524,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", @@ -2571,7 +2539,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 55.61 USD", + string: "$ 55.61 USD", }, weight: 11, width: 82, @@ -2583,7 +2551,7 @@ describe("Orders", () => { rowTotal: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", @@ -2598,7 +2566,7 @@ describe("Orders", () => { variantPrice: { unit: "USD", value: "5892", - string: " 53.44 USD", + string: "$ 53.44 USD", }, weight: 38, width: 76, @@ -2640,7 +2608,7 @@ describe("Orders", () => { subtotal: { unit: "USD", value: "5892", - string: " 109.05 USD", + string: "$ 109.05 USD", }, extras: [ { @@ -2650,7 +2618,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 4.36 USD", + string: "$ 4.36 USD", }, }, { @@ -2660,7 +2628,7 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 5.32 USD", + string: "$ 5.32 USD", }, }, { @@ -2670,14 +2638,14 @@ describe("Orders", () => { price: { unit: "USD", value: "5892", - string: " 0.00 USD", + string: "$ 0.00 USD", }, }, ], total: { unit: "USD", value: "5892", - string: " 118.73 USD", + string: "$ 118.73 USD", }, }, downloadFiles: [ diff --git a/tests/wire/pages.test.ts b/tests/wire/pages.test.ts index 608a6bf2..738c298c 100644 --- a/tests/wire/pages.test.ts +++ b/tests/wire/pages.test.ts @@ -10,13 +10,7 @@ describe("Pages", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -87,6 +81,8 @@ describe("Pages", () => { const response = await client.pages.list("580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + limit: 1.1, + offset: 1.1, }); expect(response).toEqual({ pages: [ @@ -156,13 +152,7 @@ describe("Pages", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -234,13 +224,7 @@ describe("Pages", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { title: "Guide to the Galaxy", @@ -340,13 +324,7 @@ describe("Pages", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -379,6 +357,8 @@ describe("Pages", () => { const response = await client.pages.getContent("63c720f9347c2139b248e552", { localeId: "65427cf400e02b306eaa04a0", + limit: 1.1, + offset: 1.1, }); expect(response).toEqual({ pageId: "658205daa3e8206a523b5ad4", @@ -461,13 +441,7 @@ describe("Pages", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { nodes: [ diff --git a/tests/wire/pages/scripts.test.ts b/tests/wire/pages/scripts.test.ts index 0a01749a..0ec29068 100644 --- a/tests/wire/pages/scripts.test.ts +++ b/tests/wire/pages/scripts.test.ts @@ -10,13 +10,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -53,13 +47,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { scripts: [ @@ -139,13 +127,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server diff --git a/tests/wire/products.test.ts b/tests/wire/products.test.ts index c7446010..a2296531 100644 --- a/tests/wire/products.test.ts +++ b/tests/wire/products.test.ts @@ -10,13 +10,7 @@ describe("Products", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -80,7 +74,10 @@ describe("Products", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.products.list("580e63e98c9a982ac9b8b741"); + const response = await client.products.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + }); expect(response).toEqual({ items: [ { @@ -163,13 +160,7 @@ describe("Products", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { publishStatus: "staging", @@ -415,13 +406,7 @@ describe("Products", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -562,13 +547,7 @@ describe("Products", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -645,13 +624,7 @@ describe("Products", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { skus: [ @@ -769,13 +742,7 @@ describe("Products", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { sku: { diff --git a/tests/wire/scripts.test.ts b/tests/wire/scripts.test.ts index 77ce1d7d..fc13f7c0 100644 --- a/tests/wire/scripts.test.ts +++ b/tests/wire/scripts.test.ts @@ -10,13 +10,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -104,13 +98,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { hostedLocation: "hostedLocation", @@ -159,13 +147,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { sourceCode: "alert('hello world');", version: "0.0.1", displayName: "Alert" }; const rawResponseBody = { diff --git a/tests/wire/sites.test.ts b/tests/wire/sites.test.ts index 3b95a5d8..77cf6956 100644 --- a/tests/wire/sites.test.ts +++ b/tests/wire/sites.test.ts @@ -10,13 +10,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { name: "The Hitchhiker's Guide to the Galaxy" }; const rawResponseBody = { @@ -69,13 +63,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -363,13 +351,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -483,13 +465,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server.mockEndpoint().delete("/sites/580e63e98c9a982ac9b8b741").respondWith().statusCode(200).build(); @@ -502,13 +478,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; const rawResponseBody = { @@ -623,13 +593,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -671,13 +635,7 @@ describe("Sites", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { customDomains: ["660c6449dd97ebc7346ac629", "660c6449dd97ebc7346ac62f"], diff --git a/tests/wire/sites/activityLogs.test.ts b/tests/wire/sites/activityLogs.test.ts index 6d29ec00..ac7ef3cf 100644 --- a/tests/wire/sites/activityLogs.test.ts +++ b/tests/wire/sites/activityLogs.test.ts @@ -10,13 +10,7 @@ describe("ActivityLogs", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -42,7 +36,10 @@ describe("ActivityLogs", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741"); + const response = await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741", { + limit: 1.1, + offset: 1.1, + }); expect(response).toEqual({ items: [ { diff --git a/tests/wire/sites/comments.test.ts b/tests/wire/sites/comments.test.ts index 611b819d..dc8f3bdb 100644 --- a/tests/wire/sites/comments.test.ts +++ b/tests/wire/sites/comments.test.ts @@ -10,13 +10,7 @@ describe("Comments", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -82,6 +76,10 @@ describe("Comments", () => { const response = await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + offset: 1.1, + limit: 1.1, + sortBy: "createdOn", + sortOrder: "asc", }); expect(response).toEqual({ comments: [ @@ -146,13 +144,7 @@ describe("Comments", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -185,6 +177,10 @@ describe("Comments", () => { "580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + offset: 1.1, + limit: 1.1, + sortBy: "createdOn", + sortOrder: "asc", }, ); expect(response).toEqual({ @@ -218,13 +214,7 @@ describe("Comments", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -259,6 +249,10 @@ describe("Comments", () => { "580e63e98c9a982ac9b8b741", { localeId: "65427cf400e02b306eaa04a0", + offset: 1.1, + limit: 1.1, + sortBy: "createdOn", + sortOrder: "asc", }, ); expect(response).toEqual({ diff --git a/tests/wire/sites/plans.test.ts b/tests/wire/sites/plans.test.ts index 67dbeb44..79b1be3a 100644 --- a/tests/wire/sites/plans.test.ts +++ b/tests/wire/sites/plans.test.ts @@ -10,13 +10,7 @@ describe("Plans", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { diff --git a/tests/wire/sites/redirects.test.ts b/tests/wire/sites/redirects.test.ts index 44ebfc2b..c4e19916 100644 --- a/tests/wire/sites/redirects.test.ts +++ b/tests/wire/sites/redirects.test.ts @@ -10,13 +10,7 @@ describe("Redirects", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -60,13 +54,7 @@ describe("Redirects", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { id: "42e1a2b7aa1a13f768a0042a", fromUrl: "/mostly-harmless", toUrl: "/earth" }; const rawResponseBody = { id: "42e1a2b7aa1a13f768a0042a", fromUrl: "/mostly-harmless", toUrl: "/earth" }; @@ -95,13 +83,7 @@ describe("Redirects", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -145,13 +127,7 @@ describe("Redirects", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { id: "42e1a2b7aa1a13f768a0042a", fromUrl: "/mostly-harmless", toUrl: "/earth" }; const rawResponseBody = { id: "42e1a2b7aa1a13f768a0042a", fromUrl: "/mostly-harmless", toUrl: "/earth" }; diff --git a/tests/wire/sites/robotsTxt.test.ts b/tests/wire/sites/robotsTxt.test.ts index 63a68f3e..2ad09ab6 100644 --- a/tests/wire/sites/robotsTxt.test.ts +++ b/tests/wire/sites/robotsTxt.test.ts @@ -10,13 +10,7 @@ describe("RobotsTxt", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -54,13 +48,7 @@ describe("RobotsTxt", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { rules: [ @@ -117,13 +105,7 @@ describe("RobotsTxt", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { rules: [{ userAgent: "*", allows: ["/public"], disallows: ["/bubbles"] }] }; const rawResponseBody = { @@ -170,13 +152,7 @@ describe("RobotsTxt", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { rules: [ diff --git a/tests/wire/sites/scripts.test.ts b/tests/wire/sites/scripts.test.ts index 7acd2ec8..9abcff7e 100644 --- a/tests/wire/sites/scripts.test.ts +++ b/tests/wire/sites/scripts.test.ts @@ -10,13 +10,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -69,13 +63,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { scripts: [ @@ -155,13 +143,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server @@ -179,13 +161,7 @@ describe("Scripts", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -216,7 +192,10 @@ describe("Scripts", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741"); + const response = await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + }); expect(response).toEqual({ blocks: [ { diff --git a/tests/wire/sites/wellKnown.test.ts b/tests/wire/sites/wellKnown.test.ts index a98e6fc5..2693fdb1 100644 --- a/tests/wire/sites/wellKnown.test.ts +++ b/tests/wire/sites/wellKnown.test.ts @@ -10,15 +10,14 @@ describe("WellKnown", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); - const rawRequestBody = { fileName: "fileName", fileData: "fileData" }; + const rawRequestBody = { + fileName: "apple-app-site-association.txt", + fileData: + '{\n "applinks": {\n "apps": [],\n "details": [\n {\n "appID": "ABCDE12345.com.example.app",\n "paths": [ "/*", "/some/path/*" ]\n }\n ]\n }\n}\n', + contentType: "application/json", + }; server .mockEndpoint() @@ -29,8 +28,10 @@ describe("WellKnown", () => { .build(); const response = await client.sites.wellKnown.put("580e63e98c9a982ac9b8b741", { - fileName: "fileName", - fileData: "fileData", + fileName: "apple-app-site-association.txt", + fileData: + '{\n "applinks": {\n "apps": [],\n "details": [\n {\n "appID": "ABCDE12345.com.example.app",\n "paths": [ "/*", "/some/path/*" ]\n }\n ]\n }\n}\n', + contentType: "application/json", }); expect(response).toEqual(undefined); }); @@ -39,13 +40,7 @@ describe("WellKnown", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = {}; diff --git a/tests/wire/token.test.ts b/tests/wire/token.test.ts index 9ffc3da7..6b339053 100644 --- a/tests/wire/token.test.ts +++ b/tests/wire/token.test.ts @@ -10,13 +10,7 @@ describe("Token", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -46,13 +40,7 @@ describe("Token", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { diff --git a/tests/wire/users.test.ts b/tests/wire/users.test.ts index 9f430ce7..935240c5 100644 --- a/tests/wire/users.test.ts +++ b/tests/wire/users.test.ts @@ -10,13 +10,7 @@ describe("Users", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -85,7 +79,11 @@ describe("Users", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.users.list("580e63e98c9a982ac9b8b741"); + const response = await client.users.list("580e63e98c9a982ac9b8b741", { + offset: 1.1, + limit: 1.1, + sort: "CreatedOn", + }); expect(response).toEqual({ count: 5, limit: 5, @@ -175,13 +173,7 @@ describe("Users", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -242,13 +234,7 @@ describe("Users", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server @@ -266,13 +252,7 @@ describe("Users", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { id: "6287ec36a841b25637c663df", @@ -357,13 +337,7 @@ describe("Users", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { email: "some.one@home.com", accessGroups: ["accessGroups"] }; const rawResponseBody = { diff --git a/tests/wire/webhooks.test.ts b/tests/wire/webhooks.test.ts index ddc6fb53..4f8066df 100644 --- a/tests/wire/webhooks.test.ts +++ b/tests/wire/webhooks.test.ts @@ -10,13 +10,7 @@ describe("Webhooks", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -114,13 +108,7 @@ describe("Webhooks", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawRequestBody = { id: "582266e0cd48de0f0e3c6d8b", @@ -173,13 +161,7 @@ describe("Webhooks", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -215,13 +197,7 @@ describe("Webhooks", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); server.mockEndpoint().delete("/webhooks/580e64008c9a982ac9b8b754").respondWith().statusCode(200).build(); diff --git a/tests/wire/workspaces/auditLogs.test.ts b/tests/wire/workspaces/auditLogs.test.ts index d1b554a1..92b24417 100644 --- a/tests/wire/workspaces/auditLogs.test.ts +++ b/tests/wire/workspaces/auditLogs.test.ts @@ -10,13 +10,7 @@ describe("AuditLogs", () => { const server = mockServerPool.createServer(); const client = new WebflowClient({ accessToken: "test", - environment: { - base: server.baseUrl, - dataApi: server.baseUrl, - contentDeliveryApi: server.baseUrl, - production: server.baseUrl, - cdn: server.baseUrl, - }, + environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, }); const rawResponseBody = { @@ -54,8 +48,12 @@ describe("AuditLogs", () => { .build(); const response = await client.workspaces.auditLogs.getWorkspaceAuditLogs("hitchhikers-workspace", { - from: new Date("2024-04-22T16:00:31.000Z"), - to: new Date("2024-04-22T16:00:31.000Z"), + limit: 1.1, + offset: 1.1, + sortOrder: "asc", + eventType: "user_access", + from: new Date("2025-06-22T16:00:31.000Z"), + to: new Date("2025-07-22T16:00:31.000Z"), }); expect(response).toEqual({ items: [ diff --git a/yarn.lock b/yarn.lock index 5c225517..4d2b21db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,14 +2,6 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.2.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" - integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.24" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.27.1": version "7.27.1" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be" @@ -20,38 +12,38 @@ picocolors "^1.1.1" "@babel/compat-data@^7.27.2": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.28.0.tgz#9fc6fd58c2a6a15243cd13983224968392070790" - integrity sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw== + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.28.5.tgz#a8a4962e1567121ac0b3b487f52107443b455c7f" + integrity sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.3.tgz#aceddde69c5d1def69b839d09efa3e3ff59c97cb" - integrity sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ== + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.5.tgz#4c81b35e51e1b734f510c99b07dfbc7bbbb48f7e" + integrity sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw== dependencies: - "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.27.1" - "@babel/generator" "^7.28.3" + "@babel/generator" "^7.28.5" "@babel/helper-compilation-targets" "^7.27.2" "@babel/helper-module-transforms" "^7.28.3" - "@babel/helpers" "^7.28.3" - "@babel/parser" "^7.28.3" + "@babel/helpers" "^7.28.4" + "@babel/parser" "^7.28.5" "@babel/template" "^7.27.2" - "@babel/traverse" "^7.28.3" - "@babel/types" "^7.28.2" + "@babel/traverse" "^7.28.5" + "@babel/types" "^7.28.5" + "@jridgewell/remapping" "^2.3.5" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.28.3", "@babel/generator@^7.7.2": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.3.tgz#9626c1741c650cbac39121694a0f2d7451b8ef3e" - integrity sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw== +"@babel/generator@^7.28.5", "@babel/generator@^7.7.2": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.5.tgz#712722d5e50f44d07bc7ac9fe84438742dd61298" + integrity sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ== dependencies: - "@babel/parser" "^7.28.3" - "@babel/types" "^7.28.2" + "@babel/parser" "^7.28.5" + "@babel/types" "^7.28.5" "@jridgewell/gen-mapping" "^0.3.12" "@jridgewell/trace-mapping" "^0.3.28" jsesc "^3.0.2" @@ -99,30 +91,30 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687" integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA== -"@babel/helper-validator-identifier@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8" - integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow== +"@babel/helper-validator-identifier@^7.27.1", "@babel/helper-validator-identifier@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4" + integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q== "@babel/helper-validator-option@^7.27.1": version "7.27.1" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== -"@babel/helpers@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.3.tgz#b83156c0a2232c133d1b535dd5d3452119c7e441" - integrity sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw== +"@babel/helpers@^7.28.4": + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.4.tgz#fe07274742e95bdf7cf1443593eeb8926ab63827" + integrity sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w== dependencies: "@babel/template" "^7.27.2" - "@babel/types" "^7.28.2" + "@babel/types" "^7.28.4" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.3.tgz#d2d25b814621bca5fe9d172bc93792547e7a2a71" - integrity sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.5.tgz#0b0225ee90362f030efd644e8034c99468893b08" + integrity sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ== dependencies: - "@babel/types" "^7.28.2" + "@babel/types" "^7.28.5" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -252,85 +244,68 @@ "@babel/parser" "^7.27.2" "@babel/types" "^7.27.1" -"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.3.tgz#6911a10795d2cce43ec6a28cffc440cca2593434" - integrity sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ== +"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3", "@babel/traverse@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.5.tgz#450cab9135d21a7a2ca9d2d35aa05c20e68c360b" + integrity sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ== dependencies: "@babel/code-frame" "^7.27.1" - "@babel/generator" "^7.28.3" + "@babel/generator" "^7.28.5" "@babel/helper-globals" "^7.28.0" - "@babel/parser" "^7.28.3" + "@babel/parser" "^7.28.5" "@babel/template" "^7.27.2" - "@babel/types" "^7.28.2" + "@babel/types" "^7.28.5" debug "^4.3.1" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.2", "@babel/types@^7.3.3": - version "7.28.2" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b" - integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.4", "@babel/types@^7.28.5", "@babel/types@^7.3.3": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.5.tgz#10fc405f60897c35f07e85493c932c7b5ca0592b" + integrity sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA== dependencies: "@babel/helper-string-parser" "^7.27.1" - "@babel/helper-validator-identifier" "^7.27.1" + "@babel/helper-validator-identifier" "^7.28.5" "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@bundled-es-modules/cookie@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@bundled-es-modules/cookie/-/cookie-2.0.1.tgz#b41376af6a06b3e32a15241d927b840a9b4de507" - integrity sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw== - dependencies: - cookie "^0.7.2" - -"@bundled-es-modules/statuses@^1.0.1": +"@inquirer/ansi@^1.0.1": version "1.0.1" - resolved "https://registry.yarnpkg.com/@bundled-es-modules/statuses/-/statuses-1.0.1.tgz#761d10f44e51a94902c4da48675b71a76cc98872" - integrity sha512-yn7BklA5acgcBr+7w064fGV+SGIFySjCKpqjcWgBAIfrAkY+4GQTJJHQMeT3V/sgz23VTEVV8TtOmkvJAhFVfg== - dependencies: - statuses "^2.0.1" - -"@bundled-es-modules/tough-cookie@^0.1.6": - version "0.1.6" - resolved "https://registry.yarnpkg.com/@bundled-es-modules/tough-cookie/-/tough-cookie-0.1.6.tgz#fa9cd3cedfeecd6783e8b0d378b4a99e52bde5d3" - integrity sha512-dvMHbL464C0zI+Yqxbz6kZ5TOEp7GLW+pry/RWndAR8MJQAXZ2rPmIs8tziTZjeIyhSNZgZbCePtfSbdWqStJw== - dependencies: - "@types/tough-cookie" "^4.0.5" - tough-cookie "^4.1.4" + resolved "https://registry.yarnpkg.com/@inquirer/ansi/-/ansi-1.0.1.tgz#994f7dd16a00c547a7b110e04bf4f4eca1857929" + integrity sha512-yqq0aJW/5XPhi5xOAL1xRCpe1eh8UFVgYFpFsjEqmIR8rKLyP+HINvFXwUaxYICflJrVlxnp7lLN6As735kVpw== "@inquirer/confirm@^5.0.0": - version "5.1.14" - resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.14.tgz#e6321edf51a3a5f54dc548b80ef6ba89891351ad" - integrity sha512-5yR4IBfe0kXe59r1YCTG8WXkUbl7Z35HK87Sw+WUyGD8wNUx7JvY7laahzeytyE1oLn74bQnL7hstctQxisQ8Q== + version "5.1.19" + resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.19.tgz#bf28b420898999eb7479ab55623a3fbaf1453ff4" + integrity sha512-wQNz9cfcxrtEnUyG5PndC8g3gZ7lGDBzmWiXZkX8ot3vfZ+/BLjR8EvyGX4YzQLeVqtAlY/YScZpW7CW8qMoDQ== dependencies: - "@inquirer/core" "^10.1.15" - "@inquirer/type" "^3.0.8" + "@inquirer/core" "^10.3.0" + "@inquirer/type" "^3.0.9" -"@inquirer/core@^10.1.15": - version "10.1.15" - resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.1.15.tgz#8feb69fd536786181a2b6bfb84d8674faa9d2e59" - integrity sha512-8xrp836RZvKkpNbVvgWUlxjT4CraKk2q+I3Ksy+seI2zkcE+y6wNs1BVhgcv8VyImFecUhdQrYLdW32pAjwBdA== +"@inquirer/core@^10.3.0": + version "10.3.0" + resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.3.0.tgz#342e4fd62cbd33ea62089364274995dbec1f2ffe" + integrity sha512-Uv2aPPPSK5jeCplQmQ9xadnFx2Zhj9b5Dj7bU6ZeCdDNNY11nhYy4btcSdtDguHqCT2h5oNeQTcUNSGGLA7NTA== dependencies: - "@inquirer/figures" "^1.0.13" - "@inquirer/type" "^3.0.8" - ansi-escapes "^4.3.2" + "@inquirer/ansi" "^1.0.1" + "@inquirer/figures" "^1.0.14" + "@inquirer/type" "^3.0.9" cli-width "^4.1.0" mute-stream "^2.0.0" signal-exit "^4.1.0" wrap-ansi "^6.2.0" yoctocolors-cjs "^2.1.2" -"@inquirer/figures@^1.0.13": - version "1.0.13" - resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.13.tgz#ad0afd62baab1c23175115a9b62f511b6a751e45" - integrity sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw== +"@inquirer/figures@^1.0.14": + version "1.0.14" + resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.14.tgz#12a7bfd344a83ae6cc5d6004b389ed11f6db6be4" + integrity sha512-DbFgdt+9/OZYFM+19dbpXOSeAstPy884FPy1KjDu4anWwymZeOYhMY1mdFri172htv6mvc/uvIAAi7b7tvjJBQ== -"@inquirer/type@^3.0.8": - version "3.0.8" - resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.8.tgz#efc293ba0ed91e90e6267f1aacc1c70d20b8b4e8" - integrity sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw== +"@inquirer/type@^3.0.9": + version "3.0.9" + resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.9.tgz#f7f9696e9276e4e1ae9332767afb9199992e31d9" + integrity sha512-QPaNt/nmE2bLGQa9b7wwyRJoLZ7pN6rcyXvzU0YCmivmJyq1BVo94G98tStRWkoD1RgDX5C+dPlhhHzNdu/W/w== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" @@ -548,6 +523,14 @@ "@jridgewell/sourcemap-codec" "^1.5.0" "@jridgewell/trace-mapping" "^0.3.24" +"@jridgewell/remapping@^2.3.5": + version "2.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/remapping/-/remapping-2.3.5.tgz#375c476d1972947851ba1e15ae8f123047445aa1" + integrity sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + "@jridgewell/resolve-uri@^3.1.0": version "3.1.2" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" @@ -567,17 +550,17 @@ integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": - version "0.3.30" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz#4a76c4daeee5df09f5d3940e087442fb36ce2b99" - integrity sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q== + version "0.3.31" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" + integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@mswjs/interceptors@^0.39.1": - version "0.39.6" - resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.39.6.tgz#44094a578f20da4749d1a0eaf3cdb7973604004b" - integrity sha512-bndDP83naYYkfayr/qhBHMhk0YGwS1iv6vaEGcr0SQbO0IZtbOPqjKjds/WcG+bJA+1T5vCx6kprKOzn5Bg+Vw== +"@mswjs/interceptors@^0.40.0": + version "0.40.0" + resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.40.0.tgz#1b45f215ba8c2983ed133763ca03af92896083d6" + integrity sha512-EFd6cVbHsgLa6wa4RljGj6Wk75qoHxUSyc5asLyyPSyuhIcdS2Q3Phw6ImS1q+CkALthJRShiYfKANcQMuMqsQ== dependencies: "@open-draft/deferred-promise" "^2.2.0" "@open-draft/logger" "^0.3.0" @@ -599,7 +582,7 @@ is-node-process "^1.2.0" outvariant "^1.4.0" -"@open-draft/until@^2.0.0", "@open-draft/until@^2.1.0": +"@open-draft/until@^2.0.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-2.1.0.tgz#0acf32f470af2ceaf47f095cdecd40d68666efda" integrity sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg== @@ -661,11 +644,6 @@ dependencies: "@babel/types" "^7.20.7" -"@types/cookie@^0.6.0": - version "0.6.0" - resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.6.0.tgz#eac397f28bf1d6ae0ae081363eca2f425bedf0d5" - integrity sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA== - "@types/eslint-scope@^3.7.7": version "3.7.7" resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" @@ -744,16 +722,16 @@ form-data "^4.0.4" "@types/node@*": - version "24.2.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-24.2.1.tgz#83e41543f0a518e006594bb394e2cd961de56727" - integrity sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ== + version "24.9.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.9.2.tgz#90ded2422dbfcafcf72080f28975adc21366148d" + integrity sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA== dependencies: - undici-types "~7.10.0" + undici-types "~7.16.0" "@types/node@^18.19.70": - version "18.19.122" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.122.tgz#e7358f8df7cc3f14e860198e1ca4dc2ed9a7de06" - integrity sha512-yzegtT82dwTNEe/9y+CM8cgb42WrUfMMCg2QqSddzO1J6uPmBD7qKCZ7dOHZP2Yrpm/kb0eqdNMn2MUyEiqBmA== + version "18.19.130" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.130.tgz#da4c6324793a79defb7a62cba3947ec5add00d59" + integrity sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg== dependencies: undici-types "~5.26.4" @@ -763,9 +741,9 @@ integrity sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ== "@types/readable-stream@^4.0.18": - version "4.0.21" - resolved "https://registry.yarnpkg.com/@types/readable-stream/-/readable-stream-4.0.21.tgz#716558454a5e0c3c0651520f8154efc3288f59cb" - integrity sha512-19eKVv9tugr03IgfXlA9UVUVRbW6IuqRO5B92Dl4a6pT7K8uaGrNS0GkxiZD0BOk6PLuXl5FhWl//eX/pzYdTQ== + version "4.0.22" + resolved "https://registry.yarnpkg.com/@types/readable-stream/-/readable-stream-4.0.22.tgz#882fda4f17b6580acb257df3f22ca69c05470b29" + integrity sha512-/FFhJpfCLAPwAcN3mFycNUa77ddnr8jTgF5VmSNetaemWB2cIlfCA9t0YTM3JAT0wOcv8D4tjPo7pkDhK3EJIg== dependencies: "@types/node" "*" @@ -779,7 +757,7 @@ resolved "https://registry.yarnpkg.com/@types/statuses/-/statuses-2.0.6.tgz#66748315cc9a96d63403baa8671b2c124f8633aa" integrity sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA== -"@types/tough-cookie@*", "@types/tough-cookie@^4.0.5": +"@types/tough-cookie@*": version "4.0.5" resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.5.tgz#cb6e2a691b70cb177c6e3ae9c1d2e8b2ea8cd304" integrity sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA== @@ -795,9 +773,9 @@ integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== "@types/yargs@^17.0.8": - version "17.0.33" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d" - integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA== + version "17.0.34" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.34.tgz#1c2f9635b71d5401827373a01ce2e8a7670ea839" + integrity sha512-KExbHVa92aJpw9WDQvzBaGVE2/Pz+pLZQloT2hjL8IqsZnV62rlPOYvNnLmf/L2dyllfVUOVBj64M0z/46eR2A== dependencies: "@types/yargs-parser" "*" @@ -964,7 +942,7 @@ acorn-walk@^8.0.2: dependencies: acorn "^8.11.0" -acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.15.0, acorn@^8.8.1: +acorn@^8.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.8.1: version "8.15.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== @@ -1000,7 +978,7 @@ ajv@^8.0.0, ajv@^8.9.0: json-schema-traverse "^1.0.0" require-from-string "^2.0.2" -ansi-escapes@^4.2.1, ansi-escapes@^4.3.2: +ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== @@ -1133,12 +1111,17 @@ base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== +baseline-browser-mapping@^2.8.19: + version "2.8.21" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.21.tgz#2f9cccde871bfa4aec9dbf92d0ee746e4f1892e4" + integrity sha512-JU0h5APyQNsHOlAM7HnQnPToSDQoEBZqzu/YBlqDnEeymPnZDREeXJA3KBMQee+dKteAxZ2AtvQEvVYdZf241Q== + bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: version "4.12.2" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.2.tgz#3d8fed6796c24e177737f7cc5172ee04ef39ec99" integrity sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw== -bn.js@^5.2.1: +bn.js@^5.2.1, bn.js@^5.2.2: version "5.2.2" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.2.tgz#82c09f9ebbb17107cd72cb7fd39bd1f9d0aaa566" integrity sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw== @@ -1194,7 +1177,7 @@ browserify-des@^1.0.0: inherits "^2.0.1" safe-buffer "^5.1.2" -browserify-rsa@^4.0.0, browserify-rsa@^4.1.0: +browserify-rsa@^4.0.0, browserify-rsa@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.1.1.tgz#06e530907fe2949dc21fc3c2e2302e10b1437238" integrity sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ== @@ -1204,30 +1187,30 @@ browserify-rsa@^4.0.0, browserify-rsa@^4.1.0: safe-buffer "^5.2.1" browserify-sign@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.3.tgz#7afe4c01ec7ee59a89a558a4b75bd85ae62d4208" - integrity sha512-JWCZW6SKhfhjJxO8Tyiiy+XYB7cqd2S5/+WeYHsKdNKFlCBhKbblba1A/HN/90YwtxKc8tCErjffZl++UNmGiw== + version "4.2.5" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.5.tgz#3979269fa8af55ba18aac35deef11b45515cd27d" + integrity sha512-C2AUdAJg6rlM2W5QMp2Q4KGQMVBwR1lIimTsUnutJ8bMpW5B52pGpR2gEnNBNwijumDo5FojQ0L9JrXA8m4YEw== dependencies: - bn.js "^5.2.1" - browserify-rsa "^4.1.0" + bn.js "^5.2.2" + browserify-rsa "^4.1.1" create-hash "^1.2.0" create-hmac "^1.1.7" - elliptic "^6.5.5" - hash-base "~3.0" + elliptic "^6.6.1" inherits "^2.0.4" - parse-asn1 "^5.1.7" + parse-asn1 "^5.1.9" readable-stream "^2.3.8" safe-buffer "^5.2.1" -browserslist@^4.24.0: - version "4.25.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.2.tgz#90c1507143742d743544ae6e92bca3348adff667" - integrity sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA== +browserslist@^4.24.0, browserslist@^4.26.3: + version "4.27.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.27.0.tgz#755654744feae978fbb123718b2f139bc0fa6697" + integrity sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw== dependencies: - caniuse-lite "^1.0.30001733" - electron-to-chromium "^1.5.199" - node-releases "^2.0.19" - update-browserslist-db "^1.1.3" + baseline-browser-mapping "^2.8.19" + caniuse-lite "^1.0.30001751" + electron-to-chromium "^1.5.238" + node-releases "^2.0.26" + update-browserslist-db "^1.1.4" bs-logger@^0.2.6: version "0.2.6" @@ -1302,10 +1285,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001733: - version "1.0.30001735" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz#ba658fd3fd24a4106fd68d5ce472a2c251494dbe" - integrity sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w== +caniuse-lite@^1.0.30001751: + version "1.0.30001751" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001751.tgz#dacd5d9f4baeea841641640139d2b2a4df4226ad" + integrity sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1331,12 +1314,13 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.6.tgz#8fe672437d01cd6c4561af5334e0cc50ff1955f7" - integrity sha512-3Ek9H3X6pj5TgenXYtNWdaBon1tgYCaebd+XPg0keyjEbEfkD4KkmAxkQ/i1vYvxdcT5nscLBfq9VJRmCBcFSw== + version "1.0.7" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.7.tgz#bd094bfef42634ccfd9e13b9fc73274997111e39" + integrity sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA== dependencies: inherits "^2.0.4" safe-buffer "^5.2.1" + to-buffer "^1.2.2" cjs-module-lexer@^1.0.0: version "1.4.3" @@ -1363,9 +1347,9 @@ co@^4.6.0: integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" - integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== + version "1.0.3" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz#cc1f01eb8d02298cbc9a437c74c70ab4e5210b80" + integrity sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw== color-convert@^2.0.1: version "2.0.1" @@ -1401,10 +1385,10 @@ convert-source-map@^2.0.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== -cookie@^0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.2.tgz#556369c472a2ba910f2979891b526b3436237ed7" - integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== +cookie@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-1.0.2.tgz#27360701532116bd3f1f9416929d176afe1e4610" + integrity sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA== core-util-is@~1.0.0: version "1.0.3" @@ -1430,16 +1414,6 @@ create-hash@^1.1.0, create-hash@^1.2.0: ripemd160 "^2.0.1" sha.js "^2.4.0" -create-hash@~1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd" - integrity sha512-snRpch/kwQhcdlnZKYanNF1m0RDlrCdSKQaH87w1FCFPVPNCQ/Il9QJKAX2jVBZddRdaHBMC+zXa9Gw9tmkNUA== - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - ripemd160 "^2.0.0" - sha.js "^2.4.0" - create-hmac@^1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" @@ -1526,9 +1500,9 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" - integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ== + version "4.4.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== dependencies: ms "^2.1.3" @@ -1538,9 +1512,9 @@ decimal.js@^10.4.2: integrity sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg== dedent@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.6.0.tgz#79d52d6389b1ffa67d2bcef59ba51847a9d503b2" - integrity sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA== + version "1.7.0" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.7.0.tgz#c1f9445335f0175a96587be245a282ff451446ca" + integrity sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ== deepmerge@^4.2.2: version "4.3.1" @@ -1604,12 +1578,12 @@ dunder-proto@^1.0.1: es-errors "^1.3.0" gopd "^1.2.0" -electron-to-chromium@^1.5.199: - version "1.5.201" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.201.tgz#bdc8f13e828e2f65d2c925ab2e8b02604928632f" - integrity sha512-ZG65vsrLClodGqywuigc+7m0gr4ISoTQttfVh7nfpLv0M7SIwF4WbFNEOywcqTiujs12AUeeXbFyQieDICAIxg== +electron-to-chromium@^1.5.238: + version "1.5.243" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.243.tgz#b13b4a046f49f46574d643d4e2ec2ea33ce8cfe7" + integrity sha512-ZCphxFW3Q1TVhcgS9blfut1PX8lusVi2SvXQgmEEnK4TCmE1JhH2JkjJN+DNt0pJJwfBri5AROBnz2b/C+YU9g== -elliptic@^6.5.3, elliptic@^6.5.5: +elliptic@^6.5.3, elliptic@^6.6.1: version "6.6.1" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.6.1.tgz#3b8ffb02670bf69e382c7f65bf524c97c5405c06" integrity sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g== @@ -1646,9 +1620,9 @@ entities@^6.0.0: integrity sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g== error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + version "1.3.4" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.4.tgz#b3a8d8bb6f92eecc1629e3e27d3c8607a8a32414" + integrity sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ== dependencies: is-arrayish "^0.2.1" @@ -1800,9 +1774,9 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fast-uri@^3.0.1: - version "3.0.6" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.6.tgz#88f130b77cfaea2378d56bf970dea21257a68748" - integrity sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw== + version "3.1.0" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.0.tgz#66eecff6c764c0df9b762e62ca7edcfb53b4edfa" + integrity sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA== fb-watchman@^2.0.0: version "2.0.2" @@ -1976,23 +1950,17 @@ has-tostringtag@^1.0.2: dependencies: has-symbols "^1.0.3" -hash-base@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1" - integrity sha512-0TROgQ1/SxE6KmxWSvXHvRj90/Xo1JvZShofnYF+f6ZsGtR4eES7WfrQzPalmyagfKZCXpVnitiRebZulWsbiw== - dependencies: - inherits "^2.0.1" - -hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" - integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== +hash-base@^3.0.0, hash-base@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.2.tgz#79d72def7611c3f6e3c3b5730652638001b10a74" + integrity sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg== dependencies: inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" + readable-stream "^2.3.8" + safe-buffer "^5.2.1" + to-buffer "^1.2.1" -hash-base@~3.0, hash-base@~3.0.4: +hash-base@~3.0.4: version "3.0.5" resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.5.tgz#52480e285395cf7fba17dc4c9e47acdc7f248a8a" integrity sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg== @@ -2111,7 +2079,7 @@ is-callable@^1.2.7: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -is-core-module@^2.16.0: +is-core-module@^2.16.1: version "2.16.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== @@ -2216,9 +2184,9 @@ istanbul-lib-source-maps@^4.0.0: source-map "^0.6.1" istanbul-reports@^3.1.3: - version "3.1.7" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" - integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== + version "3.2.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.2.0.tgz#cb4535162b5784aa623cee21a7252cf2c807ac93" + integrity sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA== dependencies: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" @@ -2698,9 +2666,9 @@ lines-and-columns@^1.1.6: integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== loader-runner@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" - integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== + version "4.3.1" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.1.tgz#6c76ed29b0ccce9af379208299f07f876de737e3" + integrity sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q== locate-path@^5.0.0: version "5.0.0" @@ -2820,27 +2788,27 @@ ms@^2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== msw@^2.8.4: - version "2.10.5" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.10.5.tgz#3e43f12e97581c260bf38d8817732b9fec3bfdb0" - integrity sha512-0EsQCrCI1HbhpBWd89DvmxY6plmvrM96b0sCIztnvcNHQbXn5vqwm1KlXslo6u4wN9LFGLC1WFjjgljcQhe40A== + version "2.11.6" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.6.tgz#9ae647c3b050fbc1e1a2300dee15b3605c14c25d" + integrity sha512-MCYMykvmiYScyUm7I6y0VCxpNq1rgd5v7kG8ks5dKtvmxRUUPjribX6mUoUNBbM5/3PhUyoelEWiKXGOz84c+w== dependencies: - "@bundled-es-modules/cookie" "^2.0.1" - "@bundled-es-modules/statuses" "^1.0.1" - "@bundled-es-modules/tough-cookie" "^0.1.6" "@inquirer/confirm" "^5.0.0" - "@mswjs/interceptors" "^0.39.1" + "@mswjs/interceptors" "^0.40.0" "@open-draft/deferred-promise" "^2.2.0" - "@open-draft/until" "^2.1.0" - "@types/cookie" "^0.6.0" "@types/statuses" "^2.0.4" + cookie "^1.0.2" graphql "^16.8.1" headers-polyfill "^4.0.2" is-node-process "^1.2.0" outvariant "^1.4.3" path-to-regexp "^6.3.0" picocolors "^1.1.1" + rettime "^0.7.0" + statuses "^2.0.2" strict-event-emitter "^0.5.1" + tough-cookie "^6.0.0" type-fest "^4.26.1" + until-async "^3.0.2" yargs "^17.7.2" mute-stream@^2.0.0: @@ -2870,10 +2838,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.19: - version "2.0.19" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" - integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== +node-releases@^2.0.26: + version "2.0.27" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.27.tgz#eedca519205cf20f650f61d56b070db111231e4e" + integrity sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA== normalize-path@^3.0.0: version "3.0.0" @@ -2888,9 +2856,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.21" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.21.tgz#8df7797079350adda208910d8c33fc4c2d7520c3" - integrity sha512-o6nIY3qwiSXl7/LuOU0Dmuctd34Yay0yeuZRLFmDPrrdHpXKFndPj3hM+YEPVHYC5fx2otBx4Ilc/gyYSAUaIA== + version "2.2.22" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.22.tgz#109f9530cda6c156d6a713cdf5939e9f0de98b9d" + integrity sha512-ujSMe1OWVn55euT1ihwCI1ZcAaAU3nxUiDwfDQldc51ZXaB9m2AyOn6/jh1BLe2t/G8xd6uKG1UBF2aZJeg2SQ== object-inspect@^1.13.3: version "1.13.4" @@ -2942,16 +2910,15 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -parse-asn1@^5.0.0, parse-asn1@^5.1.7: - version "5.1.7" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.7.tgz#73cdaaa822125f9647165625eb45f8a051d2df06" - integrity sha512-CTM5kuWR3sx9IFamcl5ErfPl6ea/N8IYwiJ+vpeB2g+1iknv7zBl5uPwbMbRVznRVbrNY6lGuDoE5b30grmbqg== +parse-asn1@^5.0.0, parse-asn1@^5.1.9: + version "5.1.9" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.9.tgz#8dd24c3ea8da77dffbc708d94eaf232fd6156e95" + integrity sha512-fIYNuZ/HastSb80baGOuPRo1O9cf4baWw5WsAp7dBuUzeTD/BoaG8sVTdlPFksBE2lF21dN+A1AnrpIjSWqHHg== dependencies: asn1.js "^4.10.1" browserify-aes "^1.2.0" evp_bytestokey "^1.0.3" - hash-base "~3.0" - pbkdf2 "^3.1.2" + pbkdf2 "^3.1.5" safe-buffer "^5.2.1" parse-json@^5.2.0: @@ -2996,17 +2963,17 @@ path-to-regexp@^6.3.0: resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.3.0.tgz#2b6a26a337737a8e1416f9272ed0766b1c0389f4" integrity sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ== -pbkdf2@^3.1.2, pbkdf2@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.3.tgz#8be674d591d65658113424592a95d1517318dd4b" - integrity sha512-wfRLBZ0feWRhCIkoMB6ete7czJcnNnqRpcoWQBLqatqXXmelSRqfdDK4F3u9T2s2cXas/hQJcryI/4lAL+XTlA== +pbkdf2@^3.1.2, pbkdf2@^3.1.3, pbkdf2@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.5.tgz#444a59d7a259a95536c56e80c89de31cc01ed366" + integrity sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ== dependencies: - create-hash "~1.1.3" + create-hash "^1.2.0" create-hmac "^1.1.7" - ripemd160 "=2.0.1" + ripemd160 "^2.0.3" safe-buffer "^5.2.1" - sha.js "^2.4.11" - to-buffer "^1.2.0" + sha.js "^2.4.12" + to-buffer "^1.2.1" picocolors@^1.1.1: version "1.1.1" @@ -3146,15 +3113,6 @@ readable-stream@^2.3.8: string_decoder "~1.1.1" util-deprecate "~1.0.1" -readable-stream@^3.6.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - readable-stream@^4.5.2: version "4.7.0" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.7.0.tgz#cedbd8a1146c13dfff8dab14068028d58c15ac91" @@ -3199,31 +3157,28 @@ resolve.exports@^2.0.0: integrity sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A== resolve@^1.20.0: - version "1.22.10" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.10.tgz#b663e83ffb09bbf2386944736baae803029b8b39" - integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== + version "1.22.11" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.11.tgz#aad857ce1ffb8bfa9b0b1ac29f1156383f68c262" + integrity sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ== dependencies: - is-core-module "^2.16.0" + is-core-module "^2.16.1" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -ripemd160@=2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7" - integrity sha512-J7f4wutN8mdbV08MJnXibYpCOPHR+yzy+iQ/AsjMv2j8cLavQ8VGagDFUwwTAdF8FmRKVeNpbTTEwNHCW1g94w== - dependencies: - hash-base "^2.0.0" - inherits "^2.0.1" +rettime@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/rettime/-/rettime-0.7.0.tgz#c040f1a65e396eaa4b8346dd96ed937edc79d96f" + integrity sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw== -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== +ripemd160@^2.0.0, ripemd160@^2.0.1, ripemd160@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.3.tgz#9be54e4ba5e3559c8eee06a25cd7648bbccdf5a8" + integrity sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA== dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" + hash-base "^3.1.2" + inherits "^2.0.4" -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@^5.2.1, safe-buffer@~5.2.0: +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.1, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -3245,10 +3200,10 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^4.3.0, schema-utils@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.2.tgz#0c10878bf4a73fd2b1dfd14b9462b26788c806ae" - integrity sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ== +schema-utils@^4.3.0, schema-utils@^4.3.3: + version "4.3.3" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.3.tgz#5b1850912fa31df90716963d45d9121fdfc09f46" + integrity sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA== dependencies: "@types/json-schema" "^7.0.9" ajv "^8.9.0" @@ -3260,10 +3215,10 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.2: - version "7.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58" - integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA== +semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.3: + version "7.7.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946" + integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q== serialize-javascript@^6.0.2: version "6.0.2" @@ -3284,7 +3239,7 @@ set-function-length@^1.2.2: gopd "^1.0.1" has-property-descriptors "^1.0.2" -sha.js@^2.4.0, sha.js@^2.4.11, sha.js@^2.4.8: +sha.js@^2.4.0, sha.js@^2.4.12, sha.js@^2.4.8: version "2.4.12" resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.12.tgz#eb8b568bf383dfd1867a32c3f2b74eb52bdbf23f" integrity sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w== @@ -3403,7 +3358,7 @@ stack-utils@^2.0.3: dependencies: escape-string-regexp "^2.0.0" -statuses@^2.0.1: +statuses@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.2.tgz#8f75eecef765b5e1cfcdc080da59409ed424e382" integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== @@ -3430,7 +3385,7 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string_decoder@^1.1.1, string_decoder@^1.3.0: +string_decoder@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== @@ -3490,10 +3445,10 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -tapable@^2.1.1, tapable@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.2.tgz#ab4984340d30cb9989a490032f086dbb8b56d872" - integrity sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg== +tapable@^2.2.0, tapable@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.0.tgz#7e3ea6d5ca31ba8e078b560f0d83ce9a14aa8be6" + integrity sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg== terser-webpack-plugin@^5.3.11: version "5.3.14" @@ -3507,12 +3462,12 @@ terser-webpack-plugin@^5.3.11: terser "^5.31.1" terser@^5.31.1: - version "5.43.1" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.43.1.tgz#88387f4f9794ff1a29e7ad61fb2932e25b4fdb6d" - integrity sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg== + version "5.44.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.44.0.tgz#ebefb8e5b8579d93111bfdfc39d2cf63879f4a82" + integrity sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w== dependencies: "@jridgewell/source-map" "^0.3.3" - acorn "^8.14.0" + acorn "^8.15.0" commander "^2.20.0" source-map-support "~0.5.20" @@ -3525,15 +3480,27 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" +tldts-core@^7.0.17: + version "7.0.17" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.17.tgz#dadfee3750dd272ed219d7367beb7cbb2ff29eb8" + integrity sha512-DieYoGrP78PWKsrXr8MZwtQ7GLCUeLxihtjC1jZsW1DnvSMdKPitJSe8OSYDM2u5H6g3kWJZpePqkp43TfLh0g== + +tldts@^7.0.5: + version "7.0.17" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.17.tgz#a6cdc067b9e80ea05f3be471c0ea410688cc78b2" + integrity sha512-Y1KQBgDd/NUc+LfOtKS6mNsC9CCaH+m2P1RoIZy7RAPo3C3/t8X45+zgut31cRZtZ3xKPjfn3TkGTrctC2TQIQ== + dependencies: + tldts-core "^7.0.17" + tmpl@1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== -to-buffer@^1.2.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.2.1.tgz#2ce650cdb262e9112a18e65dc29dcb513c8155e0" - integrity sha512-tB82LpAIWjhLYbqjx3X4zEeHN6M8CiuOEy2JY8SEQVdYRe3CCHOFaqrBW1doLDrfpWhplcW7BL+bO3/6S3pcDQ== +to-buffer@^1.2.0, to-buffer@^1.2.1, to-buffer@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.2.2.tgz#ffe59ef7522ada0a2d1cb5dfe03bb8abc3cdc133" + integrity sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw== dependencies: isarray "^2.0.5" safe-buffer "^5.2.1" @@ -3546,7 +3513,7 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -tough-cookie@^4.1.2, tough-cookie@^4.1.4: +tough-cookie@^4.1.2: version "4.1.4" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.4.tgz#945f1461b45b5a8c76821c33ea49c3ac192c1b36" integrity sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag== @@ -3556,6 +3523,13 @@ tough-cookie@^4.1.2, tough-cookie@^4.1.4: universalify "^0.2.0" url-parse "^1.5.3" +tough-cookie@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-6.0.0.tgz#11e418b7864a2c0d874702bc8ce0f011261940e5" + integrity sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w== + dependencies: + tldts "^7.0.5" + tr46@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9" @@ -3569,9 +3543,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-jest@^29.3.4: - version "29.4.1" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.1.tgz#42d33beb74657751d315efb9a871fe99e3b9b519" - integrity sha512-SaeUtjfpg9Uqu8IbeDKtdaS0g8lS6FT6OzM3ezrDfErPJPHNDo/Ey+VFGP1bQIDfagYDLyRpd7O15XpG1Es2Uw== + version "29.4.5" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.5.tgz#a6b0dc401e521515d5342234be87f1ca96390a6f" + integrity sha512-HO3GyiWn2qvTQA4kTgjDcXiMwYQt68a1Y8+JuLRVpdIzm+UOLSHgl/XqR4c6nzJkq5rOkjc02O2I7P7l/Yof0Q== dependencies: bs-logger "^0.2.6" fast-json-stable-stringify "^2.1.0" @@ -3579,14 +3553,14 @@ ts-jest@^29.3.4: json5 "^2.2.3" lodash.memoize "^4.1.2" make-error "^1.3.6" - semver "^7.7.2" + semver "^7.7.3" type-fest "^4.41.0" yargs-parser "^21.1.1" ts-loader@^9.5.1: - version "9.5.2" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020" - integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw== + version "9.5.4" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.4.tgz#44b571165c10fb5a90744aa5b7e119233c4f4585" + integrity sha512-nCz0rEwunlTZiy6rXFByQU1kVVpCIgUpc/psFiKVrUwrizdnIbRFu8w7bxhUF0X613DYwT4XzrZHpVyMe758hQ== dependencies: chalk "^4.1.0" enhanced-resolve "^5.0.0" @@ -3633,20 +3607,25 @@ undici-types@~5.26.4: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== -undici-types@~7.10.0: - version "7.10.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.10.0.tgz#4ac2e058ce56b462b056e629cc6a02393d3ff350" - integrity sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag== +undici-types@~7.16.0: + version "7.16.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" + integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" - integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== +until-async@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/until-async/-/until-async-3.0.2.tgz#447f1531fdd7bb2b4c7a98869bdb1a4c2a23865f" + integrity sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw== + +update-browserslist-db@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz#7802aa2ae91477f255b86e0e46dbc787a206ad4a" + integrity sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A== dependencies: escalade "^3.2.0" picocolors "^1.1.1" @@ -3664,7 +3643,7 @@ url-parse@^1.5.3: querystringify "^2.1.1" requires-port "^1.0.0" -util-deprecate@^1.0.1, util-deprecate@~1.0.1: +util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== @@ -3692,7 +3671,7 @@ walker@^1.0.8: dependencies: makeerror "1.0.12" -watchpack@^2.4.1: +watchpack@^2.4.4: version "2.4.4" resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.4.tgz#473bda72f0850453da6425081ea46fc0d7602947" integrity sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA== @@ -3716,9 +3695,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.101.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.101.2.tgz#08c222b7acfce7da95c593e2f88ea1638a07b344" - integrity sha512-4JLXU0tD6OZNVqlwzm3HGEhAHufSiyv+skb7q0d2367VDMzrU1Q/ZeepvkcHH0rZie6uqEtTQQe0OEOOluH3Mg== + version "5.102.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.102.1.tgz#1003a3024741a96ba99c37431938bf61aad3d988" + integrity sha512-7h/weGm9d/ywQ6qzJ+Xy+r9n/3qgp/thalBbpOi5i223dPXKi04IBtqPN9nTd+jBc7QKfvDbaBnFipYp4sJAUQ== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3728,7 +3707,7 @@ webpack@^5.97.1: "@webassemblyjs/wasm-parser" "^1.14.1" acorn "^8.15.0" acorn-import-phases "^1.0.3" - browserslist "^4.24.0" + browserslist "^4.26.3" chrome-trace-event "^1.0.2" enhanced-resolve "^5.17.3" es-module-lexer "^1.2.1" @@ -3740,10 +3719,10 @@ webpack@^5.97.1: loader-runner "^4.2.0" mime-types "^2.1.27" neo-async "^2.6.2" - schema-utils "^4.3.2" - tapable "^2.1.1" + schema-utils "^4.3.3" + tapable "^2.3.0" terser-webpack-plugin "^5.3.11" - watchpack "^2.4.1" + watchpack "^2.4.4" webpack-sources "^3.3.3" whatwg-encoding@^2.0.0: @@ -3879,6 +3858,6 @@ yocto-queue@^0.1.0: integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== yoctocolors-cjs@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz#f4b905a840a37506813a7acaa28febe97767a242" - integrity sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA== + version "2.1.3" + resolved "https://registry.yarnpkg.com/yoctocolors-cjs/-/yoctocolors-cjs-2.1.3.tgz#7e4964ea8ec422b7a40ac917d3a344cfd2304baa" + integrity sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==