diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index a1a553a7..c5414560 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -2590,6 +2590,7 @@ types: - collection_item_created - collection_item_changed - collection_item_deleted + - collection_item_published - collection_item_unpublished - comment_created docs: > @@ -3252,15 +3253,6 @@ types: [Subscription plan](https://help.webflow.com/hc/en-us/articles/33961432087955-Add-and-manage-products-and-categories#subscription) for the SKU - track-inventory: - type: optional - docs: >- - A boolean indicating whether inventory for this product should be - tracked. - default: false - quantity: - type: optional - docs: Quantity of SKU that will be tracked as items are ordered. main-image: type: optional docs: The URL for the main image of the SKU @@ -4152,218 +4144,74 @@ types: fieldData: SingleLocaleCreatedPayloadFieldData source: openapi: ../../../openapi/referenced-specs/v2.yml - LocalizedItem: - properties: - _cid: - type: string - docs: Collection ID the item belongs to - validation: - format: uuid - _id: - type: string - docs: Unique identifier for the item - validation: - format: uuid - _locale: - type: string - docs: Locale identifier for this version of the item - validation: - format: uuid - _draft: - type: boolean - docs: Whether the item is in draft state - _archived: - type: boolean - docs: Whether the item is archived - name: - type: string - docs: Name of the item - slug: - type: string - docs: URL-friendly version of the name - updated-on: - type: datetime - docs: Timestamp of last update - updated-by: - type: string - docs: Identifier of user who last updated the item - created-on: - type: datetime - docs: Timestamp of creation - created-by: - type: string - docs: Identifier of user who created the item - published-on: - type: optional - docs: Timestamp of last publish, if published - published-by: - type: optional - docs: Identifier of user who last published the item - source: - openapi: ../../../openapi/referenced-specs/v2.yml - MultiLocaleCreatedPayload: - properties: - siteId: - type: string - docs: Unique identifier of the site - validation: - format: uuid - workspaceId: - type: string - docs: Unique identifier of the workspace - validation: - format: uuid - collectionId: - type: string - docs: Unique identifier of the collection - validation: - format: uuid - cmsLocaleId: - type: optional - docs: Unique identifier of the CMS locale for this item - validation: - format: uuid - fieldData: - type: map - docs: Collection of localized items, keyed by locale index (0-n) - source: - openapi: ../../../openapi/referenced-specs/v2.yml - CollectionItemCreatedPayload: - discriminated: false - union: - - type: SingleLocaleCreatedPayload - - type: MultiLocaleCreatedPayload - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true CollectionItemCreated: docs: The Webhook payload for when a Collection Item is created properties: triggerType: type: literal<"collection_item_created"> docs: The type of event that triggered the request - payload: CollectionItemCreatedPayload - source: - openapi: ../../../openapi/referenced-specs/v2.yml - SingleLocaleChangedPayloadFieldData: - properties: - name: string - slug: string - extra-properties: true + payload: + type: SingleLocaleCreatedPayload source: openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - SingleLocaleChangedPayload: + CollectionItemChanged: + docs: The Webhook payload for when a Collection Item is changed properties: - id: - type: string - docs: Unique identifier for the Item - validation: - format: uuid - workspaceId: - type: string - docs: Unique identifier of the workspace - validation: - format: uuid - siteId: - type: string - docs: Unique identifier of the site - validation: - format: uuid - collectionId: - type: string - docs: Unique identifier of the collection - validation: - format: uuid - cmsLocaleId: - type: optional - docs: Unique identifier of the CMS locale for this item - validation: - format: uuid - lastPublished: - type: optional - lastUpdated: - type: optional - createdOn: - type: optional - isArchived: - type: optional - isDraft: - type: optional - fieldData: SingleLocaleChangedPayloadFieldData + triggerType: + type: literal<"collection_item_changed"> + docs: The type of event that triggered the request + payload: + type: SingleLocaleCreatedPayload source: openapi: ../../../openapi/referenced-specs/v2.yml - MultiLocaleChangedPayloadFieldData: + CollectionItemRemovedPayloadFieldData: properties: name: string slug: string - _locale: - type: string - docs: Locale identifier for this version of the item - validation: - format: uuid extra-properties: true source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - MultiLocaleChangedPayload: + CollectionItemRemovedPayload: + docs: The payload of data sent from Webflow properties: id: - type: string - docs: Unique identifier for the Item - validation: - format: uuid - workspaceId: - type: string - docs: Unique identifier of the workspace - validation: - format: uuid + type: optional + docs: The ID of the collection item that was deleted siteId: - type: string - docs: Unique identifier of the site - validation: - format: uuid + type: optional + docs: The ID of the site + workspaceId: + type: optional + docs: The ID of the workspace collectionId: - type: string - docs: Unique identifier of the collection - validation: - format: uuid + type: optional + docs: The ID of the collection cmsLocaleId: type: optional docs: Unique identifier of the CMS locale for this item validation: format: uuid - lastPublished: - type: optional - lastUpdated: - type: optional - createdOn: - type: optional - isArchived: - type: optional - isDraft: - type: optional - fieldData: MultiLocaleChangedPayloadFieldData - source: - openapi: ../../../openapi/referenced-specs/v2.yml - CollectionItemChangedPayload: - discriminated: false - union: - - type: SingleLocaleChangedPayload - - type: MultiLocaleChangedPayload + lastPublished: optional + lastUpdated: optional + createdOn: optional + isArchived: optional + isDraft: optional + fieldData: optional source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - CollectionItemChanged: - docs: The Webhook payload for when a Collection Item is changed + CollectionItemRemoved: properties: triggerType: - type: literal<"collection_item_changed"> + type: optional docs: The type of event that triggered the request - payload: CollectionItemChangedPayload + payload: + type: optional + docs: The payload of data sent from Webflow source: openapi: ../../../openapi/referenced-specs/v2.yml - CollectionItemRemovedPayloadFieldData: + PayloadFieldData: properties: name: string slug: string @@ -4371,12 +4219,12 @@ types: source: openapi: ../../../openapi/referenced-specs/v2.yml inline: true - CollectionItemRemovedPayload: + Payload: docs: The payload of data sent from Webflow properties: id: type: optional - docs: The ID of the collection item that was deleted + docs: The ID of the collection item that was unpublished siteId: type: optional docs: The ID of the site @@ -4396,18 +4244,15 @@ types: createdOn: optional isArchived: optional isDraft: optional - fieldData: optional + fieldData: optional source: openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - CollectionItemRemoved: + CollectionItemPublished: properties: triggerType: type: optional docs: The type of event that triggered the request - payload: - type: optional - docs: The payload of data sent from Webflow + payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml CollectionItemUnpublishedPayloadFieldData: diff --git a/.mock/definition/inventory.yml b/.mock/definition/inventory.yml index ffff8631..13694c0c 100644 --- a/.mock/definition/inventory.yml +++ b/.mock/definition/inventory.yml @@ -5,7 +5,7 @@ service: base-path: '' endpoints: list: - path: /collections/{collection_id}/items/{item_id}/inventory + path: /collections/{sku_collection_id}/items/{sku_id}/inventory method: GET auth: true docs: | @@ -15,12 +15,14 @@ service: source: openapi: ../../../openapi/referenced-specs/v2.yml path-parameters: - collection_id: + sku_collection_id: type: string - docs: Unique identifier for a Collection - item_id: + docs: >- + Unique identifier for a SKU collection. Use the List Collections API + to find this ID. + sku_id: type: string - docs: Unique identifier for an Item + docs: Unique identifier for a SKU display-name: List Inventory response: docs: Request was successful @@ -36,15 +38,15 @@ service: - root.InternalServerError examples: - path-parameters: - collection_id: 580e63fc8c9a982ac9b8b745 - item_id: 580e64008c9a982ac9b8b754 + sku_collection_id: 6377a7c4b7a79608c34a46f7 + sku_id: 5e8518516e147040726cc415 response: body: id: 5bfedb42bab0ad90fa7dad39 quantity: 100 inventoryType: finite update: - path: /collections/{collection_id}/items/{item_id}/inventory + path: /collections/{sku_collection_id}/items/{sku_id}/inventory method: PATCH auth: true docs: > @@ -65,12 +67,14 @@ service: source: openapi: ../../../openapi/referenced-specs/v2.yml path-parameters: - collection_id: + sku_collection_id: type: string - docs: Unique identifier for a Collection - item_id: + docs: >- + Unique identifier for a SKU collection. Use the List Collections API + to find this ID. + sku_id: type: string - docs: Unique identifier for an Item + docs: Unique identifier for a SKU display-name: Update Item Inventory request: name: InventoryUpdateRequest @@ -100,8 +104,8 @@ service: - root.InternalServerError examples: - path-parameters: - collection_id: 580e63fc8c9a982ac9b8b745 - item_id: 580e64008c9a982ac9b8b754 + sku_collection_id: 6377a7c4b7a79608c34a46f7 + sku_id: 5e8518516e147040726cc415 request: inventoryType: infinite response: diff --git a/.mock/definition/items.yml b/.mock/definition/items.yml index 4d2db993..f65b6d7b 100644 --- a/.mock/definition/items.yml +++ b/.mock/definition/items.yml @@ -15,7 +15,7 @@ webhooks: workspaceId: 625860a7a6c16d624927122f siteId: 65427cf400e02b306eaa049c collectionId: 664243617fcc8b464b23c4ee - cmsLocaleId: 681442a144bb80bd00480fda + lastPublished: '2023-03-17T18:47:35Z' lastUpdated: '2023-03-17T18:47:35Z' createdOn: '2023-03-17T18:47:35Z' isArchived: false @@ -34,18 +34,13 @@ webhooks: - payload: triggerType: collection_item_changed payload: - id: 580e64008c9a982ac9b8b754 - workspaceId: 625860a7a6c16d624927122f - siteId: 65427cf400e02b306eaa049c - collectionId: 664243617fcc8b464b23c4ee - cmsLocaleId: 681442a144bb80bd00480fda - lastUpdated: '2023-03-17T18:47:35Z' - createdOn: '2023-03-17T18:47:35Z' - isArchived: false - isDraft: false + id: id + workspaceId: workspaceId + siteId: siteId + collectionId: collectionId fieldData: - name: Pan-Galactic Gargle Blaster - slug: pan-galactic-gargle-blaster + name: name + slug: slug docs: Information about an updated collection item collection_item_deleted: audiences: [] @@ -67,11 +62,28 @@ webhooks: isArchived: false isDraft: false fieldData: - name: Anna Gunn - slug: anna-gunn - _locale: 681442a144bb80bd00480fda - _noSearch: false + name: Earth + slug: earth + description: Mostly harmless + color: '#0000FF' + type: planet + galaxy: Milky Way docs: Information about a deleted collection item + collection_item_published: + audiences: [] + method: POST + display-name: Collection Item Published + headers: {} + payload: root.CollectionItemPublished + examples: + - payload: + triggerType: collection_item_published + payload: + id: 6321ca84df3949bfc6752327 + siteId: 65427cf400e02b306eaa049c + workspaceId: 625860a7a6c16d624927122f + collectionId: 664243617fcc8b464b23c4ee + docs: Information about a collection item that was published collection_item_unpublished: audiences: [] method: POST diff --git a/.mock/definition/pages/scripts.yml b/.mock/definition/pages/scripts.yml index d0971af5..02420aaa 100644 --- a/.mock/definition/pages/scripts.yml +++ b/.mock/definition/pages/scripts.yml @@ -46,13 +46,19 @@ service: path: /pages/{page_id}/custom_code method: PUT auth: true - docs: | - Apply scripts to a page. + docs: > + Apply registered scripts to a page. If you have multiple scripts your + App needs to apply or maintain on a page, ensure they are always + included in the request body for this endpoint. To remove individual + scripts, simply call this endpoint without the script in the request + body. + To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. + Required scope | `custom_code:write` source: openapi: ../../../openapi/referenced-specs/v2.yml @@ -108,11 +114,18 @@ service: method: DELETE auth: true docs: > - Delete a custom code block that the App created on a page. + Remove all scripts from a page applied by the App. This endpoint will + not remove scripts from the site's registered scripts. + + + To remove individual scripts applied by the App, use the [Add/Update + Custom + Code](/data/reference/custom-code/custom-code-pages/upsert-custom-code) + endpoint. - Access to this endpoint requires a bearer token from a [Data - Client App](/data/docs/getting-started-data-clients). + Access to this endpoint requires a bearer token obtained from an + [OAuth Code Grant Flow](/data/reference/oauth-app). Required scope | `custom_code:write` diff --git a/.mock/definition/products.yml b/.mock/definition/products.yml index 71e5b9a9..459946a4 100644 --- a/.mock/definition/products.yml +++ b/.mock/definition/products.yml @@ -92,7 +92,6 @@ service: value: 2499 unit: USD currency: USD - quantity: 10 main-image: https://www.example.com/image.jpg sku: '1234567890' sku-properties: @@ -243,7 +242,6 @@ service: value: 2499 unit: USD currency: USD - quantity: 10 main-image: https://www.example.com/image.jpg sku: '1234567890' sku-properties: @@ -331,7 +329,6 @@ service: value: 2499 unit: USD currency: USD - quantity: 10 main-image: https://www.example.com/image.jpg sku: '1234567890' sku-properties: @@ -498,7 +495,6 @@ service: value: 2499 unit: USD currency: USD - quantity: 10 main-image: https://www.example.com/image.jpg sku: '1234567890' sku-properties: @@ -600,8 +596,6 @@ service: trial: 7 plans: - {} - track-inventory: true - quantity: 10 main-image: https://www.example.com/image.jpg sku: '1234567890' sku-properties: diff --git a/.mock/definition/sites/scripts.yml b/.mock/definition/sites/scripts.yml index 647e1ec3..042c8480 100644 --- a/.mock/definition/sites/scripts.yml +++ b/.mock/definition/sites/scripts.yml @@ -55,13 +55,19 @@ service: path: /sites/{site_id}/custom_code method: PUT auth: true - docs: | - Apply registered scripts to a site. + docs: > + Apply registered scripts to a site. If you have multiple scripts your + App needs to apply or maintain on a site, ensure they are always + included in the request body for this endpoint. To remove individual + scripts, simply call this endpoint without the script in the request + body. + To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. + Required scope | `custom_code:write` source: openapi: ../../../openapi/referenced-specs/v2.yml @@ -116,8 +122,18 @@ service: method: DELETE auth: true docs: > - Remove scripts from a site applied by the App. This endpoint will not - remove scripts from the site's registered scripts. + Remove all scripts from a site applied by the App. This endpoint will + not remove scripts from the site's registered scripts. + + + To remove individual scripts applied by the App, use the [Add/Update + Custom + Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code) + endpoint. + + + Access to this endpoint requires a bearer token obtained from an + [OAuth Code Grant Flow](/data/reference/oauth-app). Required scope | `custom_code:write` diff --git a/jest.config.mjs b/jest.config.mjs index f51249b5..3ad4cdb8 100644 --- a/jest.config.mjs +++ b/jest.config.mjs @@ -6,8 +6,4 @@ export default { "^(\.{1,2}/.*)\.js$": "$1", }, setupFilesAfterEnv: ["/tests/mock-server/setup.ts"], - testPathIgnorePatterns: [ - "/node_modules/", - "tests/wire/workspaces/auditLogs.test.ts" // TODO: See why expected response is a subset of the actual response - ], }; diff --git a/package.json b/package.json index 416f3715..274cda58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webflow-api", - "version": "3.2.0", + "version": "3.2.1", "private": false, "repository": "https://github.com/webflow/js-webflow-api", "main": "./index.js", @@ -9,7 +9,7 @@ "format": "prettier . --write --ignore-unknown", "build": "tsc", "prepack": "cp -rv dist/. .", - "test": "jest", + "test": "jest tests/unit --passWithNoTests", "test:wire": "jest tests/wire --passWithNoTests", "wire:test": "yarn test:wire" }, diff --git a/reference.md b/reference.md index d43d2d6e..ba566b73 100644 --- a/reference.md +++ b/reference.md @@ -4944,7 +4944,7 @@ await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415 ## Inventory -
client.inventory.list(collectionId, itemId) -> Webflow.InventoryItem +
client.inventory.list(skuCollectionId, skuId) -> Webflow.InventoryItem
@@ -4974,7 +4974,7 @@ Required scope | `ecommerce:read`
```typescript -await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); +await client.inventory.list("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415"); ```
@@ -4990,7 +4990,7 @@ await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b75
-**collectionId:** `string` — Unique identifier for a Collection +**skuCollectionId:** `string` — Unique identifier for a SKU collection. Use the List Collections API to find this ID.
@@ -4998,7 +4998,7 @@ await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b75
-**itemId:** `string` — Unique identifier for an Item +**skuId:** `string` — Unique identifier for a SKU
@@ -5017,7 +5017,7 @@ await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b75
-
client.inventory.update(collectionId, itemId, { ...params }) -> Webflow.InventoryItem +
client.inventory.update(skuCollectionId, skuId, { ...params }) -> Webflow.InventoryItem
@@ -5052,7 +5052,7 @@ Required scope | `ecommerce:write`
```typescript -await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { +await client.inventory.update("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415", { inventoryType: "infinite", }); ``` @@ -5070,7 +5070,7 @@ await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b
-**collectionId:** `string` — Unique identifier for a Collection +**skuCollectionId:** `string` — Unique identifier for a SKU collection. Use the List Collections API to find this ID.
@@ -5078,7 +5078,7 @@ await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b
-**itemId:** `string` — Unique identifier for an Item +**skuId:** `string` — Unique identifier for a SKU
@@ -6872,7 +6872,7 @@ await client.pages.scripts.getCustomCode("63c720f9347c2139b248e552");
-Apply scripts to a page. +Apply registered scripts to a page. If you have multiple scripts your App needs to apply or maintain on a page, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body. To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. @@ -6965,9 +6965,11 @@ await client.pages.scripts.upsertCustomCode("63c720f9347c2139b248e552", {
-Delete a custom code block that the App created on a page. +Remove all scripts from a page applied by the App. This endpoint will not remove scripts from the site's registered scripts. -Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients). +To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-pages/upsert-custom-code) endpoint. + +Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app). Required scope | `custom_code:write` @@ -8307,7 +8309,7 @@ await client.sites.scripts.getCustomCode("580e63e98c9a982ac9b8b741");
-Apply registered scripts to a site. +Apply registered scripts to a site. If you have multiple scripts your App needs to apply or maintain on a site, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body. To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. @@ -8400,7 +8402,11 @@ await client.sites.scripts.upsertCustomCode("580e63e98c9a982ac9b8b741", {
-Remove scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts. +Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts. + +To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code) endpoint. + +Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app). Required scope | `custom_code:write` diff --git a/src/Client.ts b/src/Client.ts index 14dccc62..45c760b2 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -70,8 +70,8 @@ export class WebflowClient { { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "3.2.0", - "User-Agent": "webflow-api/3.2.0", + "X-Fern-SDK-Version": "3.2.1", + "User-Agent": "webflow-api/3.2.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/inventory/client/Client.ts b/src/api/resources/inventory/client/Client.ts index 6bac1eca..b621b366 100644 --- a/src/api/resources/inventory/client/Client.ts +++ b/src/api/resources/inventory/client/Client.ts @@ -47,8 +47,8 @@ export class Inventory { * * Required scope | `ecommerce:read` * - * @param {string} collectionId - Unique identifier for a Collection - * @param {string} itemId - Unique identifier for an Item + * @param {string} skuCollectionId - Unique identifier for a SKU collection. Use the List Collections API to find this ID. + * @param {string} skuId - Unique identifier for a SKU * @param {Inventory.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} @@ -60,19 +60,19 @@ export class Inventory { * @throws {@link Webflow.InternalServerError} * * @example - * await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754") + * await client.inventory.list("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415") */ public list( - collectionId: string, - itemId: string, + skuCollectionId: string, + skuId: string, requestOptions?: Inventory.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(collectionId, itemId, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__list(skuCollectionId, skuId, requestOptions)); } private async __list( - collectionId: string, - itemId: string, + skuCollectionId: string, + skuId: string, requestOptions?: Inventory.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -80,7 +80,7 @@ export class Inventory { (await core.Supplier.get(this._options.baseUrl)) ?? ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) .base, - `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`, + `collections/${encodeURIComponent(skuCollectionId)}/items/${encodeURIComponent(skuId)}/inventory`, ), method: "GET", headers: mergeHeaders( @@ -175,7 +175,7 @@ export class Inventory { }); case "timeout": throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling GET /collections/{collection_id}/items/{item_id}/inventory.", + "Timeout exceeded when calling GET /collections/{sku_collection_id}/items/{sku_id}/inventory.", ); case "unknown": throw new errors.WebflowError({ @@ -194,8 +194,8 @@ export class Inventory { * * Required scope | `ecommerce:write` * - * @param {string} collectionId - Unique identifier for a Collection - * @param {string} itemId - Unique identifier for an Item + * @param {string} skuCollectionId - Unique identifier for a SKU collection. Use the List Collections API to find this ID. + * @param {string} skuId - Unique identifier for a SKU * @param {Webflow.InventoryUpdateRequest} request * @param {Inventory.RequestOptions} requestOptions - Request-specific configuration. * @@ -208,22 +208,22 @@ export class Inventory { * @throws {@link Webflow.InternalServerError} * * @example - * await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + * await client.inventory.update("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415", { * inventoryType: "infinite" * }) */ public update( - collectionId: string, - itemId: string, + skuCollectionId: string, + skuId: string, request: Webflow.InventoryUpdateRequest, requestOptions?: Inventory.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__update(collectionId, itemId, request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__update(skuCollectionId, skuId, request, requestOptions)); } private async __update( - collectionId: string, - itemId: string, + skuCollectionId: string, + skuId: string, request: Webflow.InventoryUpdateRequest, requestOptions?: Inventory.RequestOptions, ): Promise> { @@ -232,7 +232,7 @@ export class Inventory { (await core.Supplier.get(this._options.baseUrl)) ?? ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) .base, - `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`, + `collections/${encodeURIComponent(skuCollectionId)}/items/${encodeURIComponent(skuId)}/inventory`, ), method: "PATCH", headers: mergeHeaders( @@ -334,7 +334,7 @@ export class Inventory { }); case "timeout": throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling PATCH /collections/{collection_id}/items/{item_id}/inventory.", + "Timeout exceeded when calling PATCH /collections/{sku_collection_id}/items/{sku_id}/inventory.", ); case "unknown": throw new errors.WebflowError({ diff --git a/src/api/resources/pages/resources/scripts/client/Client.ts b/src/api/resources/pages/resources/scripts/client/Client.ts index 5b4563a6..febd913c 100644 --- a/src/api/resources/pages/resources/scripts/client/Client.ts +++ b/src/api/resources/pages/resources/scripts/client/Client.ts @@ -172,7 +172,7 @@ export class Scripts { } /** - * Apply scripts to a page. + * Apply registered scripts to a page. If you have multiple scripts your App needs to apply or maintain on a page, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body. * * * To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. @@ -334,9 +334,11 @@ export class Scripts { } /** - * Delete a custom code block that the App created on a page. + * Remove all scripts from a page applied by the App. This endpoint will not remove scripts from the site's registered scripts. * - * Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients). + * To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-pages/upsert-custom-code) endpoint. + * + * Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app). * * Required scope | `custom_code:write` * diff --git a/src/api/resources/sites/resources/scripts/client/Client.ts b/src/api/resources/sites/resources/scripts/client/Client.ts index f5877721..95660e93 100644 --- a/src/api/resources/sites/resources/scripts/client/Client.ts +++ b/src/api/resources/sites/resources/scripts/client/Client.ts @@ -176,7 +176,7 @@ export class Scripts { } /** - * Apply registered scripts to a site. + * Apply registered scripts to a site. If you have multiple scripts your App needs to apply or maintain on a site, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body. * * * To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. @@ -335,7 +335,11 @@ export class Scripts { } /** - * Remove scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts. + * Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts. + * + * To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code) endpoint. + * + * Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app). * * Required scope | `custom_code:write` * diff --git a/src/api/types/CollectionItemChanged.ts b/src/api/types/CollectionItemChanged.ts index 46083e63..1b301c10 100644 --- a/src/api/types/CollectionItemChanged.ts +++ b/src/api/types/CollectionItemChanged.ts @@ -10,5 +10,5 @@ import * as Webflow from "../index"; export interface CollectionItemChanged { /** The type of event that triggered the request */ triggerType: "collection_item_changed"; - payload: Webflow.CollectionItemChangedPayload; + payload: Webflow.SingleLocaleCreatedPayload; } diff --git a/src/api/types/CollectionItemChangedPayload.ts b/src/api/types/CollectionItemChangedPayload.ts deleted file mode 100644 index 1d162590..00000000 --- a/src/api/types/CollectionItemChangedPayload.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export type CollectionItemChangedPayload = Webflow.SingleLocaleChangedPayload | Webflow.MultiLocaleChangedPayload; diff --git a/src/api/types/CollectionItemCreated.ts b/src/api/types/CollectionItemCreated.ts index ea139d1d..63474fa4 100644 --- a/src/api/types/CollectionItemCreated.ts +++ b/src/api/types/CollectionItemCreated.ts @@ -10,5 +10,5 @@ import * as Webflow from "../index"; export interface CollectionItemCreated { /** The type of event that triggered the request */ triggerType: "collection_item_created"; - payload: Webflow.CollectionItemCreatedPayload; + payload: Webflow.SingleLocaleCreatedPayload; } diff --git a/src/api/types/CollectionItemCreatedPayload.ts b/src/api/types/CollectionItemCreatedPayload.ts deleted file mode 100644 index 629ad5d3..00000000 --- a/src/api/types/CollectionItemCreatedPayload.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export type CollectionItemCreatedPayload = Webflow.SingleLocaleCreatedPayload | Webflow.MultiLocaleCreatedPayload; diff --git a/src/api/types/CollectionItemPublished.ts b/src/api/types/CollectionItemPublished.ts new file mode 100644 index 00000000..ac069407 --- /dev/null +++ b/src/api/types/CollectionItemPublished.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from "../index"; + +export interface CollectionItemPublished { + /** The type of event that triggered the request */ + triggerType?: string; + payload?: Webflow.Payload; +} diff --git a/src/api/types/LocalizedItem.ts b/src/api/types/LocalizedItem.ts deleted file mode 100644 index 517b0bea..00000000 --- a/src/api/types/LocalizedItem.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LocalizedItem { - /** Collection ID the item belongs to */ - cid: string; - /** Unique identifier for the item */ - id: string; - /** Locale identifier for this version of the item */ - locale: string; - /** Whether the item is in draft state */ - draft: boolean; - /** Whether the item is archived */ - archived: boolean; - /** Name of the item */ - name: string; - /** URL-friendly version of the name */ - slug: string; - /** Timestamp of last update */ - updatedOn: Date; - /** Identifier of user who last updated the item */ - updatedBy: string; - /** Timestamp of creation */ - createdOn: Date; - /** Identifier of user who created the item */ - createdBy: string; - /** Timestamp of last publish, if published */ - publishedOn?: Date; - /** Identifier of user who last published the item */ - publishedBy?: string; -} diff --git a/src/api/types/MultiLocaleChangedPayload.ts b/src/api/types/MultiLocaleChangedPayload.ts deleted file mode 100644 index bec891f6..00000000 --- a/src/api/types/MultiLocaleChangedPayload.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export interface MultiLocaleChangedPayload { - /** Unique identifier for the Item */ - id: string; - /** Unique identifier of the workspace */ - workspaceId: string; - /** Unique identifier of the site */ - siteId: string; - /** Unique identifier of the collection */ - collectionId: string; - /** Unique identifier of the CMS locale for this item */ - cmsLocaleId?: string; - lastPublished?: Date; - lastUpdated?: Date; - createdOn?: Date; - isArchived?: boolean; - isDraft?: boolean; - fieldData: Webflow.MultiLocaleChangedPayloadFieldData; -} diff --git a/src/api/types/MultiLocaleChangedPayloadFieldData.ts b/src/api/types/MultiLocaleChangedPayloadFieldData.ts deleted file mode 100644 index 43322f64..00000000 --- a/src/api/types/MultiLocaleChangedPayloadFieldData.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface MultiLocaleChangedPayloadFieldData { - name: string; - slug: string; - /** Locale identifier for this version of the item */ - locale: string; - /** Accepts any additional properties */ - [key: string]: any; -} diff --git a/src/api/types/MultiLocaleCreatedPayload.ts b/src/api/types/MultiLocaleCreatedPayload.ts deleted file mode 100644 index d26e3f04..00000000 --- a/src/api/types/MultiLocaleCreatedPayload.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export interface MultiLocaleCreatedPayload { - /** Unique identifier of the site */ - siteId: string; - /** Unique identifier of the workspace */ - workspaceId: string; - /** Unique identifier of the collection */ - collectionId: string; - /** Unique identifier of the CMS locale for this item */ - cmsLocaleId?: string; - /** Collection of localized items, keyed by locale index (0-n) */ - fieldData: Record; -} diff --git a/src/api/types/Payload.ts b/src/api/types/Payload.ts new file mode 100644 index 00000000..4690b4cc --- /dev/null +++ b/src/api/types/Payload.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from "../index"; + +/** + * The payload of data sent from Webflow + */ +export interface Payload { + /** The ID of the collection item that was unpublished */ + id?: string; + /** The ID of the site */ + siteId?: string; + /** The ID of the workspace */ + workspaceId?: string; + /** The ID of the collection */ + collectionId?: string; + /** Unique identifier of the CMS locale for this item */ + cmsLocaleId?: string; + lastPublished?: Date; + lastUpdated?: Date; + createdOn?: Date; + isArchived?: boolean; + isDraft?: boolean; + fieldData?: Webflow.PayloadFieldData; +} diff --git a/src/api/types/SingleLocaleChangedPayloadFieldData.ts b/src/api/types/PayloadFieldData.ts similarity index 76% rename from src/api/types/SingleLocaleChangedPayloadFieldData.ts rename to src/api/types/PayloadFieldData.ts index d566ccb2..526ec184 100644 --- a/src/api/types/SingleLocaleChangedPayloadFieldData.ts +++ b/src/api/types/PayloadFieldData.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface SingleLocaleChangedPayloadFieldData { +export interface PayloadFieldData { name: string; slug: string; /** Accepts any additional properties */ diff --git a/src/api/types/SingleLocaleChangedPayload.ts b/src/api/types/SingleLocaleChangedPayload.ts deleted file mode 100644 index 5e2f5227..00000000 --- a/src/api/types/SingleLocaleChangedPayload.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export interface SingleLocaleChangedPayload { - /** Unique identifier for the Item */ - id: string; - /** Unique identifier of the workspace */ - workspaceId: string; - /** Unique identifier of the site */ - siteId: string; - /** Unique identifier of the collection */ - collectionId: string; - /** Unique identifier of the CMS locale for this item */ - cmsLocaleId?: string; - lastPublished?: Date; - lastUpdated?: Date; - createdOn?: Date; - isArchived?: boolean; - isDraft?: boolean; - fieldData: Webflow.SingleLocaleChangedPayloadFieldData; -} diff --git a/src/api/types/SkuFieldData.ts b/src/api/types/SkuFieldData.ts index 19807009..c15373e8 100644 --- a/src/api/types/SkuFieldData.ts +++ b/src/api/types/SkuFieldData.ts @@ -21,10 +21,6 @@ export interface SkuFieldData { ecSkuBillingMethod?: Webflow.SkuFieldDataEcSkuBillingMethod; /** [Subscription plan](https://help.webflow.com/hc/en-us/articles/33961432087955-Add-and-manage-products-and-categories#subscription) for the SKU */ ecSkuSubscriptionPlan?: Webflow.SkuFieldDataEcSkuSubscriptionPlan; - /** A boolean indicating whether inventory for this product should be tracked. */ - trackInventory?: boolean; - /** Quantity of SKU that will be tracked as items are ordered. */ - quantity?: number; /** The URL for the main image of the SKU */ mainImage?: string; /** A unique identifier for the SKU */ diff --git a/src/api/types/TriggerType.ts b/src/api/types/TriggerType.ts index 5d4eed0f..a059fadb 100644 --- a/src/api/types/TriggerType.ts +++ b/src/api/types/TriggerType.ts @@ -20,6 +20,7 @@ export type TriggerType = | "collection_item_created" | "collection_item_changed" | "collection_item_deleted" + | "collection_item_published" | "collection_item_unpublished" | "comment_created"; export const TriggerType = { @@ -37,6 +38,7 @@ export const TriggerType = { CollectionItemCreated: "collection_item_created", CollectionItemChanged: "collection_item_changed", CollectionItemDeleted: "collection_item_deleted", + CollectionItemPublished: "collection_item_published", CollectionItemUnpublished: "collection_item_unpublished", CommentCreated: "comment_created", } as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 05a25767..d98c3b1f 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -239,19 +239,14 @@ export * from "./NewOrder"; export * from "./UpdatedOrder"; export * from "./SingleLocaleCreatedPayloadFieldData"; export * from "./SingleLocaleCreatedPayload"; -export * from "./LocalizedItem"; -export * from "./MultiLocaleCreatedPayload"; -export * from "./CollectionItemCreatedPayload"; export * from "./CollectionItemCreated"; -export * from "./SingleLocaleChangedPayloadFieldData"; -export * from "./SingleLocaleChangedPayload"; -export * from "./MultiLocaleChangedPayloadFieldData"; -export * from "./MultiLocaleChangedPayload"; -export * from "./CollectionItemChangedPayload"; export * from "./CollectionItemChanged"; export * from "./CollectionItemRemovedPayloadFieldData"; export * from "./CollectionItemRemovedPayload"; export * from "./CollectionItemRemoved"; +export * from "./PayloadFieldData"; +export * from "./Payload"; +export * from "./CollectionItemPublished"; export * from "./CollectionItemUnpublishedPayloadFieldData"; export * from "./CollectionItemUnpublishedPayload"; export * from "./CollectionItemUnpublished"; diff --git a/src/serialization/types/CollectionItemChanged.ts b/src/serialization/types/CollectionItemChanged.ts index d286ddec..93bad748 100644 --- a/src/serialization/types/CollectionItemChanged.ts +++ b/src/serialization/types/CollectionItemChanged.ts @@ -5,19 +5,19 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -import { CollectionItemChangedPayload } from "./CollectionItemChangedPayload"; +import { SingleLocaleCreatedPayload } from "./SingleLocaleCreatedPayload"; export const CollectionItemChanged: core.serialization.ObjectSchema< serializers.CollectionItemChanged.Raw, Webflow.CollectionItemChanged > = core.serialization.object({ triggerType: core.serialization.stringLiteral("collection_item_changed"), - payload: CollectionItemChangedPayload, + payload: SingleLocaleCreatedPayload, }); export declare namespace CollectionItemChanged { export interface Raw { triggerType: "collection_item_changed"; - payload: CollectionItemChangedPayload.Raw; + payload: SingleLocaleCreatedPayload.Raw; } } diff --git a/src/serialization/types/CollectionItemChangedPayload.ts b/src/serialization/types/CollectionItemChangedPayload.ts deleted file mode 100644 index 751fb501..00000000 --- a/src/serialization/types/CollectionItemChangedPayload.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { SingleLocaleChangedPayload } from "./SingleLocaleChangedPayload"; -import { MultiLocaleChangedPayload } from "./MultiLocaleChangedPayload"; - -export const CollectionItemChangedPayload: core.serialization.Schema< - serializers.CollectionItemChangedPayload.Raw, - Webflow.CollectionItemChangedPayload -> = core.serialization.undiscriminatedUnion([SingleLocaleChangedPayload, MultiLocaleChangedPayload]); - -export declare namespace CollectionItemChangedPayload { - export type Raw = SingleLocaleChangedPayload.Raw | MultiLocaleChangedPayload.Raw; -} diff --git a/src/serialization/types/CollectionItemCreated.ts b/src/serialization/types/CollectionItemCreated.ts index ec730a47..0d508596 100644 --- a/src/serialization/types/CollectionItemCreated.ts +++ b/src/serialization/types/CollectionItemCreated.ts @@ -5,19 +5,19 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -import { CollectionItemCreatedPayload } from "./CollectionItemCreatedPayload"; +import { SingleLocaleCreatedPayload } from "./SingleLocaleCreatedPayload"; export const CollectionItemCreated: core.serialization.ObjectSchema< serializers.CollectionItemCreated.Raw, Webflow.CollectionItemCreated > = core.serialization.object({ triggerType: core.serialization.stringLiteral("collection_item_created"), - payload: CollectionItemCreatedPayload, + payload: SingleLocaleCreatedPayload, }); export declare namespace CollectionItemCreated { export interface Raw { triggerType: "collection_item_created"; - payload: CollectionItemCreatedPayload.Raw; + payload: SingleLocaleCreatedPayload.Raw; } } diff --git a/src/serialization/types/CollectionItemCreatedPayload.ts b/src/serialization/types/CollectionItemCreatedPayload.ts deleted file mode 100644 index b67ad22e..00000000 --- a/src/serialization/types/CollectionItemCreatedPayload.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { SingleLocaleCreatedPayload } from "./SingleLocaleCreatedPayload"; -import { MultiLocaleCreatedPayload } from "./MultiLocaleCreatedPayload"; - -export const CollectionItemCreatedPayload: core.serialization.Schema< - serializers.CollectionItemCreatedPayload.Raw, - Webflow.CollectionItemCreatedPayload -> = core.serialization.undiscriminatedUnion([SingleLocaleCreatedPayload, MultiLocaleCreatedPayload]); - -export declare namespace CollectionItemCreatedPayload { - export type Raw = SingleLocaleCreatedPayload.Raw | MultiLocaleCreatedPayload.Raw; -} diff --git a/src/serialization/types/CollectionItemPublished.ts b/src/serialization/types/CollectionItemPublished.ts new file mode 100644 index 00000000..dd096d58 --- /dev/null +++ b/src/serialization/types/CollectionItemPublished.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; +import { Payload } from "./Payload"; + +export const CollectionItemPublished: core.serialization.ObjectSchema< + serializers.CollectionItemPublished.Raw, + Webflow.CollectionItemPublished +> = core.serialization.object({ + triggerType: core.serialization.string().optional(), + payload: Payload.optional(), +}); + +export declare namespace CollectionItemPublished { + export interface Raw { + triggerType?: string | null; + payload?: Payload.Raw | null; + } +} diff --git a/src/serialization/types/LocalizedItem.ts b/src/serialization/types/LocalizedItem.ts deleted file mode 100644 index 0cb5ff70..00000000 --- a/src/serialization/types/LocalizedItem.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const LocalizedItem: core.serialization.ObjectSchema = - core.serialization.object({ - cid: core.serialization.property("_cid", core.serialization.string()), - id: core.serialization.property("_id", core.serialization.string()), - locale: core.serialization.property("_locale", core.serialization.string()), - draft: core.serialization.property("_draft", core.serialization.boolean()), - archived: core.serialization.property("_archived", core.serialization.boolean()), - name: core.serialization.string(), - slug: core.serialization.string(), - updatedOn: core.serialization.property("updated-on", core.serialization.date()), - updatedBy: core.serialization.property("updated-by", core.serialization.string()), - createdOn: core.serialization.property("created-on", core.serialization.date()), - createdBy: core.serialization.property("created-by", core.serialization.string()), - publishedOn: core.serialization.property("published-on", core.serialization.date().optional()), - publishedBy: core.serialization.property("published-by", core.serialization.string().optional()), - }); - -export declare namespace LocalizedItem { - export interface Raw { - _cid: string; - _id: string; - _locale: string; - _draft: boolean; - _archived: boolean; - name: string; - slug: string; - "updated-on": string; - "updated-by": string; - "created-on": string; - "created-by": string; - "published-on"?: string | null; - "published-by"?: string | null; - } -} diff --git a/src/serialization/types/MultiLocaleChangedPayload.ts b/src/serialization/types/MultiLocaleChangedPayload.ts deleted file mode 100644 index d543b905..00000000 --- a/src/serialization/types/MultiLocaleChangedPayload.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { MultiLocaleChangedPayloadFieldData } from "./MultiLocaleChangedPayloadFieldData"; - -export const MultiLocaleChangedPayload: core.serialization.ObjectSchema< - serializers.MultiLocaleChangedPayload.Raw, - Webflow.MultiLocaleChangedPayload -> = core.serialization.object({ - id: core.serialization.string(), - workspaceId: core.serialization.string(), - siteId: core.serialization.string(), - collectionId: core.serialization.string(), - cmsLocaleId: core.serialization.string().optional(), - lastPublished: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - isArchived: core.serialization.boolean().optional(), - isDraft: core.serialization.boolean().optional(), - fieldData: MultiLocaleChangedPayloadFieldData, -}); - -export declare namespace MultiLocaleChangedPayload { - export interface Raw { - id: string; - workspaceId: string; - siteId: string; - collectionId: string; - cmsLocaleId?: string | null; - lastPublished?: string | null; - lastUpdated?: string | null; - createdOn?: string | null; - isArchived?: boolean | null; - isDraft?: boolean | null; - fieldData: MultiLocaleChangedPayloadFieldData.Raw; - } -} diff --git a/src/serialization/types/MultiLocaleChangedPayloadFieldData.ts b/src/serialization/types/MultiLocaleChangedPayloadFieldData.ts deleted file mode 100644 index c7788139..00000000 --- a/src/serialization/types/MultiLocaleChangedPayloadFieldData.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const MultiLocaleChangedPayloadFieldData: core.serialization.ObjectSchema< - serializers.MultiLocaleChangedPayloadFieldData.Raw, - Webflow.MultiLocaleChangedPayloadFieldData -> = core.serialization - .object({ - name: core.serialization.string(), - slug: core.serialization.string(), - locale: core.serialization.property("_locale", core.serialization.string()), - }) - .passthrough(); - -export declare namespace MultiLocaleChangedPayloadFieldData { - export interface Raw { - name: string; - slug: string; - _locale: string; - [key: string]: any; - } -} diff --git a/src/serialization/types/MultiLocaleCreatedPayload.ts b/src/serialization/types/MultiLocaleCreatedPayload.ts deleted file mode 100644 index 00a26e16..00000000 --- a/src/serialization/types/MultiLocaleCreatedPayload.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { LocalizedItem } from "./LocalizedItem"; - -export const MultiLocaleCreatedPayload: core.serialization.ObjectSchema< - serializers.MultiLocaleCreatedPayload.Raw, - Webflow.MultiLocaleCreatedPayload -> = core.serialization.object({ - siteId: core.serialization.string(), - workspaceId: core.serialization.string(), - collectionId: core.serialization.string(), - cmsLocaleId: core.serialization.string().optional(), - fieldData: core.serialization.record(core.serialization.string(), LocalizedItem), -}); - -export declare namespace MultiLocaleCreatedPayload { - export interface Raw { - siteId: string; - workspaceId: string; - collectionId: string; - cmsLocaleId?: string | null; - fieldData: Record; - } -} diff --git a/src/serialization/types/Payload.ts b/src/serialization/types/Payload.ts new file mode 100644 index 00000000..ffaf5cb9 --- /dev/null +++ b/src/serialization/types/Payload.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Webflow from "../../api/index"; +import * as core from "../../core"; +import { PayloadFieldData } from "./PayloadFieldData"; + +export const Payload: core.serialization.ObjectSchema = + core.serialization.object({ + id: core.serialization.string().optional(), + siteId: core.serialization.string().optional(), + workspaceId: core.serialization.string().optional(), + collectionId: core.serialization.string().optional(), + cmsLocaleId: core.serialization.string().optional(), + lastPublished: core.serialization.date().optional(), + lastUpdated: core.serialization.date().optional(), + createdOn: core.serialization.date().optional(), + isArchived: core.serialization.boolean().optional(), + isDraft: core.serialization.boolean().optional(), + fieldData: PayloadFieldData.optional(), + }); + +export declare namespace Payload { + export interface Raw { + id?: string | null; + siteId?: string | null; + workspaceId?: string | null; + collectionId?: string | null; + cmsLocaleId?: string | null; + lastPublished?: string | null; + lastUpdated?: string | null; + createdOn?: string | null; + isArchived?: boolean | null; + isDraft?: boolean | null; + fieldData?: PayloadFieldData.Raw | null; + } +} diff --git a/src/serialization/types/SingleLocaleChangedPayloadFieldData.ts b/src/serialization/types/PayloadFieldData.ts similarity index 64% rename from src/serialization/types/SingleLocaleChangedPayloadFieldData.ts rename to src/serialization/types/PayloadFieldData.ts index ff2894ce..1076c24c 100644 --- a/src/serialization/types/SingleLocaleChangedPayloadFieldData.ts +++ b/src/serialization/types/PayloadFieldData.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; -export const SingleLocaleChangedPayloadFieldData: core.serialization.ObjectSchema< - serializers.SingleLocaleChangedPayloadFieldData.Raw, - Webflow.SingleLocaleChangedPayloadFieldData +export const PayloadFieldData: core.serialization.ObjectSchema< + serializers.PayloadFieldData.Raw, + Webflow.PayloadFieldData > = core.serialization .object({ name: core.serialization.string(), @@ -16,7 +16,7 @@ export const SingleLocaleChangedPayloadFieldData: core.serialization.ObjectSchem }) .passthrough(); -export declare namespace SingleLocaleChangedPayloadFieldData { +export declare namespace PayloadFieldData { export interface Raw { name: string; slug: string; diff --git a/src/serialization/types/SingleLocaleChangedPayload.ts b/src/serialization/types/SingleLocaleChangedPayload.ts deleted file mode 100644 index 040a37c9..00000000 --- a/src/serialization/types/SingleLocaleChangedPayload.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { SingleLocaleChangedPayloadFieldData } from "./SingleLocaleChangedPayloadFieldData"; - -export const SingleLocaleChangedPayload: core.serialization.ObjectSchema< - serializers.SingleLocaleChangedPayload.Raw, - Webflow.SingleLocaleChangedPayload -> = core.serialization.object({ - id: core.serialization.string(), - workspaceId: core.serialization.string(), - siteId: core.serialization.string(), - collectionId: core.serialization.string(), - cmsLocaleId: core.serialization.string().optional(), - lastPublished: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - isArchived: core.serialization.boolean().optional(), - isDraft: core.serialization.boolean().optional(), - fieldData: SingleLocaleChangedPayloadFieldData, -}); - -export declare namespace SingleLocaleChangedPayload { - export interface Raw { - id: string; - workspaceId: string; - siteId: string; - collectionId: string; - cmsLocaleId?: string | null; - lastPublished?: string | null; - lastUpdated?: string | null; - createdOn?: string | null; - isArchived?: boolean | null; - isDraft?: boolean | null; - fieldData: SingleLocaleChangedPayloadFieldData.Raw; - } -} diff --git a/src/serialization/types/SkuFieldData.ts b/src/serialization/types/SkuFieldData.ts index ce182077..6e73061c 100644 --- a/src/serialization/types/SkuFieldData.ts +++ b/src/serialization/types/SkuFieldData.ts @@ -27,8 +27,6 @@ export const SkuFieldData: core.serialization.ObjectSchema { const rawResponseBody = { id: "5bfedb42bab0ad90fa7dad39", quantity: 100, inventoryType: "finite" }; server .mockEndpoint() - .get("/collections/580e63fc8c9a982ac9b8b745/items/580e64008c9a982ac9b8b754/inventory") + .get("/collections/6377a7c4b7a79608c34a46f7/items/5e8518516e147040726cc415/inventory") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754"); + const response = await client.inventory.list("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415"); expect(response).toEqual({ id: "5bfedb42bab0ad90fa7dad39", quantity: 100, @@ -52,14 +52,14 @@ describe("Inventory", () => { const rawResponseBody = { id: "5bfedb42bab0ad90fa7dad39", quantity: 100, inventoryType: "finite" }; server .mockEndpoint() - .patch("/collections/580e63fc8c9a982ac9b8b745/items/580e64008c9a982ac9b8b754/inventory") + .patch("/collections/6377a7c4b7a79608c34a46f7/items/5e8518516e147040726cc415/inventory") .jsonBody(rawRequestBody) .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", { + const response = await client.inventory.update("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc415", { inventoryType: "infinite", }); expect(response).toEqual({ diff --git a/tests/wire/products.test.ts b/tests/wire/products.test.ts index 3758e334..c7446010 100644 --- a/tests/wire/products.test.ts +++ b/tests/wire/products.test.ts @@ -56,7 +56,6 @@ describe("Products", () => { name: "Colorful T-shirt - Default", slug: "colorful-t-shirt-default", price: { value: 2499, unit: "USD", currency: "USD" }, - quantity: 10, "main-image": "https://www.example.com/image.jpg", sku: "1234567890", "sku-properties": [ @@ -132,7 +131,6 @@ describe("Products", () => { unit: "USD", currency: "USD", }, - quantity: 10, mainImage: "https://www.example.com/image.jpg", sku: "1234567890", skuProperties: [ @@ -251,7 +249,6 @@ describe("Products", () => { name: "Colorful T-shirt - Default", slug: "colorful-t-shirt-default", price: { value: 2499, unit: "USD", currency: "USD" }, - quantity: 10, "main-image": "https://www.example.com/image.jpg", sku: "1234567890", "sku-properties": [ @@ -393,7 +390,6 @@ describe("Products", () => { unit: "USD", currency: "USD", }, - quantity: 10, mainImage: "https://www.example.com/image.jpg", sku: "1234567890", skuProperties: [ @@ -467,7 +463,6 @@ describe("Products", () => { name: "Colorful T-shirt - Default", slug: "colorful-t-shirt-default", price: { value: 2499, unit: "USD", currency: "USD" }, - quantity: 10, "main-image": "https://www.example.com/image.jpg", sku: "1234567890", "sku-properties": [ @@ -542,7 +537,6 @@ describe("Products", () => { unit: "USD", currency: "USD", }, - quantity: 10, mainImage: "https://www.example.com/image.jpg", sku: "1234567890", skuProperties: [ @@ -688,7 +682,6 @@ describe("Products", () => { name: "Colorful T-shirt - Default", slug: "colorful-t-shirt-default", price: { value: 2499, unit: "USD", currency: "USD" }, - quantity: 10, "main-image": "https://www.example.com/image.jpg", sku: "1234567890", "sku-properties": [ @@ -751,7 +744,6 @@ describe("Products", () => { unit: "USD", currency: "USD", }, - quantity: 10, mainImage: "https://www.example.com/image.jpg", sku: "1234567890", skuProperties: [ @@ -813,8 +805,6 @@ describe("Products", () => { "compare-at-price": { value: 100, unit: "USD" }, "ec-sku-billing-method": "one-time", "ec-sku-subscription-plan": { interval: "day", frequency: 1, trial: 7, plans: [{}] }, - "track-inventory": true, - quantity: 10, "main-image": "https://www.example.com/image.jpg", sku: "1234567890", "sku-properties": [ @@ -887,8 +877,6 @@ describe("Products", () => { trial: 7, plans: [{}], }, - trackInventory: true, - quantity: 10, mainImage: "https://www.example.com/image.jpg", sku: "1234567890", skuProperties: [ diff --git a/yarn.lock b/yarn.lock index f181b6d0..4cc13322 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25,33 +25,33 @@ integrity sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.0.tgz#55dad808d5bf3445a108eefc88ea3fdf034749a4" - integrity sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ== + version "7.28.3" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.3.tgz#aceddde69c5d1def69b839d09efa3e3ff59c97cb" + integrity sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.27.1" - "@babel/generator" "^7.28.0" + "@babel/generator" "^7.28.3" "@babel/helper-compilation-targets" "^7.27.2" - "@babel/helper-module-transforms" "^7.27.3" - "@babel/helpers" "^7.27.6" - "@babel/parser" "^7.28.0" + "@babel/helper-module-transforms" "^7.28.3" + "@babel/helpers" "^7.28.3" + "@babel/parser" "^7.28.3" "@babel/template" "^7.27.2" - "@babel/traverse" "^7.28.0" - "@babel/types" "^7.28.0" + "@babel/traverse" "^7.28.3" + "@babel/types" "^7.28.2" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.28.0", "@babel/generator@^7.7.2": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.0.tgz#9cc2f7bd6eb054d77dc66c2664148a0c5118acd2" - integrity sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg== +"@babel/generator@^7.28.3", "@babel/generator@^7.7.2": + version "7.28.3" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.3.tgz#9626c1741c650cbac39121694a0f2d7451b8ef3e" + integrity sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw== dependencies: - "@babel/parser" "^7.28.0" - "@babel/types" "^7.28.0" + "@babel/parser" "^7.28.3" + "@babel/types" "^7.28.2" "@jridgewell/gen-mapping" "^0.3.12" "@jridgewell/trace-mapping" "^0.3.28" jsesc "^3.0.2" @@ -80,14 +80,14 @@ "@babel/traverse" "^7.27.1" "@babel/types" "^7.27.1" -"@babel/helper-module-transforms@^7.27.3": - version "7.27.3" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.27.3.tgz#db0bbcfba5802f9ef7870705a7ef8788508ede02" - integrity sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg== +"@babel/helper-module-transforms@^7.28.3": + version "7.28.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz#a2b37d3da3b2344fe085dab234426f2b9a2fa5f6" + integrity sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw== dependencies: "@babel/helper-module-imports" "^7.27.1" "@babel/helper-validator-identifier" "^7.27.1" - "@babel/traverse" "^7.27.3" + "@babel/traverse" "^7.28.3" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.27.1", "@babel/helper-plugin-utils@^7.8.0": version "7.27.1" @@ -109,20 +109,20 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== -"@babel/helpers@^7.27.6": - version "7.28.2" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.2.tgz#80f0918fecbfebea9af856c419763230040ee850" - integrity sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw== +"@babel/helpers@^7.28.3": + version "7.28.3" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.3.tgz#b83156c0a2232c133d1b535dd5d3452119c7e441" + integrity sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw== dependencies: "@babel/template" "^7.27.2" "@babel/types" "^7.28.2" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.0.tgz#979829fbab51a29e13901e5a80713dbcb840825e" - integrity sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.3": + version "7.28.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.3.tgz#d2d25b814621bca5fe9d172bc93792547e7a2a71" + integrity sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA== dependencies: - "@babel/types" "^7.28.0" + "@babel/types" "^7.28.2" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -252,20 +252,20 @@ "@babel/parser" "^7.27.2" "@babel/types" "^7.27.1" -"@babel/traverse@^7.27.1", "@babel/traverse@^7.27.3", "@babel/traverse@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.0.tgz#518aa113359b062042379e333db18380b537e34b" - integrity sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg== +"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3": + version "7.28.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.3.tgz#6911a10795d2cce43ec6a28cffc440cca2593434" + integrity sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ== dependencies: "@babel/code-frame" "^7.27.1" - "@babel/generator" "^7.28.0" + "@babel/generator" "^7.28.3" "@babel/helper-globals" "^7.28.0" - "@babel/parser" "^7.28.0" + "@babel/parser" "^7.28.3" "@babel/template" "^7.27.2" - "@babel/types" "^7.28.0" + "@babel/types" "^7.28.2" debug "^4.3.1" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.0", "@babel/types@^7.28.2", "@babel/types@^7.3.3": +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.2", "@babel/types@^7.3.3": version "7.28.2" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b" integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ== @@ -541,9 +541,9 @@ chalk "^4.0.0" "@jridgewell/gen-mapping@^0.3.12", "@jridgewell/gen-mapping@^0.3.5": - version "0.3.12" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz#2234ce26c62889f03db3d7fea43c1932ab3e927b" - integrity sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg== + version "0.3.13" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" + integrity sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA== dependencies: "@jridgewell/sourcemap-codec" "^1.5.0" "@jridgewell/trace-mapping" "^0.3.24" @@ -554,30 +554,30 @@ integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== "@jridgewell/source-map@^0.3.3": - version "0.3.10" - resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.10.tgz#a35714446a2e84503ff9bfe66f1d1d4846f2075b" - integrity sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q== + version "0.3.11" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.11.tgz#b21835cbd36db656b857c2ad02ebd413cc13a9ba" + integrity sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA== dependencies: "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz#7358043433b2e5da569aa02cbc4c121da3af27d7" - integrity sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw== + version "1.5.5" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" + integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": - version "0.3.29" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz#a58d31eaadaf92c6695680b2e1d464a9b8fbf7fc" - integrity sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ== + version "0.3.30" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz#4a76c4daeee5df09f5d3940e087442fb36ce2b99" + integrity sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" "@mswjs/interceptors@^0.39.1": - version "0.39.5" - resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.39.5.tgz#6f0571493bf76291a60b62234ed0add2c4bd970e" - integrity sha512-B9nHSJYtsv79uo7QdkZ/b/WoKm20IkVSmTc/WCKarmDtFwM0dRx2ouEniqwNkzCSLn3fydzKmnMzjtfdOWt3VQ== + version "0.39.6" + resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.39.6.tgz#44094a578f20da4749d1a0eaf3cdb7973604004b" + integrity sha512-bndDP83naYYkfayr/qhBHMhk0YGwS1iv6vaEGcr0SQbO0IZtbOPqjKjds/WcG+bJA+1T5vCx6kprKOzn5Bg+Vw== dependencies: "@open-draft/deferred-promise" "^2.2.0" "@open-draft/logger" "^0.3.0" @@ -744,16 +744,16 @@ form-data "^4.0.4" "@types/node@*": - version "24.2.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-24.2.0.tgz#cde712f88c5190006d6b069232582ecd1f94a760" - integrity sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw== + version "24.3.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.3.0.tgz#89b09f45cb9a8ee69466f18ee5864e4c3eb84dec" + integrity sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow== dependencies: undici-types "~7.10.0" "@types/node@^18.19.70": - version "18.19.121" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.121.tgz#c50d353ea2d1fb1261a8bbd0bf2850306f5af2b3" - integrity sha512-bHOrbyztmyYIi4f1R0s17QsPs1uyyYnGcXeZoGEd227oZjry0q6XQBQxd82X1I57zEfwO8h9Xo+Kl5gX1d9MwQ== + version "18.19.123" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.123.tgz#08a3e4f5e0c73b8840c677b7635ce59d5dc1f76d" + integrity sha512-K7DIaHnh0mzVxreCR9qwgNxp3MH9dltPNIEddW9MYUlcKAzm+3grKNSTe2vCJHI1FaLpvpL5JGJrz1UZDKYvDg== dependencies: undici-types "~5.26.4" @@ -1220,12 +1220,12 @@ browserify-sign@^4.2.3: safe-buffer "^5.2.1" browserslist@^4.24.0: - version "4.25.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.1.tgz#ba9e8e6f298a1d86f829c9b975e07948967bb111" - integrity sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw== + version "4.25.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.2.tgz#90c1507143742d743544ae6e92bca3348adff667" + integrity sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA== dependencies: - caniuse-lite "^1.0.30001726" - electron-to-chromium "^1.5.173" + caniuse-lite "^1.0.30001733" + electron-to-chromium "^1.5.199" node-releases "^2.0.19" update-browserslist-db "^1.1.3" @@ -1302,10 +1302,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001726: - version "1.0.30001731" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001731.tgz#277c07416ea4613ec564e5b0ffb47e7b60f32e2f" - integrity sha512-lDdp2/wrOmTRWuoB5DpfNkC0rJDU8DqRa6nYL6HK6sytw70QMopt/NIc/9SM7ylItlBWfACXk0tEn37UWM/+mg== +caniuse-lite@^1.0.30001733: + version "1.0.30001735" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz#ba658fd3fd24a4106fd68d5ce472a2c251494dbe" + integrity sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1604,10 +1604,10 @@ dunder-proto@^1.0.1: es-errors "^1.3.0" gopd "^1.2.0" -electron-to-chromium@^1.5.173: - version "1.5.195" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.195.tgz#2fe0d9b644726292189f227be73740868617b6d5" - integrity sha512-URclP0iIaDUzqcAyV1v2PgduJ9N0IdXmWsnPzPfelvBmjmZzEy6xJcjb1cXj+TbYqXgtLrjHEoaSIdTYhw4ezg== +electron-to-chromium@^1.5.199: + version "1.5.202" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.202.tgz#e243716943a2cab144604a81b9ebaa87b4e8c1d4" + integrity sha512-NxbYjRmiHcHXV1Ws3fWUW+SLb62isauajk45LUJ/HgIOkUA7jLZu/X2Iif+X9FBNK8QkF9Zb4Q2mcwXCcY30mg== elliptic@^6.5.3, elliptic@^6.5.5: version "6.6.1" @@ -1632,10 +1632,10 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.2: - version "5.18.2" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz#7903c5b32ffd4b2143eeb4b92472bd68effd5464" - integrity sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ== +enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.3: + version "5.18.3" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz#9b5f4c5c076b8787c78fe540392ce76a88855b44" + integrity sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -2820,9 +2820,9 @@ ms@^2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== msw@^2.8.4: - version "2.10.4" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.10.4.tgz#a39dad96468aecfd752e5b7df4bbc86f1d73dec4" - integrity sha512-6R1or/qyele7q3RyPwNuvc0IxO8L8/Aim6Sz5ncXEgcWUNxSKE+udriTOWHtpMwmfkLYlacA2y7TIx4cL5lgHA== + version "2.10.5" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.10.5.tgz#3e43f12e97581c260bf38d8817732b9fec3bfdb0" + integrity sha512-0EsQCrCI1HbhpBWd89DvmxY6plmvrM96b0sCIztnvcNHQbXn5vqwm1KlXslo6u4wN9LFGLC1WFjjgljcQhe40A== dependencies: "@bundled-es-modules/cookie" "^2.0.1" "@bundled-es-modules/statuses" "^1.0.1" @@ -3716,9 +3716,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.101.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.101.0.tgz#4b81407ffad9857f81ff03f872e3369b9198cc9d" - integrity sha512-B4t+nJqytPeuZlHuIKTbalhljIFXeNRqrUGAQgTGlfOl2lXXKXw+yZu6bicycP+PUlM44CxBjCFD6aciKFT3LQ== + version "5.101.2" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.101.2.tgz#08c222b7acfce7da95c593e2f88ea1638a07b344" + integrity sha512-4JLXU0tD6OZNVqlwzm3HGEhAHufSiyv+skb7q0d2367VDMzrU1Q/ZeepvkcHH0rZie6uqEtTQQe0OEOOluH3Mg== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3730,7 +3730,7 @@ webpack@^5.97.1: acorn-import-phases "^1.0.3" browserslist "^4.24.0" chrome-trace-event "^1.0.2" - enhanced-resolve "^5.17.2" + enhanced-resolve "^5.17.3" es-module-lexer "^1.2.1" eslint-scope "5.1.1" events "^3.2.0"