From 07447dcba0ef1517423f60fb2bd493a1d1584d74 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 13:25:47 +0000 Subject: [PATCH] SDK regeneration --- .fern/metadata.json | 4 +- .github/workflows/socket_reachability.yml | 80 ----- reference.md | 25 +- src/BaseClient.ts | 4 +- src/api/resources/assets/client/Client.ts | 31 +- .../client/requests/AssetsGetRequest.ts | 16 + .../client/requests/AssetsListRequest.ts | 7 + .../client/requests/AssetsUpdateRequest.ts | 14 +- .../resources/assets/client/requests/index.ts | 1 + .../resources/items/client/Client.ts | 50 ++- .../requests/ItemsListItemsLiveRequest.ts | 6 +- .../client/requests/ItemsListItemsRequest.ts | 6 +- .../types/ItemsListItemsLiveRequestSortBy.ts | 2 + .../types/ItemsListItemsRequestSortBy.ts | 2 + .../client/requests/ComponentDomWrite.ts | 2 +- .../requests/ComponentPropertiesWrite.ts | 2 +- .../requests/ComponentsGetContentRequest.ts | 2 +- .../ComponentsGetPropertiesRequest.ts | 2 +- .../client/requests/PageMetadataWrite.ts | 2 +- .../client/requests/PagesGetContentRequest.ts | 2 +- .../requests/PagesGetMetadataRequest.ts | 2 +- .../pages/client/requests/PagesListRequest.ts | 2 +- src/api/resources/sites/client/Client.ts | 2 + .../CommentsGetCommentThreadRequest.ts | 2 +- .../CommentsListCommentRepliesRequest.ts | 2 +- .../CommentsListCommentThreadsRequest.ts | 2 +- src/api/types/CommentPayload.ts | 4 +- src/api/types/ComponentProperty.ts | 14 +- src/api/types/ComponentPropertyText.ts | 17 + ...tyType.ts => ComponentPropertyTextType.ts} | 4 +- src/api/types/Conflict.ts | 3 + .../FieldValidationsAdditionalProperties.ts | 9 +- ...dditionalPropertiesAdditionalProperties.ts | 5 - src/api/types/InvalidDomain.ts | 3 + src/api/types/InvalidScopes.ts | 3 + .../ItemsListItemsLiveRequestCreatedOn.ts | 8 + .../ItemsListItemsLiveRequestLastUpdated.ts | 8 + .../types/ItemsListItemsRequestCreatedOn.ts | 8 + .../types/ItemsListItemsRequestLastUpdated.ts | 8 + src/api/types/NoDomains.ts | 3 + src/api/types/NotEnterprisePlanSite.ts | 3 + src/api/types/NotEnterprisePlanWorkspace.ts | 3 + src/api/types/SitePublishPayload.ts | 2 +- src/api/types/index.ts | 8 +- .../client/requests/AssetsUpdateRequest.ts | 6 +- .../types/ItemsListItemsLiveRequestSortBy.ts | 4 +- .../types/ItemsListItemsRequestSortBy.ts | 4 +- src/serialization/types/CommentPayload.ts | 2 - src/serialization/types/ComponentProperty.ts | 19 +- .../types/ComponentPropertyText.ts | 26 ++ ...tyType.ts => ComponentPropertyTextType.ts} | 8 +- .../FieldValidationsAdditionalProperties.ts | 5 +- ...dditionalPropertiesAdditionalProperties.ts | 18 - .../ItemsListItemsLiveRequestCreatedOn.ts | 20 ++ .../ItemsListItemsLiveRequestLastUpdated.ts | 20 ++ .../types/ItemsListItemsRequestCreatedOn.ts | 20 ++ .../types/ItemsListItemsRequestLastUpdated.ts | 20 ++ src/serialization/types/index.ts | 8 +- src/version.ts | 2 +- tests/wire/assets.test.ts | 9 +- tests/wire/collections.test.ts | 4 +- tests/wire/collections/items.test.ts | 4 +- tests/wire/components.test.ts | 20 +- tests/wire/orders.test.ts | 320 +++++++++--------- tests/wire/pages.test.ts | 12 +- tests/wire/sites.test.ts | 26 +- 66 files changed, 578 insertions(+), 384 deletions(-) delete mode 100644 .github/workflows/socket_reachability.yml create mode 100644 src/api/resources/assets/client/requests/AssetsGetRequest.ts create mode 100644 src/api/types/ComponentPropertyText.ts rename src/api/types/{ComponentPropertyType.ts => ComponentPropertyTextType.ts} (54%) delete mode 100644 src/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts create mode 100644 src/api/types/ItemsListItemsLiveRequestCreatedOn.ts create mode 100644 src/api/types/ItemsListItemsLiveRequestLastUpdated.ts create mode 100644 src/api/types/ItemsListItemsRequestCreatedOn.ts create mode 100644 src/api/types/ItemsListItemsRequestLastUpdated.ts create mode 100644 src/serialization/types/ComponentPropertyText.ts rename src/serialization/types/{ComponentPropertyType.ts => ComponentPropertyTextType.ts} (62%) delete mode 100644 src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts create mode 100644 src/serialization/types/ItemsListItemsLiveRequestCreatedOn.ts create mode 100644 src/serialization/types/ItemsListItemsLiveRequestLastUpdated.ts create mode 100644 src/serialization/types/ItemsListItemsRequestCreatedOn.ts create mode 100644 src/serialization/types/ItemsListItemsRequestLastUpdated.ts diff --git a/.fern/metadata.json b/.fern/metadata.json index b5cc660b..62c4d643 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "4.22.0", + "cliVersion": "4.65.1", "generatorName": "fernapi/fern-typescript-node-sdk", "generatorVersion": "3.53.13", "generatorConfig": { @@ -34,6 +34,6 @@ } } }, - "originGitCommit": "f0174d404a2635415e858ef151cf9202df3e3d02", + "originGitCommit": "998225e70e3e266cc158f022dfdd12904d54da2d", "sdkVersion": "3.3.5" } diff --git a/.github/workflows/socket_reachability.yml b/.github/workflows/socket_reachability.yml deleted file mode 100644 index 72834c1b..00000000 --- a/.github/workflows/socket_reachability.yml +++ /dev/null @@ -1,80 +0,0 @@ -# Socket Security Scan with Tier 1 Reachability Analysis -# -# This workflow scans dependencies and performs reachability analysis -# to identify which vulnerabilities are actually reachable in the code. -# -# Required: SOCKET_SECURITY_API_KEY secret with enterprise plan -# API token scopes needed: socket-basics, uploaded-artifacts, full-scans, repo - -name: Socket Security Scan - -on: - schedule: - - cron: "0 2 * * *" # Everyday at 2 AM UTC - workflow_dispatch: - inputs: - enable_reachability: - description: "Enable Tier 1 reachability analysis" - required: false - default: "true" - type: choice - options: - - "true" - - "false" - -concurrency: - group: socket-security-scan - cancel-in-progress: true - -jobs: - socket-security: - name: Socket Security Scan - runs-on: ubuntu-latest - timeout-minutes: 120 - permissions: - contents: read - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "20" - - - name: Install uv (Python package manager) - uses: astral-sh/setup-uv@v4 - - - name: Install Socket CLI - run: uv pip install socketsecurity --upgrade --system - - - name: Run Socket Security Scan - env: - SOCKET_SECURITY_API_TOKEN: ${{ secrets.SOCKET_SECURITY_API_KEY }} - PYTHONUNBUFFERED: "1" - ENABLE_REACH: ${{ github.event.inputs.enable_reachability }} - run: | - REPO_NAME="${GITHUB_REPOSITORY#*/}" - - # Build reachability flags if enabled - REACH_FLAGS="" - if [[ "${ENABLE_REACH}" != "false" ]]; then - REACH_FLAGS="--reach --reach-memory-limit 16384 --reach-timeout 3600" - echo "Reachability analysis enabled" - fi - - echo "Scanning repository: $REPO_NAME" - - socketcli \ - --target-path "$GITHUB_WORKSPACE" \ - --repo "$REPO_NAME" \ - --enable-debug \ - $REACH_FLAGS diff --git a/reference.md b/reference.md index 1b8d26b2..ade8c4b2 100644 --- a/reference.md +++ b/reference.md @@ -537,6 +537,8 @@ Publishes a site to one or more more domains. To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint. +You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body. + This endpoint has a specific rate limit of one successful publish queue per minute. Required scope | `sites:write` @@ -2071,6 +2073,7 @@ Required scope | `assets:read` ```typescript await client.assets.list("580e63e98c9a982ac9b8b741", { + localeId: "65427cf400e02b306eaa04a0", offset: 1, limit: 1 }); @@ -2202,7 +2205,7 @@ await client.assets.create("580e63e98c9a982ac9b8b741", { -
client.assets.get(asset_id) -> Webflow.Asset +
client.assets.get(asset_id, { ...params }) -> Webflow.Asset
@@ -2231,7 +2234,9 @@ Required scope | `assets:read`
```typescript -await client.assets.get("580e63fc8c9a982ac9b8b745"); +await client.assets.get("580e63fc8c9a982ac9b8b745", { + localeId: "65427cf400e02b306eaa04a0" +}); ```
@@ -2255,6 +2260,14 @@ await client.assets.get("580e63fc8c9a982ac9b8b745");
+**request:** `Webflow.AssetsGetRequest` + +
+
+ +
+
+ **requestOptions:** `AssetsClient.RequestOptions`
@@ -2361,7 +2374,9 @@ Required scope | `assets:write`
```typescript -await client.assets.update("580e63fc8c9a982ac9b8b745"); +await client.assets.update("580e63fc8c9a982ac9b8b745", { + localeId: "65427cf400e02b306eaa04a0" +}); ```
@@ -4874,7 +4889,7 @@ await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", { limit: 1, name: "name", slug: "slug", - sortBy: "lastPublished", + sortBy: "createdOn", sortOrder: "asc" }); @@ -5270,7 +5285,7 @@ await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", { limit: 1, name: "name", slug: "slug", - sortBy: "lastPublished", + sortBy: "createdOn", sortOrder: "asc" }); diff --git a/src/BaseClient.ts b/src/BaseClient.ts index c73d5fc3..f6c4cc10 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -51,8 +51,8 @@ export function normalizeClientOptions> { - const { offset, limit } = request; + const { localeId, offset, limit } = request; const _queryParams: Record = { + localeId, offset, limit, }; @@ -312,6 +314,7 @@ export class AssetsClient { * Required scope | `assets:read` * * @param {string} asset_id - Unique identifier for an Asset on a site + * @param {Webflow.AssetsGetRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} @@ -321,19 +324,27 @@ export class AssetsClient { * @throws {@link Webflow.InternalServerError} * * @example - * await client.assets.get("580e63fc8c9a982ac9b8b745") + * await client.assets.get("580e63fc8c9a982ac9b8b745", { + * localeId: "65427cf400e02b306eaa04a0" + * }) */ public get( asset_id: string, + request: Webflow.AssetsGetRequest = {}, requestOptions?: AssetsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__get(asset_id, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__get(asset_id, request, requestOptions)); } private async __get( asset_id: string, + request: Webflow.AssetsGetRequest = {}, requestOptions?: AssetsClient.RequestOptions, ): Promise> { + const { localeId } = request; + const _queryParams: Record = { + localeId, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -349,7 +360,7 @@ export class AssetsClient { ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -556,7 +567,9 @@ export class AssetsClient { * @throws {@link Webflow.InternalServerError} * * @example - * await client.assets.update("580e63fc8c9a982ac9b8b745") + * await client.assets.update("580e63fc8c9a982ac9b8b745", { + * localeId: "65427cf400e02b306eaa04a0" + * }) */ public update( asset_id: string, @@ -571,6 +584,10 @@ export class AssetsClient { request: Webflow.AssetsUpdateRequest = {}, requestOptions?: AssetsClient.RequestOptions, ): Promise> { + const { localeId, ..._body } = request; + const _queryParams: Record = { + localeId, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -587,9 +604,9 @@ export class AssetsClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.AssetsUpdateRequest.jsonOrThrow(request, { + body: serializers.AssetsUpdateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/assets/client/requests/AssetsGetRequest.ts b/src/api/resources/assets/client/requests/AssetsGetRequest.ts new file mode 100644 index 00000000..404a6091 --- /dev/null +++ b/src/api/resources/assets/client/requests/AssetsGetRequest.ts @@ -0,0 +1,16 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * localeId: "65427cf400e02b306eaa04a0" + * } + */ +export interface AssetsGetRequest { + /** + * Unique identifier for a specific Locale. + * + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) + */ + localeId?: string; +} diff --git a/src/api/resources/assets/client/requests/AssetsListRequest.ts b/src/api/resources/assets/client/requests/AssetsListRequest.ts index dba68f8e..d5ca41c6 100644 --- a/src/api/resources/assets/client/requests/AssetsListRequest.ts +++ b/src/api/resources/assets/client/requests/AssetsListRequest.ts @@ -3,11 +3,18 @@ /** * @example * { + * localeId: "65427cf400e02b306eaa04a0", * offset: 1, * limit: 1 * } */ export interface AssetsListRequest { + /** + * Unique identifier for a specific Locale. + * + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) + */ + localeId?: string; /** Offset used for pagination if the results have more than limit records */ offset?: number; /** Maximum number of records to be returned (max limit: 100) */ diff --git a/src/api/resources/assets/client/requests/AssetsUpdateRequest.ts b/src/api/resources/assets/client/requests/AssetsUpdateRequest.ts index bf2e4a76..e5df7dee 100644 --- a/src/api/resources/assets/client/requests/AssetsUpdateRequest.ts +++ b/src/api/resources/assets/client/requests/AssetsUpdateRequest.ts @@ -2,11 +2,19 @@ /** * @example - * {} + * { + * localeId: "65427cf400e02b306eaa04a0" + * } */ export interface AssetsUpdateRequest { - /** Unique identifier for a specific locale. Applicable, when using localization. */ + /** + * Unique identifier for a specific Locale. + * + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) + */ localeId?: string; - /** A human readable name for the asset */ + /** A human readable name for the asset. This value is not localizable. */ displayName?: string; + /** Alternate text describing the image */ + altText?: string; } diff --git a/src/api/resources/assets/client/requests/index.ts b/src/api/resources/assets/client/requests/index.ts index 3a711eb1..6ef452bd 100644 --- a/src/api/resources/assets/client/requests/index.ts +++ b/src/api/resources/assets/client/requests/index.ts @@ -1,4 +1,5 @@ export type { AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest"; export type { AssetsCreateRequest } from "./AssetsCreateRequest"; +export type { AssetsGetRequest } from "./AssetsGetRequest"; export type { AssetsListRequest } from "./AssetsListRequest"; export type { AssetsUpdateRequest } from "./AssetsUpdateRequest"; diff --git a/src/api/resources/collections/resources/items/client/Client.ts b/src/api/resources/collections/resources/items/client/Client.ts index d920aec0..3f9e9186 100644 --- a/src/api/resources/collections/resources/items/client/Client.ts +++ b/src/api/resources/collections/resources/items/client/Client.ts @@ -45,7 +45,7 @@ export class ItemsClient { * limit: 1, * name: "name", * slug: "slug", - * sortBy: "lastPublished", + * sortBy: "createdOn", * sortOrder: "asc" * }) */ @@ -62,13 +62,24 @@ export class ItemsClient { request: Webflow.collections.ItemsListItemsRequest = {}, requestOptions?: ItemsClient.RequestOptions, ): Promise> { - const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request; + const { cmsLocaleId, offset, limit, name, slug, createdOn, lastPublished, lastUpdated, sortBy, sortOrder } = + request; const _queryParams: Record = { cmsLocaleId, offset, limit, name, slug, + createdOn: + createdOn != null + ? serializers.ItemsListItemsRequestCreatedOn.jsonOrThrow(createdOn, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + omitUndefined: true, + breadcrumbsPrefix: ["request", "createdOn"], + }) + : createdOn, lastPublished: lastPublished != null ? serializers.ItemsListItemsRequestLastPublished.jsonOrThrow(lastPublished, { @@ -79,6 +90,16 @@ export class ItemsClient { breadcrumbsPrefix: ["request", "lastPublished"], }) : lastPublished, + lastUpdated: + lastUpdated != null + ? serializers.ItemsListItemsRequestLastUpdated.jsonOrThrow(lastUpdated, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + omitUndefined: true, + breadcrumbsPrefix: ["request", "lastUpdated"], + }) + : lastUpdated, sortBy: sortBy != null ? serializers.collections.ItemsListItemsRequestSortBy.jsonOrThrow(sortBy, { @@ -787,7 +808,7 @@ export class ItemsClient { * limit: 1, * name: "name", * slug: "slug", - * sortBy: "lastPublished", + * sortBy: "createdOn", * sortOrder: "asc" * }) */ @@ -804,13 +825,24 @@ export class ItemsClient { request: Webflow.collections.ItemsListItemsLiveRequest = {}, requestOptions?: ItemsClient.RequestOptions, ): Promise> { - const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request; + const { cmsLocaleId, offset, limit, name, slug, createdOn, lastPublished, lastUpdated, sortBy, sortOrder } = + request; const _queryParams: Record = { cmsLocaleId, offset, limit, name, slug, + createdOn: + createdOn != null + ? serializers.ItemsListItemsLiveRequestCreatedOn.jsonOrThrow(createdOn, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + omitUndefined: true, + breadcrumbsPrefix: ["request", "createdOn"], + }) + : createdOn, lastPublished: lastPublished != null ? serializers.ItemsListItemsLiveRequestLastPublished.jsonOrThrow(lastPublished, { @@ -821,6 +853,16 @@ export class ItemsClient { breadcrumbsPrefix: ["request", "lastPublished"], }) : lastPublished, + lastUpdated: + lastUpdated != null + ? serializers.ItemsListItemsLiveRequestLastUpdated.jsonOrThrow(lastUpdated, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + omitUndefined: true, + breadcrumbsPrefix: ["request", "lastUpdated"], + }) + : lastUpdated, sortBy: sortBy != null ? serializers.collections.ItemsListItemsLiveRequestSortBy.jsonOrThrow(sortBy, { 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 6c1c6cee..9dc47f76 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts @@ -10,7 +10,7 @@ import type * as Webflow from "../../../../../../index"; * limit: 1, * name: "name", * slug: "slug", - * sortBy: "lastPublished", + * sortBy: "createdOn", * sortOrder: "asc" * } */ @@ -25,8 +25,12 @@ export interface ItemsListItemsLiveRequest { name?: string; /** Filter by the exact slug of the item */ slug?: string; + /** Filter by the creation date of the item(s) */ + createdOn?: Webflow.ItemsListItemsLiveRequestCreatedOn; /** Filter by the last published date of the item(s) */ lastPublished?: Webflow.ItemsListItemsLiveRequestLastPublished; + /** Filter by the last updated date of the item(s) */ + lastUpdated?: Webflow.ItemsListItemsLiveRequestLastUpdated; /** Sort results by the provided value */ sortBy?: Webflow.collections.ItemsListItemsLiveRequestSortBy; /** Sorts the results by asc or desc */ 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 d93bfd2a..af6c474b 100644 --- a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts +++ b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts @@ -10,7 +10,7 @@ import type * as Webflow from "../../../../../../index"; * limit: 1, * name: "name", * slug: "slug", - * sortBy: "lastPublished", + * sortBy: "createdOn", * sortOrder: "asc" * } */ @@ -25,8 +25,12 @@ export interface ItemsListItemsRequest { name?: string; /** Filter by the exact slug of the item */ slug?: string; + /** Filter by the creation date of the item(s) */ + createdOn?: Webflow.ItemsListItemsRequestCreatedOn; /** Filter by the last published date of the item(s) */ lastPublished?: Webflow.ItemsListItemsRequestLastPublished; + /** Filter by the last updated date of the item(s) */ + lastUpdated?: Webflow.ItemsListItemsRequestLastUpdated; /** Sort results by the provided value */ sortBy?: Webflow.collections.ItemsListItemsRequestSortBy; /** Sorts the results by asc or desc */ diff --git a/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts b/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts index 62738ae3..cd8c7e9f 100644 --- a/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts +++ b/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts @@ -1,7 +1,9 @@ // This file was auto-generated by Fern from our API Definition. export const ItemsListItemsLiveRequestSortBy = { + CreatedOn: "createdOn", LastPublished: "lastPublished", + LastUpdated: "lastUpdated", Name: "name", Slug: "slug", } as const; diff --git a/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts b/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts index c4c612ce..9ec14702 100644 --- a/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts +++ b/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts @@ -1,7 +1,9 @@ // This file was auto-generated by Fern from our API Definition. export const ItemsListItemsRequestSortBy = { + CreatedOn: "createdOn", LastPublished: "lastPublished", + LastUpdated: "lastUpdated", Name: "name", Slug: "slug", } as const; diff --git a/src/api/resources/components/client/requests/ComponentDomWrite.ts b/src/api/resources/components/client/requests/ComponentDomWrite.ts index cab01181..be87c2b3 100644 --- a/src/api/resources/components/client/requests/ComponentDomWrite.ts +++ b/src/api/resources/components/client/requests/ComponentDomWrite.ts @@ -45,7 +45,7 @@ export interface ComponentDomWrite { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Scope the operation to work on a specific branch. */ diff --git a/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts b/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts index 306872f2..49444694 100644 --- a/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts +++ b/src/api/resources/components/client/requests/ComponentPropertiesWrite.ts @@ -20,7 +20,7 @@ export interface ComponentPropertiesWrite { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Scope the operation to work on a specific branch. */ diff --git a/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts b/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts index b5ae6764..eed1fe70 100644 --- a/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts +++ b/src/api/resources/components/client/requests/ComponentsGetContentRequest.ts @@ -13,7 +13,7 @@ export interface ComponentsGetContentRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Scope the operation to work on a specific branch. */ diff --git a/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts b/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts index bb164ecb..17220f20 100644 --- a/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts +++ b/src/api/resources/components/client/requests/ComponentsGetPropertiesRequest.ts @@ -13,7 +13,7 @@ export interface ComponentsGetPropertiesRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Scope the operation to work on a specific branch. */ diff --git a/src/api/resources/pages/client/requests/PageMetadataWrite.ts b/src/api/resources/pages/client/requests/PageMetadataWrite.ts index 61dc8a5a..6e6709e5 100644 --- a/src/api/resources/pages/client/requests/PageMetadataWrite.ts +++ b/src/api/resources/pages/client/requests/PageMetadataWrite.ts @@ -24,7 +24,7 @@ export interface PageMetadataWrite { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Title for the page */ diff --git a/src/api/resources/pages/client/requests/PagesGetContentRequest.ts b/src/api/resources/pages/client/requests/PagesGetContentRequest.ts index 36b820e4..3cca99e3 100644 --- a/src/api/resources/pages/client/requests/PagesGetContentRequest.ts +++ b/src/api/resources/pages/client/requests/PagesGetContentRequest.ts @@ -12,7 +12,7 @@ export interface PagesGetContentRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Maximum number of records to be returned (max limit: 100) */ diff --git a/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts b/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts index 9bab5f28..3f907cb7 100644 --- a/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts +++ b/src/api/resources/pages/client/requests/PagesGetMetadataRequest.ts @@ -10,7 +10,7 @@ export interface PagesGetMetadataRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn 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 14101b20..af70003b 100644 --- a/src/api/resources/pages/client/requests/PagesListRequest.ts +++ b/src/api/resources/pages/client/requests/PagesListRequest.ts @@ -12,7 +12,7 @@ export interface PagesListRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Maximum number of records to be returned (max limit: 100) */ diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 20dbf050..ae2ebd17 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -829,6 +829,8 @@ export class SitesClient { * * To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint. * + * You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body. + * * This endpoint has a specific rate limit of one successful publish queue per minute. * * Required scope | `sites:write` 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 2e4b7aac..1767e01b 100644 --- a/src/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.ts +++ b/src/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.ts @@ -16,7 +16,7 @@ export interface CommentsGetCommentThreadRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Offset used for pagination if the results have more than limit records */ 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 b0938d91..fd3d03f6 100644 --- a/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.ts +++ b/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.ts @@ -16,7 +16,7 @@ export interface CommentsListCommentRepliesRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Offset used for pagination if the results have more than limit records */ 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 30fda428..d3677740 100644 --- a/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.ts +++ b/src/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.ts @@ -16,7 +16,7 @@ export interface CommentsListCommentThreadsRequest { /** * Unique identifier for a specific Locale. * - * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization) + * [Learn more about localization.](/data/v2.0.0/docs/working-with-localization) */ localeId?: string; /** Offset used for pagination if the results have more than limit records */ diff --git a/src/api/types/CommentPayload.ts b/src/api/types/CommentPayload.ts index 09946ef0..d6479d79 100644 --- a/src/api/types/CommentPayload.ts +++ b/src/api/types/CommentPayload.ts @@ -14,12 +14,10 @@ export interface CommentPayload { type?: string; /** The site unique identifier */ siteId?: string; - /** The page unique identifier */ + /** The page unique identifier, or for CMS item comments, the template page ID */ pageId?: string; /** The locale unique identifier */ localeId?: string; - /** The item unique identifier */ - itemId?: string; /** The breakpoint the comment was left on */ breakpoint?: string; /** The URL of the page the comment was left on */ diff --git a/src/api/types/ComponentProperty.ts b/src/api/types/ComponentProperty.ts index c0a4c7a5..ea6a0fb2 100644 --- a/src/api/types/ComponentProperty.ts +++ b/src/api/types/ComponentProperty.ts @@ -2,16 +2,4 @@ import type * as Webflow from "../index"; -/** - * Represents a property of a component instance in the DOM. A property contains a list of both the raw text and the HTML representation, allowing for flexibility in rendering and processing. Additional attributes can be associated with the text for styling or other purposes. - */ -export interface ComponentProperty { - /** The ID of the property. */ - propertyId?: string; - /** The type of the property. */ - type?: Webflow.ComponentPropertyType; - /** The label of the property in the UI. */ - label?: string; - /** Represents text content within the DOM. It contains both the raw text and its HTML representation. */ - text?: Webflow.Text; -} +export type ComponentProperty = Webflow.ComponentPropertyText; diff --git a/src/api/types/ComponentPropertyText.ts b/src/api/types/ComponentPropertyText.ts new file mode 100644 index 00000000..363b3cb0 --- /dev/null +++ b/src/api/types/ComponentPropertyText.ts @@ -0,0 +1,17 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../index"; + +/** + * A text-based component property containing raw text and HTML representation. + */ +export interface ComponentPropertyText { + /** The ID of the property. */ + propertyId: string; + /** The type of the property. */ + type: Webflow.ComponentPropertyTextType; + /** The label of the property in the UI. */ + label: string; + /** Represents text content within the DOM. It contains both the raw text and its HTML representation. */ + text: Webflow.Text; +} diff --git a/src/api/types/ComponentPropertyType.ts b/src/api/types/ComponentPropertyTextType.ts similarity index 54% rename from src/api/types/ComponentPropertyType.ts rename to src/api/types/ComponentPropertyTextType.ts index 5f2d3413..9b24a575 100644 --- a/src/api/types/ComponentPropertyType.ts +++ b/src/api/types/ComponentPropertyTextType.ts @@ -1,9 +1,9 @@ // This file was auto-generated by Fern from our API Definition. /** The type of the property. */ -export const ComponentPropertyType = { +export const ComponentPropertyTextType = { PlainText: "Plain Text", RichText: "Rich Text", AltText: "Alt Text", } as const; -export type ComponentPropertyType = (typeof ComponentPropertyType)[keyof typeof ComponentPropertyType]; +export type ComponentPropertyTextType = (typeof ComponentPropertyTextType)[keyof typeof ComponentPropertyTextType]; diff --git a/src/api/types/Conflict.ts b/src/api/types/Conflict.ts index 1fe066c3..980d7493 100644 --- a/src/api/types/Conflict.ts +++ b/src/api/types/Conflict.ts @@ -1,3 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +/** + * Resource conflict + */ export type Conflict = unknown; diff --git a/src/api/types/FieldValidationsAdditionalProperties.ts b/src/api/types/FieldValidationsAdditionalProperties.ts index 0178fad1..c3549412 100644 --- a/src/api/types/FieldValidationsAdditionalProperties.ts +++ b/src/api/types/FieldValidationsAdditionalProperties.ts @@ -1,10 +1,3 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Webflow from "../index"; - -export type FieldValidationsAdditionalProperties = - | string - | number - | boolean - | number - | Webflow.FieldValidationsAdditionalPropertiesAdditionalProperties; +export type FieldValidationsAdditionalProperties = string | number | boolean | number | unknown; diff --git a/src/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts b/src/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts deleted file mode 100644 index 3232ec5a..00000000 --- a/src/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export interface FieldValidationsAdditionalPropertiesAdditionalProperties { - additionalProperties?: unknown; -} diff --git a/src/api/types/InvalidDomain.ts b/src/api/types/InvalidDomain.ts index 9e636d31..9263526d 100644 --- a/src/api/types/InvalidDomain.ts +++ b/src/api/types/InvalidDomain.ts @@ -1,3 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +/** + * Requested an invalid Domain. Please send a valid custom domain URI. + */ export type InvalidDomain = unknown; diff --git a/src/api/types/InvalidScopes.ts b/src/api/types/InvalidScopes.ts index f26c69e7..71330cb1 100644 --- a/src/api/types/InvalidScopes.ts +++ b/src/api/types/InvalidScopes.ts @@ -1,3 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +/** + * Provided access token is valid, but is missing the required scopes. + */ export type InvalidScopes = unknown; diff --git a/src/api/types/ItemsListItemsLiveRequestCreatedOn.ts b/src/api/types/ItemsListItemsLiveRequestCreatedOn.ts new file mode 100644 index 00000000..ac78c035 --- /dev/null +++ b/src/api/types/ItemsListItemsLiveRequestCreatedOn.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface ItemsListItemsLiveRequestCreatedOn { + /** Filter items created before this date */ + lte?: Date; + /** Filter items created after this date */ + gte?: Date; +} diff --git a/src/api/types/ItemsListItemsLiveRequestLastUpdated.ts b/src/api/types/ItemsListItemsLiveRequestLastUpdated.ts new file mode 100644 index 00000000..b6460edb --- /dev/null +++ b/src/api/types/ItemsListItemsLiveRequestLastUpdated.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface ItemsListItemsLiveRequestLastUpdated { + /** Filter items last updated before this date */ + lte?: Date; + /** Filter items last updated after this date */ + gte?: Date; +} diff --git a/src/api/types/ItemsListItemsRequestCreatedOn.ts b/src/api/types/ItemsListItemsRequestCreatedOn.ts new file mode 100644 index 00000000..135be75a --- /dev/null +++ b/src/api/types/ItemsListItemsRequestCreatedOn.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface ItemsListItemsRequestCreatedOn { + /** Filter items created before this date */ + lte?: Date; + /** Filter items created after this date */ + gte?: Date; +} diff --git a/src/api/types/ItemsListItemsRequestLastUpdated.ts b/src/api/types/ItemsListItemsRequestLastUpdated.ts new file mode 100644 index 00000000..8d38e4ad --- /dev/null +++ b/src/api/types/ItemsListItemsRequestLastUpdated.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface ItemsListItemsRequestLastUpdated { + /** Filter items last updated before this date */ + lte?: Date; + /** Filter items last updated after this date */ + gte?: Date; +} diff --git a/src/api/types/NoDomains.ts b/src/api/types/NoDomains.ts index ef51694c..693da7cd 100644 --- a/src/api/types/NoDomains.ts +++ b/src/api/types/NoDomains.ts @@ -1,3 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +/** + * You must pass at least one domain ID to the publish endpoint. + */ export type NoDomains = unknown; diff --git a/src/api/types/NotEnterprisePlanSite.ts b/src/api/types/NotEnterprisePlanSite.ts index 1c46d244..73e41b20 100644 --- a/src/api/types/NotEnterprisePlanSite.ts +++ b/src/api/types/NotEnterprisePlanSite.ts @@ -1,3 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +/** + * Error response for non-enterprise plan sites. + */ export type NotEnterprisePlanSite = unknown; diff --git a/src/api/types/NotEnterprisePlanWorkspace.ts b/src/api/types/NotEnterprisePlanWorkspace.ts index efa63194..6d25b9a9 100644 --- a/src/api/types/NotEnterprisePlanWorkspace.ts +++ b/src/api/types/NotEnterprisePlanWorkspace.ts @@ -1,3 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +/** + * Error response for non-enterprise plan workspaces. + */ export type NotEnterprisePlanWorkspace = unknown; diff --git a/src/api/types/SitePublishPayload.ts b/src/api/types/SitePublishPayload.ts index e715e4cc..7b3987d8 100644 --- a/src/api/types/SitePublishPayload.ts +++ b/src/api/types/SitePublishPayload.ts @@ -10,6 +10,6 @@ export interface SitePublishPayload { publishedOn?: Date; /** The domains that were published */ domains?: string[]; - /** The name andID of the user who published the site */ + /** The name and ID of the user who published the site */ publishedBy?: Record; } diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 3f2c22d3..ce98580e 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -58,7 +58,8 @@ export * from "./ComponentList"; export * from "./ComponentNode"; export * from "./ComponentProperties"; export * from "./ComponentProperty"; -export * from "./ComponentPropertyType"; +export * from "./ComponentPropertyText"; +export * from "./ComponentPropertyTextType"; export * from "./Conflict"; export * from "./CustomCodeBlock"; export * from "./CustomCodeBlockType"; @@ -78,7 +79,6 @@ export * from "./FieldCreate"; export * from "./FieldType"; export * from "./FieldValidations"; export * from "./FieldValidationsAdditionalProperties"; -export * from "./FieldValidationsAdditionalPropertiesAdditionalProperties"; export * from "./ForbiddenErrorBody"; export * from "./Form"; export * from "./FormField"; @@ -98,8 +98,12 @@ export * from "./InvalidDomain"; export * from "./InvalidScopes"; export * from "./InventoryItem"; export * from "./InventoryItemInventoryType"; +export * from "./ItemsListItemsLiveRequestCreatedOn"; export * from "./ItemsListItemsLiveRequestLastPublished"; +export * from "./ItemsListItemsLiveRequestLastUpdated"; +export * from "./ItemsListItemsRequestCreatedOn"; export * from "./ItemsListItemsRequestLastPublished"; +export * from "./ItemsListItemsRequestLastUpdated"; export * from "./ListCustomCodeBlocks"; export * from "./Locale"; export * from "./Locales"; diff --git a/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts b/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts index 6ac25a9b..2c705281 100644 --- a/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts +++ b/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts @@ -6,15 +6,15 @@ import type * as serializers from "../../../../index"; export const AssetsUpdateRequest: core.serialization.Schema< serializers.AssetsUpdateRequest.Raw, - Webflow.AssetsUpdateRequest + Omit > = core.serialization.object({ - localeId: core.serialization.string().optional(), displayName: core.serialization.string().optional(), + altText: core.serialization.string().optional(), }); export declare namespace AssetsUpdateRequest { export interface Raw { - localeId?: string | null; displayName?: string | null; + altText?: string | null; } } diff --git a/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts b/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts index 695cd759..71e242c7 100644 --- a/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts +++ b/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../../../index"; export const ItemsListItemsLiveRequestSortBy: core.serialization.Schema< serializers.collections.ItemsListItemsLiveRequestSortBy.Raw, Webflow.collections.ItemsListItemsLiveRequestSortBy -> = core.serialization.enum_(["lastPublished", "name", "slug"]); +> = core.serialization.enum_(["createdOn", "lastPublished", "lastUpdated", "name", "slug"]); export declare namespace ItemsListItemsLiveRequestSortBy { - export type Raw = "lastPublished" | "name" | "slug"; + export type Raw = "createdOn" | "lastPublished" | "lastUpdated" | "name" | "slug"; } diff --git a/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts b/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts index 3da20a13..4c7fec75 100644 --- a/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts +++ b/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../../../index"; export const ItemsListItemsRequestSortBy: core.serialization.Schema< serializers.collections.ItemsListItemsRequestSortBy.Raw, Webflow.collections.ItemsListItemsRequestSortBy -> = core.serialization.enum_(["lastPublished", "name", "slug"]); +> = core.serialization.enum_(["createdOn", "lastPublished", "lastUpdated", "name", "slug"]); export declare namespace ItemsListItemsRequestSortBy { - export type Raw = "lastPublished" | "name" | "slug"; + export type Raw = "createdOn" | "lastPublished" | "lastUpdated" | "name" | "slug"; } diff --git a/src/serialization/types/CommentPayload.ts b/src/serialization/types/CommentPayload.ts index 5bbda6da..5ff75bcc 100644 --- a/src/serialization/types/CommentPayload.ts +++ b/src/serialization/types/CommentPayload.ts @@ -14,7 +14,6 @@ export const CommentPayload: core.serialization.ObjectSchema = core.serialization.object({ - propertyId: core.serialization.string().optional(), - type: ComponentPropertyType.optional(), - label: core.serialization.string().optional(), - text: Text.optional(), -}); +> = ComponentPropertyText; export declare namespace ComponentProperty { - export interface Raw { - propertyId?: string | null; - type?: ComponentPropertyType.Raw | null; - label?: string | null; - text?: Text.Raw | null; - } + export type Raw = ComponentPropertyText.Raw; } diff --git a/src/serialization/types/ComponentPropertyText.ts b/src/serialization/types/ComponentPropertyText.ts new file mode 100644 index 00000000..adb9e388 --- /dev/null +++ b/src/serialization/types/ComponentPropertyText.ts @@ -0,0 +1,26 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; +import { ComponentPropertyTextType } from "./ComponentPropertyTextType"; +import { Text } from "./Text"; + +export const ComponentPropertyText: core.serialization.ObjectSchema< + serializers.ComponentPropertyText.Raw, + Webflow.ComponentPropertyText +> = core.serialization.object({ + propertyId: core.serialization.string(), + type: ComponentPropertyTextType, + label: core.serialization.string(), + text: Text, +}); + +export declare namespace ComponentPropertyText { + export interface Raw { + propertyId: string; + type: ComponentPropertyTextType.Raw; + label: string; + text: Text.Raw; + } +} diff --git a/src/serialization/types/ComponentPropertyType.ts b/src/serialization/types/ComponentPropertyTextType.ts similarity index 62% rename from src/serialization/types/ComponentPropertyType.ts rename to src/serialization/types/ComponentPropertyTextType.ts index 654a85ae..32c41f58 100644 --- a/src/serialization/types/ComponentPropertyType.ts +++ b/src/serialization/types/ComponentPropertyTextType.ts @@ -4,11 +4,11 @@ import type * as Webflow from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; -export const ComponentPropertyType: core.serialization.Schema< - serializers.ComponentPropertyType.Raw, - Webflow.ComponentPropertyType +export const ComponentPropertyTextType: core.serialization.Schema< + serializers.ComponentPropertyTextType.Raw, + Webflow.ComponentPropertyTextType > = core.serialization.enum_(["Plain Text", "Rich Text", "Alt Text"]); -export declare namespace ComponentPropertyType { +export declare namespace ComponentPropertyTextType { export type Raw = "Plain Text" | "Rich Text" | "Alt Text"; } diff --git a/src/serialization/types/FieldValidationsAdditionalProperties.ts b/src/serialization/types/FieldValidationsAdditionalProperties.ts index 4331fb42..790bdbe5 100644 --- a/src/serialization/types/FieldValidationsAdditionalProperties.ts +++ b/src/serialization/types/FieldValidationsAdditionalProperties.ts @@ -3,7 +3,6 @@ import type * as Webflow from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; -import { FieldValidationsAdditionalPropertiesAdditionalProperties } from "./FieldValidationsAdditionalPropertiesAdditionalProperties"; export const FieldValidationsAdditionalProperties: core.serialization.Schema< serializers.FieldValidationsAdditionalProperties.Raw, @@ -13,9 +12,9 @@ export const FieldValidationsAdditionalProperties: core.serialization.Schema< core.serialization.number(), core.serialization.boolean(), core.serialization.number(), - FieldValidationsAdditionalPropertiesAdditionalProperties, + core.serialization.unknown(), ]); export declare namespace FieldValidationsAdditionalProperties { - export type Raw = string | number | boolean | number | FieldValidationsAdditionalPropertiesAdditionalProperties.Raw; + export type Raw = string | number | boolean | number | unknown; } diff --git a/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts b/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts deleted file mode 100644 index 0fb06eaa..00000000 --- a/src/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Webflow from "../../api/index"; -import * as core from "../../core"; -import type * as serializers from "../index"; - -export const FieldValidationsAdditionalPropertiesAdditionalProperties: core.serialization.ObjectSchema< - serializers.FieldValidationsAdditionalPropertiesAdditionalProperties.Raw, - Webflow.FieldValidationsAdditionalPropertiesAdditionalProperties -> = core.serialization.object({ - additionalProperties: core.serialization.unknown(), -}); - -export declare namespace FieldValidationsAdditionalPropertiesAdditionalProperties { - export interface Raw { - additionalProperties?: unknown; - } -} diff --git a/src/serialization/types/ItemsListItemsLiveRequestCreatedOn.ts b/src/serialization/types/ItemsListItemsLiveRequestCreatedOn.ts new file mode 100644 index 00000000..625dc376 --- /dev/null +++ b/src/serialization/types/ItemsListItemsLiveRequestCreatedOn.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; + +export const ItemsListItemsLiveRequestCreatedOn: core.serialization.ObjectSchema< + serializers.ItemsListItemsLiveRequestCreatedOn.Raw, + Webflow.ItemsListItemsLiveRequestCreatedOn +> = core.serialization.object({ + lte: core.serialization.date().optional(), + gte: core.serialization.date().optional(), +}); + +export declare namespace ItemsListItemsLiveRequestCreatedOn { + export interface Raw { + lte?: string | null; + gte?: string | null; + } +} diff --git a/src/serialization/types/ItemsListItemsLiveRequestLastUpdated.ts b/src/serialization/types/ItemsListItemsLiveRequestLastUpdated.ts new file mode 100644 index 00000000..27c2e3ac --- /dev/null +++ b/src/serialization/types/ItemsListItemsLiveRequestLastUpdated.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; + +export const ItemsListItemsLiveRequestLastUpdated: core.serialization.ObjectSchema< + serializers.ItemsListItemsLiveRequestLastUpdated.Raw, + Webflow.ItemsListItemsLiveRequestLastUpdated +> = core.serialization.object({ + lte: core.serialization.date().optional(), + gte: core.serialization.date().optional(), +}); + +export declare namespace ItemsListItemsLiveRequestLastUpdated { + export interface Raw { + lte?: string | null; + gte?: string | null; + } +} diff --git a/src/serialization/types/ItemsListItemsRequestCreatedOn.ts b/src/serialization/types/ItemsListItemsRequestCreatedOn.ts new file mode 100644 index 00000000..c309ef37 --- /dev/null +++ b/src/serialization/types/ItemsListItemsRequestCreatedOn.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; + +export const ItemsListItemsRequestCreatedOn: core.serialization.ObjectSchema< + serializers.ItemsListItemsRequestCreatedOn.Raw, + Webflow.ItemsListItemsRequestCreatedOn +> = core.serialization.object({ + lte: core.serialization.date().optional(), + gte: core.serialization.date().optional(), +}); + +export declare namespace ItemsListItemsRequestCreatedOn { + export interface Raw { + lte?: string | null; + gte?: string | null; + } +} diff --git a/src/serialization/types/ItemsListItemsRequestLastUpdated.ts b/src/serialization/types/ItemsListItemsRequestLastUpdated.ts new file mode 100644 index 00000000..78e9f3b4 --- /dev/null +++ b/src/serialization/types/ItemsListItemsRequestLastUpdated.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; + +export const ItemsListItemsRequestLastUpdated: core.serialization.ObjectSchema< + serializers.ItemsListItemsRequestLastUpdated.Raw, + Webflow.ItemsListItemsRequestLastUpdated +> = core.serialization.object({ + lte: core.serialization.date().optional(), + gte: core.serialization.date().optional(), +}); + +export declare namespace ItemsListItemsRequestLastUpdated { + export interface Raw { + lte?: string | null; + gte?: string | null; + } +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 3f2c22d3..ce98580e 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -58,7 +58,8 @@ export * from "./ComponentList"; export * from "./ComponentNode"; export * from "./ComponentProperties"; export * from "./ComponentProperty"; -export * from "./ComponentPropertyType"; +export * from "./ComponentPropertyText"; +export * from "./ComponentPropertyTextType"; export * from "./Conflict"; export * from "./CustomCodeBlock"; export * from "./CustomCodeBlockType"; @@ -78,7 +79,6 @@ export * from "./FieldCreate"; export * from "./FieldType"; export * from "./FieldValidations"; export * from "./FieldValidationsAdditionalProperties"; -export * from "./FieldValidationsAdditionalPropertiesAdditionalProperties"; export * from "./ForbiddenErrorBody"; export * from "./Form"; export * from "./FormField"; @@ -98,8 +98,12 @@ export * from "./InvalidDomain"; export * from "./InvalidScopes"; export * from "./InventoryItem"; export * from "./InventoryItemInventoryType"; +export * from "./ItemsListItemsLiveRequestCreatedOn"; export * from "./ItemsListItemsLiveRequestLastPublished"; +export * from "./ItemsListItemsLiveRequestLastUpdated"; +export * from "./ItemsListItemsRequestCreatedOn"; export * from "./ItemsListItemsRequestLastPublished"; +export * from "./ItemsListItemsRequestLastUpdated"; export * from "./ListCustomCodeBlocks"; export * from "./Locale"; export * from "./Locales"; diff --git a/src/version.ts b/src/version.ts index 09d1b129..7f892b69 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "3.3.4"; +export const SDK_VERSION = "3.3.5"; diff --git a/tests/wire/assets.test.ts b/tests/wire/assets.test.ts index ffd6dd3a..98787565 100644 --- a/tests/wire/assets.test.ts +++ b/tests/wire/assets.test.ts @@ -77,6 +77,7 @@ describe("AssetsClient", () => { .build(); const response = await client.assets.list("580e63e98c9a982ac9b8b741", { + localeId: "65427cf400e02b306eaa04a0", offset: 1, limit: 1, }); @@ -498,7 +499,9 @@ describe("AssetsClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.assets.get("580e63fc8c9a982ac9b8b745"); + const response = await client.assets.get("580e63fc8c9a982ac9b8b745", { + localeId: "65427cf400e02b306eaa04a0", + }); expect(response).toEqual({ id: "63e5889e7fe4eafa7384cea4", contentType: "image/png", @@ -770,7 +773,9 @@ describe("AssetsClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.assets.update("580e63fc8c9a982ac9b8b745"); + const response = await client.assets.update("580e63fc8c9a982ac9b8b745", { + localeId: "65427cf400e02b306eaa04a0", + }); expect(response).toEqual({ id: "63e5889e7fe4eafa7384cea4", contentType: "image/png", diff --git a/tests/wire/collections.test.ts b/tests/wire/collections.test.ts index 811e18b0..cb7a8ce7 100644 --- a/tests/wire/collections.test.ts +++ b/tests/wire/collections.test.ts @@ -588,7 +588,7 @@ describe("CollectionsClient", () => { id: "4f5e6d7c8b9a0e1d2c3b4a5f", isRequired: false, isEditable: true, - type: "Color", + type: "DateTime", slug: "first-mentioned", displayName: "First Mentioned", helpText: "Date of the first mention of the subject.", @@ -757,7 +757,7 @@ describe("CollectionsClient", () => { id: "4f5e6d7c8b9a0e1d2c3b4a5f", isRequired: false, isEditable: true, - type: "Color", + type: "DateTime", slug: "first-mentioned", displayName: "First Mentioned", helpText: "Date of the first mention of the subject.", diff --git a/tests/wire/collections/items.test.ts b/tests/wire/collections/items.test.ts index 6056dcdc..2103ac16 100644 --- a/tests/wire/collections/items.test.ts +++ b/tests/wire/collections/items.test.ts @@ -62,7 +62,7 @@ describe("ItemsClient", () => { limit: 1, name: "name", slug: "slug", - sortBy: "lastPublished", + sortBy: "createdOn", sortOrder: "asc", }); expect(response).toEqual({ @@ -1385,7 +1385,7 @@ describe("ItemsClient", () => { limit: 1, name: "name", slug: "slug", - sortBy: "lastPublished", + sortBy: "createdOn", sortOrder: "asc", }); expect(response).toEqual({ diff --git a/tests/wire/components.test.ts b/tests/wire/components.test.ts index 085886ff..2479e2b7 100644 --- a/tests/wire/components.test.ts +++ b/tests/wire/components.test.ts @@ -201,7 +201,7 @@ describe("ComponentsClient", () => { }); const rawResponseBody = { - componentId: "69118560-d0bc-15fc-bbf8-b8fe5f6535b5", + componentId: "69118560-d0bc-4fbb-8bfe-5f6535b50001", nodes: [ { type: "text", id: "id", text: {}, attributes: { key: "value" } }, { type: "text", id: "id", text: {}, attributes: { key: "value" } }, @@ -219,7 +219,14 @@ describe("ComponentsClient", () => { type: "component-instance", id: "id", componentId: "componentId", - propertyOverrides: [{ propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0" }], + propertyOverrides: [ + { + propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0", + type: "Plain Text", + label: "label", + text: {}, + }, + ], }, ], pagination: { limit: 7, offset: 0, total: 7 }, @@ -243,7 +250,7 @@ describe("ComponentsClient", () => { }, ); expect(response).toEqual({ - componentId: "69118560-d0bc-15fc-bbf8-b8fe5f6535b5", + componentId: "69118560-d0bc-4fbb-8bfe-5f6535b50001", nodes: [ { type: "text", @@ -306,6 +313,9 @@ describe("ComponentsClient", () => { propertyOverrides: [ { propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0", + type: "Plain Text", + label: "label", + text: {}, }, ], }, @@ -780,7 +790,7 @@ describe("ComponentsClient", () => { }); const rawResponseBody = { - componentId: "658205daa3e8206a523b5ad4", + componentId: "658205da-a3e8-4206-a523-b5ad4fabcdef", properties: [ { propertyId: "a245c12d-995b-55ee-5ec7-aa36a6cad623", @@ -816,7 +826,7 @@ describe("ComponentsClient", () => { }, ); expect(response).toEqual({ - componentId: "658205daa3e8206a523b5ad4", + componentId: "658205da-a3e8-4206-a523-b5ad4fabcdef", properties: [ { propertyId: "a245c12d-995b-55ee-5ec7-aa36a6cad623", diff --git a/tests/wire/orders.test.ts b/tests/wire/orders.test.ts index 5ef3ecef..3af41564 100644 --- a/tests/wire/orders.test.ts +++ b/tests/wire/orders.test.ts @@ -22,9 +22,9 @@ describe("OrdersClient", () => { "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: "21155", string: "$ 211.55 USD" }, + netAmount: { unit: "USD", value: "20089", string: "$ 200.89 USD" }, + applicationFee: { unit: "USD", value: "423", string: "$ 4.23 USD" }, allAddresses: [ { type: "billing", @@ -75,7 +75,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 2, - rowTotal: { unit: "USD", value: "5892", string: "$ 111.22 USD" }, + rowTotal: { unit: "USD", value: "11122", string: "$ 111.22 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -86,7 +86,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -94,7 +94,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 83.09 USD" }, + rowTotal: { unit: "USD", value: "8309", string: "$ 83.09 USD" }, productId: "66072fb61b89448912e2678b", productName: "Incredible Bronze Towels", productSlug: "incredible-bronze-towels", @@ -105,7 +105,7 @@ describe("OrdersClient", () => { 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: "8309", string: "$ 83.09 USD" }, width: 19, height: 72, length: 18, @@ -137,7 +137,7 @@ describe("OrdersClient", () => { type: "tax", name: "State Taxes", description: "CA Taxes (6.25%)", - price: { unit: "USD", value: "5892", string: "$3.44" }, + price: { unit: "USD", value: "344", string: "$3.44" }, }, ], total: { unit: "USD", value: "5892", string: "$58.92" }, @@ -157,9 +157,9 @@ describe("OrdersClient", () => { 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: "11873", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "11262", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "237", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -209,7 +209,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, + rowTotal: { unit: "USD", value: "5561", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -220,7 +220,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -228,7 +228,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, + rowTotal: { unit: "USD", value: "5344", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -239,7 +239,7 @@ describe("OrdersClient", () => { 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: "5344", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -268,28 +268,28 @@ describe("OrdersClient", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, + subtotal: { unit: "USD", value: "10905", 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: "436", 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: "532", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, + price: { unit: "USD", value: "0", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + total: { unit: "USD", value: "11873", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -326,17 +326,17 @@ describe("OrdersClient", () => { acceptedOn: new Date("2024-04-10T13:16:21.000Z"), customerPaid: { unit: "USD", - value: "5892", + value: "21155", string: "$ 211.55 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "20089", string: "$ 200.89 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "423", string: "$ 4.23 USD", }, allAddresses: [ @@ -394,7 +394,7 @@ describe("OrdersClient", () => { count: 2, rowTotal: { unit: "USD", - value: "5892", + value: "11122", string: "$ 111.22 USD", }, productId: "66072fb61b89448912e26791", @@ -409,7 +409,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -421,7 +421,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "8309", string: "$ 83.09 USD", }, productId: "66072fb61b89448912e2678b", @@ -436,7 +436,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "8309", string: "$ 83.09 USD", }, width: 19, @@ -485,7 +485,7 @@ describe("OrdersClient", () => { description: "CA Taxes (6.25%)", price: { unit: "USD", - value: "5892", + value: "344", string: "$3.44", }, }, @@ -513,17 +513,17 @@ describe("OrdersClient", () => { refundedOn: new Date("2024-04-08T18:25:04.000Z"), customerPaid: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "11262", string: "$ 112.62 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "237", string: "$ 2.37 USD", }, allAddresses: [ @@ -580,7 +580,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", @@ -595,7 +595,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -607,7 +607,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", @@ -622,7 +622,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, weight: 38, @@ -664,7 +664,7 @@ describe("OrdersClient", () => { totals: { subtotal: { unit: "USD", - value: "5892", + value: "10905", string: "$ 109.05 USD", }, extras: [ @@ -674,7 +674,7 @@ describe("OrdersClient", () => { description: "NY Taxes (4.00%)", price: { unit: "USD", - value: "5892", + value: "436", string: "$ 4.36 USD", }, }, @@ -684,7 +684,7 @@ describe("OrdersClient", () => { description: "NEW YORK Taxes (4.88%)", price: { unit: "USD", - value: "5892", + value: "532", string: "$ 5.32 USD", }, }, @@ -694,14 +694,14 @@ describe("OrdersClient", () => { description: "", price: { unit: "USD", - value: "5892", + value: "0", string: "$ 0.00 USD", }, }, ], total: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, }, @@ -896,9 +896,9 @@ describe("OrdersClient", () => { 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: "11873", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "11262", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "237", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -952,7 +952,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, + rowTotal: { unit: "USD", value: "5561", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -963,7 +963,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -971,7 +971,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, + rowTotal: { unit: "USD", value: "5344", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -982,7 +982,7 @@ describe("OrdersClient", () => { 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: "5344", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -1006,28 +1006,28 @@ describe("OrdersClient", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, + subtotal: { unit: "USD", value: "10905", 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: "436", 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: "532", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, + price: { unit: "USD", value: "0", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + total: { unit: "USD", value: "11873", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -1060,17 +1060,17 @@ describe("OrdersClient", () => { disputeLastStatus: "charge_refunded", customerPaid: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "11262", string: "$ 112.62 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "237", string: "$ 2.37 USD", }, allAddresses: [ @@ -1131,7 +1131,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", @@ -1146,7 +1146,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -1158,7 +1158,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", @@ -1173,7 +1173,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, weight: 38, @@ -1215,7 +1215,7 @@ describe("OrdersClient", () => { totals: { subtotal: { unit: "USD", - value: "5892", + value: "10905", string: "$ 109.05 USD", }, extras: [ @@ -1225,7 +1225,7 @@ describe("OrdersClient", () => { description: "NY Taxes (4.00%)", price: { unit: "USD", - value: "5892", + value: "436", string: "$ 4.36 USD", }, }, @@ -1235,7 +1235,7 @@ describe("OrdersClient", () => { description: "NEW YORK Taxes (4.88%)", price: { unit: "USD", - value: "5892", + value: "532", string: "$ 5.32 USD", }, }, @@ -1245,14 +1245,14 @@ describe("OrdersClient", () => { description: "", price: { unit: "USD", - value: "5892", + value: "0", string: "$ 0.00 USD", }, }, ], total: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, }, @@ -1440,9 +1440,9 @@ describe("OrdersClient", () => { 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: "11873", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "11262", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "237", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -1496,7 +1496,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, + rowTotal: { unit: "USD", value: "5561", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -1507,7 +1507,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -1515,7 +1515,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, + rowTotal: { unit: "USD", value: "5344", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -1526,7 +1526,7 @@ describe("OrdersClient", () => { 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: "5344", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -1550,28 +1550,28 @@ describe("OrdersClient", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, + subtotal: { unit: "USD", value: "10905", 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: "436", 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: "532", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, + price: { unit: "USD", value: "0", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + total: { unit: "USD", value: "11873", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -1605,17 +1605,17 @@ describe("OrdersClient", () => { disputeLastStatus: "charge_refunded", customerPaid: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "11262", string: "$ 112.62 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "237", string: "$ 2.37 USD", }, allAddresses: [ @@ -1676,7 +1676,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", @@ -1691,7 +1691,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -1703,7 +1703,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", @@ -1718,7 +1718,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, weight: 38, @@ -1760,7 +1760,7 @@ describe("OrdersClient", () => { totals: { subtotal: { unit: "USD", - value: "5892", + value: "10905", string: "$ 109.05 USD", }, extras: [ @@ -1770,7 +1770,7 @@ describe("OrdersClient", () => { description: "NY Taxes (4.00%)", price: { unit: "USD", - value: "5892", + value: "436", string: "$ 4.36 USD", }, }, @@ -1780,7 +1780,7 @@ describe("OrdersClient", () => { description: "NEW YORK Taxes (4.88%)", price: { unit: "USD", - value: "5892", + value: "532", string: "$ 5.32 USD", }, }, @@ -1790,14 +1790,14 @@ describe("OrdersClient", () => { description: "", price: { unit: "USD", - value: "5892", + value: "0", string: "$ 0.00 USD", }, }, ], total: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, }, @@ -1992,9 +1992,9 @@ describe("OrdersClient", () => { 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: "11873", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "11262", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "237", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -2048,7 +2048,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, + rowTotal: { unit: "USD", value: "5561", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -2059,7 +2059,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -2067,7 +2067,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, + rowTotal: { unit: "USD", value: "5344", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -2078,7 +2078,7 @@ describe("OrdersClient", () => { 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: "5344", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -2102,28 +2102,28 @@ describe("OrdersClient", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, + subtotal: { unit: "USD", value: "10905", 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: "436", 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: "532", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, + price: { unit: "USD", value: "0", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + total: { unit: "USD", value: "11873", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -2157,17 +2157,17 @@ describe("OrdersClient", () => { disputeLastStatus: "charge_refunded", customerPaid: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "11262", string: "$ 112.62 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "237", string: "$ 2.37 USD", }, allAddresses: [ @@ -2228,7 +2228,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", @@ -2243,7 +2243,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -2255,7 +2255,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", @@ -2270,7 +2270,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, weight: 38, @@ -2312,7 +2312,7 @@ describe("OrdersClient", () => { totals: { subtotal: { unit: "USD", - value: "5892", + value: "10905", string: "$ 109.05 USD", }, extras: [ @@ -2322,7 +2322,7 @@ describe("OrdersClient", () => { description: "NY Taxes (4.00%)", price: { unit: "USD", - value: "5892", + value: "436", string: "$ 4.36 USD", }, }, @@ -2332,7 +2332,7 @@ describe("OrdersClient", () => { description: "NEW YORK Taxes (4.88%)", price: { unit: "USD", - value: "5892", + value: "532", string: "$ 5.32 USD", }, }, @@ -2342,14 +2342,14 @@ describe("OrdersClient", () => { description: "", price: { unit: "USD", - value: "5892", + value: "0", string: "$ 0.00 USD", }, }, ], total: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, }, @@ -2544,9 +2544,9 @@ describe("OrdersClient", () => { 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: "11873", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "11262", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "237", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -2600,7 +2600,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, + rowTotal: { unit: "USD", value: "5561", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -2611,7 +2611,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -2619,7 +2619,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, + rowTotal: { unit: "USD", value: "5344", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -2630,7 +2630,7 @@ describe("OrdersClient", () => { 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: "5344", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -2654,28 +2654,28 @@ describe("OrdersClient", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, + subtotal: { unit: "USD", value: "10905", 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: "436", 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: "532", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, + price: { unit: "USD", value: "0", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + total: { unit: "USD", value: "11873", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -2708,17 +2708,17 @@ describe("OrdersClient", () => { disputeLastStatus: "charge_refunded", customerPaid: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "11262", string: "$ 112.62 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "237", string: "$ 2.37 USD", }, allAddresses: [ @@ -2779,7 +2779,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", @@ -2794,7 +2794,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -2806,7 +2806,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", @@ -2821,7 +2821,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, weight: 38, @@ -2863,7 +2863,7 @@ describe("OrdersClient", () => { totals: { subtotal: { unit: "USD", - value: "5892", + value: "10905", string: "$ 109.05 USD", }, extras: [ @@ -2873,7 +2873,7 @@ describe("OrdersClient", () => { description: "NY Taxes (4.00%)", price: { unit: "USD", - value: "5892", + value: "436", string: "$ 4.36 USD", }, }, @@ -2883,7 +2883,7 @@ describe("OrdersClient", () => { description: "NEW YORK Taxes (4.88%)", price: { unit: "USD", - value: "5892", + value: "532", string: "$ 5.32 USD", }, }, @@ -2893,14 +2893,14 @@ describe("OrdersClient", () => { description: "", price: { unit: "USD", - value: "5892", + value: "0", string: "$ 0.00 USD", }, }, ], total: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, }, @@ -3088,9 +3088,9 @@ describe("OrdersClient", () => { 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: "11873", string: "$ 118.73 USD" }, + netAmount: { unit: "USD", value: "11262", string: "$ 112.62 USD" }, + applicationFee: { unit: "USD", value: "237", string: "$ 2.37 USD" }, allAddresses: [ { type: "billing", @@ -3144,7 +3144,7 @@ describe("OrdersClient", () => { purchasedItems: [ { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 55.61 USD" }, + rowTotal: { unit: "USD", value: "5561", string: "$ 55.61 USD" }, productId: "66072fb61b89448912e26791", productName: "Luxurious Fresh Ball", productSlug: "luxurious-fresh-ball", @@ -3155,7 +3155,7 @@ describe("OrdersClient", () => { 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: "5561", string: "$ 55.61 USD" }, weight: 11, width: 82, height: 70, @@ -3163,7 +3163,7 @@ describe("OrdersClient", () => { }, { count: 1, - rowTotal: { unit: "USD", value: "5892", string: "$ 53.44 USD" }, + rowTotal: { unit: "USD", value: "5344", string: "$ 53.44 USD" }, productId: "66072fb61b89448912e26799", productName: "Recycled Steel Gloves", productSlug: "recycled-steel-gloves", @@ -3174,7 +3174,7 @@ describe("OrdersClient", () => { 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: "5344", string: "$ 53.44 USD" }, weight: 38, width: 76, height: 85, @@ -3198,28 +3198,28 @@ describe("OrdersClient", () => { hasDownloads: false, paymentProcessor: "stripe", totals: { - subtotal: { unit: "USD", value: "5892", string: "$ 109.05 USD" }, + subtotal: { unit: "USD", value: "10905", 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: "436", 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: "532", string: "$ 5.32 USD" }, }, { type: "shipping", name: "Flat", description: "", - price: { unit: "USD", value: "5892", string: "$ 0.00 USD" }, + price: { unit: "USD", value: "0", string: "$ 0.00 USD" }, }, ], - total: { unit: "USD", value: "5892", string: "$ 118.73 USD" }, + total: { unit: "USD", value: "11873", string: "$ 118.73 USD" }, }, downloadFiles: [ { @@ -3253,17 +3253,17 @@ describe("OrdersClient", () => { disputeLastStatus: "charge_refunded", customerPaid: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, netAmount: { unit: "USD", - value: "5892", + value: "11262", string: "$ 112.62 USD", }, applicationFee: { unit: "USD", - value: "5892", + value: "237", string: "$ 2.37 USD", }, allAddresses: [ @@ -3324,7 +3324,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, productId: "66072fb61b89448912e26791", @@ -3339,7 +3339,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5561", string: "$ 55.61 USD", }, weight: 11, @@ -3351,7 +3351,7 @@ describe("OrdersClient", () => { count: 1, rowTotal: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, productId: "66072fb61b89448912e26799", @@ -3366,7 +3366,7 @@ describe("OrdersClient", () => { }, variantPrice: { unit: "USD", - value: "5892", + value: "5344", string: "$ 53.44 USD", }, weight: 38, @@ -3408,7 +3408,7 @@ describe("OrdersClient", () => { totals: { subtotal: { unit: "USD", - value: "5892", + value: "10905", string: "$ 109.05 USD", }, extras: [ @@ -3418,7 +3418,7 @@ describe("OrdersClient", () => { description: "NY Taxes (4.00%)", price: { unit: "USD", - value: "5892", + value: "436", string: "$ 4.36 USD", }, }, @@ -3428,7 +3428,7 @@ describe("OrdersClient", () => { description: "NEW YORK Taxes (4.88%)", price: { unit: "USD", - value: "5892", + value: "532", string: "$ 5.32 USD", }, }, @@ -3438,14 +3438,14 @@ describe("OrdersClient", () => { description: "", price: { unit: "USD", - value: "5892", + value: "0", string: "$ 0.00 USD", }, }, ], total: { unit: "USD", - value: "5892", + value: "11873", string: "$ 118.73 USD", }, }, diff --git a/tests/wire/pages.test.ts b/tests/wire/pages.test.ts index fdad289e..ff3d2f78 100644 --- a/tests/wire/pages.test.ts +++ b/tests/wire/pages.test.ts @@ -649,7 +649,14 @@ describe("PagesClient", () => { type: "component-instance", id: "id", componentId: "componentId", - propertyOverrides: [{ propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0" }], + propertyOverrides: [ + { + propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0", + type: "Plain Text", + label: "label", + text: {}, + }, + ], }, ], pagination: { limit: 4, offset: 0, total: 4 }, @@ -732,6 +739,9 @@ describe("PagesClient", () => { propertyOverrides: [ { propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0", + type: "Plain Text", + label: "label", + text: {}, }, ], }, diff --git a/tests/wire/sites.test.ts b/tests/wire/sites.test.ts index de88ff3c..febbdc99 100644 --- a/tests/wire/sites.test.ts +++ b/tests/wire/sites.test.ts @@ -19,7 +19,10 @@ describe("SitesClient", () => { createdOn: "2024-10-15T20:24:38Z", displayName: "The Hitchiker's Guide", shortName: "hitchikers-guide", + lastPublished: "2024-11-15T20:24:38Z", lastUpdated: "2024-10-15T20:24:38Z", + previewUrl: "https://preview.mysite.com", + timeZone: "America/Los_Angeles", parentFolderId: "670ece123598db72d9648be1", customDomains: [ { id: "589a331aa51e760df7ccb89d", url: "test-api-domain.com", lastPublished: "2022-12-07T16:51:37Z" }, @@ -45,7 +48,10 @@ describe("SitesClient", () => { createdOn: new Date("2024-10-15T20:24:38.000Z"), displayName: "The Hitchiker's Guide", shortName: "hitchikers-guide", + lastPublished: new Date("2024-11-15T20:24:38.000Z"), lastUpdated: new Date("2024-10-15T20:24:38.000Z"), + previewUrl: "https://preview.mysite.com", + timeZone: "America/Los_Angeles", parentFolderId: "670ece123598db72d9648be1", customDomains: [ { @@ -228,7 +234,7 @@ describe("SitesClient", () => { lastPublished: "2023-04-02T12:42:00Z", lastUpdated: "2016-10-24T19:43:17Z", previewUrl: "https://dev-assets.website-files.com/42e63e98c9a982ac9b8b741/197910121200.png", - timeZone: "DeepSpace/InfiniteImprobability", + timeZone: "America/Los_Angeles", parentFolderId: "1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6", customDomains: [ { @@ -280,7 +286,7 @@ describe("SitesClient", () => { lastPublished: "2023-04-02T12:45:00Z", lastUpdated: "2016-10-24T19:43:17Z", previewUrl: "https://dev-assets.website-files.com/42e63e98c9a982ac9b8b742/198110121200.png", - timeZone: "DeepSpace/Depression", + timeZone: "America/Los_Angeles", customDomains: [ { id: "589a331aa51e760df7ccb89f", url: "marvin.blog", lastPublished: "2022-12-07T16:51:37Z" }, ], @@ -318,7 +324,7 @@ describe("SitesClient", () => { lastPublished: "2023-04-02T12:50:00Z", lastUpdated: "2016-10-24T19:43:17Z", previewUrl: "https://dev-assets.website-files.com/42e63e98c9a982ac9b8b743/198210121200.png", - timeZone: "Vogsphere/PoetryHall", + timeZone: "America/Los_Angeles", customDomains: [ { id: "589a331aa51e760df7ccb8a0", @@ -367,7 +373,7 @@ describe("SitesClient", () => { lastPublished: new Date("2023-04-02T12:42:00.000Z"), lastUpdated: new Date("2016-10-24T19:43:17.000Z"), previewUrl: "https://dev-assets.website-files.com/42e63e98c9a982ac9b8b741/197910121200.png", - timeZone: "DeepSpace/InfiniteImprobability", + timeZone: "America/Los_Angeles", parentFolderId: "1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6", customDomains: [ { @@ -419,7 +425,7 @@ describe("SitesClient", () => { lastPublished: new Date("2023-04-02T12:45:00.000Z"), lastUpdated: new Date("2016-10-24T19:43:17.000Z"), previewUrl: "https://dev-assets.website-files.com/42e63e98c9a982ac9b8b742/198110121200.png", - timeZone: "DeepSpace/Depression", + timeZone: "America/Los_Angeles", customDomains: [ { id: "589a331aa51e760df7ccb89f", @@ -461,7 +467,7 @@ describe("SitesClient", () => { lastPublished: new Date("2023-04-02T12:50:00.000Z"), lastUpdated: new Date("2016-10-24T19:43:17.000Z"), previewUrl: "https://dev-assets.website-files.com/42e63e98c9a982ac9b8b743/198210121200.png", - timeZone: "Vogsphere/PoetryHall", + timeZone: "America/Los_Angeles", customDomains: [ { id: "589a331aa51e760df7ccb8a0", @@ -564,7 +570,7 @@ describe("SitesClient", () => { lastUpdated: "2023-04-02T12:42:00Z", previewUrl: "https://screenshots.webflow.com/sites/6258612d1ee792848f805dcf/20231219211811_d5990556c743f33b7071300a03bf67e6.png", - timeZone: "Magrathea/FactoryFloor", + timeZone: "America/Los_Angeles", parentFolderId: "1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6", customDomains: [ { @@ -619,7 +625,7 @@ describe("SitesClient", () => { lastUpdated: new Date("2023-04-02T12:42:00.000Z"), previewUrl: "https://screenshots.webflow.com/sites/6258612d1ee792848f805dcf/20231219211811_d5990556c743f33b7071300a03bf67e6.png", - timeZone: "Magrathea/FactoryFloor", + timeZone: "America/Los_Angeles", parentFolderId: "1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6", customDomains: [ { @@ -869,7 +875,7 @@ describe("SitesClient", () => { lastUpdated: "2023-04-02T12:42:00Z", previewUrl: "https://screenshots.webflow.com/sites/6258612d1ee792848f805dcf/20231219211811_d5990556c743f33b7071300a03bf67e6.png", - timeZone: "Magrathea/FactoryFloor", + timeZone: "America/Los_Angeles", parentFolderId: "1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6", customDomains: [ { @@ -925,7 +931,7 @@ describe("SitesClient", () => { lastUpdated: new Date("2023-04-02T12:42:00.000Z"), previewUrl: "https://screenshots.webflow.com/sites/6258612d1ee792848f805dcf/20231219211811_d5990556c743f33b7071300a03bf67e6.png", - timeZone: "Magrathea/FactoryFloor", + timeZone: "America/Los_Angeles", parentFolderId: "1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6", customDomains: [ {