From aaad6fab109e7e9b81768c3ec743769ded474e16 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:23:48 +0000 Subject: [PATCH] SDK regeneration --- package.json | 2 +- .../resources/accessGroups/client/Client.ts | 2 +- src/api/resources/assets/client/Client.ts | 16 ++-- .../resources/collections/client/Client.ts | 10 +-- .../resources/fields/client/Client.ts | 4 +- .../resources/items/client/Client.ts | 31 +++----- .../client/requests/BulkCollectionItem.ts | 1 - .../items/types/ItemsPublishItemResponse.ts | 8 -- .../resources/items/types/index.ts | 1 - src/api/resources/ecommerce/client/Client.ts | 2 +- src/api/resources/forms/client/Client.ts | 10 +-- src/api/resources/inventory/client/Client.ts | 4 +- src/api/resources/orders/client/Client.ts | 12 +-- src/api/resources/pages/client/Client.ts | 49 +++++++----- .../pages/client/requests/DomWrite.ts | 11 ++- .../requests/UpdatePageSettingsRequest.ts | 24 +++--- .../pages/resources/scripts/client/Client.ts | 6 +- .../pages/types/DomWriteNodesItem.ts | 2 +- .../types/UpdateStaticContentResponse.ts | 8 ++ src/api/resources/pages/types/index.ts | 1 + src/api/resources/products/client/Client.ts | 74 ++++++++++-------- .../client/requests/ProductSkuCreate.ts | 33 ++++++-- .../client/requests/ProductSkuUpdate.ts | 40 ++++++++++ .../requests/ProductsCreateSkuRequest.ts | 1 + .../client/requests/ProductsUpdateRequest.ts | 58 -------------- .../requests/ProductsUpdateSkuRequest.ts | 1 + .../products/client/requests/index.ts | 2 +- .../products/types/ProductSkuCreateProduct.ts | 24 ------ .../types/ProductSkuCreateProductFieldData.ts | 25 ------- ...tSkuCreateProductFieldDataEcProductType.ts | 19 ----- ...uctSkuCreateProductFieldDataTaxCategory.ts | 69 ----------------- .../products/types/ProductSkuCreateSku.ts | 21 ------ .../types/ProductSkuCreateSkuFieldData.ts | 28 ------- ...ductSkuCreateSkuFieldDataCompareAtPrice.ts | 13 ---- ...SkuCreateSkuFieldDataEcSkuBillingMethod.ts | 13 ---- ...CreateSkuFieldDataEcSkuSubscriptionPlan.ts | 17 ----- ...uFieldDataEcSkuSubscriptionPlanInterval.ts | 15 ---- .../ProductSkuCreateSkuFieldDataPrice.ts | 14 ---- src/api/resources/products/types/index.ts | 11 --- src/api/resources/scripts/client/Client.ts | 14 ++-- src/api/resources/sites/client/Client.ts | 13 ++-- .../client/requests/SitesPublishRequest.ts | 1 + .../resources/activityLogs/client/Client.ts | 2 +- .../sites/resources/scripts/client/Client.ts | 8 +- src/api/resources/token/client/Client.ts | 4 +- src/api/resources/users/client/Client.ts | 10 +-- src/api/resources/webhooks/client/Client.ts | 8 +- src/api/types/Asset.ts | 16 ++-- src/api/types/AssetFolder.ts | 4 +- src/api/types/AssetUpload.ts | 10 +-- src/api/types/AssetUploadUploadDetails.ts | 6 +- src/api/types/AssetVariant.ts | 4 + ...esponse.ts => CustomCodeHostedResponse.ts} | 18 ++--- src/api/types/CustomCodeInlineResponse.ts | 25 +++++++ src/api/types/Form.ts | 21 ++++-- src/api/types/FormField.ts | 3 + src/api/types/FormFieldValue.ts | 3 + src/api/types/FormResponseSettings.ts | 7 +- src/api/types/Locale.ts | 22 ++++++ src/api/types/Locales.ts | 12 +++ src/api/types/Node.ts | 1 + src/api/types/Order.ts | 10 +-- src/api/types/OrderAddress.ts | 2 +- src/api/types/OrderAddressJapanType.ts | 2 +- src/api/types/OrderList.ts | 2 +- src/api/types/OrderPurchasedItem.ts | 2 + src/api/types/Product.ts | 2 + src/api/types/ProductFieldData.ts | 9 ++- src/api/types/RegisteredScriptList.ts | 5 +- src/api/types/ScriptApply.ts | 2 +- src/api/types/ScriptApplyList.ts | 1 + src/api/types/Scripts.ts | 3 + src/api/types/Site.ts | 3 + src/api/types/Sites.ts | 9 +++ src/api/types/Sku.ts | 3 +- .../SkuFieldDataEcSkuSubscriptionPlan.ts | 1 + ...FieldDataEcSkuSubscriptionPlanPlansItem.ts | 13 ++++ ...ataEcSkuSubscriptionPlanPlansItemStatus.ts | 14 ++++ src/api/types/index.ts | 8 +- .../items/types/ItemsPublishItemResponse.ts | 22 ------ .../resources/items/types/index.ts | 1 - .../types/UpdateStaticContentResponse.ts | 20 +++++ .../resources/pages/types/index.ts | 1 + .../client/requests/ProductSkuCreate.ts | 10 +-- .../client/requests/ProductSkuUpdate.ts | 22 ++++++ .../client/requests/ProductsUpdateRequest.ts | 22 ------ .../products/client/requests/index.ts | 2 +- .../products/types/ProductSkuCreateProduct.ts | 34 --------- .../types/ProductSkuCreateProductFieldData.ts | 51 ------------- ...tSkuCreateProductFieldDataEcProductType.ts | 25 ------- ...uctSkuCreateProductFieldDataTaxCategory.ts | 75 ------------------- .../products/types/ProductSkuCreateSku.ts | 30 -------- .../types/ProductSkuCreateSkuFieldData.ts | 54 ------------- ...ductSkuCreateSkuFieldDataCompareAtPrice.ts | 22 ------ ...SkuCreateSkuFieldDataEcSkuBillingMethod.ts | 16 ---- ...CreateSkuFieldDataEcSkuSubscriptionPlan.ts | 26 ------- ...uFieldDataEcSkuSubscriptionPlanInterval.ts | 16 ---- .../ProductSkuCreateSkuFieldDataPrice.ts | 24 ------ .../resources/products/types/index.ts | 11 --- src/serialization/types/Asset.ts | 16 ++-- src/serialization/types/AssetFolder.ts | 4 +- src/serialization/types/AssetUpload.ts | 12 +-- .../types/AssetUploadUploadDetails.ts | 10 +-- ...esponse.ts => CustomCodeHostedResponse.ts} | 24 +++--- .../types/CustomCodeInlineResponse.ts | 34 +++++++++ src/serialization/types/Form.ts | 20 ++--- .../types/FormResponseSettings.ts | 4 +- src/serialization/types/Locale.ts | 32 ++++++++ src/serialization/types/Locales.ts | 22 ++++++ src/serialization/types/OrderList.ts | 4 +- src/serialization/types/OrderPurchasedItem.ts | 2 + src/serialization/types/Product.ts | 2 + src/serialization/types/ProductFieldData.ts | 10 +-- .../types/RegisteredScriptList.ts | 4 +- src/serialization/types/Site.ts | 4 + src/serialization/types/Sites.ts | 17 +++++ src/serialization/types/Sku.ts | 2 + .../SkuFieldDataEcSkuSubscriptionPlan.ts | 6 ++ ...FieldDataEcSkuSubscriptionPlanPlansItem.ts | 26 +++++++ ...ataEcSkuSubscriptionPlanPlansItemStatus.ts | 16 ++++ src/serialization/types/index.ts | 8 +- yarn.lock | 66 ++++++++-------- 122 files changed, 742 insertions(+), 1072 deletions(-) delete mode 100644 src/api/resources/collections/resources/items/types/ItemsPublishItemResponse.ts create mode 100644 src/api/resources/pages/types/UpdateStaticContentResponse.ts create mode 100644 src/api/resources/products/client/requests/ProductSkuUpdate.ts delete mode 100644 src/api/resources/products/client/requests/ProductsUpdateRequest.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateProduct.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateProductFieldData.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSku.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSkuFieldData.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts delete mode 100644 src/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts rename src/api/types/{CustomCodeResponse.ts => CustomCodeHostedResponse.ts} (95%) create mode 100644 src/api/types/CustomCodeInlineResponse.ts create mode 100644 src/api/types/Locale.ts create mode 100644 src/api/types/Locales.ts create mode 100644 src/api/types/Sites.ts create mode 100644 src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts create mode 100644 src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts delete mode 100644 src/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.ts create mode 100644 src/serialization/resources/pages/types/UpdateStaticContentResponse.ts create mode 100644 src/serialization/resources/products/client/requests/ProductSkuUpdate.ts delete mode 100644 src/serialization/resources/products/client/requests/ProductsUpdateRequest.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateProduct.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateProductFieldData.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSku.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSkuFieldData.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts delete mode 100644 src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts rename src/serialization/types/{CustomCodeResponse.ts => CustomCodeHostedResponse.ts} (82%) create mode 100644 src/serialization/types/CustomCodeInlineResponse.ts create mode 100644 src/serialization/types/Locale.ts create mode 100644 src/serialization/types/Locales.ts create mode 100644 src/serialization/types/Sites.ts create mode 100644 src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts create mode 100644 src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts diff --git a/package.json b/package.json index abd9fb6d..24a89c62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webflow-api", - "version": "v2.2.1", + "version": "2.3.1", "private": false, "repository": "https://github.com/webflow/js-webflow-api", "main": "./index.js", diff --git a/src/api/resources/accessGroups/client/Client.ts b/src/api/resources/accessGroups/client/Client.ts index 7f47cf3b..8518c5b1 100644 --- a/src/api/resources/accessGroups/client/Client.ts +++ b/src/api/resources/accessGroups/client/Client.ts @@ -65,7 +65,7 @@ export class AccessGroups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/assets/client/Client.ts b/src/api/resources/assets/client/Client.ts index 3ed5e4db..774582cb 100644 --- a/src/api/resources/assets/client/Client.ts +++ b/src/api/resources/assets/client/Client.ts @@ -46,7 +46,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -129,7 +129,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -205,7 +205,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -280,7 +280,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -355,7 +355,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -431,7 +431,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -513,7 +513,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -592,7 +592,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/collections/client/Client.ts b/src/api/resources/collections/client/Client.ts index 35135e27..1a719e56 100644 --- a/src/api/resources/collections/client/Client.ts +++ b/src/api/resources/collections/client/Client.ts @@ -48,7 +48,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -131,7 +131,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -207,7 +207,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -282,7 +282,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -355,7 +355,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/collections/resources/fields/client/Client.ts b/src/api/resources/collections/resources/fields/client/Client.ts index a07bde8d..d5cf8f72 100644 --- a/src/api/resources/collections/resources/fields/client/Client.ts +++ b/src/api/resources/collections/resources/fields/client/Client.ts @@ -55,7 +55,7 @@ export class Fields { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -140,7 +140,7 @@ export class Fields { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/collections/resources/items/client/Client.ts b/src/api/resources/collections/resources/items/client/Client.ts index 4c343d8d..23ae60a2 100644 --- a/src/api/resources/collections/resources/items/client/Client.ts +++ b/src/api/resources/collections/resources/items/client/Client.ts @@ -68,7 +68,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -160,7 +160,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -246,7 +246,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -305,7 +305,6 @@ export class Items { * @example * await webflow.collections.items.createItemForMultipleLocales("collection_id", { * id: "580e64008c9a982ac9b8b754", - * lastPublished: "2023-03-17T18:47:35.560Z", * lastUpdated: "2023-03-17T18:47:35.560Z", * createdOn: "2023-03-17T18:47:35.560Z", * fieldData: { @@ -329,7 +328,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -412,7 +411,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -503,7 +502,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -590,7 +589,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -670,7 +669,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -756,7 +755,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -827,7 +826,7 @@ export class Items { collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions - ): Promise { + ): Promise { const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default, @@ -838,7 +837,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -850,13 +849,7 @@ export class Items { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); + return; } if (_response.error.reason === "status-code") { diff --git a/src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts b/src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts index 08a955da..086daa23 100644 --- a/src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts +++ b/src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts @@ -8,7 +8,6 @@ import * as Webflow from "../../../../../.."; * @example * { * id: "580e64008c9a982ac9b8b754", - * lastPublished: "2023-03-17T18:47:35.560Z", * lastUpdated: "2023-03-17T18:47:35.560Z", * createdOn: "2023-03-17T18:47:35.560Z", * fieldData: { diff --git a/src/api/resources/collections/resources/items/types/ItemsPublishItemResponse.ts b/src/api/resources/collections/resources/items/types/ItemsPublishItemResponse.ts deleted file mode 100644 index 94e2b8c1..00000000 --- a/src/api/resources/collections/resources/items/types/ItemsPublishItemResponse.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface ItemsPublishItemResponse { - publishedItemIds?: string[]; - errors?: string[]; -} diff --git a/src/api/resources/collections/resources/items/types/index.ts b/src/api/resources/collections/resources/items/types/index.ts index 8fdcd8a5..3a61bf70 100644 --- a/src/api/resources/collections/resources/items/types/index.ts +++ b/src/api/resources/collections/resources/items/types/index.ts @@ -1,2 +1 @@ export * from "./BulkCollectionItemFieldData"; -export * from "./ItemsPublishItemResponse"; diff --git a/src/api/resources/ecommerce/client/Client.ts b/src/api/resources/ecommerce/client/Client.ts index 4c128184..e1cd6e10 100644 --- a/src/api/resources/ecommerce/client/Client.ts +++ b/src/api/resources/ecommerce/client/Client.ts @@ -53,7 +53,7 @@ export class Ecommerce { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/forms/client/Client.ts b/src/api/resources/forms/client/Client.ts index fdedfce7..70d7c9b6 100644 --- a/src/api/resources/forms/client/Client.ts +++ b/src/api/resources/forms/client/Client.ts @@ -62,7 +62,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -143,7 +143,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -224,7 +224,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -305,7 +305,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -388,7 +388,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.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 39b9f1a7..d74e226e 100644 --- a/src/api/resources/inventory/client/Client.ts +++ b/src/api/resources/inventory/client/Client.ts @@ -54,7 +54,7 @@ export class Inventory { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -146,7 +146,7 @@ export class Inventory { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts index 2660fa93..40c4afb3 100644 --- a/src/api/resources/orders/client/Client.ts +++ b/src/api/resources/orders/client/Client.ts @@ -68,7 +68,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -152,7 +152,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -245,7 +245,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -334,7 +334,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -424,7 +424,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -513,7 +513,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/pages/client/Client.ts b/src/api/resources/pages/client/Client.ts index 571d86b6..501e7e38 100644 --- a/src/api/resources/pages/client/Client.ts +++ b/src/api/resources/pages/client/Client.ts @@ -65,7 +65,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -151,7 +151,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -216,27 +216,27 @@ export class Pages { * @example * await webflow.pages.updatePageSettings("page_id", { * body: { - * id: "6390c49774a71f0e3c1a08ee", - * siteId: "6390c49674a71f84b51a08d8", - * title: "Blog Categories Template", - * slug: "detail_blog-category", + * id: "6596da6045e56dee495bcbba", + * siteId: "6258612d1ee792848f805dcf", + * title: "Guide to the Galaxy", + * slug: "guide-to-the-galaxy", * parentId: "6419db964a9c435aa3af6251", * collectionId: "6390c49774a71f12831a08e3", - * createdOn: new Date("2018-10-14T21:55:49.000Z"), - * lastUpdated: new Date("2022-12-07T16:51:37.000Z"), + * createdOn: new Date("2024-03-11T10:42:00.000Z"), + * lastUpdated: new Date("2024-03-11T10:42:42.000Z"), * archived: false, * draft: false, * canBranch: true, * isMembersOnly: false, * seo: { - * title: "CoffeeStyle eCommerce - Webflow HTML website template", - * description: "This Webflow template offers a quick start into an e-commerce / memberships site" + * title: "The Ultimate Hitchhiker's Guide to the Galaxy", + * description: "Everything you need to know about the galaxy, from avoiding Vogon poetry to the importance of towels." * }, * openGraph: { - * title: "CoffeeStyle eCommerce - Webflow HTML website template", - * titleCopied: true, - * description: "This Webflow template offers a quick start into an e-commerce / memberships site", - * descriptionCopied: true + * title: "Explore the Cosmos with The Ultimate Guide", + * titleCopied: false, + * description: "Dive deep into the mysteries of the universe with your guide to everything galactic.", + * descriptionCopied: false * } * } * }) @@ -262,7 +262,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -350,7 +350,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -419,7 +419,16 @@ export class Pages { * await webflow.pages.updateStaticContent("page_id", { * locale: "locale", * nodes: [{ - * nodeId: "guide-title-id", + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623", + * text: "

The Hitchhiker's Guide to the Galaxy

" + * }, { + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad627", + * text: "

Don't Panic!

Always know where your towel is.

" + * }, { + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629", + * text: "Marvin, the Paranoid Android" + * }, { + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623", * text: "

Hello world

" * }] * }) @@ -428,7 +437,7 @@ export class Pages { pageId: string, request: Webflow.DomWrite, requestOptions?: Pages.RequestOptions - ): Promise { + ): Promise { const { locale, ..._body } = request; const _queryParams: Record = {}; _queryParams["locale"] = locale; @@ -442,7 +451,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -453,7 +462,7 @@ export class Pages { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.Dom.parseOrThrow(_response.body, { + return await serializers.UpdateStaticContentResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/pages/client/requests/DomWrite.ts b/src/api/resources/pages/client/requests/DomWrite.ts index d554ae23..0a5861fd 100644 --- a/src/api/resources/pages/client/requests/DomWrite.ts +++ b/src/api/resources/pages/client/requests/DomWrite.ts @@ -9,7 +9,16 @@ import * as Webflow from "../../../.."; * { * locale: "locale", * nodes: [{ - * nodeId: "guide-title-id", + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623", + * text: "

The Hitchhiker's Guide to the Galaxy

" + * }, { + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad627", + * text: "

Don't Panic!

Always know where your towel is.

" + * }, { + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629", + * text: "Marvin, the Paranoid Android" + * }, { + * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623", * text: "

Hello world

" * }] * } diff --git a/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts b/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts index df433308..a0ceab5b 100644 --- a/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts +++ b/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts @@ -8,27 +8,27 @@ import * as Webflow from "../../../.."; * @example * { * body: { - * id: "6390c49774a71f0e3c1a08ee", - * siteId: "6390c49674a71f84b51a08d8", - * title: "Blog Categories Template", - * slug: "detail_blog-category", + * id: "6596da6045e56dee495bcbba", + * siteId: "6258612d1ee792848f805dcf", + * title: "Guide to the Galaxy", + * slug: "guide-to-the-galaxy", * parentId: "6419db964a9c435aa3af6251", * collectionId: "6390c49774a71f12831a08e3", - * createdOn: new Date("2018-10-14T21:55:49.000Z"), - * lastUpdated: new Date("2022-12-07T16:51:37.000Z"), + * createdOn: new Date("2024-03-11T10:42:00.000Z"), + * lastUpdated: new Date("2024-03-11T10:42:42.000Z"), * archived: false, * draft: false, * canBranch: true, * isMembersOnly: false, * seo: { - * title: "CoffeeStyle eCommerce - Webflow HTML website template", - * description: "This Webflow template offers a quick start into an e-commerce / memberships site" + * title: "The Ultimate Hitchhiker's Guide to the Galaxy", + * description: "Everything you need to know about the galaxy, from avoiding Vogon poetry to the importance of towels." * }, * openGraph: { - * title: "CoffeeStyle eCommerce - Webflow HTML website template", - * titleCopied: true, - * description: "This Webflow template offers a quick start into an e-commerce / memberships site", - * descriptionCopied: true + * title: "Explore the Cosmos with The Ultimate Guide", + * titleCopied: false, + * description: "Dive deep into the mysteries of the universe with your guide to everything galactic.", + * descriptionCopied: false * } * } * } diff --git a/src/api/resources/pages/resources/scripts/client/Client.ts b/src/api/resources/pages/resources/scripts/client/Client.ts index f7ba1673..dd11722b 100644 --- a/src/api/resources/pages/resources/scripts/client/Client.ts +++ b/src/api/resources/pages/resources/scripts/client/Client.ts @@ -49,7 +49,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -145,7 +145,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -221,7 +221,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/pages/types/DomWriteNodesItem.ts b/src/api/resources/pages/types/DomWriteNodesItem.ts index 54e8f2e5..907de6eb 100644 --- a/src/api/resources/pages/types/DomWriteNodesItem.ts +++ b/src/api/resources/pages/types/DomWriteNodesItem.ts @@ -5,6 +5,6 @@ export interface DomWriteNodesItem { /** Node UUID */ nodeId: string; - /** HTML content of the node */ + /** HTML content of the node, including the HTML tag. The HTML tags must be the same as what's returned from the Get Content endpoint. */ text: string; } diff --git a/src/api/resources/pages/types/UpdateStaticContentResponse.ts b/src/api/resources/pages/types/UpdateStaticContentResponse.ts new file mode 100644 index 00000000..70339d41 --- /dev/null +++ b/src/api/resources/pages/types/UpdateStaticContentResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateStaticContentResponse { + /** A list of error messages, if any. */ + errors: string[]; +} diff --git a/src/api/resources/pages/types/index.ts b/src/api/resources/pages/types/index.ts index a2ba6486..943c3715 100644 --- a/src/api/resources/pages/types/index.ts +++ b/src/api/resources/pages/types/index.ts @@ -1 +1,2 @@ export * from "./DomWriteNodesItem"; +export * from "./UpdateStaticContentResponse"; diff --git a/src/api/resources/products/client/Client.ts b/src/api/resources/products/client/Client.ts index 9c9a2c52..984023ba 100644 --- a/src/api/resources/products/client/Client.ts +++ b/src/api/resources/products/client/Client.ts @@ -64,7 +64,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -141,7 +141,32 @@ export class Products { * @throws {@link Webflow.InternalServerError} * * @example - * await webflow.products.create("site_id", {}) + * await webflow.products.create("site_id", { + * product: { + * id: "660eb7a486d1d6e0412292d7", + * cmsLocaleId: "653ad57de882f528b32e810e", + * lastPublished: new Date("2024-04-04T14:24:19.000Z"), + * lastUpdated: new Date("2024-04-04T14:30:19.000Z"), + * createdOn: new Date("2024-04-04T14:22:28.000Z"), + * isArchived: false, + * isDraft: false, + * fieldData: { + * name: "T-Shirt", + * slug: "t-shirt", + * description: "A plain cotton t-shirt.", + * shippable: true, + * skuProperties: [{ + * id: "Color", + * name: "Color", + * enum: [{ + * id: "id", + * name: "name", + * slug: "slug" + * }] + * }] + * } + * } + * }) */ public async create( siteId: string, @@ -158,7 +183,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -246,7 +271,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -318,10 +343,11 @@ export class Products { * @example * await webflow.products.update("site_id", "product_id", { * product: { - * id: "580e63fc8c9a982ac9b8b745", - * lastPublished: new Date("2023-03-17T18:47:35.000Z"), - * lastUpdated: new Date("2023-03-17T18:47:35.000Z"), - * createdOn: new Date("2023-03-17T18:47:35.000Z"), + * id: "660eb7a486d1d6e0412292d7", + * cmsLocaleId: "653ad57de882f528b32e810e", + * lastPublished: new Date("2024-04-04T14:24:19.000Z"), + * lastUpdated: new Date("2024-04-04T14:30:19.000Z"), + * createdOn: new Date("2024-04-04T14:22:28.000Z"), * isArchived: false, * isDraft: false, * fieldData: { @@ -330,26 +356,6 @@ export class Products { * description: "A plain cotton t-shirt.", * shippable: true, * skuProperties: [{ - * id: "color", - * name: "Color", - * enum: [{ - * id: "royal-blue", - * name: "Royal Blue", - * slug: "royal-blue" - * }, { - * id: "crimson-red", - * name: "Crimson Red", - * slug: "crimson-red" - * }, { - * id: "forrest-green", - * name: "name", - * slug: "slug" - * }, { - * id: "id", - * name: "name", - * slug: "slug" - * }] - * }, { * id: "Color", * name: "Color", * enum: [{ @@ -365,7 +371,7 @@ export class Products { public async update( siteId: string, productId: string, - request: Webflow.ProductsUpdateRequest, + request: Webflow.ProductSkuUpdate = {}, requestOptions?: Products.RequestOptions ): Promise { const _response = await core.fetcher({ @@ -378,12 +384,12 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", - body: await serializers.ProductsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: await serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, }); @@ -454,6 +460,7 @@ export class Products { * await webflow.products.createSku("site_id", "product_id", { * skus: [{ * id: "580e63fc8c9a982ac9b8b745", + * cmsLocaleId: "653ad57de882f528b32e810e", * lastPublished: new Date("2023-03-17T18:47:35.000Z"), * lastUpdated: new Date("2023-03-17T18:47:35.000Z"), * createdOn: new Date("2023-03-17T18:47:35.000Z"), @@ -485,7 +492,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -559,6 +566,7 @@ export class Products { * await webflow.products.updateSku("site_id", "product_id", "sku_id", { * sku: { * id: "580e63fc8c9a982ac9b8b745", + * cmsLocaleId: "653ad57de882f528b32e810e", * lastPublished: new Date("2023-03-17T18:47:35.000Z"), * lastUpdated: new Date("2023-03-17T18:47:35.000Z"), * createdOn: new Date("2023-03-17T18:47:35.000Z"), @@ -591,7 +599,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/products/client/requests/ProductSkuCreate.ts b/src/api/resources/products/client/requests/ProductSkuCreate.ts index 3b030adc..cff0b358 100644 --- a/src/api/resources/products/client/requests/ProductSkuCreate.ts +++ b/src/api/resources/products/client/requests/ProductSkuCreate.ts @@ -6,12 +6,35 @@ import * as Webflow from "../../../.."; /** * @example - * {} + * { + * product: { + * id: "660eb7a486d1d6e0412292d7", + * cmsLocaleId: "653ad57de882f528b32e810e", + * lastPublished: new Date("2024-04-04T14:24:19.000Z"), + * lastUpdated: new Date("2024-04-04T14:30:19.000Z"), + * createdOn: new Date("2024-04-04T14:22:28.000Z"), + * isArchived: false, + * isDraft: false, + * fieldData: { + * name: "T-Shirt", + * slug: "t-shirt", + * description: "A plain cotton t-shirt.", + * shippable: true, + * skuProperties: [{ + * id: "Color", + * name: "Color", + * enum: [{ + * id: "id", + * name: "name", + * slug: "slug" + * }] + * }] + * } + * } + * } */ export interface ProductSkuCreate { publishStatus?: Webflow.PublishStatus; - /** The Product Object */ - product?: Webflow.ProductSkuCreateProduct; - /** The SKU object */ - sku?: Webflow.ProductSkuCreateSku; + product?: Webflow.Product; + sku?: Webflow.Sku; } diff --git a/src/api/resources/products/client/requests/ProductSkuUpdate.ts b/src/api/resources/products/client/requests/ProductSkuUpdate.ts new file mode 100644 index 00000000..da876662 --- /dev/null +++ b/src/api/resources/products/client/requests/ProductSkuUpdate.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from "../../../.."; + +/** + * @example + * { + * product: { + * id: "660eb7a486d1d6e0412292d7", + * cmsLocaleId: "653ad57de882f528b32e810e", + * lastPublished: new Date("2024-04-04T14:24:19.000Z"), + * lastUpdated: new Date("2024-04-04T14:30:19.000Z"), + * createdOn: new Date("2024-04-04T14:22:28.000Z"), + * isArchived: false, + * isDraft: false, + * fieldData: { + * name: "T-Shirt", + * slug: "t-shirt", + * description: "A plain cotton t-shirt.", + * shippable: true, + * skuProperties: [{ + * id: "Color", + * name: "Color", + * enum: [{ + * id: "id", + * name: "name", + * slug: "slug" + * }] + * }] + * } + * } + * } + */ +export interface ProductSkuUpdate { + publishStatus?: Webflow.PublishStatus; + product?: Webflow.Product; + sku?: Webflow.Sku; +} diff --git a/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts b/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts index 210302b2..f8a5c929 100644 --- a/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts +++ b/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts @@ -9,6 +9,7 @@ import * as Webflow from "../../../.."; * { * skus: [{ * id: "580e63fc8c9a982ac9b8b745", + * cmsLocaleId: "653ad57de882f528b32e810e", * lastPublished: new Date("2023-03-17T18:47:35.000Z"), * lastUpdated: new Date("2023-03-17T18:47:35.000Z"), * createdOn: new Date("2023-03-17T18:47:35.000Z"), diff --git a/src/api/resources/products/client/requests/ProductsUpdateRequest.ts b/src/api/resources/products/client/requests/ProductsUpdateRequest.ts deleted file mode 100644 index dd34a6a8..00000000 --- a/src/api/resources/products/client/requests/ProductsUpdateRequest.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../.."; - -/** - * @example - * { - * product: { - * id: "580e63fc8c9a982ac9b8b745", - * lastPublished: new Date("2023-03-17T18:47:35.000Z"), - * lastUpdated: new Date("2023-03-17T18:47:35.000Z"), - * createdOn: new Date("2023-03-17T18:47:35.000Z"), - * isArchived: false, - * isDraft: false, - * fieldData: { - * name: "T-Shirt", - * slug: "t-shirt", - * description: "A plain cotton t-shirt.", - * shippable: true, - * skuProperties: [{ - * id: "color", - * name: "Color", - * enum: [{ - * id: "royal-blue", - * name: "Royal Blue", - * slug: "royal-blue" - * }, { - * id: "crimson-red", - * name: "Crimson Red", - * slug: "crimson-red" - * }, { - * id: "forrest-green", - * name: "name", - * slug: "slug" - * }, { - * id: "id", - * name: "name", - * slug: "slug" - * }] - * }, { - * id: "Color", - * name: "Color", - * enum: [{ - * id: "id", - * name: "name", - * slug: "slug" - * }] - * }] - * } - * } - * } - */ -export interface ProductsUpdateRequest { - publishStatus?: Webflow.PublishStatus; - product: Webflow.Product; -} diff --git a/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts b/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts index d7aa25b6..27b2fcad 100644 --- a/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts +++ b/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts @@ -9,6 +9,7 @@ import * as Webflow from "../../../.."; * { * sku: { * id: "580e63fc8c9a982ac9b8b745", + * cmsLocaleId: "653ad57de882f528b32e810e", * lastPublished: new Date("2023-03-17T18:47:35.000Z"), * lastUpdated: new Date("2023-03-17T18:47:35.000Z"), * createdOn: new Date("2023-03-17T18:47:35.000Z"), diff --git a/src/api/resources/products/client/requests/index.ts b/src/api/resources/products/client/requests/index.ts index f95504d3..6d13154b 100644 --- a/src/api/resources/products/client/requests/index.ts +++ b/src/api/resources/products/client/requests/index.ts @@ -1,5 +1,5 @@ export { ProductsListRequest } from "./ProductsListRequest"; export { ProductSkuCreate } from "./ProductSkuCreate"; -export { ProductsUpdateRequest } from "./ProductsUpdateRequest"; +export { ProductSkuUpdate } from "./ProductSkuUpdate"; export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest"; export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest"; diff --git a/src/api/resources/products/types/ProductSkuCreateProduct.ts b/src/api/resources/products/types/ProductSkuCreateProduct.ts deleted file mode 100644 index f0e01058..00000000 --- a/src/api/resources/products/types/ProductSkuCreateProduct.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../.."; - -/** - * The Product Object - */ -export interface ProductSkuCreateProduct { - /** Unique identifier for the Product */ - id?: string; - /** The date the Product was last published */ - lastPublished?: Date; - /** The date the Product was last updated */ - lastUpdated?: Date; - /** The date the Product was created */ - createdOn?: Date; - /** Boolean determining if the Product is set to archived */ - isArchived?: boolean; - /** Boolean determining if the Product is set to draft */ - isDraft?: boolean; - fieldData?: Webflow.ProductSkuCreateProductFieldData; -} diff --git a/src/api/resources/products/types/ProductSkuCreateProductFieldData.ts b/src/api/resources/products/types/ProductSkuCreateProductFieldData.ts deleted file mode 100644 index 392757ed..00000000 --- a/src/api/resources/products/types/ProductSkuCreateProductFieldData.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../.."; - -export interface ProductSkuCreateProductFieldData { - /** Name of the Product */ - name: string; - /** URL structure of the Product in your site. */ - slug: string; - /** A description of your product */ - description?: string; - /** Boolean determining if the Product is shippable */ - shippable?: boolean; - /** Variant types to include in SKUs */ - skuProperties?: Webflow.SkuPropertyList[]; - /** The categories your product belongs to. */ - categories?: unknown[]; - /** Product tax class */ - taxCategory?: Webflow.ProductSkuCreateProductFieldDataTaxCategory; - /** Product types. Enums reflect the following values in order: Physical, Digital, Service, Advanced" */ - ecProductType?: Webflow.ProductSkuCreateProductFieldDataEcProductType; - additionalProperties?: unknown; -} diff --git a/src/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts b/src/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts deleted file mode 100644 index 6c530ca9..00000000 --- a/src/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Product types. Enums reflect the following values in order: Physical, Digital, Service, Advanced" - */ -export type ProductSkuCreateProductFieldDataEcProductType = - | "ff42fee0113744f693a764e3431a9cc2" - | "f22027db68002190aef89a4a2b7ac8a1" - | "c599e43b1a1c34d5a323aedf75d3adf6" - | "b6ccc1830db4b1babeb06a9ac5f6dd76"; - -export const ProductSkuCreateProductFieldDataEcProductType = { - Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2", - F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1", - C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6", - B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76", -} as const; diff --git a/src/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts b/src/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts deleted file mode 100644 index 5897546c..00000000 --- a/src/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Product tax class - */ -export type ProductSkuCreateProductFieldDataTaxCategory = - | "standard-taxable" - | "standard-exempt" - | "books-religious" - | "books-textbook" - | "clothing" - | "clothing-swimwear" - | "digital-goods" - | "digital-service" - | "drugs-non-prescription" - | "drugs-prescription" - | "food-bottled-water" - | "food-candy" - | "food-groceries" - | "food-prepared" - | "food-soda" - | "food-supplements" - | "magazine-individual" - | "magazine-subscription" - | "service-admission" - | "service-advertising" - | "service-dry-cleaning" - | "service-hairdressing" - | "service-installation" - | "service-miscellaneous" - | "service-parking" - | "service-printing" - | "service-professional" - | "service-repair" - | "service-training"; - -export const ProductSkuCreateProductFieldDataTaxCategory = { - StandardTaxable: "standard-taxable", - StandardExempt: "standard-exempt", - BooksReligious: "books-religious", - BooksTextbook: "books-textbook", - Clothing: "clothing", - ClothingSwimwear: "clothing-swimwear", - DigitalGoods: "digital-goods", - DigitalService: "digital-service", - DrugsNonPrescription: "drugs-non-prescription", - DrugsPrescription: "drugs-prescription", - FoodBottledWater: "food-bottled-water", - FoodCandy: "food-candy", - FoodGroceries: "food-groceries", - FoodPrepared: "food-prepared", - FoodSoda: "food-soda", - FoodSupplements: "food-supplements", - MagazineIndividual: "magazine-individual", - MagazineSubscription: "magazine-subscription", - ServiceAdmission: "service-admission", - ServiceAdvertising: "service-advertising", - ServiceDryCleaning: "service-dry-cleaning", - ServiceHairdressing: "service-hairdressing", - ServiceInstallation: "service-installation", - ServiceMiscellaneous: "service-miscellaneous", - ServiceParking: "service-parking", - ServicePrinting: "service-printing", - ServiceProfessional: "service-professional", - ServiceRepair: "service-repair", - ServiceTraining: "service-training", -} as const; diff --git a/src/api/resources/products/types/ProductSkuCreateSku.ts b/src/api/resources/products/types/ProductSkuCreateSku.ts deleted file mode 100644 index 152285ac..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSku.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../.."; - -/** - * The SKU object - */ -export interface ProductSkuCreateSku { - /** Unique identifier for the Product */ - id?: string; - /** The date the Product was last published */ - lastPublished?: Date; - /** The date the Product was last updated */ - lastUpdated?: Date; - /** The date the Product was created */ - createdOn?: Date; - /** Standard and Custom fields for a SKU */ - fieldData?: Webflow.ProductSkuCreateSkuFieldData; -} diff --git a/src/api/resources/products/types/ProductSkuCreateSkuFieldData.ts b/src/api/resources/products/types/ProductSkuCreateSkuFieldData.ts deleted file mode 100644 index 5db7a7ac..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSkuFieldData.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../.."; - -/** - * Standard and Custom fields for a SKU - */ -export interface ProductSkuCreateSkuFieldData { - skuValues?: Webflow.SkuValueList; - /** Name of the Product */ - name: string; - /** URL structure of the Product in your site. */ - slug: string; - /** price of SKU */ - price: Webflow.ProductSkuCreateSkuFieldDataPrice; - /** comparison price of SKU */ - compareAtPrice?: Webflow.ProductSkuCreateSkuFieldDataCompareAtPrice; - /** The billing method for your SKU */ - ecSkuBillingMethod?: Webflow.ProductSkuCreateSkuFieldDataEcSkuBillingMethod; - /** If your billing method is a Subscription Plan, outline the type and frequency of the subscription. */ - ecSkuSubscriptionPlan?: Webflow.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan; - /** 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; -} diff --git a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts b/src/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts deleted file mode 100644 index 46ef6f7a..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * comparison price of SKU - */ -export interface ProductSkuCreateSkuFieldDataCompareAtPrice { - /** Price of SKU */ - value?: number; - /** Currency of Item */ - unit?: string; -} diff --git a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts b/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts deleted file mode 100644 index 57de997a..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The billing method for your SKU - */ -export type ProductSkuCreateSkuFieldDataEcSkuBillingMethod = "one-time" | "subscription"; - -export const ProductSkuCreateSkuFieldDataEcSkuBillingMethod = { - OneTime: "one-time", - Subscription: "subscription", -} as const; diff --git a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts b/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts deleted file mode 100644 index 4352848c..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../.."; - -/** - * If your billing method is a Subscription Plan, outline the type and frequency of the subscription. - */ -export interface ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan { - /** Interval of subscription renewal */ - interval?: Webflow.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval; - /** Frequncy of billing within interval */ - frequency?: number; - /** Number of days of a trial */ - trial?: number; -} diff --git a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts b/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts deleted file mode 100644 index b11a1270..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Interval of subscription renewal - */ -export type ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval = "day" | "week" | "month" | "year"; - -export const ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval = { - Day: "day", - Week: "week", - Month: "month", - Year: "year", -} as const; diff --git a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts b/src/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts deleted file mode 100644 index 2a61c4ff..00000000 --- a/src/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * price of SKU - */ -export interface ProductSkuCreateSkuFieldDataPrice { - required?: unknown; - /** Price of SKU */ - value?: number; - /** Currency of Item */ - unit?: string; -} diff --git a/src/api/resources/products/types/index.ts b/src/api/resources/products/types/index.ts index a6bad2b0..e286df49 100644 --- a/src/api/resources/products/types/index.ts +++ b/src/api/resources/products/types/index.ts @@ -1,12 +1 @@ -export * from "./ProductSkuCreateProductFieldDataTaxCategory"; -export * from "./ProductSkuCreateProductFieldDataEcProductType"; -export * from "./ProductSkuCreateProductFieldData"; -export * from "./ProductSkuCreateProduct"; -export * from "./ProductSkuCreateSkuFieldDataPrice"; -export * from "./ProductSkuCreateSkuFieldDataCompareAtPrice"; -export * from "./ProductSkuCreateSkuFieldDataEcSkuBillingMethod"; -export * from "./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval"; -export * from "./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan"; -export * from "./ProductSkuCreateSkuFieldData"; -export * from "./ProductSkuCreateSku"; export * from "./ProductsCreateSkuResponse"; diff --git a/src/api/resources/scripts/client/Client.ts b/src/api/resources/scripts/client/Client.ts index 45fd3a15..bfc57c9c 100644 --- a/src/api/resources/scripts/client/Client.ts +++ b/src/api/resources/scripts/client/Client.ts @@ -46,7 +46,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -119,7 +119,7 @@ export class Scripts { siteId: string, request: Webflow.CustomCodeHostedRequest, requestOptions?: Scripts.RequestOptions - ): Promise { + ): Promise { const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default, @@ -130,7 +130,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -140,7 +140,7 @@ export class Scripts { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.CustomCodeResponse.parseOrThrow(_response.body, { + return await serializers.CustomCodeHostedResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -203,7 +203,7 @@ export class Scripts { siteId: string, request: Webflow.CustomCodeInlineRequest, requestOptions?: Scripts.RequestOptions - ): Promise { + ): Promise { const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default, @@ -214,7 +214,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -224,7 +224,7 @@ export class Scripts { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.CustomCodeResponse.parseOrThrow(_response.body, { + return await serializers.CustomCodeInlineResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 64c5a881..1b0ea962 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -37,7 +37,7 @@ export class Sites { * @example * await webflow.sites.list() */ - public async list(requestOptions?: Sites.RequestOptions): Promise { + public async list(requestOptions?: Sites.RequestOptions): Promise { const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default, @@ -48,7 +48,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -57,7 +57,7 @@ export class Sites { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.Site.parseOrThrow(_response.body, { + return await serializers.Sites.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -123,7 +123,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -198,7 +198,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -261,6 +261,7 @@ export class Sites { * * @example * await webflow.sites.publish("site_id", { + * customDomains: ["589a331aa51e760df7ccb89d"], * publishToWebflowSubdomain: false * }) */ @@ -279,7 +280,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/sites/client/requests/SitesPublishRequest.ts b/src/api/resources/sites/client/requests/SitesPublishRequest.ts index a6aea5c2..770f7973 100644 --- a/src/api/resources/sites/client/requests/SitesPublishRequest.ts +++ b/src/api/resources/sites/client/requests/SitesPublishRequest.ts @@ -5,6 +5,7 @@ /** * @example * { + * customDomains: ["589a331aa51e760df7ccb89d"], * publishToWebflowSubdomain: false * } */ diff --git a/src/api/resources/sites/resources/activityLogs/client/Client.ts b/src/api/resources/sites/resources/activityLogs/client/Client.ts index 670f9aa3..f4fa49a8 100644 --- a/src/api/resources/sites/resources/activityLogs/client/Client.ts +++ b/src/api/resources/sites/resources/activityLogs/client/Client.ts @@ -59,7 +59,7 @@ export class ActivityLogs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/sites/resources/scripts/client/Client.ts b/src/api/resources/sites/resources/scripts/client/Client.ts index c4b8b8e0..50d3dcd2 100644 --- a/src/api/resources/sites/resources/scripts/client/Client.ts +++ b/src/api/resources/sites/resources/scripts/client/Client.ts @@ -49,7 +49,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -145,7 +145,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -221,7 +221,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -304,7 +304,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/token/client/Client.ts b/src/api/resources/token/client/Client.ts index 6bf900e7..61b05d65 100644 --- a/src/api/resources/token/client/Client.ts +++ b/src/api/resources/token/client/Client.ts @@ -43,7 +43,7 @@ export class Token { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -108,7 +108,7 @@ export class Token { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 4db71f53..18f0f72a 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -65,7 +65,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -144,7 +144,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -222,7 +222,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -308,7 +308,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -395,7 +395,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index b2e99f3d..070b6330 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -46,7 +46,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -128,7 +128,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -204,7 +204,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -279,7 +279,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "v2.2.1", + "X-Fern-SDK-Version": "2.3.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/types/Asset.ts b/src/api/types/Asset.ts index 520f455f..7fca40e5 100644 --- a/src/api/types/Asset.ts +++ b/src/api/types/Asset.ts @@ -7,21 +7,21 @@ import * as Webflow from ".."; export interface Asset { /** Unique identifier for this asset */ id?: string; + /** Original file name at the time of upload */ + originalFileName?: string; + /** Display name of the asset */ + displayName?: string; /** File format type */ contentType?: string; /** size in bytes */ size?: number; /** Unique identifier for the site that hosts this asset */ siteId?: string; - /** Link to the asset */ - hostedUrl?: string; - /** Original file name at the time of upload */ - originalFileName?: string; - /** Display name of the asset */ - displayName?: string; - /** Date the asset metadata was last updated */ - lastUpdated?: Date; /** Date the asset metadata was created */ createdOn?: Date; + /** Date the asset metadata was last updated */ + lastUpdated?: Date; + /** Link to the asset */ + hostedUrl?: string; variants?: Webflow.AssetVariant[]; } diff --git a/src/api/types/AssetFolder.ts b/src/api/types/AssetFolder.ts index 6737c6b0..5e7d18a6 100644 --- a/src/api/types/AssetFolder.ts +++ b/src/api/types/AssetFolder.ts @@ -6,10 +6,10 @@ * Asset Folder details */ export interface AssetFolder { - /** User visible name for the Asset Folder */ - displayName?: string; /** Unique identifier for the Asset Folder */ id?: string; + /** User visible name for the Asset Folder */ + displayName?: string; /** Pointer to parent Asset Folder (or null if root) */ parentFolder?: string; /** Array of Asset instances in the folder */ diff --git a/src/api/types/AssetUpload.ts b/src/api/types/AssetUpload.ts index 0b71b50b..ac2d27bf 100644 --- a/src/api/types/AssetUpload.ts +++ b/src/api/types/AssetUpload.ts @@ -7,19 +7,19 @@ import * as Webflow from ".."; export interface AssetUpload { /** Metadata for uploading the asset binary */ uploadDetails?: Webflow.AssetUploadUploadDetails; - id?: string; contentType?: string; + id?: string; /** Parent folder for the asset */ parentFolder?: string; - /** Represents the link to the asset */ - hostedUrl?: string; uploadUrl?: string; /** S3 link to the asset */ assetUrl?: string; + /** Represents the link to the asset */ + hostedUrl?: string; /** Original file name when uploaded. If not specified at time of upload, it may be extracted from the raw file name */ originalFileName?: string; - /** Date the asset metadata was last updated */ - lastUpdated?: Date; /** Date the asset metadata was created */ createdOn?: Date; + /** Date the asset metadata was last updated */ + lastUpdated?: Date; } diff --git a/src/api/types/AssetUploadUploadDetails.ts b/src/api/types/AssetUploadUploadDetails.ts index 99d4b6d3..8226a132 100644 --- a/src/api/types/AssetUploadUploadDetails.ts +++ b/src/api/types/AssetUploadUploadDetails.ts @@ -8,13 +8,11 @@ export interface AssetUploadUploadDetails { acl?: string; bucket?: string; - key?: string; - policy?: string; xAmzAlgorithm?: string; xAmzCredential?: string; xAmzDate?: string; - /** (optional) Temporary security token obtained when authenticated through AWS STS */ - xAmzSecurityToken?: string; + key?: string; + policy?: string; xAmzSignature?: string; successActionStatus?: string; contentType?: string; diff --git a/src/api/types/AssetVariant.ts b/src/api/types/AssetVariant.ts index 05adb4e6..87190815 100644 --- a/src/api/types/AssetVariant.ts +++ b/src/api/types/AssetVariant.ts @@ -3,9 +3,13 @@ */ export interface AssetVariant { + /** URL of where the asset variant is hosted */ hostedUrl?: string; + /** Original file name of the variant */ originalFileName?: string; + /** Display name of the variant */ displayName?: string; + /** format of the variant */ format?: string; /** Width in pixels */ width?: number; diff --git a/src/api/types/CustomCodeResponse.ts b/src/api/types/CustomCodeHostedResponse.ts similarity index 95% rename from src/api/types/CustomCodeResponse.ts rename to src/api/types/CustomCodeHostedResponse.ts index 30f55a40..24d6c726 100644 --- a/src/api/types/CustomCodeResponse.ts +++ b/src/api/types/CustomCodeHostedResponse.ts @@ -5,21 +5,21 @@ /** * Registered custom code for application */ -export interface CustomCodeResponse { +export interface CustomCodeHostedResponse { /** Human readable id, derived from the user-specified display name */ id?: string; - /** Timestamp when the script version was created */ - createdOn?: string; - /** Timestamp when the script version was last updated */ - lastUpdated?: string; + /** Define whether the script can be copied on site duplication and transfer */ + canCopy?: boolean; + /** User-facing name for the script */ + displayName?: string; /** URI for an externally hosted script location */ hostedLocation?: string; /** Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation) */ integrityHash?: string; - /** Define whether the script can be copied on site duplication and transfer */ - canCopy?: boolean; + /** Timestamp when the script version was created */ + createdOn?: string; + /** Timestamp when the script version was last updated */ + lastUpdated?: string; /** A Semantic Version (SemVer) string, denoting the version of the script */ version?: string; - /** User-facing name for the script */ - displayName?: string; } diff --git a/src/api/types/CustomCodeInlineResponse.ts b/src/api/types/CustomCodeInlineResponse.ts new file mode 100644 index 00000000..0f51753a --- /dev/null +++ b/src/api/types/CustomCodeInlineResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Registered custom code for application + */ +export interface CustomCodeInlineResponse { + /** Human readable id, derived from the user-specified display name */ + id?: string; + /** Define whether the script can be copied on site duplication and transfer */ + canCopy?: boolean; + /** User-facing name for the script */ + displayName?: string; + /** URI for an externally hosted script location */ + hostedLocation?: string; + /** Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation) */ + integrityHash?: string; + /** Timestamp when the script version was created */ + createdOn?: string; + /** Timestamp when the script version was last updated */ + lastUpdated?: string; + /** A Semantic Version (SemVer) string, denoting the version of the script */ + version?: string; +} diff --git a/src/api/types/Form.ts b/src/api/types/Form.ts index ea0ba0e4..500835f2 100644 --- a/src/api/types/Form.ts +++ b/src/api/types/Form.ts @@ -4,11 +4,22 @@ import * as Webflow from ".."; +/** + * A Webflow form + */ export interface Form { - /** The unique id for the Form */ - id?: string; /** The Form name displayed on the site */ displayName?: string; + /** Date that the Form was created on */ + createdOn?: Date; + /** Date that the Form was last updated on */ + lastUpdated?: Date; + /** A list of form fields */ + fields?: Webflow.FormField[]; + /** Settings for form responses */ + responseSettings?: Webflow.FormResponseSettings; + /** The unique id for the Form */ + id?: string; /** The unique id of the Site the Form belongs to */ siteId?: string; /** The unique id corresponding to the site's Domain name */ @@ -19,10 +30,4 @@ export interface Form { pageName?: string; /** The unique id of the Workspace the Site belongs to */ workspaceId?: string; - /** Date that the Form was created on */ - createdOn?: Date; - /** Date that the Form was last updated on */ - lastUpdated?: Date; - fields?: Webflow.FormField[]; - responseSettings?: Webflow.FormResponseSettings; } diff --git a/src/api/types/FormField.ts b/src/api/types/FormField.ts index 49df5144..978d9dc4 100644 --- a/src/api/types/FormField.ts +++ b/src/api/types/FormField.ts @@ -4,4 +4,7 @@ import * as Webflow from ".."; +/** + * A collection of form fields with additional properties. + */ export type FormField = Record; diff --git a/src/api/types/FormFieldValue.ts b/src/api/types/FormFieldValue.ts index 232ee518..2f4ada89 100644 --- a/src/api/types/FormFieldValue.ts +++ b/src/api/types/FormFieldValue.ts @@ -4,6 +4,9 @@ import * as Webflow from ".."; +/** + * An object containing field info for a specific fieldID. + */ export interface FormFieldValue { /** The field name displayed on the site */ displayName?: string; diff --git a/src/api/types/FormResponseSettings.ts b/src/api/types/FormResponseSettings.ts index 604122e7..0ad96213 100644 --- a/src/api/types/FormResponseSettings.ts +++ b/src/api/types/FormResponseSettings.ts @@ -2,13 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ +/** + * Settings for form responses + */ export interface FormResponseSettings { - /** Whether to send an email confirmation to the user */ - sendEmailConfirmation?: boolean; /** The url or path to redirect the user to after form submission */ redirectUrl?: string; /** The HTTP request method to use for the redirectUrl (eg. POST or GET) */ redirectMethod?: string; /** The action to take after form submission */ redirectAction?: string; + /** Whether to send an email confirmation to the user */ + sendEmailConfirmation?: boolean; } diff --git a/src/api/types/Locale.ts b/src/api/types/Locale.ts new file mode 100644 index 00000000..38974659 --- /dev/null +++ b/src/api/types/Locale.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface Locale { + /** The unique identifier for the locale. */ + id?: string; + /** A CMS-specific identifier for the locale. */ + cmsLocaleId?: string; + /** Indicates if the locale is enabled. */ + enabled?: boolean; + /** The display name of the locale, typically in English. */ + displayName?: string; + /** An optional ID for an image associated with the locale, nullable. */ + displayImageId?: string; + /** Determines if requests should redirect to the locale's subdirectory. */ + redirect?: boolean; + /** The subdirectory path for the locale, used in URLs. */ + subdirectory?: string; + /** A tag or code representing the locale, often following a standard format like 'en-US'. */ + tag?: string; +} diff --git a/src/api/types/Locales.ts b/src/api/types/Locales.ts new file mode 100644 index 00000000..f78730d4 --- /dev/null +++ b/src/api/types/Locales.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from ".."; + +export interface Locales { + /** The primary locale for the site or application. */ + primary?: Webflow.Locale; + /** A list of secondary locales available for the site or application. */ + secondary?: Webflow.Locale[]; +} diff --git a/src/api/types/Node.ts b/src/api/types/Node.ts index dc03354f..a08e40bd 100644 --- a/src/api/types/Node.ts +++ b/src/api/types/Node.ts @@ -13,5 +13,6 @@ export interface Node { type?: Webflow.NodeType; text?: Webflow.TextNode; image?: Webflow.ImageNode; + /** The custom attributes of the node */ attributes?: Record; } diff --git a/src/api/types/Order.ts b/src/api/types/Order.ts index 3a653ccb..dd49812a 100644 --- a/src/api/types/Order.ts +++ b/src/api/types/Order.ts @@ -9,19 +9,19 @@ export interface Order { orderId?: string; /** The status of the Order */ status?: Webflow.OrderStatus; - /** A comment string for this Order editable by API user (not used by Webflow). */ + /** A comment string for this Order, which is editable by API user (not used by Webflow). */ comment?: string; /** A comment that the customer left when making their Order */ orderComment?: string; /** The ISO8601 timestamp that an Order was placed. */ acceptedOn?: Date; - /** If an Order was marked as 'fulfilled', then this is the ISO8601 timestamp when that happened. */ + /** When an Order is marked as 'fulfilled', this field represents the timestamp of the fulfillment in ISO8601 format. Otherwise, it is null. */ fulfilledOn?: Date; - /** If an Order was refunded, this is the ISO8601 of when that happened. */ + /** When an Order is marked as 'refunded', this field represents the timestamp of the fulfillment in ISO8601 format. Otherwise, it is null. */ refundedOn?: Date; - /** If an Order was disputed by the customer, then this key will be set with the ISO8601 timestamp that Stripe notifies Webflow. Null if not disputed. */ + /** When an Order is marked as 'disputed', this field represents the timestamp of the fulfillment in ISO8601 format. Otherwise, it is null. */ disputedOn?: Date; - /** If an Order was disputed by the customer, then this key will be set with the ISO8601 timestamp of the last time that we got an update. Null if not disputed. */ + /** If an Order has been disputed by the customer, this key will be set to the ISO8601 timestamp of the last update received. If the Order is not disputed, the key will be null. */ disputeUpdatedOn?: Date; /** If an order was disputed by the customer, then this key will be set with the [dispute's status](https://stripe.com/docs/api#dispute_object-status). */ disputeLastStatus?: Webflow.OrderDisputeLastStatus; diff --git a/src/api/types/OrderAddress.ts b/src/api/types/OrderAddress.ts index 7db71625..d1415dbf 100644 --- a/src/api/types/OrderAddress.ts +++ b/src/api/types/OrderAddress.ts @@ -10,7 +10,7 @@ import * as Webflow from ".."; export interface OrderAddress { /** The type of the order address (billing or shipping) */ type?: Webflow.OrderAddressType; - /** Japan-only address format */ + /** Represents a Japan-only address format. This field will only appear on orders placed from Japan. */ japanType?: Webflow.OrderAddressJapanType; /** Display name on the address */ addressee?: string; diff --git a/src/api/types/OrderAddressJapanType.ts b/src/api/types/OrderAddressJapanType.ts index 8c495bab..e7a85a94 100644 --- a/src/api/types/OrderAddressJapanType.ts +++ b/src/api/types/OrderAddressJapanType.ts @@ -3,7 +3,7 @@ */ /** - * Japan-only address format + * Represents a Japan-only address format. This field will only appear on orders placed from Japan. */ export type OrderAddressJapanType = "kana" | "kanji"; diff --git a/src/api/types/OrderList.ts b/src/api/types/OrderList.ts index d1647b7c..224e0122 100644 --- a/src/api/types/OrderList.ts +++ b/src/api/types/OrderList.ts @@ -9,6 +9,6 @@ import * as Webflow from ".."; */ export interface OrderList { /** List of orders */ - items?: Webflow.Order[]; + orders?: Webflow.Order[]; pagination?: Webflow.Pagination; } diff --git a/src/api/types/OrderPurchasedItem.ts b/src/api/types/OrderPurchasedItem.ts index 987c67e8..783c9d11 100644 --- a/src/api/types/OrderPurchasedItem.ts +++ b/src/api/types/OrderPurchasedItem.ts @@ -24,6 +24,8 @@ export interface OrderPurchasedItem { variantName?: string; /** Slug for the Product Variant (SKU) */ variantSlug?: string; + /** The user-defined custom SKU of the Product Variant (SKU) */ + variantSku?: string; variantImage?: Webflow.OrderPurchasedItemVariantImage; /** The price corresponding to the variant */ variantPrice?: Webflow.OrderPrice; diff --git a/src/api/types/Product.ts b/src/api/types/Product.ts index 95e3ebcd..68c837d5 100644 --- a/src/api/types/Product.ts +++ b/src/api/types/Product.ts @@ -10,6 +10,8 @@ import * as Webflow from ".."; export interface Product { /** Unique identifier for the Product */ id?: string; + /** Identifier for the locale of the CMS item */ + cmsLocaleId?: string; /** The date the Product was last published */ lastPublished?: Date; /** The date the Product was last updated */ diff --git a/src/api/types/ProductFieldData.ts b/src/api/types/ProductFieldData.ts index 00ee9a7c..01cfd1c8 100644 --- a/src/api/types/ProductFieldData.ts +++ b/src/api/types/ProductFieldData.ts @@ -4,11 +4,14 @@ import * as Webflow from ".."; +/** + * Contains content-specific details for a product, covering both standard (e.g., title, description) and custom fields tailored to the product setup. + */ export interface ProductFieldData { /** Name of the Product */ - name: string; + name?: string; /** URL structure of the Product in your site. */ - slug: string; + slug?: string; /** A description of your product */ description?: string; /** Boolean determining if the Product is shippable */ @@ -23,6 +26,4 @@ export interface ProductFieldData { defaultSku?: string; /** Product types. Enums reflect the following values in order: Physical, Digital, Service, Advanced" */ ecProductType?: Webflow.ProductFieldDataEcProductType; - /** Custom fields for your product. */ - additionalProperties?: string; } diff --git a/src/api/types/RegisteredScriptList.ts b/src/api/types/RegisteredScriptList.ts index 43989d86..565e1f6c 100644 --- a/src/api/types/RegisteredScriptList.ts +++ b/src/api/types/RegisteredScriptList.ts @@ -4,6 +4,9 @@ import * as Webflow from ".."; +/** + * A list of scripts registered to the site + */ export interface RegisteredScriptList { - registeredScripts?: Webflow.CustomCodeResponse[]; + registeredScripts?: Webflow.CustomCodeHostedResponse[]; } diff --git a/src/api/types/ScriptApply.ts b/src/api/types/ScriptApply.ts index c2944123..a9834eb3 100644 --- a/src/api/types/ScriptApply.ts +++ b/src/api/types/ScriptApply.ts @@ -5,7 +5,7 @@ import * as Webflow from ".."; export interface ScriptApply { - /** Id of the registered custom code script */ + /** ID of the registered custom code script */ id: string; /** Location of the script, either in the header or footer of the published site */ location: Webflow.ScriptApplyLocation; diff --git a/src/api/types/ScriptApplyList.ts b/src/api/types/ScriptApplyList.ts index 52df5695..f7101331 100644 --- a/src/api/types/ScriptApplyList.ts +++ b/src/api/types/ScriptApplyList.ts @@ -5,6 +5,7 @@ import * as Webflow from ".."; export interface ScriptApplyList { + /** A list of scripts applied to a Site or a Page */ scripts?: Webflow.ScriptApply[]; /** Date when the Site's scripts were last updated */ lastUpdated?: string; diff --git a/src/api/types/Scripts.ts b/src/api/types/Scripts.ts index 9beacc5f..8b407bd2 100644 --- a/src/api/types/Scripts.ts +++ b/src/api/types/Scripts.ts @@ -4,4 +4,7 @@ import * as Webflow from ".."; +/** + * A list of scripts applied to a Site or a Page + */ export type Scripts = Webflow.ScriptApply[]; diff --git a/src/api/types/Site.ts b/src/api/types/Site.ts index 1db7dffd..4b52e377 100644 --- a/src/api/types/Site.ts +++ b/src/api/types/Site.ts @@ -23,5 +23,8 @@ export interface Site { previewUrl?: string; /** Site timezone set under Site Settings */ timeZone?: string; + /** The ID of the parent folder the Site exists in */ + parentFolderId?: string; customDomains?: Webflow.Domain[]; + locales?: Webflow.Locales; } diff --git a/src/api/types/Sites.ts b/src/api/types/Sites.ts new file mode 100644 index 00000000..5620b5c6 --- /dev/null +++ b/src/api/types/Sites.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from ".."; + +export interface Sites { + sites?: Webflow.Site[]; +} diff --git a/src/api/types/Sku.ts b/src/api/types/Sku.ts index 4e9c15d3..4563f0f0 100644 --- a/src/api/types/Sku.ts +++ b/src/api/types/Sku.ts @@ -10,12 +10,13 @@ import * as Webflow from ".."; export interface Sku { /** Unique identifier for the Product */ id?: string; + /** Identifier for the locale of the CMS item */ + cmsLocaleId?: string; /** The date the Product was last published */ lastPublished?: Date; /** The date the Product was last updated */ lastUpdated?: Date; /** The date the Product was created */ createdOn?: Date; - /** Standard and Custom fields for a SKU */ fieldData?: Webflow.SkuFieldData; } diff --git a/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts b/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts index 7cc124dd..7d12ba83 100644 --- a/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts +++ b/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts @@ -11,4 +11,5 @@ export interface SkuFieldDataEcSkuSubscriptionPlan { frequency?: number; /** Number of days of a trial */ trial?: number; + plans?: Webflow.SkuFieldDataEcSkuSubscriptionPlanPlansItem[]; } diff --git a/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts b/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts new file mode 100644 index 00000000..3aa14107 --- /dev/null +++ b/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Webflow from ".."; + +export interface SkuFieldDataEcSkuSubscriptionPlanPlansItem { + platform?: "stripe"; + /** The unique identifier of the plan */ + id?: string; + /** The status of the plan */ + status?: Webflow.SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus; +} diff --git a/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts b/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts new file mode 100644 index 00000000..0755b37c --- /dev/null +++ b/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The status of the plan + */ +export type SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus = "active" | "inactive" | "canceled"; + +export const SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus = { + Active: "active", + Inactive: "inactive", + Canceled: "canceled", +} as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 888fad6f..caa2144b 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -5,7 +5,10 @@ export * from "./AuthorizationAuthorizationAuthorizedTo"; export * from "./AuthorizationAuthorization"; export * from "./Authorization"; export * from "./Domain"; +export * from "./Locale"; +export * from "./Locales"; export * from "./Site"; +export * from "./Sites"; export * from "./Domains"; export * from "./InvalidDomain"; export * from "./NoDomains"; @@ -39,8 +42,9 @@ export * from "./Dom"; export * from "./ScriptApplyLocation"; export * from "./ScriptApply"; export * from "./ScriptApplyList"; -export * from "./CustomCodeResponse"; +export * from "./CustomCodeHostedResponse"; export * from "./RegisteredScriptList"; +export * from "./CustomCodeInlineResponse"; export * from "./Scripts"; export * from "./CustomCodeBlockType"; export * from "./CustomCodeBlock"; @@ -86,6 +90,8 @@ export * from "./SkuFieldDataPrice"; export * from "./SkuFieldDataCompareAtPrice"; export * from "./SkuFieldDataEcSkuBillingMethod"; export * from "./SkuFieldDataEcSkuSubscriptionPlanInterval"; +export * from "./SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus"; +export * from "./SkuFieldDataEcSkuSubscriptionPlanPlansItem"; export * from "./SkuFieldDataEcSkuSubscriptionPlan"; export * from "./SkuFieldData"; export * from "./Sku"; diff --git a/src/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.ts b/src/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.ts deleted file mode 100644 index b001914c..00000000 --- a/src/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Webflow from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const ItemsPublishItemResponse: core.serialization.ObjectSchema< - serializers.collections.ItemsPublishItemResponse.Raw, - Webflow.collections.ItemsPublishItemResponse -> = core.serialization.object({ - publishedItemIds: core.serialization.list(core.serialization.string()).optional(), - errors: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace ItemsPublishItemResponse { - interface Raw { - publishedItemIds?: string[] | null; - errors?: string[] | null; - } -} diff --git a/src/serialization/resources/collections/resources/items/types/index.ts b/src/serialization/resources/collections/resources/items/types/index.ts index 8fdcd8a5..3a61bf70 100644 --- a/src/serialization/resources/collections/resources/items/types/index.ts +++ b/src/serialization/resources/collections/resources/items/types/index.ts @@ -1,2 +1 @@ export * from "./BulkCollectionItemFieldData"; -export * from "./ItemsPublishItemResponse"; diff --git a/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts b/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts new file mode 100644 index 00000000..3f84db54 --- /dev/null +++ b/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Webflow from "../../../../api"; +import * as core from "../../../../core"; + +export const UpdateStaticContentResponse: core.serialization.ObjectSchema< + serializers.UpdateStaticContentResponse.Raw, + Webflow.UpdateStaticContentResponse +> = core.serialization.object({ + errors: core.serialization.list(core.serialization.string()), +}); + +export declare namespace UpdateStaticContentResponse { + interface Raw { + errors: string[]; + } +} diff --git a/src/serialization/resources/pages/types/index.ts b/src/serialization/resources/pages/types/index.ts index a2ba6486..943c3715 100644 --- a/src/serialization/resources/pages/types/index.ts +++ b/src/serialization/resources/pages/types/index.ts @@ -1 +1,2 @@ export * from "./DomWriteNodesItem"; +export * from "./UpdateStaticContentResponse"; diff --git a/src/serialization/resources/products/client/requests/ProductSkuCreate.ts b/src/serialization/resources/products/client/requests/ProductSkuCreate.ts index 22208d48..b0661bc3 100644 --- a/src/serialization/resources/products/client/requests/ProductSkuCreate.ts +++ b/src/serialization/resources/products/client/requests/ProductSkuCreate.ts @@ -9,16 +9,14 @@ import * as core from "../../../../../core"; export const ProductSkuCreate: core.serialization.Schema = core.serialization.object({ publishStatus: core.serialization.lazy(async () => (await import("../../../..")).PublishStatus).optional(), - product: core.serialization - .lazyObject(async () => (await import("../../../..")).ProductSkuCreateProduct) - .optional(), - sku: core.serialization.lazyObject(async () => (await import("../../../..")).ProductSkuCreateSku).optional(), + product: core.serialization.lazyObject(async () => (await import("../../../..")).Product).optional(), + sku: core.serialization.lazyObject(async () => (await import("../../../..")).Sku).optional(), }); export declare namespace ProductSkuCreate { interface Raw { publishStatus?: serializers.PublishStatus.Raw | null; - product?: serializers.ProductSkuCreateProduct.Raw | null; - sku?: serializers.ProductSkuCreateSku.Raw | null; + product?: serializers.Product.Raw | null; + sku?: serializers.Sku.Raw | null; } } diff --git a/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts b/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts new file mode 100644 index 00000000..49258a70 --- /dev/null +++ b/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../.."; +import * as Webflow from "../../../../../api"; +import * as core from "../../../../../core"; + +export const ProductSkuUpdate: core.serialization.Schema = + core.serialization.object({ + publishStatus: core.serialization.lazy(async () => (await import("../../../..")).PublishStatus).optional(), + product: core.serialization.lazyObject(async () => (await import("../../../..")).Product).optional(), + sku: core.serialization.lazyObject(async () => (await import("../../../..")).Sku).optional(), + }); + +export declare namespace ProductSkuUpdate { + interface Raw { + publishStatus?: serializers.PublishStatus.Raw | null; + product?: serializers.Product.Raw | null; + sku?: serializers.Sku.Raw | null; + } +} diff --git a/src/serialization/resources/products/client/requests/ProductsUpdateRequest.ts b/src/serialization/resources/products/client/requests/ProductsUpdateRequest.ts deleted file mode 100644 index 6566f8a9..00000000 --- a/src/serialization/resources/products/client/requests/ProductsUpdateRequest.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Webflow from "../../../../../api"; -import * as core from "../../../../../core"; - -export const ProductsUpdateRequest: core.serialization.Schema< - serializers.ProductsUpdateRequest.Raw, - Webflow.ProductsUpdateRequest -> = core.serialization.object({ - publishStatus: core.serialization.lazy(async () => (await import("../../../..")).PublishStatus).optional(), - product: core.serialization.lazyObject(async () => (await import("../../../..")).Product), -}); - -export declare namespace ProductsUpdateRequest { - interface Raw { - publishStatus?: serializers.PublishStatus.Raw | null; - product: serializers.Product.Raw; - } -} diff --git a/src/serialization/resources/products/client/requests/index.ts b/src/serialization/resources/products/client/requests/index.ts index f093ffef..3e0b7625 100644 --- a/src/serialization/resources/products/client/requests/index.ts +++ b/src/serialization/resources/products/client/requests/index.ts @@ -1,4 +1,4 @@ export { ProductSkuCreate } from "./ProductSkuCreate"; -export { ProductsUpdateRequest } from "./ProductsUpdateRequest"; +export { ProductSkuUpdate } from "./ProductSkuUpdate"; export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest"; export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest"; diff --git a/src/serialization/resources/products/types/ProductSkuCreateProduct.ts b/src/serialization/resources/products/types/ProductSkuCreateProduct.ts deleted file mode 100644 index 74a3f3f2..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateProduct.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateProduct: core.serialization.ObjectSchema< - serializers.ProductSkuCreateProduct.Raw, - Webflow.ProductSkuCreateProduct -> = core.serialization.object({ - id: 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: core.serialization - .lazyObject(async () => (await import("../../..")).ProductSkuCreateProductFieldData) - .optional(), -}); - -export declare namespace ProductSkuCreateProduct { - interface Raw { - id?: string | null; - lastPublished?: string | null; - lastUpdated?: string | null; - createdOn?: string | null; - isArchived?: boolean | null; - isDraft?: boolean | null; - fieldData?: serializers.ProductSkuCreateProductFieldData.Raw | null; - } -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateProductFieldData.ts b/src/serialization/resources/products/types/ProductSkuCreateProductFieldData.ts deleted file mode 100644 index bcd6e20f..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateProductFieldData.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateProductFieldData: core.serialization.ObjectSchema< - serializers.ProductSkuCreateProductFieldData.Raw, - Webflow.ProductSkuCreateProductFieldData -> = core.serialization.object({ - name: core.serialization.string(), - slug: core.serialization.string(), - description: core.serialization.string().optional(), - shippable: core.serialization.boolean().optional(), - skuProperties: core.serialization.property( - "sku-properties", - core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).SkuPropertyList)) - .optional() - ), - categories: core.serialization.list(core.serialization.unknown()).optional(), - taxCategory: core.serialization.property( - "tax-category", - core.serialization - .lazy(async () => (await import("../../..")).ProductSkuCreateProductFieldDataTaxCategory) - .optional() - ), - ecProductType: core.serialization.property( - "ec-product-type", - core.serialization - .lazy(async () => (await import("../../..")).ProductSkuCreateProductFieldDataEcProductType) - .optional() - ), - additionalProperties: core.serialization.unknown().optional(), -}); - -export declare namespace ProductSkuCreateProductFieldData { - interface Raw { - name: string; - slug: string; - description?: string | null; - shippable?: boolean | null; - "sku-properties"?: serializers.SkuPropertyList.Raw[] | null; - categories?: unknown[] | null; - "tax-category"?: serializers.ProductSkuCreateProductFieldDataTaxCategory.Raw | null; - "ec-product-type"?: serializers.ProductSkuCreateProductFieldDataEcProductType.Raw | null; - additionalProperties?: unknown | null; - } -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts b/src/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts deleted file mode 100644 index db41dff3..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateProductFieldDataEcProductType: core.serialization.Schema< - serializers.ProductSkuCreateProductFieldDataEcProductType.Raw, - Webflow.ProductSkuCreateProductFieldDataEcProductType -> = core.serialization.enum_([ - "ff42fee0113744f693a764e3431a9cc2", - "f22027db68002190aef89a4a2b7ac8a1", - "c599e43b1a1c34d5a323aedf75d3adf6", - "b6ccc1830db4b1babeb06a9ac5f6dd76", -]); - -export declare namespace ProductSkuCreateProductFieldDataEcProductType { - type Raw = - | "ff42fee0113744f693a764e3431a9cc2" - | "f22027db68002190aef89a4a2b7ac8a1" - | "c599e43b1a1c34d5a323aedf75d3adf6" - | "b6ccc1830db4b1babeb06a9ac5f6dd76"; -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts b/src/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts deleted file mode 100644 index 7594a495..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateProductFieldDataTaxCategory: core.serialization.Schema< - serializers.ProductSkuCreateProductFieldDataTaxCategory.Raw, - Webflow.ProductSkuCreateProductFieldDataTaxCategory -> = core.serialization.enum_([ - "standard-taxable", - "standard-exempt", - "books-religious", - "books-textbook", - "clothing", - "clothing-swimwear", - "digital-goods", - "digital-service", - "drugs-non-prescription", - "drugs-prescription", - "food-bottled-water", - "food-candy", - "food-groceries", - "food-prepared", - "food-soda", - "food-supplements", - "magazine-individual", - "magazine-subscription", - "service-admission", - "service-advertising", - "service-dry-cleaning", - "service-hairdressing", - "service-installation", - "service-miscellaneous", - "service-parking", - "service-printing", - "service-professional", - "service-repair", - "service-training", -]); - -export declare namespace ProductSkuCreateProductFieldDataTaxCategory { - type Raw = - | "standard-taxable" - | "standard-exempt" - | "books-religious" - | "books-textbook" - | "clothing" - | "clothing-swimwear" - | "digital-goods" - | "digital-service" - | "drugs-non-prescription" - | "drugs-prescription" - | "food-bottled-water" - | "food-candy" - | "food-groceries" - | "food-prepared" - | "food-soda" - | "food-supplements" - | "magazine-individual" - | "magazine-subscription" - | "service-admission" - | "service-advertising" - | "service-dry-cleaning" - | "service-hairdressing" - | "service-installation" - | "service-miscellaneous" - | "service-parking" - | "service-printing" - | "service-professional" - | "service-repair" - | "service-training"; -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSku.ts b/src/serialization/resources/products/types/ProductSkuCreateSku.ts deleted file mode 100644 index c34b2e9a..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSku.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSku: core.serialization.ObjectSchema< - serializers.ProductSkuCreateSku.Raw, - Webflow.ProductSkuCreateSku -> = core.serialization.object({ - id: core.serialization.string().optional(), - lastPublished: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - fieldData: core.serialization - .lazyObject(async () => (await import("../../..")).ProductSkuCreateSkuFieldData) - .optional(), -}); - -export declare namespace ProductSkuCreateSku { - interface Raw { - id?: string | null; - lastPublished?: string | null; - lastUpdated?: string | null; - createdOn?: string | null; - fieldData?: serializers.ProductSkuCreateSkuFieldData.Raw | null; - } -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldData.ts b/src/serialization/resources/products/types/ProductSkuCreateSkuFieldData.ts deleted file mode 100644 index 1f023995..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldData.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSkuFieldData: core.serialization.ObjectSchema< - serializers.ProductSkuCreateSkuFieldData.Raw, - Webflow.ProductSkuCreateSkuFieldData -> = core.serialization.object({ - skuValues: core.serialization.property( - "sku-values", - core.serialization.lazy(async () => (await import("../../..")).SkuValueList).optional() - ), - name: core.serialization.string(), - slug: core.serialization.string(), - price: core.serialization.lazyObject(async () => (await import("../../..")).ProductSkuCreateSkuFieldDataPrice), - compareAtPrice: core.serialization.property( - "compare-at-price", - core.serialization - .lazyObject(async () => (await import("../../..")).ProductSkuCreateSkuFieldDataCompareAtPrice) - .optional() - ), - ecSkuBillingMethod: core.serialization.property( - "ec-sku-billing-method", - core.serialization - .lazy(async () => (await import("../../..")).ProductSkuCreateSkuFieldDataEcSkuBillingMethod) - .optional() - ), - ecSkuSubscriptionPlan: core.serialization.property( - "ec-sku-subscription-plan", - core.serialization - .lazyObject(async () => (await import("../../..")).ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan) - .optional() - ), - trackInventory: core.serialization.property("track-inventory", core.serialization.boolean().optional()), - quantity: core.serialization.number().optional(), -}); - -export declare namespace ProductSkuCreateSkuFieldData { - interface Raw { - "sku-values"?: serializers.SkuValueList.Raw | null; - name: string; - slug: string; - price: serializers.ProductSkuCreateSkuFieldDataPrice.Raw; - "compare-at-price"?: serializers.ProductSkuCreateSkuFieldDataCompareAtPrice.Raw | null; - "ec-sku-billing-method"?: serializers.ProductSkuCreateSkuFieldDataEcSkuBillingMethod.Raw | null; - "ec-sku-subscription-plan"?: serializers.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.Raw | null; - "track-inventory"?: boolean | null; - quantity?: number | null; - } -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts b/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts deleted file mode 100644 index 027f5292..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSkuFieldDataCompareAtPrice: core.serialization.ObjectSchema< - serializers.ProductSkuCreateSkuFieldDataCompareAtPrice.Raw, - Webflow.ProductSkuCreateSkuFieldDataCompareAtPrice -> = core.serialization.object({ - value: core.serialization.number().optional(), - unit: core.serialization.string().optional(), -}); - -export declare namespace ProductSkuCreateSkuFieldDataCompareAtPrice { - interface Raw { - value?: number | null; - unit?: string | null; - } -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts b/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts deleted file mode 100644 index 99e58f7e..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSkuFieldDataEcSkuBillingMethod: core.serialization.Schema< - serializers.ProductSkuCreateSkuFieldDataEcSkuBillingMethod.Raw, - Webflow.ProductSkuCreateSkuFieldDataEcSkuBillingMethod -> = core.serialization.enum_(["one-time", "subscription"]); - -export declare namespace ProductSkuCreateSkuFieldDataEcSkuBillingMethod { - type Raw = "one-time" | "subscription"; -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts b/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts deleted file mode 100644 index e574413e..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan: core.serialization.ObjectSchema< - serializers.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.Raw, - Webflow.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan -> = core.serialization.object({ - interval: core.serialization - .lazy(async () => (await import("../../..")).ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval) - .optional(), - frequency: core.serialization.number().optional(), - trial: core.serialization.number().optional(), -}); - -export declare namespace ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan { - interface Raw { - interval?: serializers.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.Raw | null; - frequency?: number | null; - trial?: number | null; - } -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts b/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts deleted file mode 100644 index 28aac4d2..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval: core.serialization.Schema< - serializers.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.Raw, - Webflow.ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval -> = core.serialization.enum_(["day", "week", "month", "year"]); - -export declare namespace ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval { - type Raw = "day" | "week" | "month" | "year"; -} diff --git a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts b/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts deleted file mode 100644 index 58811f86..00000000 --- a/src/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Webflow from "../../../../api"; -import * as core from "../../../../core"; - -export const ProductSkuCreateSkuFieldDataPrice: core.serialization.ObjectSchema< - serializers.ProductSkuCreateSkuFieldDataPrice.Raw, - Webflow.ProductSkuCreateSkuFieldDataPrice -> = core.serialization.object({ - required: core.serialization.unknown().optional(), - value: core.serialization.number().optional(), - unit: core.serialization.string().optional(), -}); - -export declare namespace ProductSkuCreateSkuFieldDataPrice { - interface Raw { - required?: unknown | null; - value?: number | null; - unit?: string | null; - } -} diff --git a/src/serialization/resources/products/types/index.ts b/src/serialization/resources/products/types/index.ts index a6bad2b0..e286df49 100644 --- a/src/serialization/resources/products/types/index.ts +++ b/src/serialization/resources/products/types/index.ts @@ -1,12 +1 @@ -export * from "./ProductSkuCreateProductFieldDataTaxCategory"; -export * from "./ProductSkuCreateProductFieldDataEcProductType"; -export * from "./ProductSkuCreateProductFieldData"; -export * from "./ProductSkuCreateProduct"; -export * from "./ProductSkuCreateSkuFieldDataPrice"; -export * from "./ProductSkuCreateSkuFieldDataCompareAtPrice"; -export * from "./ProductSkuCreateSkuFieldDataEcSkuBillingMethod"; -export * from "./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval"; -export * from "./ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan"; -export * from "./ProductSkuCreateSkuFieldData"; -export * from "./ProductSkuCreateSku"; export * from "./ProductsCreateSkuResponse"; diff --git a/src/serialization/types/Asset.ts b/src/serialization/types/Asset.ts index e9afdecf..77728c0e 100644 --- a/src/serialization/types/Asset.ts +++ b/src/serialization/types/Asset.ts @@ -8,14 +8,14 @@ import * as core from "../../core"; export const Asset: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string().optional(), + originalFileName: core.serialization.string().optional(), + displayName: core.serialization.string().optional(), contentType: core.serialization.string().optional(), size: core.serialization.number().optional(), siteId: core.serialization.string().optional(), - hostedUrl: core.serialization.string().optional(), - originalFileName: core.serialization.string().optional(), - displayName: core.serialization.string().optional(), - lastUpdated: core.serialization.date().optional(), createdOn: core.serialization.date().optional(), + lastUpdated: core.serialization.date().optional(), + hostedUrl: core.serialization.string().optional(), variants: core.serialization .list(core.serialization.lazyObject(async () => (await import("..")).AssetVariant)) .optional(), @@ -24,14 +24,14 @@ export const Asset: core.serialization.ObjectSchema = core.serialization.object({ - displayName: core.serialization.string().optional(), id: core.serialization.string().optional(), + displayName: core.serialization.string().optional(), parentFolder: core.serialization.string().optional(), assets: core.serialization.list(core.serialization.string()).optional(), siteId: core.serialization.string().optional(), @@ -19,8 +19,8 @@ export const AssetFolder: core.serialization.ObjectSchema (await import("..")).AssetUploadUploadDetails) .optional(), - id: core.serialization.string().optional(), contentType: core.serialization.string().optional(), + id: core.serialization.string().optional(), parentFolder: core.serialization.string().optional(), - hostedUrl: core.serialization.string().optional(), uploadUrl: core.serialization.string().optional(), assetUrl: core.serialization.string().optional(), + hostedUrl: core.serialization.string().optional(), originalFileName: core.serialization.string().optional(), - lastUpdated: core.serialization.date().optional(), createdOn: core.serialization.date().optional(), + lastUpdated: core.serialization.date().optional(), }); export declare namespace AssetUpload { interface Raw { uploadDetails?: serializers.AssetUploadUploadDetails.Raw | null; - id?: string | null; contentType?: string | null; + id?: string | null; parentFolder?: string | null; - hostedUrl?: string | null; uploadUrl?: string | null; assetUrl?: string | null; + hostedUrl?: string | null; originalFileName?: string | null; - lastUpdated?: string | null; createdOn?: string | null; + lastUpdated?: string | null; } } diff --git a/src/serialization/types/AssetUploadUploadDetails.ts b/src/serialization/types/AssetUploadUploadDetails.ts index 4b1c2358..9bd75ec7 100644 --- a/src/serialization/types/AssetUploadUploadDetails.ts +++ b/src/serialization/types/AssetUploadUploadDetails.ts @@ -12,12 +12,11 @@ export const AssetUploadUploadDetails: core.serialization.ObjectSchema< > = core.serialization.object({ acl: core.serialization.string().optional(), bucket: core.serialization.string().optional(), - key: core.serialization.string().optional(), - policy: core.serialization.property("Policy", core.serialization.string().optional()), xAmzAlgorithm: core.serialization.property("X-Amz-Algorithm", core.serialization.string().optional()), xAmzCredential: core.serialization.property("X-Amz-Credential", core.serialization.string().optional()), xAmzDate: core.serialization.property("X-Amz-Date", core.serialization.string().optional()), - xAmzSecurityToken: core.serialization.property("X-Amz-Security-Token", core.serialization.string().optional()), + key: core.serialization.string().optional(), + policy: core.serialization.property("Policy", core.serialization.string().optional()), xAmzSignature: core.serialization.property("X-Amz-Signature", core.serialization.string().optional()), successActionStatus: core.serialization.property("success_action_status", core.serialization.string().optional()), contentType: core.serialization.property("content-type", core.serialization.string().optional()), @@ -28,12 +27,11 @@ export declare namespace AssetUploadUploadDetails { interface Raw { acl?: string | null; bucket?: string | null; - key?: string | null; - Policy?: string | null; "X-Amz-Algorithm"?: string | null; "X-Amz-Credential"?: string | null; "X-Amz-Date"?: string | null; - "X-Amz-Security-Token"?: string | null; + key?: string | null; + Policy?: string | null; "X-Amz-Signature"?: string | null; success_action_status?: string | null; "content-type"?: string | null; diff --git a/src/serialization/types/CustomCodeResponse.ts b/src/serialization/types/CustomCodeHostedResponse.ts similarity index 82% rename from src/serialization/types/CustomCodeResponse.ts rename to src/serialization/types/CustomCodeHostedResponse.ts index fca55636..6adc0487 100644 --- a/src/serialization/types/CustomCodeResponse.ts +++ b/src/serialization/types/CustomCodeHostedResponse.ts @@ -6,29 +6,29 @@ import * as serializers from ".."; import * as Webflow from "../../api"; import * as core from "../../core"; -export const CustomCodeResponse: core.serialization.ObjectSchema< - serializers.CustomCodeResponse.Raw, - Webflow.CustomCodeResponse +export const CustomCodeHostedResponse: core.serialization.ObjectSchema< + serializers.CustomCodeHostedResponse.Raw, + Webflow.CustomCodeHostedResponse > = core.serialization.object({ id: core.serialization.string().optional(), - createdOn: core.serialization.string().optional(), - lastUpdated: core.serialization.string().optional(), + canCopy: core.serialization.boolean().optional(), + displayName: core.serialization.string().optional(), hostedLocation: core.serialization.string().optional(), integrityHash: core.serialization.string().optional(), - canCopy: core.serialization.boolean().optional(), + createdOn: core.serialization.string().optional(), + lastUpdated: core.serialization.string().optional(), version: core.serialization.string().optional(), - displayName: core.serialization.string().optional(), }); -export declare namespace CustomCodeResponse { +export declare namespace CustomCodeHostedResponse { interface Raw { id?: string | null; - createdOn?: string | null; - lastUpdated?: string | null; + canCopy?: boolean | null; + displayName?: string | null; hostedLocation?: string | null; integrityHash?: string | null; - canCopy?: boolean | null; + createdOn?: string | null; + lastUpdated?: string | null; version?: string | null; - displayName?: string | null; } } diff --git a/src/serialization/types/CustomCodeInlineResponse.ts b/src/serialization/types/CustomCodeInlineResponse.ts new file mode 100644 index 00000000..2cfd8838 --- /dev/null +++ b/src/serialization/types/CustomCodeInlineResponse.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Webflow from "../../api"; +import * as core from "../../core"; + +export const CustomCodeInlineResponse: core.serialization.ObjectSchema< + serializers.CustomCodeInlineResponse.Raw, + Webflow.CustomCodeInlineResponse +> = core.serialization.object({ + id: core.serialization.string().optional(), + canCopy: core.serialization.boolean().optional(), + displayName: core.serialization.string().optional(), + hostedLocation: core.serialization.string().optional(), + integrityHash: core.serialization.string().optional(), + createdOn: core.serialization.string().optional(), + lastUpdated: core.serialization.string().optional(), + version: core.serialization.string().optional(), +}); + +export declare namespace CustomCodeInlineResponse { + interface Raw { + id?: string | null; + canCopy?: boolean | null; + displayName?: string | null; + hostedLocation?: string | null; + integrityHash?: string | null; + createdOn?: string | null; + lastUpdated?: string | null; + version?: string | null; + } +} diff --git a/src/serialization/types/Form.ts b/src/serialization/types/Form.ts index 7048f817..ff829851 100644 --- a/src/serialization/types/Form.ts +++ b/src/serialization/types/Form.ts @@ -7,31 +7,31 @@ import * as Webflow from "../../api"; import * as core from "../../core"; export const Form: core.serialization.ObjectSchema = core.serialization.object({ - id: core.serialization.string().optional(), displayName: core.serialization.string().optional(), + createdOn: core.serialization.date().optional(), + lastUpdated: core.serialization.date().optional(), + fields: core.serialization.list(core.serialization.lazy(async () => (await import("..")).FormField)).optional(), + responseSettings: core.serialization.lazyObject(async () => (await import("..")).FormResponseSettings).optional(), + id: core.serialization.string().optional(), siteId: core.serialization.string().optional(), siteDomainId: core.serialization.string().optional(), pageId: core.serialization.string().optional(), pageName: core.serialization.string().optional(), workspaceId: core.serialization.string().optional(), - createdOn: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), - fields: core.serialization.list(core.serialization.lazy(async () => (await import("..")).FormField)).optional(), - responseSettings: core.serialization.lazyObject(async () => (await import("..")).FormResponseSettings).optional(), }); export declare namespace Form { interface Raw { - id?: string | null; displayName?: string | null; + createdOn?: string | null; + lastUpdated?: string | null; + fields?: serializers.FormField.Raw[] | null; + responseSettings?: serializers.FormResponseSettings.Raw | null; + id?: string | null; siteId?: string | null; siteDomainId?: string | null; pageId?: string | null; pageName?: string | null; workspaceId?: string | null; - createdOn?: string | null; - lastUpdated?: string | null; - fields?: serializers.FormField.Raw[] | null; - responseSettings?: serializers.FormResponseSettings.Raw | null; } } diff --git a/src/serialization/types/FormResponseSettings.ts b/src/serialization/types/FormResponseSettings.ts index 4fd53e43..230593e9 100644 --- a/src/serialization/types/FormResponseSettings.ts +++ b/src/serialization/types/FormResponseSettings.ts @@ -10,17 +10,17 @@ export const FormResponseSettings: core.serialization.ObjectSchema< serializers.FormResponseSettings.Raw, Webflow.FormResponseSettings > = core.serialization.object({ - sendEmailConfirmation: core.serialization.boolean().optional(), redirectUrl: core.serialization.string().optional(), redirectMethod: core.serialization.string().optional(), redirectAction: core.serialization.string().optional(), + sendEmailConfirmation: core.serialization.boolean().optional(), }); export declare namespace FormResponseSettings { interface Raw { - sendEmailConfirmation?: boolean | null; redirectUrl?: string | null; redirectMethod?: string | null; redirectAction?: string | null; + sendEmailConfirmation?: boolean | null; } } diff --git a/src/serialization/types/Locale.ts b/src/serialization/types/Locale.ts new file mode 100644 index 00000000..5324d779 --- /dev/null +++ b/src/serialization/types/Locale.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Webflow from "../../api"; +import * as core from "../../core"; + +export const Locale: core.serialization.ObjectSchema = + core.serialization.object({ + id: core.serialization.string().optional(), + cmsLocaleId: core.serialization.string().optional(), + enabled: core.serialization.boolean().optional(), + displayName: core.serialization.string().optional(), + displayImageId: core.serialization.string().optional(), + redirect: core.serialization.boolean().optional(), + subdirectory: core.serialization.string().optional(), + tag: core.serialization.string().optional(), + }); + +export declare namespace Locale { + interface Raw { + id?: string | null; + cmsLocaleId?: string | null; + enabled?: boolean | null; + displayName?: string | null; + displayImageId?: string | null; + redirect?: boolean | null; + subdirectory?: string | null; + tag?: string | null; + } +} diff --git a/src/serialization/types/Locales.ts b/src/serialization/types/Locales.ts new file mode 100644 index 00000000..e3f7570b --- /dev/null +++ b/src/serialization/types/Locales.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Webflow from "../../api"; +import * as core from "../../core"; + +export const Locales: core.serialization.ObjectSchema = + core.serialization.object({ + primary: core.serialization.lazyObject(async () => (await import("..")).Locale).optional(), + secondary: core.serialization + .list(core.serialization.lazyObject(async () => (await import("..")).Locale)) + .optional(), + }); + +export declare namespace Locales { + interface Raw { + primary?: serializers.Locale.Raw | null; + secondary?: serializers.Locale.Raw[] | null; + } +} diff --git a/src/serialization/types/OrderList.ts b/src/serialization/types/OrderList.ts index 1a10c8c5..b79e6e1d 100644 --- a/src/serialization/types/OrderList.ts +++ b/src/serialization/types/OrderList.ts @@ -8,7 +8,7 @@ import * as core from "../../core"; export const OrderList: core.serialization.ObjectSchema = core.serialization.object({ - items: core.serialization + orders: core.serialization .list(core.serialization.lazyObject(async () => (await import("..")).Order)) .optional(), pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(), @@ -16,7 +16,7 @@ export const OrderList: core.serialization.ObjectSchema (await import("..")).OrderPurchasedItemVariantImage) .optional(), @@ -38,6 +39,7 @@ export declare namespace OrderPurchasedItem { variantId?: string | null; variantName?: string | null; variantSlug?: string | null; + variantSKU?: string | null; variantImage?: serializers.OrderPurchasedItemVariantImage.Raw | null; variantPrice?: serializers.OrderPrice.Raw | null; weight?: number | null; diff --git a/src/serialization/types/Product.ts b/src/serialization/types/Product.ts index 69c62466..5f3eaa96 100644 --- a/src/serialization/types/Product.ts +++ b/src/serialization/types/Product.ts @@ -9,6 +9,7 @@ import * as core from "../../core"; export const Product: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string().optional(), + cmsLocaleId: core.serialization.string().optional(), lastPublished: core.serialization.date().optional(), lastUpdated: core.serialization.date().optional(), createdOn: core.serialization.date().optional(), @@ -20,6 +21,7 @@ export const Product: core.serialization.ObjectSchema = core.serialization.object({ - name: core.serialization.string(), - slug: core.serialization.string(), + name: core.serialization.string().optional(), + slug: core.serialization.string().optional(), description: core.serialization.string().optional(), shippable: core.serialization.boolean().optional(), skuProperties: core.serialization.property( @@ -30,13 +30,12 @@ export const ProductFieldData: core.serialization.ObjectSchema< "ec-product-type", core.serialization.lazy(async () => (await import("..")).ProductFieldDataEcProductType).optional() ), - additionalProperties: core.serialization.string().optional(), }); export declare namespace ProductFieldData { interface Raw { - name: string; - slug: string; + name?: string | null; + slug?: string | null; description?: string | null; shippable?: boolean | null; "sku-properties"?: serializers.SkuPropertyList.Raw[] | null; @@ -44,6 +43,5 @@ export declare namespace ProductFieldData { "tax-category"?: serializers.ProductFieldDataTaxCategory.Raw | null; "default-sku"?: string | null; "ec-product-type"?: serializers.ProductFieldDataEcProductType.Raw | null; - additionalProperties?: string | null; } } diff --git a/src/serialization/types/RegisteredScriptList.ts b/src/serialization/types/RegisteredScriptList.ts index 10e3baaa..e8fbc0b3 100644 --- a/src/serialization/types/RegisteredScriptList.ts +++ b/src/serialization/types/RegisteredScriptList.ts @@ -11,12 +11,12 @@ export const RegisteredScriptList: core.serialization.ObjectSchema< Webflow.RegisteredScriptList > = core.serialization.object({ registeredScripts: core.serialization - .list(core.serialization.lazyObject(async () => (await import("..")).CustomCodeResponse)) + .list(core.serialization.lazyObject(async () => (await import("..")).CustomCodeHostedResponse)) .optional(), }); export declare namespace RegisteredScriptList { interface Raw { - registeredScripts?: serializers.CustomCodeResponse.Raw[] | null; + registeredScripts?: serializers.CustomCodeHostedResponse.Raw[] | null; } } diff --git a/src/serialization/types/Site.ts b/src/serialization/types/Site.ts index 88ac8d16..5c2f22a3 100644 --- a/src/serialization/types/Site.ts +++ b/src/serialization/types/Site.ts @@ -16,9 +16,11 @@ export const Site: core.serialization.ObjectSchema (await import("..")).Domain)) .optional(), + locales: core.serialization.lazyObject(async () => (await import("..")).Locales).optional(), }); export declare namespace Site { @@ -32,6 +34,8 @@ export declare namespace Site { lastUpdated?: string | null; previewUrl?: string | null; timeZone?: string | null; + parentFolderId?: string | null; customDomains?: serializers.Domain.Raw[] | null; + locales?: serializers.Locales.Raw | null; } } diff --git a/src/serialization/types/Sites.ts b/src/serialization/types/Sites.ts new file mode 100644 index 00000000..1addf834 --- /dev/null +++ b/src/serialization/types/Sites.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Webflow from "../../api"; +import * as core from "../../core"; + +export const Sites: core.serialization.ObjectSchema = core.serialization.object({ + sites: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Site)).optional(), +}); + +export declare namespace Sites { + interface Raw { + sites?: serializers.Site.Raw[] | null; + } +} diff --git a/src/serialization/types/Sku.ts b/src/serialization/types/Sku.ts index bd95f811..d8874bc0 100644 --- a/src/serialization/types/Sku.ts +++ b/src/serialization/types/Sku.ts @@ -8,6 +8,7 @@ import * as core from "../../core"; export const Sku: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string().optional(), + cmsLocaleId: core.serialization.string().optional(), lastPublished: core.serialization.date().optional(), lastUpdated: core.serialization.date().optional(), createdOn: core.serialization.date().optional(), @@ -17,6 +18,7 @@ export const Sku: core.serialization.ObjectSchema (await import("..")).SkuFieldDataEcSkuSubscriptionPlanPlansItem) + ) + .optional(), }); export declare namespace SkuFieldDataEcSkuSubscriptionPlan { @@ -22,5 +27,6 @@ export declare namespace SkuFieldDataEcSkuSubscriptionPlan { interval?: serializers.SkuFieldDataEcSkuSubscriptionPlanInterval.Raw | null; frequency?: number | null; trial?: number | null; + plans?: serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItem.Raw[] | null; } } diff --git a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts new file mode 100644 index 00000000..3a9d58de --- /dev/null +++ b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Webflow from "../../api"; +import * as core from "../../core"; + +export const SkuFieldDataEcSkuSubscriptionPlanPlansItem: core.serialization.ObjectSchema< + serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItem.Raw, + Webflow.SkuFieldDataEcSkuSubscriptionPlanPlansItem +> = core.serialization.object({ + platform: core.serialization.stringLiteral("stripe").optional(), + id: core.serialization.string().optional(), + status: core.serialization + .lazy(async () => (await import("..")).SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus) + .optional(), +}); + +export declare namespace SkuFieldDataEcSkuSubscriptionPlanPlansItem { + interface Raw { + platform?: "stripe" | null; + id?: string | null; + status?: serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.Raw | null; + } +} diff --git a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts new file mode 100644 index 00000000..7ffa54ff --- /dev/null +++ b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Webflow from "../../api"; +import * as core from "../../core"; + +export const SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus: core.serialization.Schema< + serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.Raw, + Webflow.SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus +> = core.serialization.enum_(["active", "inactive", "canceled"]); + +export declare namespace SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus { + type Raw = "active" | "inactive" | "canceled"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 888fad6f..caa2144b 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -5,7 +5,10 @@ export * from "./AuthorizationAuthorizationAuthorizedTo"; export * from "./AuthorizationAuthorization"; export * from "./Authorization"; export * from "./Domain"; +export * from "./Locale"; +export * from "./Locales"; export * from "./Site"; +export * from "./Sites"; export * from "./Domains"; export * from "./InvalidDomain"; export * from "./NoDomains"; @@ -39,8 +42,9 @@ export * from "./Dom"; export * from "./ScriptApplyLocation"; export * from "./ScriptApply"; export * from "./ScriptApplyList"; -export * from "./CustomCodeResponse"; +export * from "./CustomCodeHostedResponse"; export * from "./RegisteredScriptList"; +export * from "./CustomCodeInlineResponse"; export * from "./Scripts"; export * from "./CustomCodeBlockType"; export * from "./CustomCodeBlock"; @@ -86,6 +90,8 @@ export * from "./SkuFieldDataPrice"; export * from "./SkuFieldDataCompareAtPrice"; export * from "./SkuFieldDataEcSkuBillingMethod"; export * from "./SkuFieldDataEcSkuSubscriptionPlanInterval"; +export * from "./SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus"; +export * from "./SkuFieldDataEcSkuSubscriptionPlanPlansItem"; export * from "./SkuFieldDataEcSkuSubscriptionPlan"; export * from "./SkuFieldData"; export * from "./Sku"; diff --git a/yarn.lock b/yarn.lock index cd816342..22f24d0d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,22 +19,22 @@ picocolors "^1.0.0" "@babel/compat-data@^7.23.5": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.1.tgz#31c1f66435f2a9c329bb5716a6d6186c516c3742" - integrity sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA== + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.4.tgz#6f102372e9094f25d908ca0d34fc74c74606059a" + integrity sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.24.3" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.3.tgz#568864247ea10fbd4eff04dda1e05f9e2ea985c3" - integrity sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ== + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.4.tgz#1f758428e88e0d8c563874741bc4ffc4f71a4717" + integrity sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.24.2" - "@babel/generator" "^7.24.1" + "@babel/generator" "^7.24.4" "@babel/helper-compilation-targets" "^7.23.6" "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.24.1" - "@babel/parser" "^7.24.1" + "@babel/helpers" "^7.24.4" + "@babel/parser" "^7.24.4" "@babel/template" "^7.24.0" "@babel/traverse" "^7.24.1" "@babel/types" "^7.24.0" @@ -44,10 +44,10 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.1", "@babel/generator@^7.7.2": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.1.tgz#e67e06f68568a4ebf194d1c6014235344f0476d0" - integrity sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A== +"@babel/generator@^7.24.1", "@babel/generator@^7.24.4", "@babel/generator@^7.7.2": + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.4.tgz#1fc55532b88adf952025d5d2d1e71f946cb1c498" + integrity sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw== dependencies: "@babel/types" "^7.24.0" "@jridgewell/gen-mapping" "^0.3.5" @@ -137,10 +137,10 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== -"@babel/helpers@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.1.tgz#183e44714b9eba36c3038e442516587b1e0a1a94" - integrity sha512-BpU09QqEe6ZCHuIHFphEFgvNSrubve1FtyMton26ekZ85gRGi6LrTF7zArARp2YvyFxloeiRmtSCq5sjh1WqIg== +"@babel/helpers@^7.24.4": + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.4.tgz#dc00907fd0d95da74563c142ef4cd21f2cb856b6" + integrity sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw== dependencies: "@babel/template" "^7.24.0" "@babel/traverse" "^7.24.1" @@ -156,10 +156,10 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.0", "@babel/parser@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.1.tgz#1e416d3627393fab1cb5b0f2f1796a100ae9133a" - integrity sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.0", "@babel/parser@^7.24.1", "@babel/parser@^7.24.4": + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.4.tgz#234487a110d89ad5a3ed4a8a566c36b9453e8c88" + integrity sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -633,9 +633,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.11.30" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.30.tgz#9c33467fc23167a347e73834f788f4b9f399d66f" - integrity sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw== + version "20.12.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384" + integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg== dependencies: undici-types "~5.26.4" @@ -858,9 +858,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001587: - version "1.0.30001600" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001600.tgz#93a3ee17a35aa6a9f0c6ef1b2ab49507d1ab9079" - integrity sha512-+2S9/2JFhYmYaDpZvo0lKkfvuKIglrx68MwOBqMGHhQsNkLjB5xtc/TGoEPs+MxjSyN/72qer2g97nzR641mOQ== + version "1.0.30001608" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001608.tgz#7ae6e92ffb300e4b4ec2f795e0abab456ec06cc0" + integrity sha512-cjUJTQkk9fQlJR2s4HMuPMvTiRggl0rAVMtthQuyOlDWuqHXqN8azLq+pi8B2TjwKJ32diHjUqRIKeFX4z1FoA== chalk@^2.4.2: version "2.4.2" @@ -984,9 +984,9 @@ debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: ms "2.1.2" dedent@^1.0.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff" - integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg== + version "1.5.2" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.2.tgz#838f09196f6d1fafd464904132dea270c5fe96b0" + integrity sha512-O4ncVvQ2ZI0KH+of+Evf956RssiyxvMgU0hE8QyG+rwmUjcxEYX4DoF9FQxIaHye3WQjPXrv3uRhlDrRzlq2CQ== deepmerge@^4.2.2: version "4.3.1" @@ -1018,9 +1018,9 @@ diff-sequences@^29.6.3: integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== electron-to-chromium@^1.4.668: - version "1.4.722" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.722.tgz#99ae3484c5fc0f387d39ad98d77e1f259b9f4074" - integrity sha512-5nLE0TWFFpZ80Crhtp4pIp8LXCztjYX41yUcV6b+bKR2PqzjskTMOOlBi1VjBHlvHwS+4gar7kNKOrsbsewEZQ== + version "1.4.733" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.733.tgz#708d51ce01a7ed3b401d5ced85e9f5d504fd4217" + integrity sha512-gUI9nhI2iBGF0OaYYLKOaOtliFMl+Bt1rY7VmEjwxOxqoYLub/D9xmduPEhbw2imE6gYkJKhIE5it+KE2ulVxQ== emittery@^0.13.1: version "0.13.1"