diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 93e8e371..73509065 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,7 +15,7 @@ jobs:
- name: Compile
run: yarn && yarn build
-
+
test:
runs-on: ubuntu-latest
@@ -27,23 +27,19 @@ jobs:
uses: actions/setup-node@v3
- name: Compile
- run: yarn && yarn test
-
+ run: yarn && yarn test
+
publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
-
steps:
- name: Checkout repo
uses: actions/checkout@v3
-
- name: Set up node
uses: actions/setup-node@v3
-
- name: Install dependencies
run: yarn install
-
- name: Build
run: yarn build
diff --git a/.gitignore b/.gitignore
index 1498321f..72271e04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,3 @@
node_modules
.DS_Store
-/dist
-/Client.d.ts
-/Client.js
-/environments.d.ts
-/environments.js
-/index.d.ts
-/index.js
-/api
-/core
-/errors
-/serialization
\ No newline at end of file
+/dist
\ No newline at end of file
diff --git a/.npmignore b/.npmignore
index e62938dd..6db0876c 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,5 +1,6 @@
node_modules
src
+tests
.gitignore
.github
.fernignore
diff --git a/jest.config.js b/jest.config.js
index 3a09892d..35d6e65b 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,5 +1,5 @@
-/** @type {import('ts-jest').JestConfigWithTsJest} */
+/** @type {import('jest').Config} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
-};
\ No newline at end of file
+};
diff --git a/package.json b/package.json
index 48156978..ef55d371 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "webflow-api",
- "version": "2.3.2",
+ "version": "2.3.5",
"private": false,
"repository": "https://github.com/webflow/js-webflow-api",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
- "format": "prettier --write 'src/**/*.ts'",
+ "format": "prettier . --write --ignore-unknown",
"build": "tsc",
"prepack": "cp -rv dist/. .",
"test": "jest"
@@ -14,6 +14,7 @@
"dependencies": {
"url-join": "4.0.1",
"form-data": "4.0.0",
+ "formdata-node": "^6.0.3",
"node-fetch": "2.7.0",
"qs": "6.11.2",
"js-base64": "3.7.2"
@@ -22,11 +23,17 @@
"@types/url-join": "4.0.1",
"@types/qs": "6.9.8",
"@types/node-fetch": "2.6.9",
- "jest": "^29.7.0",
- "@types/jest": "^29.5.5",
- "ts-jest": "^29.1.1",
+ "jest": "29.7.0",
+ "@types/jest": "29.5.5",
+ "ts-jest": "29.1.1",
+ "jest-environment-jsdom": "29.7.0",
"@types/node": "17.0.33",
"prettier": "2.7.1",
"typescript": "4.6.4"
+ },
+ "browser": {
+ "fs": false,
+ "os": false,
+ "path": false
}
-}
\ No newline at end of file
+}
diff --git a/src/Client.ts b/src/Client.ts
index 7d71c14b..e1e74c57 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -26,8 +26,12 @@ export declare namespace WebflowClient {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
diff --git a/src/api/errors/BadRequestError.ts b/src/api/errors/BadRequestError.ts
index 2f01d54e..6e26112d 100644
--- a/src/api/errors/BadRequestError.ts
+++ b/src/api/errors/BadRequestError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class BadRequestError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/ConflictError.ts b/src/api/errors/ConflictError.ts
index 2cb6445c..7a4fe9ea 100644
--- a/src/api/errors/ConflictError.ts
+++ b/src/api/errors/ConflictError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class ConflictError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/ForbiddenError.ts b/src/api/errors/ForbiddenError.ts
index 2ffdaf7b..c34e1eed 100644
--- a/src/api/errors/ForbiddenError.ts
+++ b/src/api/errors/ForbiddenError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class ForbiddenError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/InternalServerError.ts b/src/api/errors/InternalServerError.ts
index db9aa435..f9aec6df 100644
--- a/src/api/errors/InternalServerError.ts
+++ b/src/api/errors/InternalServerError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class InternalServerError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/NotFoundError.ts b/src/api/errors/NotFoundError.ts
index b271f39c..97686b39 100644
--- a/src/api/errors/NotFoundError.ts
+++ b/src/api/errors/NotFoundError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class NotFoundError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/TooManyRequestsError.ts b/src/api/errors/TooManyRequestsError.ts
index c507d248..baa54df8 100644
--- a/src/api/errors/TooManyRequestsError.ts
+++ b/src/api/errors/TooManyRequestsError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class TooManyRequestsError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/UnauthorizedError.ts b/src/api/errors/UnauthorizedError.ts
index 1dd6524a..43ce22a3 100644
--- a/src/api/errors/UnauthorizedError.ts
+++ b/src/api/errors/UnauthorizedError.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as errors from "../../errors";
+import * as errors from "../../errors/index";
export class UnauthorizedError extends errors.WebflowError {
constructor(body?: unknown) {
diff --git a/src/api/errors/index.ts b/src/api/errors/index.ts
index afae7f17..764085c5 100644
--- a/src/api/errors/index.ts
+++ b/src/api/errors/index.ts
@@ -1,7 +1,7 @@
-export * from "./BadRequestError";
export * from "./UnauthorizedError";
export * from "./ForbiddenError";
+export * from "./BadRequestError";
export * from "./NotFoundError";
-export * from "./ConflictError";
export * from "./TooManyRequestsError";
export * from "./InternalServerError";
+export * from "./ConflictError";
diff --git a/src/api/resources/accessGroups/client/Client.ts b/src/api/resources/accessGroups/client/Client.ts
index 2f76480b..82bbb94c 100644
--- a/src/api/resources/accessGroups/client/Client.ts
+++ b/src/api/resources/accessGroups/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace AccessGroups {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace AccessGroups {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,11 @@ export class AccessGroups {
/**
* Get a list of access groups for a site Required scope | `users:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.AccessGroupsListRequest} request
+ * @param {AccessGroups.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -34,7 +43,7 @@ export class AccessGroups {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.accessGroups.list("site_id", {})
+ * await client.accessGroups.list("site_id")
*/
public async list(
siteId: string,
@@ -58,14 +67,14 @@ export class AccessGroups {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/accessgroups`
+ `sites/${encodeURIComponent(siteId)}/accessgroups`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -73,6 +82,7 @@ export class AccessGroups {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.AccessGroupList.parseOrThrow(_response.body, {
@@ -121,7 +131,7 @@ export class AccessGroups {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts b/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts
index 67a38430..0fada7ea 100644
--- a/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts
+++ b/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
diff --git a/src/api/resources/accessGroups/client/requests/index.ts b/src/api/resources/accessGroups/client/requests/index.ts
index 3e580385..709463a1 100644
--- a/src/api/resources/accessGroups/client/requests/index.ts
+++ b/src/api/resources/accessGroups/client/requests/index.ts
@@ -1 +1 @@
-export { AccessGroupsListRequest } from "./AccessGroupsListRequest";
+export { type AccessGroupsListRequest } from "./AccessGroupsListRequest";
diff --git a/src/api/resources/assets/client/Client.ts b/src/api/resources/assets/client/Client.ts
index e6f5a7fd..44917023 100644
--- a/src/api/resources/assets/client/Client.ts
+++ b/src/api/resources/assets/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Assets {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Assets {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,10 @@ export class Assets {
/**
* List assets for a given site Required scope | `assets:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,26 +41,27 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.list("site_id")
+ * await client.assets.list("site_id")
*/
public async list(siteId: string, requestOptions?: Assets.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/assets`
+ `sites/${encodeURIComponent(siteId)}/assets`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Assets.parseOrThrow(_response.body, {
@@ -101,6 +110,11 @@ export class Assets {
/**
* Create a new asset entry. This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`. You can use these two properties to [upload the file to Amazon s3 by making a POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html) request to the `uploadUrl` with the `uploadDetails` object as your header information in the request. Required scope | `assets:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.AssetsCreateRequest} request
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -108,10 +122,9 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.create("site_id", {
+ * await client.assets.create("site_id", {
* fileName: "file.png",
- * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e",
- * parentFolder: "6436b1ce5281cace05b65aea"
+ * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
* })
*/
public async create(
@@ -122,14 +135,14 @@ export class Assets {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/assets`
+ `sites/${encodeURIComponent(siteId)}/assets`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -137,6 +150,7 @@ export class Assets {
body: await serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.AssetUpload.parseOrThrow(_response.body, {
@@ -185,6 +199,10 @@ export class Assets {
/**
* Get an Asset Required scope | `assets:read`
+ *
+ * @param {string} assetId - Unique identifier for an Asset on a site
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -192,26 +210,27 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.get("asset_id")
+ * await client.assets.get("asset_id")
*/
public async get(assetId: string, requestOptions?: Assets.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `assets/${assetId}`
+ `assets/${encodeURIComponent(assetId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Asset.parseOrThrow(_response.body, {
@@ -260,6 +279,10 @@ export class Assets {
/**
* Delete an Asset
+ *
+ * @param {string} assetId - Unique identifier for an Asset on a site
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -267,26 +290,27 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.delete("asset_id")
+ * await client.assets.delete("asset_id")
*/
public async delete(assetId: string, requestOptions?: Assets.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `assets/${assetId}`
+ `assets/${encodeURIComponent(assetId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -329,6 +353,11 @@ export class Assets {
/**
* Update an Asset Required scope | `assets:write`
+ *
+ * @param {string} assetId - Unique identifier for an Asset on a site
+ * @param {Webflow.AssetsUpdateRequest} request
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -336,7 +365,7 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.update("asset_id", {
+ * await client.assets.update("asset_id", {
* displayName: "bulldoze.png"
* })
*/
@@ -348,14 +377,14 @@ export class Assets {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `assets/${assetId}`
+ `assets/${encodeURIComponent(assetId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -363,6 +392,7 @@ export class Assets {
body: await serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Asset.parseOrThrow(_response.body, {
@@ -411,6 +441,10 @@ export class Assets {
/**
* List Asset Folders within a given site Required scope | `assets:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -418,26 +452,27 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.listFolders("site_id")
+ * await client.assets.listFolders("site_id")
*/
public async listFolders(siteId: string, requestOptions?: Assets.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/asset_folders`
+ `sites/${encodeURIComponent(siteId)}/asset_folders`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.AssetFolderList.parseOrThrow(_response.body, {
@@ -486,6 +521,11 @@ export class Assets {
/**
* Create an Asset Folder within a given site Required scope | `assets:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.AssetsCreateFolderRequest} request
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -493,9 +533,8 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.createFolder("site_id", {
- * displayName: "my asset folder",
- * parentFolder: "6390c49774a71f99f21a08eb"
+ * await client.assets.createFolder("site_id", {
+ * displayName: "my asset folder"
* })
*/
public async createFolder(
@@ -506,14 +545,14 @@ export class Assets {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/asset_folders`
+ `sites/${encodeURIComponent(siteId)}/asset_folders`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -521,6 +560,7 @@ export class Assets {
body: await serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.AssetFolder.parseOrThrow(_response.body, {
@@ -569,6 +609,10 @@ export class Assets {
/**
* Get details about a specific Asset Folder Required scope | `assets:read`
+ *
+ * @param {string} assetFolderId - Unique identifier for an Asset Folder
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -576,7 +620,7 @@ export class Assets {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.assets.getFolder("asset_folder_id")
+ * await client.assets.getFolder("asset_folder_id")
*/
public async getFolder(
assetFolderId: string,
@@ -585,20 +629,21 @@ export class Assets {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `asset_folders/${assetFolderId}`
+ `asset_folders/${encodeURIComponent(assetFolderId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.AssetFolder.parseOrThrow(_response.body, {
@@ -645,7 +690,7 @@ export class Assets {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/assets/client/requests/AssetsCreateFolderRequest.ts b/src/api/resources/assets/client/requests/AssetsCreateFolderRequest.ts
index 32f5c0b3..88a07fcd 100644
--- a/src/api/resources/assets/client/requests/AssetsCreateFolderRequest.ts
+++ b/src/api/resources/assets/client/requests/AssetsCreateFolderRequest.ts
@@ -5,8 +5,7 @@
/**
* @example
* {
- * displayName: "my asset folder",
- * parentFolder: "6390c49774a71f99f21a08eb"
+ * displayName: "my asset folder"
* }
*/
export interface AssetsCreateFolderRequest {
diff --git a/src/api/resources/assets/client/requests/AssetsCreateRequest.ts b/src/api/resources/assets/client/requests/AssetsCreateRequest.ts
index 4a947efa..242fd8a3 100644
--- a/src/api/resources/assets/client/requests/AssetsCreateRequest.ts
+++ b/src/api/resources/assets/client/requests/AssetsCreateRequest.ts
@@ -6,8 +6,7 @@
* @example
* {
* fileName: "file.png",
- * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e",
- * parentFolder: "6436b1ce5281cace05b65aea"
+ * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
* }
*/
export interface AssetsCreateRequest {
diff --git a/src/api/resources/assets/client/requests/index.ts b/src/api/resources/assets/client/requests/index.ts
index 54ebd265..99239498 100644
--- a/src/api/resources/assets/client/requests/index.ts
+++ b/src/api/resources/assets/client/requests/index.ts
@@ -1,3 +1,3 @@
-export { AssetsCreateRequest } from "./AssetsCreateRequest";
-export { AssetsUpdateRequest } from "./AssetsUpdateRequest";
-export { AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest";
+export { type AssetsCreateRequest } from "./AssetsCreateRequest";
+export { type AssetsUpdateRequest } from "./AssetsUpdateRequest";
+export { type AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest";
diff --git a/src/api/resources/collections/client/Client.ts b/src/api/resources/collections/client/Client.ts
index f9c9fdf9..14fc0ca7 100644
--- a/src/api/resources/collections/client/Client.ts
+++ b/src/api/resources/collections/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
import { Fields } from "../resources/fields/client/Client";
import { Items } from "../resources/items/client/Client";
@@ -18,8 +18,12 @@ export declare namespace Collections {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -28,6 +32,10 @@ export class Collections {
/**
* List of all Collections within a Site. Required scope | `cms:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -35,26 +43,27 @@ export class Collections {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.list("site_id")
+ * await client.collections.list("site_id")
*/
public async list(siteId: string, requestOptions?: Collections.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/collections`
+ `sites/${encodeURIComponent(siteId)}/collections`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CollectionList.parseOrThrow(_response.body, {
@@ -103,6 +112,11 @@ export class Collections {
/**
* Create a Collection for a site. Required scope | `cms:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.CollectionsCreateRequest} request
+ * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -110,7 +124,7 @@ export class Collections {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.create("site_id", {
+ * await client.collections.create("site_id", {
* displayName: "Blog Posts",
* singularName: "Blog Post",
* slug: "posts"
@@ -124,14 +138,14 @@ export class Collections {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/collections`
+ `sites/${encodeURIComponent(siteId)}/collections`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -139,6 +153,7 @@ export class Collections {
body: await serializers.CollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Collection.parseOrThrow(_response.body, {
@@ -187,6 +202,10 @@ export class Collections {
/**
* Get the full details of a collection from its ID. Required scope | `cms:read`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -194,26 +213,27 @@ export class Collections {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.get("collection_id")
+ * await client.collections.get("collection_id")
*/
public async get(collectionId: string, requestOptions?: Collections.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}`
+ `collections/${encodeURIComponent(collectionId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Collection.parseOrThrow(_response.body, {
@@ -262,6 +282,10 @@ export class Collections {
/**
* Delete a collection using its ID. Required scope | `cms:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -269,26 +293,27 @@ export class Collections {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.deleteCollection("collection_id")
+ * await client.collections.deleteCollection("collection_id")
*/
public async deleteCollection(collectionId: string, requestOptions?: Collections.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}`
+ `collections/${encodeURIComponent(collectionId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -331,6 +356,11 @@ export class Collections {
/**
* Delete a custom field in a collection. This endpoint does not currently support bulk deletion. Required scope | `cms:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} fieldId - Unique identifier for a Field in a collection
+ * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -338,7 +368,7 @@ export class Collections {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.delete("collection_id", "field_id")
+ * await client.collections.delete("collection_id", "field_id")
*/
public async delete(
collectionId: string,
@@ -348,20 +378,21 @@ export class Collections {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/fields/${fieldId}`
+ `collections/${encodeURIComponent(collectionId)}/fields/${encodeURIComponent(fieldId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -414,7 +445,7 @@ export class Collections {
return (this._items ??= new Items(this._options));
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/collections/client/requests/index.ts b/src/api/resources/collections/client/requests/index.ts
index 1694555b..ea1464e5 100644
--- a/src/api/resources/collections/client/requests/index.ts
+++ b/src/api/resources/collections/client/requests/index.ts
@@ -1 +1 @@
-export { CollectionsCreateRequest } from "./CollectionsCreateRequest";
+export { type CollectionsCreateRequest } from "./CollectionsCreateRequest";
diff --git a/src/api/resources/collections/resources/fields/client/Client.ts b/src/api/resources/collections/resources/fields/client/Client.ts
index 4a78d563..4a0d8e98 100644
--- a/src/api/resources/collections/resources/fields/client/Client.ts
+++ b/src/api/resources/collections/resources/fields/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
-import * as Webflow from "../../../../..";
-import * as serializers from "../../../../../../serialization";
+import * as Webflow from "../../../../../index";
+import * as serializers from "../../../../../../serialization/index";
import urlJoin from "url-join";
-import * as errors from "../../../../../../errors";
+import * as errors from "../../../../../../errors/index";
export declare namespace Fields {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Fields {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,11 @@ export class Fields {
/**
* Create a custom field in a collection. Slugs must be all lowercase letters without spaces. If you pass a string with uppercase letters and/or spaces to the "Slug" property, Webflow will convert the slug to lowercase and replace spaces with "-." Only some field types can be created through the API. This endpoint does not currently support bulk creation. Required scope | `cms:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.collections.FieldCreate} request
+ * @param {Fields.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,7 +42,7 @@ export class Fields {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.fields.create("collection_id", {
+ * await client.collections.fields.create("collection_id", {
* isRequired: false,
* type: Webflow.collections.FieldCreateType.RichText,
* displayName: "Post Body",
@@ -48,14 +57,14 @@ export class Fields {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/fields`
+ `collections/${encodeURIComponent(collectionId)}/fields`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -63,6 +72,7 @@ export class Fields {
body: await serializers.collections.FieldCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Field.parseOrThrow(_response.body, {
@@ -111,6 +121,12 @@ export class Fields {
/**
* Update a custom field in a collection. Required scope | `cms:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} fieldId - Unique identifier for a Field in a collection
+ * @param {Webflow.collections.FieldUpdate} request
+ * @param {Fields.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -118,7 +134,7 @@ export class Fields {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.fields.update("collection_id", "field_id", {
+ * await client.collections.fields.update("collection_id", "field_id", {
* isRequired: false,
* displayName: "Post Body",
* helpText: "Add the body of your post here"
@@ -133,14 +149,14 @@ export class Fields {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/fields/${fieldId}`
+ `collections/${encodeURIComponent(collectionId)}/fields/${encodeURIComponent(fieldId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -148,6 +164,7 @@ export class Fields {
body: await serializers.collections.FieldUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Field.parseOrThrow(_response.body, {
@@ -194,7 +211,7 @@ export class Fields {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/collections/resources/fields/client/requests/FieldCreate.ts b/src/api/resources/collections/resources/fields/client/requests/FieldCreate.ts
index 71a0aad5..3eef21ea 100644
--- a/src/api/resources/collections/resources/fields/client/requests/FieldCreate.ts
+++ b/src/api/resources/collections/resources/fields/client/requests/FieldCreate.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../../../..";
+import * as Webflow from "../../../../../../index";
/**
* @example
diff --git a/src/api/resources/collections/resources/fields/client/requests/index.ts b/src/api/resources/collections/resources/fields/client/requests/index.ts
index 93f46db9..899552b9 100644
--- a/src/api/resources/collections/resources/fields/client/requests/index.ts
+++ b/src/api/resources/collections/resources/fields/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { FieldCreate } from "./FieldCreate";
-export { FieldUpdate } from "./FieldUpdate";
+export { type FieldCreate } from "./FieldCreate";
+export { type FieldUpdate } from "./FieldUpdate";
diff --git a/src/api/resources/collections/resources/fields/types/FieldCreateType.ts b/src/api/resources/collections/resources/fields/types/FieldCreateType.ts
index 1ab114b3..af640e8b 100644
--- a/src/api/resources/collections/resources/fields/types/FieldCreateType.ts
+++ b/src/api/resources/collections/resources/fields/types/FieldCreateType.ts
@@ -16,7 +16,7 @@ export type FieldCreateType =
| "Phone"
| "Number"
| "DateTime"
- | "Boolean"
+ | "Switch"
| "Color"
| "File";
@@ -31,7 +31,7 @@ export const FieldCreateType = {
Phone: "Phone",
Number: "Number",
DateTime: "DateTime",
- Boolean: "Boolean",
+ Switch: "Switch",
Color: "Color",
File: "File",
} as const;
diff --git a/src/api/resources/collections/resources/items/client/Client.ts b/src/api/resources/collections/resources/items/client/Client.ts
index b8ae61b2..9ce04802 100644
--- a/src/api/resources/collections/resources/items/client/Client.ts
+++ b/src/api/resources/collections/resources/items/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
-import * as Webflow from "../../../../..";
+import * as Webflow from "../../../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../../../serialization";
-import * as errors from "../../../../../../errors";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
export declare namespace Items {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Items {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,11 @@ export class Items {
/**
* List of all Items within a Collection. Required scope | `CMS:read`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.collections.ItemsListItemsRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,21 +42,17 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.listItems("collection_id", {})
+ * await client.collections.items.listItems("collection_id")
*/
public async listItems(
collectionId: string,
request: Webflow.collections.ItemsListItemsRequest = {},
requestOptions?: Items.RequestOptions
): Promise {
- const { cmsLocaleIds, offset, limit } = request;
+ const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
const _queryParams: Record = {};
- if (cmsLocaleIds != null) {
- if (Array.isArray(cmsLocaleIds)) {
- _queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
- } else {
- _queryParams["cmsLocaleIds"] = cmsLocaleIds;
- }
+ if (cmsLocaleId != null) {
+ _queryParams["cmsLocaleId"] = cmsLocaleId;
}
if (offset != null) {
@@ -58,17 +63,33 @@ export class Items {
_queryParams["limit"] = limit.toString();
}
+ if (name != null) {
+ _queryParams["name"] = name;
+ }
+
+ if (slug != null) {
+ _queryParams["slug"] = slug;
+ }
+
+ if (sortBy != null) {
+ _queryParams["sortBy"] = sortBy;
+ }
+
+ if (sortOrder != null) {
+ _queryParams["sortOrder"] = sortOrder;
+ }
+
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items`
+ `collections/${encodeURIComponent(collectionId)}/items`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -76,6 +97,7 @@ export class Items {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CollectionItemList.parseOrThrow(_response.body, {
@@ -124,6 +146,11 @@ export class Items {
/**
* Create Item in a Collection. To create items across multiple locales, please use this endpoint. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.CollectionItem} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -131,7 +158,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.createItem("collection_id", {
+ * await client.collections.items.createItem("collection_id", {
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2022-11-29T16:22:43.159Z",
@@ -153,14 +180,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items`
+ `collections/${encodeURIComponent(collectionId)}/items`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -168,6 +195,7 @@ export class Items {
body: await serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -210,6 +238,11 @@ export class Items {
/**
* List of all live Items within a Collection. Required scope | `CMS:read`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.collections.ItemsListItemsLiveRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -217,21 +250,17 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.listItemsLive("collection_id", {})
+ * await client.collections.items.listItemsLive("collection_id")
*/
public async listItemsLive(
collectionId: string,
request: Webflow.collections.ItemsListItemsLiveRequest = {},
requestOptions?: Items.RequestOptions
): Promise {
- const { cmsLocaleIds, offset, limit } = request;
+ const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
const _queryParams: Record = {};
- if (cmsLocaleIds != null) {
- if (Array.isArray(cmsLocaleIds)) {
- _queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
- } else {
- _queryParams["cmsLocaleIds"] = cmsLocaleIds;
- }
+ if (cmsLocaleId != null) {
+ _queryParams["cmsLocaleId"] = cmsLocaleId;
}
if (offset != null) {
@@ -242,17 +271,33 @@ export class Items {
_queryParams["limit"] = limit.toString();
}
+ if (name != null) {
+ _queryParams["name"] = name;
+ }
+
+ if (slug != null) {
+ _queryParams["slug"] = slug;
+ }
+
+ if (sortBy != null) {
+ _queryParams["sortBy"] = sortBy;
+ }
+
+ if (sortOrder != null) {
+ _queryParams["sortOrder"] = sortOrder;
+ }
+
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/live`
+ `collections/${encodeURIComponent(collectionId)}/items/live`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -260,6 +305,7 @@ export class Items {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CollectionItemList.parseOrThrow(_response.body, {
@@ -308,6 +354,11 @@ export class Items {
/**
* Create live Item in a Collection. This Item will be published to the live site. To create items across multiple locales, please use this endpoint. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.CollectionItem} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -315,7 +366,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.createItemLive("collection_id", {
+ * await client.collections.items.createItemLive("collection_id", {
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2022-11-29T16:22:43.159Z",
@@ -337,14 +388,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/live`
+ `collections/${encodeURIComponent(collectionId)}/items/live`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -352,6 +403,7 @@ export class Items {
body: await serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -394,6 +446,11 @@ export class Items {
/**
* Create single Item in a Collection with multiple corresponding locales. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.collections.BulkCollectionItem} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -401,14 +458,8 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.createItemForMultipleLocales("collection_id", {
- * id: "580e64008c9a982ac9b8b754",
- * lastUpdated: "2023-03-17T18:47:35.560Z",
- * createdOn: "2023-03-17T18:47:35.560Z",
- * fieldData: {
- * name: "My new item",
- * slug: "my-new-item"
- * }
+ * await client.collections.items.createItemForMultipleLocales("collection_id", {
+ * id: "580e64008c9a982ac9b8b754"
* })
*/
public async createItemForMultipleLocales(
@@ -419,14 +470,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/bulk`
+ `collections/${encodeURIComponent(collectionId)}/items/bulk`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -436,6 +487,7 @@ export class Items {
}),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -478,6 +530,12 @@ export class Items {
/**
* Get details of a selected Collection Item. Required scope | `CMS:read`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.collections.ItemsGetItemRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -485,7 +543,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.getItem("collection_id", "item_id", {})
+ * await client.collections.items.getItem("collection_id", "item_id")
*/
public async getItem(
collectionId: string,
@@ -502,14 +560,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -517,6 +575,7 @@ export class Items {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CollectionItem.parseOrThrow(_response.body, {
@@ -565,6 +624,12 @@ export class Items {
/**
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.collections.ItemsDeleteItemRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -572,7 +637,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.deleteItem("collection_id", "item_id", {})
+ * await client.collections.items.deleteItem("collection_id", "item_id")
*/
public async deleteItem(
collectionId: string,
@@ -580,27 +645,23 @@ export class Items {
request: Webflow.collections.ItemsDeleteItemRequest = {},
requestOptions?: Items.RequestOptions
): Promise {
- const { cmsLocaleIds } = request;
+ const { cmsLocaleId } = request;
const _queryParams: Record = {};
- if (cmsLocaleIds != null) {
- if (Array.isArray(cmsLocaleIds)) {
- _queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
- } else {
- _queryParams["cmsLocaleIds"] = cmsLocaleIds;
- }
+ if (cmsLocaleId != null) {
+ _queryParams["cmsLocaleId"] = cmsLocaleId;
}
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -608,6 +669,7 @@ export class Items {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -650,6 +712,12 @@ export class Items {
/**
* Update a selected Item in a Collection. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.CollectionItem} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -657,7 +725,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.updateItem("collection_id", "item_id", {
+ * await client.collections.items.updateItem("collection_id", "item_id", {
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2022-11-29T16:22:43.159Z",
@@ -680,14 +748,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -695,6 +763,101 @@ export class Items {
body: await serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return await serializers.CollectionItem.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ switch (_response.error.statusCode) {
+ case 400:
+ throw new Webflow.BadRequestError(_response.error.body);
+ case 401:
+ throw new Webflow.UnauthorizedError(_response.error.body);
+ case 404:
+ throw new Webflow.NotFoundError(_response.error.body);
+ case 429:
+ throw new Webflow.TooManyRequestsError(_response.error.body);
+ case 500:
+ throw new Webflow.InternalServerError(_response.error.body);
+ default:
+ throw new errors.WebflowError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.WebflowError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.WebflowTimeoutError();
+ case "unknown":
+ throw new errors.WebflowError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ /**
+ * Get details of a selected Collection live Item. Required scope | `CMS:read`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.collections.ItemsGetItemLiveRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @throws {@link Webflow.BadRequestError}
+ * @throws {@link Webflow.UnauthorizedError}
+ * @throws {@link Webflow.NotFoundError}
+ * @throws {@link Webflow.TooManyRequestsError}
+ * @throws {@link Webflow.InternalServerError}
+ *
+ * @example
+ * await client.collections.items.getItemLive("collection_id", "item_id")
+ */
+ public async getItemLive(
+ collectionId: string,
+ itemId: string,
+ request: Webflow.collections.ItemsGetItemLiveRequest = {},
+ requestOptions?: Items.RequestOptions
+ ): Promise {
+ const { cmsLocaleId } = request;
+ const _queryParams: Record = {};
+ if (cmsLocaleId != null) {
+ _queryParams["cmsLocaleId"] = cmsLocaleId;
+ }
+
+ const _response = await core.fetcher({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`
+ ),
+ method: "GET",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "webflow-api",
+ "X-Fern-SDK-Version": "2.3.5",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ },
+ contentType: "application/json",
+ queryParameters: _queryParams,
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CollectionItem.parseOrThrow(_response.body, {
@@ -742,7 +905,13 @@ export class Items {
}
/**
- * Delete a live Item from a Collection. The Item will be unpublished from the live site. This endpoint does not currently support bulk deletion. Required scope | `CMS:write`
+ * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.collections.ItemsDeleteItemLiveRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -750,30 +919,39 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.deleteItemLive("collection_id", "item_id")
+ * await client.collections.items.deleteItemLive("collection_id", "item_id")
*/
public async deleteItemLive(
collectionId: string,
itemId: string,
+ request: Webflow.collections.ItemsDeleteItemLiveRequest = {},
requestOptions?: Items.RequestOptions
): Promise {
+ const { cmsLocaleId } = request;
+ const _queryParams: Record = {};
+ if (cmsLocaleId != null) {
+ _queryParams["cmsLocaleId"] = cmsLocaleId;
+ }
+
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}/live`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
+ queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -816,6 +994,12 @@ export class Items {
/**
* Update a selected live Item in a Collection. The updates for this Item will be published to the live site. Required scope | `CMS:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.CollectionItem} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -823,7 +1007,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.updateItemLive("collection_id", "item_id", {
+ * await client.collections.items.updateItemLive("collection_id", "item_id", {
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2022-11-29T16:22:43.159Z",
@@ -846,14 +1030,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}/live`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -861,6 +1045,7 @@ export class Items {
body: await serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CollectionItem.parseOrThrow(_response.body, {
@@ -909,6 +1094,11 @@ export class Items {
/**
* Publish an item or multiple items. Required scope | `cms:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {Webflow.collections.ItemsPublishItemRequest} request
+ * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -916,7 +1106,7 @@ export class Items {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.collections.items.publishItem("collection_id", {
+ * await client.collections.items.publishItem("collection_id", {
* itemIds: ["itemIds"]
* })
*/
@@ -928,14 +1118,14 @@ export class Items {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/publish`
+ `collections/${encodeURIComponent(collectionId)}/items/publish`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -945,6 +1135,7 @@ export class Items {
}),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -985,7 +1176,7 @@ export class Items {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
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 086daa23..5480c922 100644
--- a/src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts
+++ b/src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts
@@ -2,18 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../../../..";
+import * as Webflow from "../../../../../../index";
/**
* @example
* {
- * id: "580e64008c9a982ac9b8b754",
- * lastUpdated: "2023-03-17T18:47:35.560Z",
- * createdOn: "2023-03-17T18:47:35.560Z",
- * fieldData: {
- * name: "My new item",
- * slug: "my-new-item"
- * }
+ * id: "580e64008c9a982ac9b8b754"
* }
*/
export interface BulkCollectionItem {
diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts
new file mode 100644
index 00000000..3c487283
--- /dev/null
+++ b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.ts
@@ -0,0 +1,14 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ItemsDeleteItemLiveRequest {
+ /**
+ * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string.
+ */
+ cmsLocaleId?: string;
+}
diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts
index 4b08453f..3b38176c 100644
--- a/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts
+++ b/src/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.ts
@@ -8,7 +8,7 @@
*/
export interface ItemsDeleteItemRequest {
/**
- * Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
+ * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string.
*/
- cmsLocaleIds?: string | string[];
+ cmsLocaleId?: string;
}
diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts
new file mode 100644
index 00000000..b4db0989
--- /dev/null
+++ b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.ts
@@ -0,0 +1,14 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {}
+ */
+export interface ItemsGetItemLiveRequest {
+ /**
+ * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string.
+ */
+ cmsLocaleId?: string;
+}
diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts
index a0b02a6f..d27617fd 100644
--- a/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts
+++ b/src/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.ts
@@ -8,7 +8,7 @@
*/
export interface ItemsGetItemRequest {
/**
- * Unique identifier for a CMS Locale. These UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
+ * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string.
*/
cmsLocaleId?: string;
}
diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts
index 22dea6aa..08127115 100644
--- a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts
+++ b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.ts
@@ -2,15 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
+import * as Webflow from "../../../../../../index";
+
/**
* @example
* {}
*/
export interface ItemsListItemsLiveRequest {
/**
- * Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
+ * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string.
*/
- cmsLocaleIds?: string | string[];
+ cmsLocaleId?: string;
/**
* Offset used for pagination if the results have more than limit records
*/
@@ -19,4 +21,20 @@ export interface ItemsListItemsLiveRequest {
* Maximum number of records to be returned (max limit: 100)
*/
limit?: number;
+ /**
+ * The name of the item(s)
+ */
+ name?: string;
+ /**
+ * The slug of the item
+ */
+ slug?: string;
+ /**
+ * Sort results by the provided value
+ */
+ sortBy?: Webflow.collections.ItemsListItemsLiveRequestSortBy;
+ /**
+ * Sorts the results by asc or desc
+ */
+ sortOrder?: Webflow.collections.ItemsListItemsLiveRequestSortOrder;
}
diff --git a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts
index fc577c78..c4f1a1f0 100644
--- a/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts
+++ b/src/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.ts
@@ -2,15 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
+import * as Webflow from "../../../../../../index";
+
/**
* @example
* {}
*/
export interface ItemsListItemsRequest {
/**
- * Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as `cmsLocaleId` in the Sites response. Applicable when using localization.
+ * Unique identifier for a CMS Locale. This UID is different from the Site locale identifier and is listed as `cmsLocaleId` in the Sites response. To query multiple locales, input a comma separated string.
*/
- cmsLocaleIds?: string | string[];
+ cmsLocaleId?: string;
/**
* Offset used for pagination if the results have more than limit records
*/
@@ -19,4 +21,20 @@ export interface ItemsListItemsRequest {
* Maximum number of records to be returned (max limit: 100)
*/
limit?: number;
+ /**
+ * The name of the item(s)
+ */
+ name?: string;
+ /**
+ * The slug of the item
+ */
+ slug?: string;
+ /**
+ * Sort results by the provided value
+ */
+ sortBy?: Webflow.collections.ItemsListItemsRequestSortBy;
+ /**
+ * Sorts the results by asc or desc
+ */
+ sortOrder?: Webflow.collections.ItemsListItemsRequestSortOrder;
}
diff --git a/src/api/resources/collections/resources/items/client/requests/index.ts b/src/api/resources/collections/resources/items/client/requests/index.ts
index 20287e3c..66c715e2 100644
--- a/src/api/resources/collections/resources/items/client/requests/index.ts
+++ b/src/api/resources/collections/resources/items/client/requests/index.ts
@@ -1,6 +1,8 @@
-export { ItemsListItemsRequest } from "./ItemsListItemsRequest";
-export { ItemsListItemsLiveRequest } from "./ItemsListItemsLiveRequest";
-export { BulkCollectionItem } from "./BulkCollectionItem";
-export { ItemsGetItemRequest } from "./ItemsGetItemRequest";
-export { ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
-export { ItemsPublishItemRequest } from "./ItemsPublishItemRequest";
+export { type ItemsListItemsRequest } from "./ItemsListItemsRequest";
+export { type ItemsListItemsLiveRequest } from "./ItemsListItemsLiveRequest";
+export { type BulkCollectionItem } from "./BulkCollectionItem";
+export { type ItemsGetItemRequest } from "./ItemsGetItemRequest";
+export { type ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
+export { type ItemsGetItemLiveRequest } from "./ItemsGetItemLiveRequest";
+export { type ItemsDeleteItemLiveRequest } from "./ItemsDeleteItemLiveRequest";
+export { type ItemsPublishItemRequest } from "./ItemsPublishItemRequest";
diff --git a/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts b/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts
new file mode 100644
index 00000000..e87c89eb
--- /dev/null
+++ b/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts
@@ -0,0 +1,11 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type ItemsListItemsLiveRequestSortBy = "lastPublished" | "name" | "slug";
+
+export const ItemsListItemsLiveRequestSortBy = {
+ LastPublished: "lastPublished",
+ Name: "name",
+ Slug: "slug",
+} as const;
diff --git a/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts b/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts
new file mode 100644
index 00000000..1ea9203a
--- /dev/null
+++ b/src/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type ItemsListItemsLiveRequestSortOrder = "asc" | "desc";
+
+export const ItemsListItemsLiveRequestSortOrder = {
+ Asc: "asc",
+ Desc: "desc",
+} as const;
diff --git a/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts b/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts
new file mode 100644
index 00000000..1d5bcc6d
--- /dev/null
+++ b/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts
@@ -0,0 +1,11 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type ItemsListItemsRequestSortBy = "lastPublished" | "name" | "slug";
+
+export const ItemsListItemsRequestSortBy = {
+ LastPublished: "lastPublished",
+ Name: "name",
+ Slug: "slug",
+} as const;
diff --git a/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts b/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts
new file mode 100644
index 00000000..08a27bf5
--- /dev/null
+++ b/src/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts
@@ -0,0 +1,10 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type ItemsListItemsRequestSortOrder = "asc" | "desc";
+
+export const ItemsListItemsRequestSortOrder = {
+ Asc: "asc",
+ Desc: "desc",
+} as const;
diff --git a/src/api/resources/collections/resources/items/types/index.ts b/src/api/resources/collections/resources/items/types/index.ts
index 3a61bf70..dcde450b 100644
--- a/src/api/resources/collections/resources/items/types/index.ts
+++ b/src/api/resources/collections/resources/items/types/index.ts
@@ -1 +1,5 @@
+export * from "./ItemsListItemsRequestSortBy";
+export * from "./ItemsListItemsRequestSortOrder";
+export * from "./ItemsListItemsLiveRequestSortBy";
+export * from "./ItemsListItemsLiveRequestSortOrder";
export * from "./BulkCollectionItemFieldData";
diff --git a/src/api/resources/ecommerce/client/Client.ts b/src/api/resources/ecommerce/client/Client.ts
index 7d794898..4ce73086 100644
--- a/src/api/resources/ecommerce/client/Client.ts
+++ b/src/api/resources/ecommerce/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Ecommerce {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Ecommerce {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -28,6 +32,10 @@ export class Ecommerce {
* Retrieve ecommerce settings for a site.
*
* Required scope | `ecommerce:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Ecommerce.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -37,7 +45,7 @@ export class Ecommerce {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.ecommerce.getSettings("site_id")
+ * await client.ecommerce.getSettings("site_id")
*/
public async getSettings(
siteId: string,
@@ -46,20 +54,21 @@ export class Ecommerce {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/ecommerce/settings`
+ `sites/${encodeURIComponent(siteId)}/ecommerce/settings`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.EcommerceSettings.parseOrThrow(_response.body, {
@@ -110,7 +119,7 @@ export class Ecommerce {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/forms/client/Client.ts b/src/api/resources/forms/client/Client.ts
index 9e54fbbe..90cf065e 100644
--- a/src/api/resources/forms/client/Client.ts
+++ b/src/api/resources/forms/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Forms {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Forms {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,11 @@ export class Forms {
/**
* List forms for a given site Required scope | `forms:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.FormsListRequest} request
+ * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -35,7 +44,7 @@ export class Forms {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.forms.list("site_id", {})
+ * await client.forms.list("site_id")
*/
public async list(
siteId: string,
@@ -55,14 +64,14 @@ export class Forms {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/forms`
+ `sites/${encodeURIComponent(siteId)}/forms`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -70,6 +79,7 @@ export class Forms {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.FormList.parseOrThrow(_response.body, {
@@ -122,6 +132,10 @@ export class Forms {
/**
* Get information about a given form Required scope | `forms:read`
+ *
+ * @param {string} formId - Unique identifier for a Form
+ * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -130,26 +144,27 @@ export class Forms {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.forms.get("form_id")
+ * await client.forms.get("form_id")
*/
public async get(formId: string, requestOptions?: Forms.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `forms/${formId}`
+ `forms/${encodeURIComponent(formId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Form.parseOrThrow(_response.body, {
@@ -200,6 +215,10 @@ export class Forms {
/**
* List form submissions for a given form Required scope | `forms:read`
+ *
+ * @param {string} formId - Unique identifier for a Form
+ * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -208,7 +227,7 @@ export class Forms {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.forms.listSubmissions("form_id")
+ * await client.forms.listSubmissions("form_id")
*/
public async listSubmissions(
formId: string,
@@ -217,20 +236,21 @@ export class Forms {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `forms/${formId}/submissions`
+ `forms/${encodeURIComponent(formId)}/submissions`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.FormSubmissionList.parseOrThrow(_response.body, {
@@ -281,6 +301,10 @@ export class Forms {
/**
* Get information about a given form submission Required scope | `forms:read`
+ *
+ * @param {string} formSubmissionId - Unique identifier for a Form Submission
+ * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -289,7 +313,7 @@ export class Forms {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.forms.getSubmission("form_submission_id")
+ * await client.forms.getSubmission("form_submission_id")
*/
public async getSubmission(
formSubmissionId: string,
@@ -298,20 +322,21 @@ export class Forms {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `form_submissions/${formSubmissionId}`
+ `form_submissions/${encodeURIComponent(formSubmissionId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.FormSubmission.parseOrThrow(_response.body, {
@@ -362,6 +387,11 @@ export class Forms {
/**
* Update hidden fields on a form submission Required scope | `forms:write`
+ *
+ * @param {string} formSubmissionId - Unique identifier for a Form Submission
+ * @param {Webflow.FormsUpdateSubmissionRequest} request
+ * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -371,7 +401,7 @@ export class Forms {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.forms.updateSubmission("form_submission_id", {})
+ * await client.forms.updateSubmission("form_submission_id")
*/
public async updateSubmission(
formSubmissionId: string,
@@ -381,14 +411,14 @@ export class Forms {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `form_submissions/${formSubmissionId}`
+ `form_submissions/${encodeURIComponent(formSubmissionId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -398,6 +428,7 @@ export class Forms {
}),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.FormSubmission.parseOrThrow(_response.body, {
@@ -448,7 +479,7 @@ export class Forms {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/forms/client/requests/index.ts b/src/api/resources/forms/client/requests/index.ts
index 91f74566..fb48db20 100644
--- a/src/api/resources/forms/client/requests/index.ts
+++ b/src/api/resources/forms/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { FormsListRequest } from "./FormsListRequest";
-export { FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest";
+export { type FormsListRequest } from "./FormsListRequest";
+export { type FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest";
diff --git a/src/api/resources/inventory/client/Client.ts b/src/api/resources/inventory/client/Client.ts
index 35bbae2b..8cf247db 100644
--- a/src/api/resources/inventory/client/Client.ts
+++ b/src/api/resources/inventory/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Inventory {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Inventory {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -28,6 +32,11 @@ export class Inventory {
* List the current inventory levels for a particular SKU item.
*
* Required scope | `ecommerce:read`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -37,7 +46,7 @@ export class Inventory {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.inventory.list("collection_id", "item_id")
+ * await client.inventory.list("collection_id", "item_id")
*/
public async list(
collectionId: string,
@@ -47,20 +56,21 @@ export class Inventory {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}/inventory`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.InventoryItem.parseOrThrow(_response.body, {
@@ -115,6 +125,12 @@ export class Inventory {
* Updates the current inventory levels for a particular SKU item. Updates may be given in one or two methods, absolutely or incrementally. Absolute updates are done by setting `quantity` directly. Incremental updates are by specifying the inventory delta in `updateQuantity` which is then added to the `quantity` stored on the server.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} collectionId - Unique identifier for a Collection
+ * @param {string} itemId - Unique identifier for an Item
+ * @param {Webflow.InventoryUpdateRequest} request
+ * @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -124,10 +140,8 @@ export class Inventory {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.inventory.update("collection_id", "item_id", {
- * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite,
- * updateQuantity: 1,
- * quantity: 100
+ * await client.inventory.update("collection_id", "item_id", {
+ * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
* })
*/
public async update(
@@ -139,14 +153,14 @@ export class Inventory {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `collections/${collectionId}/items/${itemId}/inventory`
+ `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -154,6 +168,7 @@ export class Inventory {
body: await serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.InventoryItem.parseOrThrow(_response.body, {
@@ -204,7 +219,7 @@ export class Inventory {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/inventory/client/requests/InventoryUpdateRequest.ts b/src/api/resources/inventory/client/requests/InventoryUpdateRequest.ts
index b466d5ec..daf3bd69 100644
--- a/src/api/resources/inventory/client/requests/InventoryUpdateRequest.ts
+++ b/src/api/resources/inventory/client/requests/InventoryUpdateRequest.ts
@@ -2,14 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
* {
- * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite,
- * updateQuantity: 1,
- * quantity: 100
+ * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
* }
*/
export interface InventoryUpdateRequest {
diff --git a/src/api/resources/inventory/client/requests/index.ts b/src/api/resources/inventory/client/requests/index.ts
index db74c38a..3ec833cc 100644
--- a/src/api/resources/inventory/client/requests/index.ts
+++ b/src/api/resources/inventory/client/requests/index.ts
@@ -1 +1 @@
-export { InventoryUpdateRequest } from "./InventoryUpdateRequest";
+export { type InventoryUpdateRequest } from "./InventoryUpdateRequest";
diff --git a/src/api/resources/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts
index aa0f951d..2e83074d 100644
--- a/src/api/resources/orders/client/Client.ts
+++ b/src/api/resources/orders/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Orders {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Orders {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -28,6 +32,11 @@ export class Orders {
* List all orders created for a given site.
*
* Required scope | `ecommerce:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.OrdersListRequest} request
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -37,7 +46,7 @@ export class Orders {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.orders.list("site_id", {})
+ * await client.orders.list("site_id")
*/
public async list(
siteId: string,
@@ -61,14 +70,14 @@ export class Orders {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/orders`
+ `sites/${encodeURIComponent(siteId)}/orders`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -76,6 +85,7 @@ export class Orders {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.OrderList.parseOrThrow(_response.body, {
@@ -130,6 +140,11 @@ export class Orders {
* Retrieve a single product by its id. All of its SKUs will also be retrieved.
*
* Required scope | `ecommerce:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} orderId - Unique identifier for an Order
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -139,26 +154,27 @@ export class Orders {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.orders.get("site_id", "order_id")
+ * await client.orders.get("site_id", "order_id")
*/
public async get(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/orders/${orderId}`
+ `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Order.parseOrThrow(_response.body, {
@@ -213,6 +229,12 @@ export class Orders {
* This API lets you update the fields, `comment`, `shippingProvider`, and/or `shippingTracking` for a given order. All three fields can be updated simultaneously or independently.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} orderId - Unique identifier for an Order
+ * @param {Webflow.OrdersUpdateRequest} request
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -222,12 +244,7 @@ export class Orders {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.orders.update("site_id", "order_id", {
- * comment: "Example comment to myself",
- * shippingProvider: "Shipping Company, Co.",
- * shippingTracking: "tr00000000001",
- * shippingTrackingUrl: "https://www.shippingcompany.com/tracking/tr00000000001"
- * })
+ * await client.orders.update("site_id", "order_id")
*/
public async update(
siteId: string,
@@ -238,14 +255,14 @@ export class Orders {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/orders/${orderId}`
+ `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -253,6 +270,7 @@ export class Orders {
body: await serializers.OrdersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Order.parseOrThrow(_response.body, {
@@ -307,6 +325,12 @@ export class Orders {
* Updates an order's status to fulfilled
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} orderId - Unique identifier for an Order
+ * @param {Webflow.OrdersUpdateFulfillRequest} request
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -316,7 +340,7 @@ export class Orders {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.orders.updateFulfill("site_id", "order_id", {})
+ * await client.orders.updateFulfill("site_id", "order_id")
*/
public async updateFulfill(
siteId: string,
@@ -327,14 +351,14 @@ export class Orders {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/orders/${orderId}/fulfill`
+ `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/fulfill`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -344,6 +368,7 @@ export class Orders {
}),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Order.parseOrThrow(_response.body, {
@@ -398,6 +423,11 @@ export class Orders {
* Updates an order's status to unfulfilled
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} orderId - Unique identifier for an Order
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -407,7 +437,7 @@ export class Orders {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.orders.updateUnfulfill("site_id", "order_id")
+ * await client.orders.updateUnfulfill("site_id", "order_id")
*/
public async updateUnfulfill(
siteId: string,
@@ -417,20 +447,21 @@ export class Orders {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/orders/${orderId}/unfulfill`
+ `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/unfulfill`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Order.parseOrThrow(_response.body, {
@@ -486,6 +517,12 @@ export class Orders {
* customer. It will also set the order's status to `refunded`.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} orderId - Unique identifier for an Order
+ * @param {Webflow.OrdersRefundRequest} request
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -495,7 +532,7 @@ export class Orders {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.orders.refund("site_id", "order_id", {})
+ * await client.orders.refund("site_id", "order_id")
*/
public async refund(
siteId: string,
@@ -506,14 +543,14 @@ export class Orders {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/orders/${orderId}/refund`
+ `sites/${encodeURIComponent(siteId)}/orders/${encodeURIComponent(orderId)}/refund`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -521,6 +558,7 @@ export class Orders {
body: await serializers.OrdersRefundRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Order.parseOrThrow(_response.body, {
@@ -571,7 +609,7 @@ export class Orders {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/orders/client/requests/OrdersListRequest.ts b/src/api/resources/orders/client/requests/OrdersListRequest.ts
index b3b5ba58..6282942d 100644
--- a/src/api/resources/orders/client/requests/OrdersListRequest.ts
+++ b/src/api/resources/orders/client/requests/OrdersListRequest.ts
@@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
+import * as Webflow from "../../../../index";
+
/**
* @example
* {}
@@ -10,7 +12,7 @@ export interface OrdersListRequest {
/**
* Filter the orders by status
*/
- status?: string;
+ status?: Webflow.OrdersListRequestStatus;
/**
* Offset used for pagination if the results have more than limit records
*/
diff --git a/src/api/resources/orders/client/requests/OrdersRefundRequest.ts b/src/api/resources/orders/client/requests/OrdersRefundRequest.ts
index 50f13038..68d1b5ac 100644
--- a/src/api/resources/orders/client/requests/OrdersRefundRequest.ts
+++ b/src/api/resources/orders/client/requests/OrdersRefundRequest.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
diff --git a/src/api/resources/orders/client/requests/OrdersUpdateRequest.ts b/src/api/resources/orders/client/requests/OrdersUpdateRequest.ts
index 93592346..fea7c2b3 100644
--- a/src/api/resources/orders/client/requests/OrdersUpdateRequest.ts
+++ b/src/api/resources/orders/client/requests/OrdersUpdateRequest.ts
@@ -4,12 +4,7 @@
/**
* @example
- * {
- * comment: "Example comment to myself",
- * shippingProvider: "Shipping Company, Co.",
- * shippingTracking: "tr00000000001",
- * shippingTrackingUrl: "https://www.shippingcompany.com/tracking/tr00000000001"
- * }
+ * {}
*/
export interface OrdersUpdateRequest {
/** Arbitrary data for your records */
diff --git a/src/api/resources/orders/client/requests/index.ts b/src/api/resources/orders/client/requests/index.ts
index 231ec900..f9f70048 100644
--- a/src/api/resources/orders/client/requests/index.ts
+++ b/src/api/resources/orders/client/requests/index.ts
@@ -1,4 +1,4 @@
-export { OrdersListRequest } from "./OrdersListRequest";
-export { OrdersUpdateRequest } from "./OrdersUpdateRequest";
-export { OrdersUpdateFulfillRequest } from "./OrdersUpdateFulfillRequest";
-export { OrdersRefundRequest } from "./OrdersRefundRequest";
+export { type OrdersListRequest } from "./OrdersListRequest";
+export { type OrdersUpdateRequest } from "./OrdersUpdateRequest";
+export { type OrdersUpdateFulfillRequest } from "./OrdersUpdateFulfillRequest";
+export { type OrdersRefundRequest } from "./OrdersRefundRequest";
diff --git a/src/api/resources/orders/types/OrdersListRequestStatus.ts b/src/api/resources/orders/types/OrdersListRequestStatus.ts
new file mode 100644
index 00000000..fd41c99d
--- /dev/null
+++ b/src/api/resources/orders/types/OrdersListRequestStatus.ts
@@ -0,0 +1,20 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export type OrdersListRequestStatus =
+ | "pending"
+ | "refunded"
+ | "dispute-lost"
+ | "fulfilled"
+ | "disputed"
+ | "unfulfilled";
+
+export const OrdersListRequestStatus = {
+ Pending: "pending",
+ Refunded: "refunded",
+ DisputeLost: "dispute-lost",
+ Fulfilled: "fulfilled",
+ Disputed: "disputed",
+ Unfulfilled: "unfulfilled",
+} as const;
diff --git a/src/api/resources/orders/types/index.ts b/src/api/resources/orders/types/index.ts
index ba7e0574..59a55534 100644
--- a/src/api/resources/orders/types/index.ts
+++ b/src/api/resources/orders/types/index.ts
@@ -1 +1,2 @@
+export * from "./OrdersListRequestStatus";
export * from "./OrdersRefundRequestReason";
diff --git a/src/api/resources/pages/client/Client.ts b/src/api/resources/pages/client/Client.ts
index 41a515cc..5e2be08b 100644
--- a/src/api/resources/pages/client/Client.ts
+++ b/src/api/resources/pages/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
import { Scripts } from "../resources/scripts/client/Client";
export declare namespace Pages {
@@ -17,8 +17,12 @@ export declare namespace Pages {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -27,6 +31,11 @@ export class Pages {
/**
* List of all pages for a site Required scope | `pages:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.PagesListRequest} request
+ * @param {Pages.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -34,7 +43,7 @@ export class Pages {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.list("site_id", {})
+ * await client.pages.list("site_id")
*/
public async list(
siteId: string,
@@ -58,14 +67,14 @@ export class Pages {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/pages`
+ `sites/${encodeURIComponent(siteId)}/pages`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -73,6 +82,7 @@ export class Pages {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.PageList.parseOrThrow(_response.body, {
@@ -121,6 +131,11 @@ export class Pages {
/**
* Get metadata information for a single page Required scope | `pages:read`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Webflow.PagesGetMetadataRequest} request
+ * @param {Pages.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -128,13 +143,13 @@ export class Pages {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.getMetadata("page_id", {})
+ * await client.pages.getMetadata("page_id")
*/
public async getMetadata(
pageId: string,
request: Webflow.PagesGetMetadataRequest = {},
requestOptions?: Pages.RequestOptions
- ): Promise {
+ ): Promise {
const { locale } = request;
const _queryParams: Record = {};
if (locale != null) {
@@ -144,14 +159,14 @@ export class Pages {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}`
+ `pages/${encodeURIComponent(pageId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -159,9 +174,10 @@ export class Pages {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
- return await serializers.Page.parseOrThrow(_response.body, {
+ return await serializers.PageDetails.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
@@ -207,6 +223,11 @@ export class Pages {
/**
* Update Page-level metadata, including SEO and Open Graph fields. Required scope | `pages:write`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Webflow.UpdatePageSettingsRequest} request
+ * @param {Pages.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -214,7 +235,7 @@ export class Pages {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.updatePageSettings("page_id", {
+ * await client.pages.updatePageSettings("page_id", {
* body: {
* id: "6596da6045e56dee495bcbba",
* siteId: "6258612d1ee792848f805dcf",
@@ -227,7 +248,6 @@ export class Pages {
* archived: false,
* draft: false,
* canBranch: true,
- * isMembersOnly: false,
* seo: {
* 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."
@@ -245,7 +265,7 @@ export class Pages {
pageId: string,
request: Webflow.UpdatePageSettingsRequest,
requestOptions?: Pages.RequestOptions
- ): Promise {
+ ): Promise {
const { locale, body: _body } = request;
const _queryParams: Record = {};
if (locale != null) {
@@ -255,14 +275,14 @@ export class Pages {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}`
+ `pages/${encodeURIComponent(pageId)}`
),
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -271,9 +291,10 @@ export class Pages {
body: await serializers.Page.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
- return await serializers.Page.parseOrThrow(_response.body, {
+ return await serializers.PageDetails.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
@@ -319,6 +340,11 @@ export class Pages {
/**
* Get static content from a static page. If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale Required scope | `pages:read`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Webflow.PagesGetContentRequest} request
+ * @param {Pages.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -327,30 +353,38 @@ export class Pages {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.getContent("page_id", {})
+ * await client.pages.getContent("page_id")
*/
public async getContent(
pageId: string,
request: Webflow.PagesGetContentRequest = {},
requestOptions?: Pages.RequestOptions
): Promise {
- const { locale } = request;
+ const { locale, limit, offset } = request;
const _queryParams: Record = {};
if (locale != null) {
_queryParams["locale"] = locale;
}
+ if (limit != null) {
+ _queryParams["limit"] = limit.toString();
+ }
+
+ if (offset != null) {
+ _queryParams["offset"] = offset.toString();
+ }
+
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}/dom`
+ `pages/${encodeURIComponent(pageId)}/dom`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -358,6 +392,7 @@ export class Pages {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Dom.parseOrThrow(_response.body, {
@@ -408,6 +443,11 @@ export class Pages {
/**
* Update static content on a static page. This endpoint supports sending 1000 nodes per request. Required scope | `pages:write`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Webflow.DomWrite} request
+ * @param {Pages.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -416,7 +456,7 @@ export class Pages {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.updateStaticContent("page_id", {
+ * await client.pages.updateStaticContent("page_id", {
* locale: "locale",
* nodes: [{
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
@@ -427,9 +467,6 @@ export class Pages {
* }, {
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629",
* text: " "
- * }, {
- * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
- * text: "Hello world "
* }]
* })
*/
@@ -444,14 +481,14 @@ export class Pages {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}/dom`
+ `pages/${encodeURIComponent(pageId)}/dom`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -460,6 +497,7 @@ export class Pages {
body: await serializers.DomWrite.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.UpdateStaticContentResponse.parseOrThrow(_response.body, {
@@ -514,7 +552,7 @@ export class Pages {
return (this._scripts ??= new Scripts(this._options));
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/pages/client/requests/DomWrite.ts b/src/api/resources/pages/client/requests/DomWrite.ts
index 0a5861fd..ce43919e 100644
--- a/src/api/resources/pages/client/requests/DomWrite.ts
+++ b/src/api/resources/pages/client/requests/DomWrite.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
@@ -17,9 +17,6 @@ import * as Webflow from "../../../..";
* }, {
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629",
* text: " "
- * }, {
- * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
- * text: "Hello world "
* }]
* }
*/
diff --git a/src/api/resources/pages/client/requests/PagesGetContentRequest.ts b/src/api/resources/pages/client/requests/PagesGetContentRequest.ts
index 850ddd2d..e535566d 100644
--- a/src/api/resources/pages/client/requests/PagesGetContentRequest.ts
+++ b/src/api/resources/pages/client/requests/PagesGetContentRequest.ts
@@ -11,4 +11,12 @@ export interface PagesGetContentRequest {
* Unique identifier for a specific locale. Applicable, when using localization.
*/
locale?: string;
+ /**
+ * Maximum number of records to be returned (max limit: 100)
+ */
+ limit?: number;
+ /**
+ * Offset used for pagination if the results have more than limit records
+ */
+ offset?: number;
}
diff --git a/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts b/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts
index a0ceab5b..e346b771 100644
--- a/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts
+++ b/src/api/resources/pages/client/requests/UpdatePageSettingsRequest.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
@@ -19,7 +19,6 @@ import * as Webflow from "../../../..";
* archived: false,
* draft: false,
* canBranch: true,
- * isMembersOnly: false,
* seo: {
* 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."
diff --git a/src/api/resources/pages/client/requests/index.ts b/src/api/resources/pages/client/requests/index.ts
index 08a645cd..f979def7 100644
--- a/src/api/resources/pages/client/requests/index.ts
+++ b/src/api/resources/pages/client/requests/index.ts
@@ -1,5 +1,5 @@
-export { PagesListRequest } from "./PagesListRequest";
-export { PagesGetMetadataRequest } from "./PagesGetMetadataRequest";
-export { UpdatePageSettingsRequest } from "./UpdatePageSettingsRequest";
-export { PagesGetContentRequest } from "./PagesGetContentRequest";
-export { DomWrite } from "./DomWrite";
+export { type PagesListRequest } from "./PagesListRequest";
+export { type PagesGetMetadataRequest } from "./PagesGetMetadataRequest";
+export { type UpdatePageSettingsRequest } from "./UpdatePageSettingsRequest";
+export { type PagesGetContentRequest } from "./PagesGetContentRequest";
+export { type DomWrite } from "./DomWrite";
diff --git a/src/api/resources/pages/resources/scripts/client/Client.ts b/src/api/resources/pages/resources/scripts/client/Client.ts
index e5e295ec..382afc12 100644
--- a/src/api/resources/pages/resources/scripts/client/Client.ts
+++ b/src/api/resources/pages/resources/scripts/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
-import * as Webflow from "../../../../..";
+import * as Webflow from "../../../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../../../serialization";
-import * as errors from "../../../../../../errors";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
export declare namespace Scripts {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Scripts {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -25,7 +29,11 @@ export class Scripts {
constructor(protected readonly _options: Scripts.Options) {}
/**
- * Get all registered scripts that have been applied to a specific Page. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
+ * Get all registered scripts that have been applied to a specific Page. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:read`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,7 +41,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.scripts.getCustomCode("page_id")
+ * await client.pages.scripts.getCustomCode("page_id")
*/
public async getCustomCode(
pageId: string,
@@ -42,20 +50,21 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}/custom_code`
+ `pages/${encodeURIComponent(pageId)}/custom_code`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ScriptApplyList.parseOrThrow(_response.body, {
@@ -103,7 +112,12 @@ export class Scripts {
}
/**
- * Add a registered script to a Page. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
+ * Add a registered script to a Page. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:write`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Webflow.ScriptApplyList} request
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -111,7 +125,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.scripts.upsertCustomCode("page_id", {
+ * await client.pages.scripts.upsertCustomCode("page_id", {
* scripts: [{
* id: "cms_slider",
* location: Webflow.ScriptApplyLocation.Header,
@@ -123,10 +137,6 @@ export class Scripts {
* id: "alert",
* location: Webflow.ScriptApplyLocation.Header,
* version: "0.0.1"
- * }, {
- * id: "id",
- * location: Webflow.ScriptApplyLocation.Header,
- * version: "version"
* }]
* })
*/
@@ -138,14 +148,14 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}/custom_code`
+ `pages/${encodeURIComponent(pageId)}/custom_code`
),
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -153,6 +163,7 @@ export class Scripts {
body: await serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ScriptApplyList.parseOrThrow(_response.body, {
@@ -200,7 +211,11 @@ export class Scripts {
}
/**
- * Delete the custom code block that an app has created for a page In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
+ * Delete the custom code block that an app has created for a page In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:write`
+ *
+ * @param {string} pageId - Unique identifier for a Page
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -208,26 +223,27 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.pages.scripts.deleteCustomCode("page_id")
+ * await client.pages.scripts.deleteCustomCode("page_id")
*/
public async deleteCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `pages/${pageId}/custom_code`
+ `pages/${encodeURIComponent(pageId)}/custom_code`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -268,7 +284,7 @@ export class Scripts {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/products/client/Client.ts b/src/api/resources/products/client/Client.ts
index 25375c69..c2e0b7b5 100644
--- a/src/api/resources/products/client/Client.ts
+++ b/src/api/resources/products/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Products {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Products {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -28,6 +32,11 @@ export class Products {
* Retrieve all products for a site. Use `limit` and `offset` to page through all products with subsequent requests. All SKUs for each product will also be fetched and returned. The `limit`, `offset` and `total` values represent Products only and do not include any SKUs.
*
* Required scope | `ecommerce:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.ProductsListRequest} request
+ * @param {Products.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -37,7 +46,7 @@ export class Products {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.products.list("site_id", {})
+ * await client.products.list("site_id")
*/
public async list(
siteId: string,
@@ -57,14 +66,14 @@ export class Products {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/products`
+ `sites/${encodeURIComponent(siteId)}/products`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -72,6 +81,7 @@ export class Products {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ProductAndSkUsList.parseOrThrow(_response.body, {
@@ -132,6 +142,11 @@ export class Products {
* Upon creation, the default product type will be `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.ProductSkuCreate} request
+ * @param {Products.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -141,32 +156,7 @@ export class Products {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * 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"
- * }]
- * }]
- * }
- * }
- * })
+ * await client.products.create("site_id")
*/
public async create(
siteId: string,
@@ -176,14 +166,14 @@ export class Products {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/products`
+ `sites/${encodeURIComponent(siteId)}/products`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -191,6 +181,7 @@ export class Products {
body: await serializers.ProductSkuCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ProductAndSkUs.parseOrThrow(_response.body, {
@@ -245,6 +236,11 @@ export class Products {
* Retrieve a single product by its id. All of its SKUs will also be retrieved.
*
* Required scope | `ecommerce:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} productId - Unique identifier for a Product
+ * @param {Products.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -254,7 +250,7 @@ export class Products {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.products.get("site_id", "product_id")
+ * await client.products.get("site_id", "product_id")
*/
public async get(
siteId: string,
@@ -264,20 +260,21 @@ export class Products {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/products/${productId}`
+ `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ProductAndSkUs.parseOrThrow(_response.body, {
@@ -332,6 +329,12 @@ export class Products {
* Updating an existing Product will set the product type to `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} productId - Unique identifier for a Product
+ * @param {Webflow.ProductSkuUpdate} request
+ * @param {Products.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -341,32 +344,7 @@ export class Products {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.products.update("site_id", "product_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"
- * }]
- * }]
- * }
- * }
- * })
+ * await client.products.update("site_id", "product_id")
*/
public async update(
siteId: string,
@@ -377,14 +355,14 @@ export class Products {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/products/${productId}`
+ `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -392,6 +370,7 @@ export class Products {
body: await serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Product.parseOrThrow(_response.body, {
@@ -448,6 +427,12 @@ export class Products {
* Creating additional SKUs will set the product type to `Advanced` for the product associated with the SKUs. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} productId - Unique identifier for a Product
+ * @param {Webflow.ProductsCreateSkuRequest} request
+ * @param {Products.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -457,23 +442,8 @@ export class Products {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * 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"),
- * fieldData: {
- * name: "Blue T-shirt",
- * slug: "t-shirt-blue",
- * price: {
- * value: 100,
- * unit: "USD"
- * },
- * quantity: 10
- * }
- * }]
+ * await client.products.createSku("site_id", "product_id", {
+ * skus: [{}]
* })
*/
public async createSku(
@@ -485,14 +455,14 @@ export class Products {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/products/${productId}/skus`
+ `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}/skus`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -500,6 +470,7 @@ export class Products {
body: await serializers.ProductsCreateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ProductsCreateSkuResponse.parseOrThrow(_response.body, {
@@ -554,6 +525,13 @@ export class Products {
* Updating an existing SKU will set the product type to `Advanced` for the product associated with the SKU. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
*
* Required scope | `ecommerce:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} productId - Unique identifier for a Product
+ * @param {string} skuId - Unique identifier for a SKU
+ * @param {Webflow.ProductsUpdateSkuRequest} request
+ * @param {Products.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -563,23 +541,8 @@ export class Products {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * 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"),
- * fieldData: {
- * name: "Blue T-shirt",
- * slug: "t-shirt-blue",
- * price: {
- * value: 100,
- * unit: "USD"
- * },
- * quantity: 10
- * }
- * }
+ * await client.products.updateSku("site_id", "product_id", "sku_id", {
+ * sku: {}
* })
*/
public async updateSku(
@@ -592,14 +555,16 @@ export class Products {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/products/${productId}/skus/${skuId}`
+ `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(
+ productId
+ )}/skus/${encodeURIComponent(skuId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -607,6 +572,7 @@ export class Products {
body: await serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Sku.parseOrThrow(_response.body, {
@@ -657,7 +623,7 @@ export class Products {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/products/client/requests/ProductSkuCreate.ts b/src/api/resources/products/client/requests/ProductSkuCreate.ts
index cff0b358..f5eeb9a9 100644
--- a/src/api/resources/products/client/requests/ProductSkuCreate.ts
+++ b/src/api/resources/products/client/requests/ProductSkuCreate.ts
@@ -2,36 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @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;
diff --git a/src/api/resources/products/client/requests/ProductSkuUpdate.ts b/src/api/resources/products/client/requests/ProductSkuUpdate.ts
index da876662..76e3f601 100644
--- a/src/api/resources/products/client/requests/ProductSkuUpdate.ts
+++ b/src/api/resources/products/client/requests/ProductSkuUpdate.ts
@@ -2,36 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @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;
diff --git a/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts b/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts
index f8a5c929..6d2e7fd0 100644
--- a/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts
+++ b/src/api/resources/products/client/requests/ProductsCreateSkuRequest.ts
@@ -2,27 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
* {
- * 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"),
- * fieldData: {
- * name: "Blue T-shirt",
- * slug: "t-shirt-blue",
- * price: {
- * value: 100,
- * unit: "USD"
- * },
- * quantity: 10
- * }
- * }]
+ * skus: [{}]
* }
*/
export interface ProductsCreateSkuRequest {
diff --git a/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts b/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts
index 27b2fcad..9f79e47a 100644
--- a/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts
+++ b/src/api/resources/products/client/requests/ProductsUpdateSkuRequest.ts
@@ -2,27 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
* {
- * 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"),
- * fieldData: {
- * name: "Blue T-shirt",
- * slug: "t-shirt-blue",
- * price: {
- * value: 100,
- * unit: "USD"
- * },
- * quantity: 10
- * }
- * }
+ * sku: {}
* }
*/
export interface ProductsUpdateSkuRequest {
diff --git a/src/api/resources/products/client/requests/index.ts b/src/api/resources/products/client/requests/index.ts
index 6d13154b..4d8035a5 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 { ProductSkuUpdate } from "./ProductSkuUpdate";
-export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest";
-export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest";
+export { type ProductsListRequest } from "./ProductsListRequest";
+export { type ProductSkuCreate } from "./ProductSkuCreate";
+export { type ProductSkuUpdate } from "./ProductSkuUpdate";
+export { type ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest";
+export { type ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest";
diff --git a/src/api/resources/products/types/ProductsCreateSkuResponse.ts b/src/api/resources/products/types/ProductsCreateSkuResponse.ts
index 8c87dde2..0f1f0c50 100644
--- a/src/api/resources/products/types/ProductsCreateSkuResponse.ts
+++ b/src/api/resources/products/types/ProductsCreateSkuResponse.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
export interface ProductsCreateSkuResponse {
skus?: Webflow.Sku[];
diff --git a/src/api/resources/scripts/client/Client.ts b/src/api/resources/scripts/client/Client.ts
index 108138d4..85449735 100644
--- a/src/api/resources/scripts/client/Client.ts
+++ b/src/api/resources/scripts/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Scripts {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Scripts {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -25,7 +29,11 @@ export class Scripts {
constructor(protected readonly _options: Scripts.Options) {}
/**
- * List of scripts registered to a Site. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
+ * List of scripts registered to a Site. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,26 +41,27 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.scripts.list("site_id")
+ * await client.scripts.list("site_id")
*/
public async list(siteId: string, requestOptions?: Scripts.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/registered_scripts`
+ `sites/${encodeURIComponent(siteId)}/registered_scripts`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.RegisteredScriptList.parseOrThrow(_response.body, {
@@ -100,7 +109,12 @@ export class Scripts {
}
/**
- * Add a script to a Site's Custom Code registry. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
+ * Add a script to a Site's Custom Code registry. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.CustomCodeHostedRequest} request
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -108,7 +122,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.scripts.registerHosted("site_id", {
+ * await client.scripts.registerHosted("site_id", {
* hostedLocation: "hostedLocation",
* integrityHash: "integrityHash",
* version: "version",
@@ -123,14 +137,14 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/registered_scripts/hosted`
+ `sites/${encodeURIComponent(siteId)}/registered_scripts/hosted`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -138,6 +152,7 @@ export class Scripts {
body: await serializers.CustomCodeHostedRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CustomCodeHostedResponse.parseOrThrow(_response.body, {
@@ -185,7 +200,12 @@ export class Scripts {
}
/**
- * Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
+ * Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.CustomCodeInlineRequest} request
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -193,7 +213,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.scripts.registerInline("site_id", {
+ * await client.scripts.registerInline("site_id", {
* sourceCode: "alert('hello world');",
* version: "0.0.1",
* displayName: "Alert"
@@ -207,14 +227,14 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/registered_scripts/inline`
+ `sites/${encodeURIComponent(siteId)}/registered_scripts/inline`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -222,6 +242,7 @@ export class Scripts {
body: await serializers.CustomCodeInlineRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.CustomCodeInlineResponse.parseOrThrow(_response.body, {
@@ -268,7 +289,7 @@ export class Scripts {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/scripts/client/requests/CustomCodeHostedRequest.ts b/src/api/resources/scripts/client/requests/CustomCodeHostedRequest.ts
index 82109906..3a5e5830 100644
--- a/src/api/resources/scripts/client/requests/CustomCodeHostedRequest.ts
+++ b/src/api/resources/scripts/client/requests/CustomCodeHostedRequest.ts
@@ -20,6 +20,6 @@ export interface CustomCodeHostedRequest {
canCopy?: boolean;
/** A Semantic Version (SemVer) string, denoting the version of the script */
version: string;
- /** User-facing name for the script */
+ /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */
displayName: string;
}
diff --git a/src/api/resources/scripts/client/requests/CustomCodeInlineRequest.ts b/src/api/resources/scripts/client/requests/CustomCodeInlineRequest.ts
index 451094a8..d65f3d0e 100644
--- a/src/api/resources/scripts/client/requests/CustomCodeInlineRequest.ts
+++ b/src/api/resources/scripts/client/requests/CustomCodeInlineRequest.ts
@@ -19,6 +19,6 @@ export interface CustomCodeInlineRequest {
canCopy?: boolean;
/** A Semantic Version (SemVer) string, denoting the version of the script */
version: string;
- /** User-facing name for the script */
+ /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */
displayName: string;
}
diff --git a/src/api/resources/scripts/client/requests/index.ts b/src/api/resources/scripts/client/requests/index.ts
index 5990c996..30d6b835 100644
--- a/src/api/resources/scripts/client/requests/index.ts
+++ b/src/api/resources/scripts/client/requests/index.ts
@@ -1,2 +1,2 @@
-export { CustomCodeHostedRequest } from "./CustomCodeHostedRequest";
-export { CustomCodeInlineRequest } from "./CustomCodeInlineRequest";
+export { type CustomCodeHostedRequest } from "./CustomCodeHostedRequest";
+export { type CustomCodeInlineRequest } from "./CustomCodeInlineRequest";
diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts
index 34e73376..069cdc43 100644
--- a/src/api/resources/sites/client/Client.ts
+++ b/src/api/resources/sites/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
import { ActivityLogs } from "../resources/activityLogs/client/Client";
import { Scripts } from "../resources/scripts/client/Client";
@@ -18,8 +18,12 @@ export declare namespace Sites {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -28,6 +32,9 @@ export class Sites {
/**
* List of all sites the provided access token is able to access. Required scope | `sites:read`
+ *
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -35,7 +42,7 @@ export class Sites {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.list()
+ * await client.sites.list()
*/
public async list(requestOptions?: Sites.RequestOptions): Promise {
const _response = await core.fetcher({
@@ -48,13 +55,14 @@ export class Sites {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Sites.parseOrThrow(_response.body, {
@@ -103,6 +111,10 @@ export class Sites {
/**
* Get a site by site id Required scope | `sites:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -110,26 +122,27 @@ export class Sites {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.get("site_id")
+ * await client.sites.get("site_id")
*/
public async get(siteId: string, requestOptions?: Sites.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}`
+ `sites/${encodeURIComponent(siteId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Site.parseOrThrow(_response.body, {
@@ -178,6 +191,10 @@ export class Sites {
/**
* Get a list of all custom domains related to site. Required scope | `sites:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
* @throws {@link Webflow.NotFoundError}
@@ -185,26 +202,27 @@ export class Sites {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.getCustomDomain("site_id")
+ * await client.sites.getCustomDomain("site_id")
*/
public async getCustomDomain(siteId: string, requestOptions?: Sites.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/custom_domains`
+ `sites/${encodeURIComponent(siteId)}/custom_domains`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Domains.parseOrThrow(_response.body, {
@@ -253,6 +271,11 @@ export class Sites {
/**
* Publish a site to one more more domains. Required scope | `sites:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.SitesPublishRequest} request
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -260,10 +283,7 @@ export class Sites {
* @throws {@link Webflow.TooManyRequestsError}
*
* @example
- * await webflow.sites.publish("site_id", {
- * customDomains: ["589a331aa51e760df7ccb89d"],
- * publishToWebflowSubdomain: false
- * })
+ * await client.sites.publish("site_id")
*/
public async publish(
siteId: string,
@@ -273,14 +293,14 @@ export class Sites {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/publish`
+ `sites/${encodeURIComponent(siteId)}/publish`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -288,6 +308,7 @@ export class Sites {
body: await serializers.SitesPublishRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -340,7 +361,7 @@ export class Sites {
return (this._scripts ??= new Scripts(this._options));
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/sites/client/requests/SitesPublishRequest.ts b/src/api/resources/sites/client/requests/SitesPublishRequest.ts
index 770f7973..c8fc5cbc 100644
--- a/src/api/resources/sites/client/requests/SitesPublishRequest.ts
+++ b/src/api/resources/sites/client/requests/SitesPublishRequest.ts
@@ -4,10 +4,7 @@
/**
* @example
- * {
- * customDomains: ["589a331aa51e760df7ccb89d"],
- * publishToWebflowSubdomain: false
- * }
+ * {}
*/
export interface SitesPublishRequest {
/** Array of Custom Domain ids to publish */
diff --git a/src/api/resources/sites/client/requests/index.ts b/src/api/resources/sites/client/requests/index.ts
index dddc2657..9dc259ab 100644
--- a/src/api/resources/sites/client/requests/index.ts
+++ b/src/api/resources/sites/client/requests/index.ts
@@ -1 +1 @@
-export { SitesPublishRequest } from "./SitesPublishRequest";
+export { type SitesPublishRequest } from "./SitesPublishRequest";
diff --git a/src/api/resources/sites/resources/activityLogs/client/Client.ts b/src/api/resources/sites/resources/activityLogs/client/Client.ts
index b0160caa..e7b88510 100644
--- a/src/api/resources/sites/resources/activityLogs/client/Client.ts
+++ b/src/api/resources/sites/resources/activityLogs/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
-import * as Webflow from "../../../../..";
+import * as Webflow from "../../../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../../../serialization";
-import * as errors from "../../../../../../errors";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
export declare namespace ActivityLogs {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace ActivityLogs {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,13 +30,18 @@ export class ActivityLogs {
/**
* Retrieve Activity Logs for a specific Site. Requires Site to be on an Enterprise plan. Required scope | `site_activity:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.sites.ActivityLogsListRequest} request
+ * @param {ActivityLogs.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.ForbiddenError}
* @throws {@link Webflow.NotFoundError}
* @throws {@link Webflow.TooManyRequestsError}
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.activityLogs.list("site_id", {})
+ * await client.sites.activityLogs.list("site_id")
*/
public async list(
siteId: string,
@@ -52,14 +61,14 @@ export class ActivityLogs {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/activity_logs`
+ `sites/${encodeURIComponent(siteId)}/activity_logs`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -67,6 +76,7 @@ export class ActivityLogs {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.SiteActivityLogResponse.parseOrThrow(_response.body, {
@@ -111,7 +121,7 @@ export class ActivityLogs {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/sites/resources/activityLogs/client/requests/index.ts b/src/api/resources/sites/resources/activityLogs/client/requests/index.ts
index e793c679..c22e9ae2 100644
--- a/src/api/resources/sites/resources/activityLogs/client/requests/index.ts
+++ b/src/api/resources/sites/resources/activityLogs/client/requests/index.ts
@@ -1 +1 @@
-export { ActivityLogsListRequest } from "./ActivityLogsListRequest";
+export { type ActivityLogsListRequest } from "./ActivityLogsListRequest";
diff --git a/src/api/resources/sites/resources/scripts/client/Client.ts b/src/api/resources/sites/resources/scripts/client/Client.ts
index e6227083..56a4dc77 100644
--- a/src/api/resources/sites/resources/scripts/client/Client.ts
+++ b/src/api/resources/sites/resources/scripts/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../../../environments";
import * as core from "../../../../../../core";
-import * as Webflow from "../../../../..";
+import * as Webflow from "../../../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../../../serialization";
-import * as errors from "../../../../../../errors";
+import * as serializers from "../../../../../../serialization/index";
+import * as errors from "../../../../../../errors/index";
export declare namespace Scripts {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Scripts {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -25,7 +29,11 @@ export class Scripts {
constructor(protected readonly _options: Scripts.Options) {}
/**
- * Get all registered scripts that have been applied to a specific Site. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
+ * Get all registered scripts that have been applied to a specific Site. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,7 +41,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.scripts.getCustomCode("site_id")
+ * await client.sites.scripts.getCustomCode("site_id")
*/
public async getCustomCode(
siteId: string,
@@ -42,20 +50,21 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/custom_code`
+ `sites/${encodeURIComponent(siteId)}/custom_code`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ScriptApplyList.parseOrThrow(_response.body, {
@@ -103,7 +112,12 @@ export class Scripts {
}
/**
- * Add a registered script to a Site. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
+ * Add a registered script to a Site. In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.ScriptApplyList} request
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -111,7 +125,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.scripts.upsertCustomCode("site_id", {
+ * await client.sites.scripts.upsertCustomCode("site_id", {
* scripts: [{
* id: "cms_slider",
* location: Webflow.ScriptApplyLocation.Header,
@@ -123,10 +137,6 @@ export class Scripts {
* id: "alert",
* location: Webflow.ScriptApplyLocation.Header,
* version: "0.0.1"
- * }, {
- * id: "id",
- * location: Webflow.ScriptApplyLocation.Header,
- * version: "version"
* }]
* })
*/
@@ -138,14 +148,14 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/custom_code`
+ `sites/${encodeURIComponent(siteId)}/custom_code`
),
method: "PUT",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -153,6 +163,7 @@ export class Scripts {
body: await serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ScriptApplyList.parseOrThrow(_response.body, {
@@ -200,7 +211,11 @@ export class Scripts {
}
/**
- * Delete the custom code block that an app created for a Site Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
+ * Delete the custom code block that an app created for a Site Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -208,26 +223,27 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.scripts.deleteCustomCode("site_id")
+ * await client.sites.scripts.deleteCustomCode("site_id")
*/
public async deleteCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/custom_code`
+ `sites/${encodeURIComponent(siteId)}/custom_code`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -269,7 +285,12 @@ export class Scripts {
}
/**
- * Get all instances of Custom Code applied to a Site or Pages. Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
+ * Get all instances of Custom Code applied to a Site or Pages. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `custom_code:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.sites.ScriptsListCustomCodeBlocksRequest} request
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -277,7 +298,7 @@ export class Scripts {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.sites.scripts.listCustomCodeBlocks("site_id", {})
+ * await client.sites.scripts.listCustomCodeBlocks("site_id")
*/
public async listCustomCodeBlocks(
siteId: string,
@@ -297,14 +318,14 @@ export class Scripts {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/custom_code/blocks`
+ `sites/${encodeURIComponent(siteId)}/custom_code/blocks`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -312,6 +333,7 @@ export class Scripts {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.ListCustomCodeBlocks.parseOrThrow(_response.body, {
@@ -358,7 +380,7 @@ export class Scripts {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/sites/resources/scripts/client/requests/index.ts b/src/api/resources/sites/resources/scripts/client/requests/index.ts
index e87ec77a..32e771fa 100644
--- a/src/api/resources/sites/resources/scripts/client/requests/index.ts
+++ b/src/api/resources/sites/resources/scripts/client/requests/index.ts
@@ -1 +1 @@
-export { ScriptsListCustomCodeBlocksRequest } from "./ScriptsListCustomCodeBlocksRequest";
+export { type ScriptsListCustomCodeBlocksRequest } from "./ScriptsListCustomCodeBlocksRequest";
diff --git a/src/api/resources/token/client/Client.ts b/src/api/resources/token/client/Client.ts
index 080c0614..f9e14dae 100644
--- a/src/api/resources/token/client/Client.ts
+++ b/src/api/resources/token/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Token {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Token {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,11 +30,14 @@ export class Token {
/**
* Information about the Authorized User Required Scope | `authorized_user:read`
+ *
+ * @param {Token.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
*
* @example
- * await webflow.token.authorizedBy()
+ * await client.token.authorizedBy()
*/
public async authorizedBy(requestOptions?: Token.RequestOptions): Promise {
const _response = await core.fetcher({
@@ -43,13 +50,14 @@ export class Token {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.AuthorizedUser.parseOrThrow(_response.body, {
@@ -91,11 +99,14 @@ export class Token {
}
/**
- * Information about the authorization token Access to this endpoint requires a bearer token from a Data Client App.
+ * Information about the authorization token Access to this endpoint requires a bearer token from a Data Client App .
+ *
+ * @param {Token.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.UnauthorizedError}
*
* @example
- * await webflow.token.introspect()
+ * await client.token.introspect()
*/
public async introspect(requestOptions?: Token.RequestOptions): Promise {
const _response = await core.fetcher({
@@ -108,13 +119,14 @@ export class Token {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Authorization.parseOrThrow(_response.body, {
@@ -153,7 +165,7 @@ export class Token {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts
index e230cfde..7e6a3e2e 100644
--- a/src/api/resources/users/client/Client.ts
+++ b/src/api/resources/users/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Users {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Users {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,11 @@ export class Users {
/**
* Get a list of users for a site Required scope | `users:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.UsersListRequest} request
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -34,7 +43,7 @@ export class Users {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.users.list("site_id", {})
+ * await client.users.list("site_id")
*/
public async list(
siteId: string,
@@ -58,14 +67,14 @@ export class Users {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/users`
+ `sites/${encodeURIComponent(siteId)}/users`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -73,6 +82,7 @@ export class Users {
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.UserList.parseOrThrow(_response.body, {
@@ -123,6 +133,11 @@ export class Users {
/**
* Get a User by ID Required scope | `users:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} userId - Unique identifier for a User
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -131,26 +146,27 @@ export class Users {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.users.get("site_id", "user_id")
+ * await client.users.get("site_id", "user_id")
*/
public async get(siteId: string, userId: string, requestOptions?: Users.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/users/${userId}`
+ `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.User.parseOrThrow(_response.body, {
@@ -201,6 +217,11 @@ export class Users {
/**
* Delete a User by ID Required scope | `users:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} userId - Unique identifier for a User
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -209,26 +230,27 @@ export class Users {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.users.delete("site_id", "user_id")
+ * await client.users.delete("site_id", "user_id")
*/
public async delete(siteId: string, userId: string, requestOptions?: Users.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/users/${userId}`
+ `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -275,6 +297,12 @@ export class Users {
* Update a User by ID Required scope | `users:write`
*
* The email
and password
fields cannot be updated using this endpoint
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {string} userId - Unique identifier for a User
+ * @param {Webflow.UsersUpdateRequest} request
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -283,13 +311,13 @@ export class Users {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.users.update("site_id", "user_id", {
+ * await client.users.update("site_id", "user_id", {
* data: {
* name: "Some One",
* acceptPrivacy: false,
* acceptCommunications: false
* },
- * accessGroups: ["webflowers", "platinum", "free-tier", "accessGroups"]
+ * accessGroups: ["webflowers", "platinum", "free-tier"]
* })
*/
public async update(
@@ -301,14 +329,14 @@ export class Users {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/users/${userId}`
+ `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`
),
method: "PATCH",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -316,6 +344,7 @@ export class Users {
body: await serializers.UsersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.User.parseOrThrow(_response.body, {
@@ -366,6 +395,11 @@ export class Users {
/**
* Create and invite a user with an email address. The user will be sent and invite via email, which they will need to accept in order to join paid Access Groups. Required scope | `users:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.UsersInviteRequest} request
+ * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.ForbiddenError}
@@ -375,9 +409,9 @@ export class Users {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.users.invite("site_id", {
+ * await client.users.invite("site_id", {
* email: "some.one@home.com",
- * accessGroups: ["webflowers", "accessGroups"]
+ * accessGroups: ["webflowers"]
* })
*/
public async invite(
@@ -388,14 +422,14 @@ export class Users {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/users/invite`
+ `sites/${encodeURIComponent(siteId)}/users/invite`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -403,6 +437,7 @@ export class Users {
body: await serializers.UsersInviteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.User.parseOrThrow(_response.body, {
@@ -453,7 +488,7 @@ export class Users {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/users/client/requests/UsersInviteRequest.ts b/src/api/resources/users/client/requests/UsersInviteRequest.ts
index d0660a55..9782e3e1 100644
--- a/src/api/resources/users/client/requests/UsersInviteRequest.ts
+++ b/src/api/resources/users/client/requests/UsersInviteRequest.ts
@@ -6,7 +6,7 @@
* @example
* {
* email: "some.one@home.com",
- * accessGroups: ["webflowers", "accessGroups"]
+ * accessGroups: ["webflowers"]
* }
*/
export interface UsersInviteRequest {
diff --git a/src/api/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/users/client/requests/UsersListRequest.ts
index aae25488..449c9389 100644
--- a/src/api/resources/users/client/requests/UsersListRequest.ts
+++ b/src/api/resources/users/client/requests/UsersListRequest.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
diff --git a/src/api/resources/users/client/requests/UsersUpdateRequest.ts b/src/api/resources/users/client/requests/UsersUpdateRequest.ts
index c03f3e03..8bb8848c 100644
--- a/src/api/resources/users/client/requests/UsersUpdateRequest.ts
+++ b/src/api/resources/users/client/requests/UsersUpdateRequest.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
@@ -12,7 +12,7 @@ import * as Webflow from "../../../..";
* acceptPrivacy: false,
* acceptCommunications: false
* },
- * accessGroups: ["webflowers", "platinum", "free-tier", "accessGroups"]
+ * accessGroups: ["webflowers", "platinum", "free-tier"]
* }
*/
export interface UsersUpdateRequest {
diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts
index feb425c3..fea6c56d 100644
--- a/src/api/resources/users/client/requests/index.ts
+++ b/src/api/resources/users/client/requests/index.ts
@@ -1,3 +1,3 @@
-export { UsersListRequest } from "./UsersListRequest";
-export { UsersUpdateRequest } from "./UsersUpdateRequest";
-export { UsersInviteRequest } from "./UsersInviteRequest";
+export { type UsersListRequest } from "./UsersListRequest";
+export { type UsersUpdateRequest } from "./UsersUpdateRequest";
+export { type UsersInviteRequest } from "./UsersInviteRequest";
diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts
index 54f165dd..ec07c60d 100644
--- a/src/api/resources/webhooks/client/Client.ts
+++ b/src/api/resources/webhooks/client/Client.ts
@@ -4,10 +4,10 @@
import * as environments from "../../../../environments";
import * as core from "../../../../core";
-import * as Webflow from "../../..";
+import * as Webflow from "../../../index";
import urlJoin from "url-join";
-import * as serializers from "../../../../serialization";
-import * as errors from "../../../../errors";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
export declare namespace Webhooks {
interface Options {
@@ -16,8 +16,12 @@ export declare namespace Webhooks {
}
interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
}
}
@@ -26,6 +30,10 @@ export class Webhooks {
/**
* List all App-created Webhooks registered for a given site Required scope | `sites:read`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -33,26 +41,27 @@ export class Webhooks {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.webhooks.list("site_id")
+ * await client.webhooks.list("site_id")
*/
public async list(siteId: string, requestOptions?: Webhooks.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/webhooks`
+ `sites/${encodeURIComponent(siteId)}/webhooks`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.WebhookList.parseOrThrow(_response.body, {
@@ -100,7 +109,12 @@ export class Webhooks {
}
/**
- * Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. Access to this endpoint requires a bearer token from a Data Client App. The only exceptions are for creating webhooks with `site_publish` or `form_submission` triggers, which can be done with Site Tokens Required scope | `sites:write`
+ * Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. Access to this endpoint requires a bearer token from a Data Client App . Required scope | `sites:write`
+ *
+ * @param {string} siteId - Unique identifier for a Site
+ * @param {Webflow.WebhooksCreateRequest} request
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -108,7 +122,7 @@ export class Webhooks {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.webhooks.create("site_id", {
+ * await client.webhooks.create("site_id", {
* triggerType: Webflow.TriggerType.FormSubmission,
* url: "https://api.mydomain.com/webhook"
* })
@@ -121,14 +135,14 @@ export class Webhooks {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `sites/${siteId}/webhooks`
+ `sites/${encodeURIComponent(siteId)}/webhooks`
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -136,6 +150,7 @@ export class Webhooks {
body: await serializers.WebhooksCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Webhook.parseOrThrow(_response.body, {
@@ -184,6 +199,10 @@ export class Webhooks {
/**
* Get a specific Webhook instance
+ *
+ * @param {string} webhookId - Unique identifier for a Webhook
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -191,26 +210,27 @@ export class Webhooks {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.webhooks.get("webhook_id")
+ * await client.webhooks.get("webhook_id")
*/
public async get(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `webhooks/${webhookId}`
+ `webhooks/${encodeURIComponent(webhookId)}`
),
method: "GET",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return await serializers.Webhook.parseOrThrow(_response.body, {
@@ -259,6 +279,10 @@ export class Webhooks {
/**
* Remove a Webhook
+ *
+ * @param {string} webhookId - Unique identifier for a Webhook
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
+ *
* @throws {@link Webflow.BadRequestError}
* @throws {@link Webflow.UnauthorizedError}
* @throws {@link Webflow.NotFoundError}
@@ -266,26 +290,27 @@ export class Webhooks {
* @throws {@link Webflow.InternalServerError}
*
* @example
- * await webflow.webhooks.delete("webhook_id")
+ * await client.webhooks.delete("webhook_id")
*/
public async delete(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise {
const _response = await core.fetcher({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
- `webhooks/${webhookId}`
+ `webhooks/${encodeURIComponent(webhookId)}`
),
method: "DELETE",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
- "X-Fern-SDK-Version": "2.3.2",
+ "X-Fern-SDK-Version": "2.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return;
@@ -326,7 +351,7 @@ export class Webhooks {
}
}
- protected async _getAuthorizationHeader() {
+ protected async _getAuthorizationHeader(): Promise {
return `Bearer ${await core.Supplier.get(this._options.accessToken)}`;
}
}
diff --git a/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts
index d426606f..da942167 100644
--- a/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts
+++ b/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "../../../..";
+import * as Webflow from "../../../../index";
/**
* @example
diff --git a/src/api/resources/webhooks/client/requests/index.ts b/src/api/resources/webhooks/client/requests/index.ts
index f7f7b70d..321638de 100644
--- a/src/api/resources/webhooks/client/requests/index.ts
+++ b/src/api/resources/webhooks/client/requests/index.ts
@@ -1 +1 @@
-export { WebhooksCreateRequest } from "./WebhooksCreateRequest";
+export { type WebhooksCreateRequest } from "./WebhooksCreateRequest";
diff --git a/src/api/types/AccessGroupList.ts b/src/api/types/AccessGroupList.ts
index a803702b..f76f25f1 100644
--- a/src/api/types/AccessGroupList.ts
+++ b/src/api/types/AccessGroupList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The list access groups results
diff --git a/src/api/types/Asset.ts b/src/api/types/Asset.ts
index 7fca40e5..6ecaf64c 100644
--- a/src/api/types/Asset.ts
+++ b/src/api/types/Asset.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Asset {
/** Unique identifier for this asset */
diff --git a/src/api/types/AssetFolderList.ts b/src/api/types/AssetFolderList.ts
index 288dc0cf..7618d6cb 100644
--- a/src/api/types/AssetFolderList.ts
+++ b/src/api/types/AssetFolderList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The Asset Folders object
diff --git a/src/api/types/AssetUpload.ts b/src/api/types/AssetUpload.ts
index ac2d27bf..748fe76e 100644
--- a/src/api/types/AssetUpload.ts
+++ b/src/api/types/AssetUpload.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface AssetUpload {
/** Metadata for uploading the asset binary */
diff --git a/src/api/types/Assets.ts b/src/api/types/Assets.ts
index 182d74e3..ef06e1a0 100644
--- a/src/api/types/Assets.ts
+++ b/src/api/types/Assets.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A list of assets
diff --git a/src/api/types/Authorization.ts b/src/api/types/Authorization.ts
index 05ce7387..dda5cb25 100644
--- a/src/api/types/Authorization.ts
+++ b/src/api/types/Authorization.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Authorization {
/** The Authorization object */
diff --git a/src/api/types/AuthorizationAuthorization.ts b/src/api/types/AuthorizationAuthorization.ts
index 1701585f..9609859a 100644
--- a/src/api/types/AuthorizationAuthorization.ts
+++ b/src/api/types/AuthorizationAuthorization.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The Authorization object
diff --git a/src/api/types/BadRequestErrorBody.ts b/src/api/types/BadRequestErrorBody.ts
new file mode 100644
index 00000000..4cf0862f
--- /dev/null
+++ b/src/api/types/BadRequestErrorBody.ts
@@ -0,0 +1,7 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Webflow from "../index";
+
+export type BadRequestErrorBody = Webflow.InvalidDomain | undefined | Webflow.NoDomains | undefined;
diff --git a/src/api/types/Collection.ts b/src/api/types/Collection.ts
index caace598..1dba545f 100644
--- a/src/api/types/Collection.ts
+++ b/src/api/types/Collection.ts
@@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
+import * as Webflow from "../index";
+
/**
* A collection object
*/
@@ -19,5 +21,5 @@ export interface Collection {
/** The date the collection was last updated */
lastUpdated?: Date;
/** The list of fields in the Collection */
- fields: Record;
+ fields: Webflow.Field[];
}
diff --git a/src/api/types/CollectionItem.ts b/src/api/types/CollectionItem.ts
index 52f79cbe..b604d972 100644
--- a/src/api/types/CollectionItem.ts
+++ b/src/api/types/CollectionItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The fields that define the schema for a given Item are based on the Collection that Item belongs to. Beyond the user defined fields, there are a handful of additional fields that are automatically created for all items
diff --git a/src/api/types/CollectionItemList.ts b/src/api/types/CollectionItemList.ts
index fe40b73c..357eb694 100644
--- a/src/api/types/CollectionItemList.ts
+++ b/src/api/types/CollectionItemList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Results from collection items list
diff --git a/src/api/types/CollectionList.ts b/src/api/types/CollectionList.ts
index 977deaf6..74b6338c 100644
--- a/src/api/types/CollectionList.ts
+++ b/src/api/types/CollectionList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface CollectionList {
/** An array of Collections */
diff --git a/src/api/types/ConflictErrorBody.ts b/src/api/types/ConflictErrorBody.ts
new file mode 100644
index 00000000..8479eb87
--- /dev/null
+++ b/src/api/types/ConflictErrorBody.ts
@@ -0,0 +1,7 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Webflow from "../index";
+
+export type ConflictErrorBody = Webflow.DuplicateUserEmail | Webflow.UserLimitReached;
diff --git a/src/api/types/CustomCodeBlock.ts b/src/api/types/CustomCodeBlock.ts
index c0083fb9..c82d6d34 100644
--- a/src/api/types/CustomCodeBlock.ts
+++ b/src/api/types/CustomCodeBlock.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A specific instance of Custom Code applied to a Site or Page
diff --git a/src/api/types/CustomCodeHostedResponse.ts b/src/api/types/CustomCodeHostedResponse.ts
index 24d6c726..8a8b1d08 100644
--- a/src/api/types/CustomCodeHostedResponse.ts
+++ b/src/api/types/CustomCodeHostedResponse.ts
@@ -10,7 +10,7 @@ export interface CustomCodeHostedResponse {
id?: string;
/** Define whether the script can be copied on site duplication and transfer */
canCopy?: boolean;
- /** User-facing name for the script */
+ /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */
displayName?: string;
/** URI for an externally hosted script location */
hostedLocation?: string;
diff --git a/src/api/types/CustomCodeInlineResponse.ts b/src/api/types/CustomCodeInlineResponse.ts
index 0f51753a..feb74a4b 100644
--- a/src/api/types/CustomCodeInlineResponse.ts
+++ b/src/api/types/CustomCodeInlineResponse.ts
@@ -10,7 +10,7 @@ export interface CustomCodeInlineResponse {
id?: string;
/** Define whether the script can be copied on site duplication and transfer */
canCopy?: boolean;
- /** User-facing name for the script */
+ /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */
displayName?: string;
/** URI for an externally hosted script location */
hostedLocation?: string;
diff --git a/src/api/types/Dom.ts b/src/api/types/Dom.ts
index c9e7392e..ff5f7c0b 100644
--- a/src/api/types/Dom.ts
+++ b/src/api/types/Dom.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The DOM (Document Object Model) schema represents the content structure of a web page. It captures various content nodes, such as text and images, along with their associated attributes. Each node has a unique identifier and can be of different types like text or image. The schema also provides pagination details for scenarios where the content nodes are too many to be fetched in a single request.
diff --git a/src/api/types/Domains.ts b/src/api/types/Domains.ts
index b12bda2f..1e156571 100644
--- a/src/api/types/Domains.ts
+++ b/src/api/types/Domains.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Domains {
customDomains?: Webflow.Domain[];
diff --git a/src/api/types/DuplicateUserEmail.ts b/src/api/types/DuplicateUserEmail.ts
index f301d1f0..13eacd9b 100644
--- a/src/api/types/DuplicateUserEmail.ts
+++ b/src/api/types/DuplicateUserEmail.ts
@@ -2,15 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
-export interface DuplicateUserEmail {
- /** Error code */
- code?: string;
- /** Error message */
- message?: string;
- /** Link to more information */
- externalReference?: string;
- /** Array of errors */
- details?: Webflow.ErrorDetailsItem[];
-}
+export type DuplicateUserEmail = Webflow.Error_;
diff --git a/src/api/types/Error_.ts b/src/api/types/Error_.ts
index 8a7cbf51..d257bfb4 100644
--- a/src/api/types/Error_.ts
+++ b/src/api/types/Error_.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Error_ {
/** Error code */
diff --git a/src/api/types/Field.ts b/src/api/types/Field.ts
index 0e78a45a..4e32236f 100644
--- a/src/api/types/Field.ts
+++ b/src/api/types/Field.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The details of a field in a collection
diff --git a/src/api/types/FieldType.ts b/src/api/types/FieldType.ts
index 93fafa12..e495a8d3 100644
--- a/src/api/types/FieldType.ts
+++ b/src/api/types/FieldType.ts
@@ -16,7 +16,7 @@ export type FieldType =
| "Phone"
| "Number"
| "DateTime"
- | "Boolean"
+ | "Switch"
| "Color"
| "ExtFileRef";
@@ -31,7 +31,7 @@ export const FieldType = {
Phone: "Phone",
Number: "Number",
DateTime: "DateTime",
- Boolean: "Boolean",
+ Switch: "Switch",
Color: "Color",
ExtFileRef: "ExtFileRef",
} as const;
diff --git a/src/api/types/ForbiddenErrorBody.ts b/src/api/types/ForbiddenErrorBody.ts
new file mode 100644
index 00000000..636aaef2
--- /dev/null
+++ b/src/api/types/ForbiddenErrorBody.ts
@@ -0,0 +1,11 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface ForbiddenErrorBody {
+ status?: number;
+ message?: string;
+ publicErrorCode?: string;
+ externalReference?: string;
+ details?: string[];
+}
diff --git a/src/api/types/Form.ts b/src/api/types/Form.ts
index 500835f2..472ffd76 100644
--- a/src/api/types/Form.ts
+++ b/src/api/types/Form.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A Webflow form
diff --git a/src/api/types/FormField.ts b/src/api/types/FormField.ts
index 978d9dc4..63d089ed 100644
--- a/src/api/types/FormField.ts
+++ b/src/api/types/FormField.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A collection of form fields with additional properties.
diff --git a/src/api/types/FormFieldValue.ts b/src/api/types/FormFieldValue.ts
index 2f4ada89..96717dd7 100644
--- a/src/api/types/FormFieldValue.ts
+++ b/src/api/types/FormFieldValue.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* An object containing field info for a specific fieldID.
diff --git a/src/api/types/FormList.ts b/src/api/types/FormList.ts
index a6829925..cd9736be 100644
--- a/src/api/types/FormList.ts
+++ b/src/api/types/FormList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface FormList {
forms?: Webflow.Form[];
diff --git a/src/api/types/FormSubmissionList.ts b/src/api/types/FormSubmissionList.ts
index b718bbb4..b683f59d 100644
--- a/src/api/types/FormSubmissionList.ts
+++ b/src/api/types/FormSubmissionList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface FormSubmissionList {
submissions?: Webflow.FormSubmission[];
diff --git a/src/api/types/InventoryItem.ts b/src/api/types/InventoryItem.ts
index e0873159..93cd7c00 100644
--- a/src/api/types/InventoryItem.ts
+++ b/src/api/types/InventoryItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The availabile inventory for an item
diff --git a/src/api/types/ListCustomCodeBlocks.ts b/src/api/types/ListCustomCodeBlocks.ts
index 178af727..6518202a 100644
--- a/src/api/types/ListCustomCodeBlocks.ts
+++ b/src/api/types/ListCustomCodeBlocks.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Custom Code Blocks corresponding to where scripts were applied
diff --git a/src/api/types/Locales.ts b/src/api/types/Locales.ts
index f78730d4..f8dc0241 100644
--- a/src/api/types/Locales.ts
+++ b/src/api/types/Locales.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Locales {
/** The primary locale for the site or application. */
diff --git a/src/api/types/MissingScopes.ts b/src/api/types/MissingScopes.ts
index a75a5c3c..246e8df7 100644
--- a/src/api/types/MissingScopes.ts
+++ b/src/api/types/MissingScopes.ts
@@ -2,15 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
-export interface MissingScopes {
- code?: "missing_scopes";
- type?: string;
- /** Error message */
- message?: string;
- /** Link to more information */
- externalReference?: string;
- /** Array of errors */
- details?: Webflow.ErrorDetailsItem[];
-}
+export type MissingScopes = Webflow.Error_;
diff --git a/src/api/types/Node.ts b/src/api/types/Node.ts
index a08e40bd..4f8f21c3 100644
--- a/src/api/types/Node.ts
+++ b/src/api/types/Node.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A generic representation of a content element within the Document Object Model (DOM). Each node has a unique identifier and a specific type that determines its content structure and attributes.
diff --git a/src/api/types/NotEnterprisePlanSite.ts b/src/api/types/NotEnterprisePlanSite.ts
index dd4bcdef..a7e8beb2 100644
--- a/src/api/types/NotEnterprisePlanSite.ts
+++ b/src/api/types/NotEnterprisePlanSite.ts
@@ -2,15 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
-export interface NotEnterprisePlanSite {
- code?: "missing_scopes";
- type?: string;
- /** Error message */
- message?: string;
- /** Link to more information */
- externalReference?: string;
- /** Array of errors */
- details?: Webflow.ErrorDetailsItem[];
-}
+export type NotEnterprisePlanSite = Webflow.Error_;
diff --git a/src/api/types/Order.ts b/src/api/types/Order.ts
index dd49812a..1ad23709 100644
--- a/src/api/types/Order.ts
+++ b/src/api/types/Order.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Order {
/** The order id. Will usually be 6 hex characters, but can also be 9 hex characters if the site has a very large number of Orders. Randomly assigned. */
diff --git a/src/api/types/OrderAddress.ts b/src/api/types/OrderAddress.ts
index d1415dbf..2f3d1072 100644
--- a/src/api/types/OrderAddress.ts
+++ b/src/api/types/OrderAddress.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A customer address
diff --git a/src/api/types/OrderList.ts b/src/api/types/OrderList.ts
index 224e0122..25518c90 100644
--- a/src/api/types/OrderList.ts
+++ b/src/api/types/OrderList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Results from order list
diff --git a/src/api/types/OrderPurchasedItem.ts b/src/api/types/OrderPurchasedItem.ts
index 783c9d11..a27367bc 100644
--- a/src/api/types/OrderPurchasedItem.ts
+++ b/src/api/types/OrderPurchasedItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* An Item that was purchased
diff --git a/src/api/types/OrderPurchasedItemVariantImage.ts b/src/api/types/OrderPurchasedItemVariantImage.ts
index d08f72c2..540c32b5 100644
--- a/src/api/types/OrderPurchasedItemVariantImage.ts
+++ b/src/api/types/OrderPurchasedItemVariantImage.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface OrderPurchasedItemVariantImage {
/** The hosted location for the Variant's image */
diff --git a/src/api/types/OrderPurchasedItemVariantImageFile.ts b/src/api/types/OrderPurchasedItemVariantImageFile.ts
index 3058583b..f9ef3b8c 100644
--- a/src/api/types/OrderPurchasedItemVariantImageFile.ts
+++ b/src/api/types/OrderPurchasedItemVariantImageFile.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface OrderPurchasedItemVariantImageFile {
/** The image size in bytes */
diff --git a/src/api/types/OrderTotals.ts b/src/api/types/OrderTotals.ts
index 07361b94..7502e638 100644
--- a/src/api/types/OrderTotals.ts
+++ b/src/api/types/OrderTotals.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* An object describing various pricing totals
diff --git a/src/api/types/OrderTotalsExtrasItem.ts b/src/api/types/OrderTotalsExtrasItem.ts
index 20eefe25..03f059db 100644
--- a/src/api/types/OrderTotalsExtrasItem.ts
+++ b/src/api/types/OrderTotalsExtrasItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Extra order items, includes discounts, shipping, and taxes.
diff --git a/src/api/types/Page.ts b/src/api/types/Page.ts
index 99c3f978..9046a42b 100644
--- a/src/api/types/Page.ts
+++ b/src/api/types/Page.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The Page object
diff --git a/src/api/types/PageDetails.ts b/src/api/types/PageDetails.ts
new file mode 100644
index 00000000..f675071d
--- /dev/null
+++ b/src/api/types/PageDetails.ts
@@ -0,0 +1,43 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Webflow from "../index";
+
+/**
+ * The Page object
+ */
+export interface PageDetails {
+ /** Unique identifier for the Page */
+ id?: string;
+ /** Unique identifier for the Site */
+ siteId?: string;
+ /** Title of the Page */
+ title?: string;
+ /** slug of the Page (derived from title) */
+ slug?: string;
+ /** Identifier of the parent folder */
+ parentId?: string;
+ /** Unique identifier for a linked Collection, value will be null if the Page is not part of a Collection. */
+ collectionId?: string;
+ /** The date the Page was created */
+ createdOn?: Date;
+ /** The date the Page was most recently updated */
+ lastUpdated?: Date;
+ /** Whether the Page has been archived */
+ archived?: boolean;
+ /** Whether the Page is a draft */
+ draft?: boolean;
+ /** Indicates whether the Page supports [Page Branching](https://university.webflow.com/lesson/page-branching) */
+ canBranch?: boolean;
+ /** Indicates whether the Page is restricted by [Memberships Controls](https://university.webflow.com/lesson/webflow-memberships-overview#how-to-manage-page-restrictions) */
+ isMembersOnly?: boolean;
+ /** SEO-related fields for the Page */
+ seo?: Webflow.PageDetailsSeo;
+ /** Open Graph fields for the Page */
+ openGraph?: Webflow.PageDetailsOpenGraph;
+ /** Unique ID of the page locale */
+ localeId?: string;
+ /** Relative path of the published page URL */
+ publishedPath?: string;
+}
diff --git a/src/api/types/PageDetailsOpenGraph.ts b/src/api/types/PageDetailsOpenGraph.ts
new file mode 100644
index 00000000..e0b3644d
--- /dev/null
+++ b/src/api/types/PageDetailsOpenGraph.ts
@@ -0,0 +1,17 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * Open Graph fields for the Page
+ */
+export interface PageDetailsOpenGraph {
+ /** The title supplied to Open Graph annotations */
+ title?: string;
+ /** Indicates the Open Graph title was copied from the SEO title */
+ titleCopied?: boolean;
+ /** The description supplied to Open Graph annotations */
+ description?: string;
+ /** Indicates the Open Graph description was copied from the SEO description */
+ descriptionCopied?: boolean;
+}
diff --git a/src/api/types/PageDetailsSeo.ts b/src/api/types/PageDetailsSeo.ts
new file mode 100644
index 00000000..87b9cb01
--- /dev/null
+++ b/src/api/types/PageDetailsSeo.ts
@@ -0,0 +1,13 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * SEO-related fields for the Page
+ */
+export interface PageDetailsSeo {
+ /** The Page title shown in search engine results */
+ title?: string;
+ /** The Page description shown in search engine results */
+ description?: string;
+}
diff --git a/src/api/types/PageList.ts b/src/api/types/PageList.ts
index 1c57cabf..09f4f73f 100644
--- a/src/api/types/PageList.ts
+++ b/src/api/types/PageList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The Page object
diff --git a/src/api/types/Product.ts b/src/api/types/Product.ts
index 68c837d5..cca3b59d 100644
--- a/src/api/types/Product.ts
+++ b/src/api/types/Product.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The Product object
diff --git a/src/api/types/ProductAndSkUs.ts b/src/api/types/ProductAndSkUs.ts
index 8d0ba342..e2ffc46d 100644
--- a/src/api/types/ProductAndSkUs.ts
+++ b/src/api/types/ProductAndSkUs.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A product and its SKUs.
diff --git a/src/api/types/ProductAndSkUsList.ts b/src/api/types/ProductAndSkUsList.ts
index ed1b7417..adbb5aad 100644
--- a/src/api/types/ProductAndSkUsList.ts
+++ b/src/api/types/ProductAndSkUsList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Results from product list
diff --git a/src/api/types/ProductFieldData.ts b/src/api/types/ProductFieldData.ts
index 01cfd1c8..a8c49373 100644
--- a/src/api/types/ProductFieldData.ts
+++ b/src/api/types/ProductFieldData.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Contains content-specific details for a product, covering both standard (e.g., title, description) and custom fields tailored to the product setup.
diff --git a/src/api/types/RegisteredScriptList.ts b/src/api/types/RegisteredScriptList.ts
index 565e1f6c..f7314bca 100644
--- a/src/api/types/RegisteredScriptList.ts
+++ b/src/api/types/RegisteredScriptList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A list of scripts registered to the site
diff --git a/src/api/types/ScriptApply.ts b/src/api/types/ScriptApply.ts
index a9834eb3..bc8c0d7f 100644
--- a/src/api/types/ScriptApply.ts
+++ b/src/api/types/ScriptApply.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface ScriptApply {
/** ID of the registered custom code script */
diff --git a/src/api/types/ScriptApplyList.ts b/src/api/types/ScriptApplyList.ts
index f7101331..3d30c3d1 100644
--- a/src/api/types/ScriptApplyList.ts
+++ b/src/api/types/ScriptApplyList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface ScriptApplyList {
/** A list of scripts applied to a Site or a Page */
diff --git a/src/api/types/Scripts.ts b/src/api/types/Scripts.ts
index 8b407bd2..e3882ce2 100644
--- a/src/api/types/Scripts.ts
+++ b/src/api/types/Scripts.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A list of scripts applied to a Site or a Page
diff --git a/src/api/types/Site.ts b/src/api/types/Site.ts
index 4b52e377..15c053cd 100644
--- a/src/api/types/Site.ts
+++ b/src/api/types/Site.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Site {
/** Unique identifier for the Site */
diff --git a/src/api/types/SiteActivityLogItem.ts b/src/api/types/SiteActivityLogItem.ts
index e553adae..4f1a4bb0 100644
--- a/src/api/types/SiteActivityLogItem.ts
+++ b/src/api/types/SiteActivityLogItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface SiteActivityLogItem {
id?: string;
diff --git a/src/api/types/SiteActivityLogResponse.ts b/src/api/types/SiteActivityLogResponse.ts
index a2ef3f97..464261db 100644
--- a/src/api/types/SiteActivityLogResponse.ts
+++ b/src/api/types/SiteActivityLogResponse.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface SiteActivityLogResponse {
items?: Webflow.SiteActivityLogItem[];
diff --git a/src/api/types/Sites.ts b/src/api/types/Sites.ts
index 5620b5c6..08f27116 100644
--- a/src/api/types/Sites.ts
+++ b/src/api/types/Sites.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Sites {
sites?: Webflow.Site[];
diff --git a/src/api/types/Sku.ts b/src/api/types/Sku.ts
index 4563f0f0..474348cd 100644
--- a/src/api/types/Sku.ts
+++ b/src/api/types/Sku.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The SKU object
diff --git a/src/api/types/SkuFieldData.ts b/src/api/types/SkuFieldData.ts
index de7a257b..bab27e58 100644
--- a/src/api/types/SkuFieldData.ts
+++ b/src/api/types/SkuFieldData.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Standard and Custom fields for a SKU
diff --git a/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts b/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts
index 7d12ba83..f6282e57 100644
--- a/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts
+++ b/src/api/types/SkuFieldDataEcSkuSubscriptionPlan.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface SkuFieldDataEcSkuSubscriptionPlan {
/** Interval of subscription renewal */
diff --git a/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts b/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts
index 3aa14107..16299854 100644
--- a/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts
+++ b/src/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface SkuFieldDataEcSkuSubscriptionPlanPlansItem {
+ /** The platform of the subscription plan */
platform?: "stripe";
/** The unique identifier of the plan */
id?: string;
diff --git a/src/api/types/SkuPropertyList.ts b/src/api/types/SkuPropertyList.ts
index d1e47461..c35efef4 100644
--- a/src/api/types/SkuPropertyList.ts
+++ b/src/api/types/SkuPropertyList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* A variant/option type for a SKU
diff --git a/src/api/types/StripeCard.ts b/src/api/types/StripeCard.ts
index 07c88284..e8b0eca4 100644
--- a/src/api/types/StripeCard.ts
+++ b/src/api/types/StripeCard.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Details on the card used to fulfill this order, if this order was finalized with Stripe.
diff --git a/src/api/types/User.ts b/src/api/types/User.ts
index 8933e298..9549197d 100644
--- a/src/api/types/User.ts
+++ b/src/api/types/User.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The fields that define the schema for a given Item are based on the Collection that Item belongs to. Beyond the user defined fields, there are a handful of additional fields that are automatically created for all items
diff --git a/src/api/types/UserAccessGroupsItem.ts b/src/api/types/UserAccessGroupsItem.ts
index 57516a4c..80ae6d9f 100644
--- a/src/api/types/UserAccessGroupsItem.ts
+++ b/src/api/types/UserAccessGroupsItem.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* Access group slugs and types
diff --git a/src/api/types/UserData.ts b/src/api/types/UserData.ts
index ff309365..1dacfea8 100644
--- a/src/api/types/UserData.ts
+++ b/src/api/types/UserData.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* An object containing the User's basic info and custom fields
diff --git a/src/api/types/UserLimitReached.ts b/src/api/types/UserLimitReached.ts
index 5292a3e0..5e03d077 100644
--- a/src/api/types/UserLimitReached.ts
+++ b/src/api/types/UserLimitReached.ts
@@ -2,15 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
-export interface UserLimitReached {
- /** Error code */
- code?: string;
- /** Error message */
- message?: string;
- /** Link to more information */
- externalReference?: string;
- /** Array of errors */
- details?: Webflow.ErrorDetailsItem[];
-}
+export type UserLimitReached = Webflow.Error_;
diff --git a/src/api/types/UserList.ts b/src/api/types/UserList.ts
index e11fd979..f7b1869d 100644
--- a/src/api/types/UserList.ts
+++ b/src/api/types/UserList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
/**
* The list users results
diff --git a/src/api/types/UsersNotEnabled.ts b/src/api/types/UsersNotEnabled.ts
index 65d20e0c..381e7beb 100644
--- a/src/api/types/UsersNotEnabled.ts
+++ b/src/api/types/UsersNotEnabled.ts
@@ -2,15 +2,6 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
-export interface UsersNotEnabled {
- /** Error code */
- code?: string;
- /** Error message */
- message?: string;
- /** Link to more information */
- externalReference?: string;
- /** Array of errors */
- details?: Webflow.ErrorDetailsItem[];
-}
+export type UsersNotEnabled = Webflow.Error_;
diff --git a/src/api/types/Webhook.ts b/src/api/types/Webhook.ts
index 45f57482..09b7556d 100644
--- a/src/api/types/Webhook.ts
+++ b/src/api/types/Webhook.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface Webhook {
/** Unique identifier for the Webhook registration */
diff --git a/src/api/types/WebhookList.ts b/src/api/types/WebhookList.ts
index 5a9549d9..69521be5 100644
--- a/src/api/types/WebhookList.ts
+++ b/src/api/types/WebhookList.ts
@@ -2,7 +2,7 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Webflow from "..";
+import * as Webflow from "../index";
export interface WebhookList {
pagination?: Webflow.Pagination;
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index caa2144b..43dad6d5 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -1,4 +1,7 @@
export * from "./OauthScope";
+export * from "./ForbiddenErrorBody";
+export * from "./BadRequestErrorBody";
+export * from "./ConflictErrorBody";
export * from "./AuthorizedUser";
export * from "./Application";
export * from "./AuthorizationAuthorizationAuthorizedTo";
@@ -34,6 +37,9 @@ export * from "./PageSeo";
export * from "./PageOpenGraph";
export * from "./Page";
export * from "./PageList";
+export * from "./PageDetailsSeo";
+export * from "./PageDetailsOpenGraph";
+export * from "./PageDetails";
export * from "./TextNode";
export * from "./ImageNode";
export * from "./NodeType";
diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts
index 5348ac9a..51065681 100644
--- a/src/core/fetcher/Fetcher.ts
+++ b/src/core/fetcher/Fetcher.ts
@@ -1,4 +1,3 @@
-import { default as FormData } from "form-data";
import qs from "qs";
import { RUNTIME } from "../runtime";
import { APIResponse } from "./APIResponse";
@@ -16,7 +15,8 @@ export declare namespace Fetcher {
timeoutMs?: number;
maxRetries?: number;
withCredentials?: boolean;
- responseType?: "json" | "blob" | "streaming";
+ abortSignal?: AbortSignal;
+ responseType?: "json" | "blob" | "streaming" | "text";
}
export type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
@@ -67,37 +67,62 @@ async function fetcherImpl(args: Fetcher.Args): Promise {
+ if (body instanceof Uint8Array) {
+ return body;
+ } else if (args.contentType === "application/x-www-form-urlencoded" && typeof args.body === "string") {
+ return args.body;
+ } else {
+ return JSON.stringify(body);
+ }
+ };
+
+ if (RUNTIME.type === "node") {
+ if (args.body instanceof (await import("formdata-node")).FormData) {
+ // @ts-expect-error
+ body = args.body;
+ } else {
+ body = maybeStringifyBody(args.body);
+ }
} else {
- body = JSON.stringify(args.body);
+ if (args.body instanceof (await import("form-data")).default) {
+ // @ts-expect-error
+ body = args.body;
+ } else {
+ body = maybeStringifyBody(args.body);
+ }
}
- // In Node.js environments, the SDK always uses`node-fetch`.
- // If not in Node.js the SDK uses global fetch if available,
- // and falls back to node-fetch.
- const fetchFn =
- RUNTIME.type === "node" ? require("node-fetch") : typeof fetch == "function" ? fetch : require("node-fetch");
+ const fetchFn = await getFetchFn();
const makeRequest = async (): Promise => {
- const controller = new AbortController();
- let abortId = undefined;
+ const signals: AbortSignal[] = [];
+
+ // Add timeout signal
+ let timeoutAbortId: NodeJS.Timeout | undefined = undefined;
if (args.timeoutMs != null) {
- abortId = setTimeout(() => controller.abort(), args.timeoutMs);
+ const { signal, abortId } = getTimeoutSignal(args.timeoutMs);
+ timeoutAbortId = abortId;
+ signals.push(signal);
}
+
+ // Add arbitrary signal
+ if (args.abortSignal != null) {
+ signals.push(args.abortSignal);
+ }
+
const response = await fetchFn(url, {
method: args.method,
headers,
body,
- signal: controller.signal,
+ signal: anySignal(signals),
credentials: args.withCredentials ? "include" : undefined,
});
- if (abortId != null) {
- clearTimeout(abortId);
+
+ if (timeoutAbortId != null) {
+ clearTimeout(timeoutAbortId);
}
+
return response;
};
@@ -124,6 +149,8 @@ async function fetcherImpl(args: Fetcher.Args): Promise 0) {
@@ -159,7 +186,15 @@ async function fetcherImpl(args: Fetcher.Args): Promise(args: Fetcher.Args): Promise controller.abort(TIMEOUT), timeoutMs);
+ return { signal: controller.signal, abortId };
+}
+
+/**
+ * Returns an abort signal that is getting aborted when
+ * at least one of the specified abort signals is aborted.
+ *
+ * Requires at least node.js 18.
+ */
+function anySignal(...args: AbortSignal[] | [AbortSignal[]]): AbortSignal {
+ // Allowing signals to be passed either as array
+ // of signals or as multiple arguments.
+ const signals = (args.length === 1 && Array.isArray(args[0]) ? args[0] : args);
+
+ const controller = new AbortController();
+
+ for (const signal of signals) {
+ if (signal.aborted) {
+ // Exiting early if one of the signals
+ // is already aborted.
+ controller.abort((signal as any)?.reason);
+ break;
+ }
+
+ // Listening for signals and removing the listeners
+ // when at least one symbol is aborted.
+ signal.addEventListener("abort", () => controller.abort((signal as any)?.reason), {
+ signal: controller.signal,
+ });
+ }
+
+ return controller.signal;
+}
+
+/**
+ * Returns a fetch function based on the runtime
+ */
+async function getFetchFn(): Promise {
+ // In Node.js environments, the SDK always uses`node-fetch`.
+ if (RUNTIME.type === "node") {
+ return (await import("node-fetch")).default as any;
+ }
+
+ // Otherwise the SDK uses global fetch if available,
+ // and falls back to node-fetch.
+ if (typeof fetch == "function") {
+ return fetch;
+ }
+
+ // Defaults to node `node-fetch` if global fetch isn't available
+ return (await import("node-fetch")).default as any;
+}
+
export const fetcher: FetchFunction = fetcherImpl;
diff --git a/src/core/runtime/runtime.ts b/src/core/runtime/runtime.ts
index f0692ab3..30fe0779 100644
--- a/src/core/runtime/runtime.ts
+++ b/src/core/runtime/runtime.ts
@@ -55,13 +55,19 @@ const isNode =
*/
const isReactNative = typeof navigator !== "undefined" && navigator?.product === "ReactNative";
+/**
+ * A constant that indicates whether the environment the code is running is Cloudflare.
+ * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
+ */
+const isCloudflare = typeof globalThis !== "undefined" && globalThis?.navigator?.userAgent === "Cloudflare-Workers";
+
/**
* A constant that indicates which environment and version the SDK is running in.
*/
export const RUNTIME: Runtime = evaluateRuntime();
export interface Runtime {
- type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown";
+ type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
version?: string;
}
@@ -73,6 +79,12 @@ function evaluateRuntime(): Runtime {
};
}
+ if (isCloudflare) {
+ return {
+ type: "workerd",
+ };
+ }
+
if (isWebWorker) {
return {
type: "web-worker",
diff --git a/src/core/schemas/builders/object/object.ts b/src/core/schemas/builders/object/object.ts
index 4abadfb3..6427678b 100644
--- a/src/core/schemas/builders/object/object.ts
+++ b/src/core/schemas/builders/object/object.ts
@@ -60,7 +60,7 @@ export function object): Promise {
- return !(await isSchemaOptional(schema));
+function isSchemaRequired(schema: Schema): boolean {
+ return !isSchemaOptional(schema);
}
-async function isSchemaOptional(schema: Schema): Promise {
- switch (await schema.getType()) {
+function isSchemaOptional(schema: Schema): boolean {
+ switch (schema.getType()) {
case SchemaType.ANY:
case SchemaType.UNKNOWN:
case SchemaType.OPTIONAL:
diff --git a/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts b/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts
index 95fd0990..155e2cc7 100644
--- a/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts
+++ b/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const AccessGroupsListRequestSort: core.serialization.Schema<
diff --git a/src/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.ts b/src/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.ts
index b40dcf77..32507c9c 100644
--- a/src/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.ts
+++ b/src/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const AssetsCreateFolderRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/assets/client/requests/AssetsCreateRequest.ts b/src/serialization/resources/assets/client/requests/AssetsCreateRequest.ts
index b1ed7531..3a2d93b3 100644
--- a/src/serialization/resources/assets/client/requests/AssetsCreateRequest.ts
+++ b/src/serialization/resources/assets/client/requests/AssetsCreateRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const AssetsCreateRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts b/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts
index 7236ad96..2ceb794f 100644
--- a/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts
+++ b/src/serialization/resources/assets/client/requests/AssetsUpdateRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const AssetsUpdateRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/collections/client/requests/CollectionsCreateRequest.ts b/src/serialization/resources/collections/client/requests/CollectionsCreateRequest.ts
index bc720c96..464d5a0b 100644
--- a/src/serialization/resources/collections/client/requests/CollectionsCreateRequest.ts
+++ b/src/serialization/resources/collections/client/requests/CollectionsCreateRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const CollectionsCreateRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/collections/resources/fields/client/requests/FieldCreate.ts b/src/serialization/resources/collections/resources/fields/client/requests/FieldCreate.ts
index 7e58336b..01459630 100644
--- a/src/serialization/resources/collections/resources/fields/client/requests/FieldCreate.ts
+++ b/src/serialization/resources/collections/resources/fields/client/requests/FieldCreate.ts
@@ -2,16 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../../../..";
-import * as Webflow from "../../../../../../../api";
+import * as serializers from "../../../../../../index";
+import * as Webflow from "../../../../../../../api/index";
import * as core from "../../../../../../../core";
+import { FieldCreateType } from "../../types/FieldCreateType";
export const FieldCreate: core.serialization.Schema<
serializers.collections.FieldCreate.Raw,
Webflow.collections.FieldCreate
> = core.serialization.object({
isRequired: core.serialization.boolean().optional(),
- type: core.serialization.lazy(async () => (await import("../../../../../..")).collections.FieldCreateType),
+ type: FieldCreateType,
displayName: core.serialization.string(),
helpText: core.serialization.string().optional(),
});
@@ -19,7 +20,7 @@ export const FieldCreate: core.serialization.Schema<
export declare namespace FieldCreate {
interface Raw {
isRequired?: boolean | null;
- type: serializers.collections.FieldCreateType.Raw;
+ type: FieldCreateType.Raw;
displayName: string;
helpText?: string | null;
}
diff --git a/src/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.ts b/src/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.ts
index 4b639fc3..d09ce2ba 100644
--- a/src/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.ts
+++ b/src/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../../../..";
-import * as Webflow from "../../../../../../../api";
+import * as serializers from "../../../../../../index";
+import * as Webflow from "../../../../../../../api/index";
import * as core from "../../../../../../../core";
export const FieldUpdate: core.serialization.Schema<
diff --git a/src/serialization/resources/collections/resources/fields/types/FieldCreateType.ts b/src/serialization/resources/collections/resources/fields/types/FieldCreateType.ts
index 6d6ff640..36927784 100644
--- a/src/serialization/resources/collections/resources/fields/types/FieldCreateType.ts
+++ b/src/serialization/resources/collections/resources/fields/types/FieldCreateType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../../..";
-import * as Webflow from "../../../../../../api";
+import * as serializers from "../../../../../index";
+import * as Webflow from "../../../../../../api/index";
import * as core from "../../../../../../core";
export const FieldCreateType: core.serialization.Schema<
@@ -20,7 +20,7 @@ export const FieldCreateType: core.serialization.Schema<
"Phone",
"Number",
"DateTime",
- "Boolean",
+ "Switch",
"Color",
"File",
]);
@@ -37,7 +37,7 @@ export declare namespace FieldCreateType {
| "Phone"
| "Number"
| "DateTime"
- | "Boolean"
+ | "Switch"
| "Color"
| "File";
}
diff --git a/src/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.ts b/src/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.ts
index 36eaa972..35a5a271 100644
--- a/src/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.ts
+++ b/src/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../../../..";
-import * as Webflow from "../../../../../../../api";
+import * as serializers from "../../../../../../index";
+import * as Webflow from "../../../../../../../api/index";
import * as core from "../../../../../../../core";
+import { BulkCollectionItemFieldData } from "../../types/BulkCollectionItemFieldData";
export const BulkCollectionItem: core.serialization.Schema<
serializers.collections.BulkCollectionItem.Raw,
@@ -17,9 +18,7 @@ export const BulkCollectionItem: core.serialization.Schema<
createdOn: core.serialization.string().optional(),
isArchived: core.serialization.boolean().optional(),
isDraft: core.serialization.boolean().optional(),
- fieldData: core.serialization
- .lazyObject(async () => (await import("../../../../../..")).collections.BulkCollectionItemFieldData)
- .optional(),
+ fieldData: BulkCollectionItemFieldData.optional(),
});
export declare namespace BulkCollectionItem {
@@ -31,6 +30,6 @@ export declare namespace BulkCollectionItem {
createdOn?: string | null;
isArchived?: boolean | null;
isDraft?: boolean | null;
- fieldData?: serializers.collections.BulkCollectionItemFieldData.Raw | null;
+ fieldData?: BulkCollectionItemFieldData.Raw | null;
}
}
diff --git a/src/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.ts b/src/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.ts
index b1d1329b..d998e18a 100644
--- a/src/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.ts
+++ b/src/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../../../..";
-import * as Webflow from "../../../../../../../api";
+import * as serializers from "../../../../../../index";
+import * as Webflow from "../../../../../../../api/index";
import * as core from "../../../../../../../core";
export const ItemsPublishItemRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.ts b/src/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.ts
index e4b47b0c..79959c47 100644
--- a/src/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.ts
+++ b/src/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../../..";
-import * as Webflow from "../../../../../../api";
+import * as serializers from "../../../../../index";
+import * as Webflow from "../../../../../../api/index";
import * as core from "../../../../../../core";
export const BulkCollectionItemFieldData: core.serialization.ObjectSchema<
diff --git a/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts b/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts
new file mode 100644
index 00000000..e902333a
--- /dev/null
+++ b/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../../../../../index";
+import * as Webflow from "../../../../../../api/index";
+import * as core from "../../../../../../core";
+
+export const ItemsListItemsLiveRequestSortBy: core.serialization.Schema<
+ serializers.collections.ItemsListItemsLiveRequestSortBy.Raw,
+ Webflow.collections.ItemsListItemsLiveRequestSortBy
+> = core.serialization.enum_(["lastPublished", "name", "slug"]);
+
+export declare namespace ItemsListItemsLiveRequestSortBy {
+ type Raw = "lastPublished" | "name" | "slug";
+}
diff --git a/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts b/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts
new file mode 100644
index 00000000..6538db76
--- /dev/null
+++ b/src/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../../../../../index";
+import * as Webflow from "../../../../../../api/index";
+import * as core from "../../../../../../core";
+
+export const ItemsListItemsLiveRequestSortOrder: core.serialization.Schema<
+ serializers.collections.ItemsListItemsLiveRequestSortOrder.Raw,
+ Webflow.collections.ItemsListItemsLiveRequestSortOrder
+> = core.serialization.enum_(["asc", "desc"]);
+
+export declare namespace ItemsListItemsLiveRequestSortOrder {
+ type Raw = "asc" | "desc";
+}
diff --git a/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts b/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts
new file mode 100644
index 00000000..6a72b7ef
--- /dev/null
+++ b/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../../../../../index";
+import * as Webflow from "../../../../../../api/index";
+import * as core from "../../../../../../core";
+
+export const ItemsListItemsRequestSortBy: core.serialization.Schema<
+ serializers.collections.ItemsListItemsRequestSortBy.Raw,
+ Webflow.collections.ItemsListItemsRequestSortBy
+> = core.serialization.enum_(["lastPublished", "name", "slug"]);
+
+export declare namespace ItemsListItemsRequestSortBy {
+ type Raw = "lastPublished" | "name" | "slug";
+}
diff --git a/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts b/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts
new file mode 100644
index 00000000..fce7b727
--- /dev/null
+++ b/src/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../../../../../index";
+import * as Webflow from "../../../../../../api/index";
+import * as core from "../../../../../../core";
+
+export const ItemsListItemsRequestSortOrder: core.serialization.Schema<
+ serializers.collections.ItemsListItemsRequestSortOrder.Raw,
+ Webflow.collections.ItemsListItemsRequestSortOrder
+> = core.serialization.enum_(["asc", "desc"]);
+
+export declare namespace ItemsListItemsRequestSortOrder {
+ type Raw = "asc" | "desc";
+}
diff --git a/src/serialization/resources/collections/resources/items/types/index.ts b/src/serialization/resources/collections/resources/items/types/index.ts
index 3a61bf70..dcde450b 100644
--- a/src/serialization/resources/collections/resources/items/types/index.ts
+++ b/src/serialization/resources/collections/resources/items/types/index.ts
@@ -1 +1,5 @@
+export * from "./ItemsListItemsRequestSortBy";
+export * from "./ItemsListItemsRequestSortOrder";
+export * from "./ItemsListItemsLiveRequestSortBy";
+export * from "./ItemsListItemsLiveRequestSortOrder";
export * from "./BulkCollectionItemFieldData";
diff --git a/src/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.ts b/src/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.ts
index 480a0b81..96b8e25a 100644
--- a/src/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.ts
+++ b/src/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const FormsUpdateSubmissionRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/inventory/client/requests/InventoryUpdateRequest.ts b/src/serialization/resources/inventory/client/requests/InventoryUpdateRequest.ts
index 7353bd55..2857318f 100644
--- a/src/serialization/resources/inventory/client/requests/InventoryUpdateRequest.ts
+++ b/src/serialization/resources/inventory/client/requests/InventoryUpdateRequest.ts
@@ -2,24 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { InventoryUpdateRequestInventoryType } from "../../types/InventoryUpdateRequestInventoryType";
export const InventoryUpdateRequest: core.serialization.Schema<
serializers.InventoryUpdateRequest.Raw,
Webflow.InventoryUpdateRequest
> = core.serialization.object({
- inventoryType: core.serialization.lazy(
- async () => (await import("../../../..")).InventoryUpdateRequestInventoryType
- ),
+ inventoryType: InventoryUpdateRequestInventoryType,
updateQuantity: core.serialization.number().optional(),
quantity: core.serialization.number().optional(),
});
export declare namespace InventoryUpdateRequest {
interface Raw {
- inventoryType: serializers.InventoryUpdateRequestInventoryType.Raw;
+ inventoryType: InventoryUpdateRequestInventoryType.Raw;
updateQuantity?: number | null;
quantity?: number | null;
}
diff --git a/src/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.ts b/src/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.ts
index 9f103ddc..c9c0d102 100644
--- a/src/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.ts
+++ b/src/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const InventoryUpdateRequestInventoryType: core.serialization.Schema<
diff --git a/src/serialization/resources/orders/client/requests/OrdersRefundRequest.ts b/src/serialization/resources/orders/client/requests/OrdersRefundRequest.ts
index 8ceaad1e..6c9328db 100644
--- a/src/serialization/resources/orders/client/requests/OrdersRefundRequest.ts
+++ b/src/serialization/resources/orders/client/requests/OrdersRefundRequest.ts
@@ -2,19 +2,20 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { OrdersRefundRequestReason } from "../../types/OrdersRefundRequestReason";
export const OrdersRefundRequest: core.serialization.Schema<
serializers.OrdersRefundRequest.Raw,
Webflow.OrdersRefundRequest
> = core.serialization.object({
- reason: core.serialization.lazy(async () => (await import("../../../..")).OrdersRefundRequestReason).optional(),
+ reason: OrdersRefundRequestReason.optional(),
});
export declare namespace OrdersRefundRequest {
interface Raw {
- reason?: serializers.OrdersRefundRequestReason.Raw | null;
+ reason?: OrdersRefundRequestReason.Raw | null;
}
}
diff --git a/src/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.ts b/src/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.ts
index 8067b48e..ef5889d1 100644
--- a/src/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.ts
+++ b/src/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const OrdersUpdateFulfillRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/orders/client/requests/OrdersUpdateRequest.ts b/src/serialization/resources/orders/client/requests/OrdersUpdateRequest.ts
index cdcd9818..7d1ee561 100644
--- a/src/serialization/resources/orders/client/requests/OrdersUpdateRequest.ts
+++ b/src/serialization/resources/orders/client/requests/OrdersUpdateRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const OrdersUpdateRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/orders/types/OrdersListRequestStatus.ts b/src/serialization/resources/orders/types/OrdersListRequestStatus.ts
new file mode 100644
index 00000000..80a9039f
--- /dev/null
+++ b/src/serialization/resources/orders/types/OrdersListRequestStatus.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
+import * as core from "../../../../core";
+
+export const OrdersListRequestStatus: core.serialization.Schema<
+ serializers.OrdersListRequestStatus.Raw,
+ Webflow.OrdersListRequestStatus
+> = core.serialization.enum_(["pending", "refunded", "dispute-lost", "fulfilled", "disputed", "unfulfilled"]);
+
+export declare namespace OrdersListRequestStatus {
+ type Raw = "pending" | "refunded" | "dispute-lost" | "fulfilled" | "disputed" | "unfulfilled";
+}
diff --git a/src/serialization/resources/orders/types/OrdersRefundRequestReason.ts b/src/serialization/resources/orders/types/OrdersRefundRequestReason.ts
index b3f84766..ea705041 100644
--- a/src/serialization/resources/orders/types/OrdersRefundRequestReason.ts
+++ b/src/serialization/resources/orders/types/OrdersRefundRequestReason.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const OrdersRefundRequestReason: core.serialization.Schema<
diff --git a/src/serialization/resources/orders/types/index.ts b/src/serialization/resources/orders/types/index.ts
index ba7e0574..59a55534 100644
--- a/src/serialization/resources/orders/types/index.ts
+++ b/src/serialization/resources/orders/types/index.ts
@@ -1 +1,2 @@
+export * from "./OrdersListRequestStatus";
export * from "./OrdersRefundRequestReason";
diff --git a/src/serialization/resources/pages/client/requests/DomWrite.ts b/src/serialization/resources/pages/client/requests/DomWrite.ts
index 53bff243..0c67e0f4 100644
--- a/src/serialization/resources/pages/client/requests/DomWrite.ts
+++ b/src/serialization/resources/pages/client/requests/DomWrite.ts
@@ -2,21 +2,20 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { DomWriteNodesItem } from "../../types/DomWriteNodesItem";
export const DomWrite: core.serialization.Schema<
serializers.DomWrite.Raw,
Omit
> = core.serialization.object({
- nodes: core.serialization.list(
- core.serialization.lazyObject(async () => (await import("../../../..")).DomWriteNodesItem)
- ),
+ nodes: core.serialization.list(DomWriteNodesItem),
});
export declare namespace DomWrite {
interface Raw {
- nodes: serializers.DomWriteNodesItem.Raw[];
+ nodes: DomWriteNodesItem.Raw[];
}
}
diff --git a/src/serialization/resources/pages/types/DomWriteNodesItem.ts b/src/serialization/resources/pages/types/DomWriteNodesItem.ts
index 4d3dbc91..507c8108 100644
--- a/src/serialization/resources/pages/types/DomWriteNodesItem.ts
+++ b/src/serialization/resources/pages/types/DomWriteNodesItem.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const DomWriteNodesItem: core.serialization.ObjectSchema<
diff --git a/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts b/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts
index 3f84db54..df0e6fe8 100644
--- a/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts
+++ b/src/serialization/resources/pages/types/UpdateStaticContentResponse.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const UpdateStaticContentResponse: core.serialization.ObjectSchema<
diff --git a/src/serialization/resources/products/client/requests/ProductSkuCreate.ts b/src/serialization/resources/products/client/requests/ProductSkuCreate.ts
index b0661bc3..48fee055 100644
--- a/src/serialization/resources/products/client/requests/ProductSkuCreate.ts
+++ b/src/serialization/resources/products/client/requests/ProductSkuCreate.ts
@@ -2,21 +2,24 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { PublishStatus } from "../../../../types/PublishStatus";
+import { Product } from "../../../../types/Product";
+import { Sku } from "../../../../types/Sku";
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("../../../..")).Product).optional(),
- sku: core.serialization.lazyObject(async () => (await import("../../../..")).Sku).optional(),
+ publishStatus: PublishStatus.optional(),
+ product: Product.optional(),
+ sku: Sku.optional(),
});
export declare namespace ProductSkuCreate {
interface Raw {
- publishStatus?: serializers.PublishStatus.Raw | null;
- product?: serializers.Product.Raw | null;
- sku?: serializers.Sku.Raw | null;
+ publishStatus?: PublishStatus.Raw | null;
+ product?: Product.Raw | null;
+ sku?: Sku.Raw | null;
}
}
diff --git a/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts b/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts
index 49258a70..31b327bc 100644
--- a/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts
+++ b/src/serialization/resources/products/client/requests/ProductSkuUpdate.ts
@@ -2,21 +2,24 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { PublishStatus } from "../../../../types/PublishStatus";
+import { Product } from "../../../../types/Product";
+import { Sku } from "../../../../types/Sku";
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(),
+ publishStatus: PublishStatus.optional(),
+ product: Product.optional(),
+ sku: Sku.optional(),
});
export declare namespace ProductSkuUpdate {
interface Raw {
- publishStatus?: serializers.PublishStatus.Raw | null;
- product?: serializers.Product.Raw | null;
- sku?: serializers.Sku.Raw | null;
+ publishStatus?: PublishStatus.Raw | null;
+ product?: Product.Raw | null;
+ sku?: Sku.Raw | null;
}
}
diff --git a/src/serialization/resources/products/client/requests/ProductsCreateSkuRequest.ts b/src/serialization/resources/products/client/requests/ProductsCreateSkuRequest.ts
index 8c62f170..ddcb2fb1 100644
--- a/src/serialization/resources/products/client/requests/ProductsCreateSkuRequest.ts
+++ b/src/serialization/resources/products/client/requests/ProductsCreateSkuRequest.ts
@@ -2,21 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { PublishStatus } from "../../../../types/PublishStatus";
+import { Sku } from "../../../../types/Sku";
export const ProductsCreateSkuRequest: core.serialization.Schema<
serializers.ProductsCreateSkuRequest.Raw,
Webflow.ProductsCreateSkuRequest
> = core.serialization.object({
- publishStatus: core.serialization.lazy(async () => (await import("../../../..")).PublishStatus).optional(),
- skus: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../../..")).Sku)),
+ publishStatus: PublishStatus.optional(),
+ skus: core.serialization.list(Sku),
});
export declare namespace ProductsCreateSkuRequest {
interface Raw {
- publishStatus?: serializers.PublishStatus.Raw | null;
- skus: serializers.Sku.Raw[];
+ publishStatus?: PublishStatus.Raw | null;
+ skus: Sku.Raw[];
}
}
diff --git a/src/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.ts b/src/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.ts
index 044eef76..8273bef6 100644
--- a/src/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.ts
+++ b/src/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.ts
@@ -2,21 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { PublishStatus } from "../../../../types/PublishStatus";
+import { Sku } from "../../../../types/Sku";
export const ProductsUpdateSkuRequest: core.serialization.Schema<
serializers.ProductsUpdateSkuRequest.Raw,
Webflow.ProductsUpdateSkuRequest
> = core.serialization.object({
- publishStatus: core.serialization.lazy(async () => (await import("../../../..")).PublishStatus).optional(),
- sku: core.serialization.lazyObject(async () => (await import("../../../..")).Sku),
+ publishStatus: PublishStatus.optional(),
+ sku: Sku,
});
export declare namespace ProductsUpdateSkuRequest {
interface Raw {
- publishStatus?: serializers.PublishStatus.Raw | null;
- sku: serializers.Sku.Raw;
+ publishStatus?: PublishStatus.Raw | null;
+ sku: Sku.Raw;
}
}
diff --git a/src/serialization/resources/products/types/ProductsCreateSkuResponse.ts b/src/serialization/resources/products/types/ProductsCreateSkuResponse.ts
index 68687de8..4ca5e4a7 100644
--- a/src/serialization/resources/products/types/ProductsCreateSkuResponse.ts
+++ b/src/serialization/resources/products/types/ProductsCreateSkuResponse.ts
@@ -2,19 +2,20 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
+import { Sku } from "../../../types/Sku";
export const ProductsCreateSkuResponse: core.serialization.ObjectSchema<
serializers.ProductsCreateSkuResponse.Raw,
Webflow.ProductsCreateSkuResponse
> = core.serialization.object({
- skus: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Sku)).optional(),
+ skus: core.serialization.list(Sku).optional(),
});
export declare namespace ProductsCreateSkuResponse {
interface Raw {
- skus?: serializers.Sku.Raw[] | null;
+ skus?: Sku.Raw[] | null;
}
}
diff --git a/src/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.ts b/src/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.ts
index a45e7d59..25bd73bc 100644
--- a/src/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.ts
+++ b/src/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const CustomCodeHostedRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.ts b/src/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.ts
index 444d9fdb..7fa5a0b9 100644
--- a/src/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.ts
+++ b/src/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const CustomCodeInlineRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/sites/client/requests/SitesPublishRequest.ts b/src/serialization/resources/sites/client/requests/SitesPublishRequest.ts
index 8bee87ea..84787ef5 100644
--- a/src/serialization/resources/sites/client/requests/SitesPublishRequest.ts
+++ b/src/serialization/resources/sites/client/requests/SitesPublishRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const SitesPublishRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/users/client/requests/UsersInviteRequest.ts b/src/serialization/resources/users/client/requests/UsersInviteRequest.ts
index d429a532..d5685190 100644
--- a/src/serialization/resources/users/client/requests/UsersInviteRequest.ts
+++ b/src/serialization/resources/users/client/requests/UsersInviteRequest.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
export const UsersInviteRequest: core.serialization.Schema<
diff --git a/src/serialization/resources/users/client/requests/UsersUpdateRequest.ts b/src/serialization/resources/users/client/requests/UsersUpdateRequest.ts
index 57a46f6f..802b6dc9 100644
--- a/src/serialization/resources/users/client/requests/UsersUpdateRequest.ts
+++ b/src/serialization/resources/users/client/requests/UsersUpdateRequest.ts
@@ -2,21 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { UsersUpdateRequestData } from "../../types/UsersUpdateRequestData";
export const UsersUpdateRequest: core.serialization.Schema<
serializers.UsersUpdateRequest.Raw,
Webflow.UsersUpdateRequest
> = core.serialization.object({
- data: core.serialization.lazyObject(async () => (await import("../../../..")).UsersUpdateRequestData).optional(),
+ data: UsersUpdateRequestData.optional(),
accessGroups: core.serialization.list(core.serialization.string()).optional(),
});
export declare namespace UsersUpdateRequest {
interface Raw {
- data?: serializers.UsersUpdateRequestData.Raw | null;
+ data?: UsersUpdateRequestData.Raw | null;
accessGroups?: string[] | null;
}
}
diff --git a/src/serialization/resources/users/types/UsersListRequestSort.ts b/src/serialization/resources/users/types/UsersListRequestSort.ts
index 16f658b2..79d169b8 100644
--- a/src/serialization/resources/users/types/UsersListRequestSort.ts
+++ b/src/serialization/resources/users/types/UsersListRequestSort.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const UsersListRequestSort: core.serialization.Schema<
diff --git a/src/serialization/resources/users/types/UsersUpdateRequestData.ts b/src/serialization/resources/users/types/UsersUpdateRequestData.ts
index 46f2da75..3798704b 100644
--- a/src/serialization/resources/users/types/UsersUpdateRequestData.ts
+++ b/src/serialization/resources/users/types/UsersUpdateRequestData.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../..";
-import * as Webflow from "../../../../api";
+import * as serializers from "../../../index";
+import * as Webflow from "../../../../api/index";
import * as core from "../../../../core";
export const UsersUpdateRequestData: core.serialization.ObjectSchema<
diff --git a/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts b/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts
index 9997f894..7912cca0 100644
--- a/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts
+++ b/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts
@@ -2,22 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "../../../..";
-import * as Webflow from "../../../../../api";
+import * as serializers from "../../../../index";
+import * as Webflow from "../../../../../api/index";
import * as core from "../../../../../core";
+import { TriggerType } from "../../../../types/TriggerType";
export const WebhooksCreateRequest: core.serialization.Schema<
serializers.WebhooksCreateRequest.Raw,
Webflow.WebhooksCreateRequest
> = core.serialization.object({
- triggerType: core.serialization.lazy(async () => (await import("../../../..")).TriggerType),
+ triggerType: TriggerType,
url: core.serialization.string(),
filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
});
export declare namespace WebhooksCreateRequest {
interface Raw {
- triggerType: serializers.TriggerType.Raw;
+ triggerType: TriggerType.Raw;
url: string;
filter?: Record | null;
}
diff --git a/src/serialization/types/AccessGroup.ts b/src/serialization/types/AccessGroup.ts
index 880344db..5442e501 100644
--- a/src/serialization/types/AccessGroup.ts
+++ b/src/serialization/types/AccessGroup.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const AccessGroup: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/AccessGroupList.ts b/src/serialization/types/AccessGroupList.ts
index 5c6aecac..2be663f8 100644
--- a/src/serialization/types/AccessGroupList.ts
+++ b/src/serialization/types/AccessGroupList.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { AccessGroup } from "./AccessGroup";
export const AccessGroupList: core.serialization.ObjectSchema<
serializers.AccessGroupList.Raw,
@@ -14,9 +15,7 @@ export const AccessGroupList: core.serialization.ObjectSchema<
limit: core.serialization.number().optional(),
offset: core.serialization.number().optional(),
total: core.serialization.number().optional(),
- accessGroups: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).AccessGroup))
- .optional(),
+ accessGroups: core.serialization.list(AccessGroup).optional(),
});
export declare namespace AccessGroupList {
@@ -25,6 +24,6 @@ export declare namespace AccessGroupList {
limit?: number | null;
offset?: number | null;
total?: number | null;
- accessGroups?: serializers.AccessGroup.Raw[] | null;
+ accessGroups?: AccessGroup.Raw[] | null;
}
}
diff --git a/src/serialization/types/Application.ts b/src/serialization/types/Application.ts
index 99583800..7d2a48b7 100644
--- a/src/serialization/types/Application.ts
+++ b/src/serialization/types/Application.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const Application: core.serialization.Schema =
diff --git a/src/serialization/types/Asset.ts b/src/serialization/types/Asset.ts
index 77728c0e..656b4db3 100644
--- a/src/serialization/types/Asset.ts
+++ b/src/serialization/types/Asset.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { AssetVariant } from "./AssetVariant";
export const Asset: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string().optional(),
@@ -16,9 +17,7 @@ export const Asset: core.serialization.ObjectSchema (await import("..")).AssetVariant))
- .optional(),
+ variants: core.serialization.list(AssetVariant).optional(),
});
export declare namespace Asset {
@@ -32,6 +31,6 @@ export declare namespace Asset {
createdOn?: string | null;
lastUpdated?: string | null;
hostedUrl?: string | null;
- variants?: serializers.AssetVariant.Raw[] | null;
+ variants?: AssetVariant.Raw[] | null;
}
}
diff --git a/src/serialization/types/AssetFolder.ts b/src/serialization/types/AssetFolder.ts
index 71fab400..8874aa5c 100644
--- a/src/serialization/types/AssetFolder.ts
+++ b/src/serialization/types/AssetFolder.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const AssetFolder: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/AssetFolderList.ts b/src/serialization/types/AssetFolderList.ts
index 092363fd..7a79d54c 100644
--- a/src/serialization/types/AssetFolderList.ts
+++ b/src/serialization/types/AssetFolderList.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { AssetFolder } from "./AssetFolder";
+import { Pagination } from "./Pagination";
export const AssetFolderList: core.serialization.ObjectSchema<
serializers.AssetFolderList.Raw,
Webflow.AssetFolderList
> = core.serialization.object({
- assetFolders: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).AssetFolder))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ assetFolders: core.serialization.list(AssetFolder).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace AssetFolderList {
interface Raw {
- assetFolders?: serializers.AssetFolder.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ assetFolders?: AssetFolder.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/AssetUpload.ts b/src/serialization/types/AssetUpload.ts
index aa565ae0..731e3824 100644
--- a/src/serialization/types/AssetUpload.ts
+++ b/src/serialization/types/AssetUpload.ts
@@ -2,15 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { AssetUploadUploadDetails } from "./AssetUploadUploadDetails";
export const AssetUpload: core.serialization.ObjectSchema =
core.serialization.object({
- uploadDetails: core.serialization
- .lazyObject(async () => (await import("..")).AssetUploadUploadDetails)
- .optional(),
+ uploadDetails: AssetUploadUploadDetails.optional(),
contentType: core.serialization.string().optional(),
id: core.serialization.string().optional(),
parentFolder: core.serialization.string().optional(),
@@ -24,7 +23,7 @@ export const AssetUpload: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/Assets.ts b/src/serialization/types/Assets.ts
index 90301010..7849dc46 100644
--- a/src/serialization/types/Assets.ts
+++ b/src/serialization/types/Assets.ts
@@ -2,19 +2,18 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Asset } from "./Asset";
export const Assets: core.serialization.ObjectSchema =
core.serialization.object({
- assets: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).Asset))
- .optional(),
+ assets: core.serialization.list(Asset).optional(),
});
export declare namespace Assets {
interface Raw {
- assets?: serializers.Asset.Raw[] | null;
+ assets?: Asset.Raw[] | null;
}
}
diff --git a/src/serialization/types/Authorization.ts b/src/serialization/types/Authorization.ts
index a6621798..338b5378 100644
--- a/src/serialization/types/Authorization.ts
+++ b/src/serialization/types/Authorization.ts
@@ -2,21 +2,21 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { AuthorizationAuthorization } from "./AuthorizationAuthorization";
+import { Application } from "./Application";
export const Authorization: core.serialization.ObjectSchema =
core.serialization.object({
- authorization: core.serialization
- .lazyObject(async () => (await import("..")).AuthorizationAuthorization)
- .optional(),
- application: core.serialization.lazy(async () => (await import("..")).Application).optional(),
+ authorization: AuthorizationAuthorization.optional(),
+ application: Application.optional(),
});
export declare namespace Authorization {
interface Raw {
- authorization?: serializers.AuthorizationAuthorization.Raw | null;
- application?: (serializers.Application.Raw | undefined) | null;
+ authorization?: AuthorizationAuthorization.Raw | null;
+ application?: (Application.Raw | undefined) | null;
}
}
diff --git a/src/serialization/types/AuthorizationAuthorization.ts b/src/serialization/types/AuthorizationAuthorization.ts
index 7c275827..813beea9 100644
--- a/src/serialization/types/AuthorizationAuthorization.ts
+++ b/src/serialization/types/AuthorizationAuthorization.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { AuthorizationAuthorizationAuthorizedTo } from "./AuthorizationAuthorizationAuthorizedTo";
export const AuthorizationAuthorization: core.serialization.ObjectSchema<
serializers.AuthorizationAuthorization.Raw,
@@ -16,9 +17,7 @@ export const AuthorizationAuthorization: core.serialization.ObjectSchema<
grantType: core.serialization.string().optional(),
rateLimit: core.serialization.number().optional(),
scope: core.serialization.string().optional(),
- authorizedTo: core.serialization
- .lazyObject(async () => (await import("..")).AuthorizationAuthorizationAuthorizedTo)
- .optional(),
+ authorizedTo: AuthorizationAuthorizationAuthorizedTo.optional(),
});
export declare namespace AuthorizationAuthorization {
@@ -29,6 +28,6 @@ export declare namespace AuthorizationAuthorization {
grantType?: string | null;
rateLimit?: number | null;
scope?: string | null;
- authorizedTo?: serializers.AuthorizationAuthorizationAuthorizedTo.Raw | null;
+ authorizedTo?: AuthorizationAuthorizationAuthorizedTo.Raw | null;
}
}
diff --git a/src/serialization/types/AuthorizationAuthorizationAuthorizedTo.ts b/src/serialization/types/AuthorizationAuthorizationAuthorizedTo.ts
index 40ab2667..b16c40af 100644
--- a/src/serialization/types/AuthorizationAuthorizationAuthorizedTo.ts
+++ b/src/serialization/types/AuthorizationAuthorizationAuthorizedTo.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const AuthorizationAuthorizationAuthorizedTo: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/AuthorizedUser.ts b/src/serialization/types/AuthorizedUser.ts
index 56bd6201..6e70196d 100644
--- a/src/serialization/types/AuthorizedUser.ts
+++ b/src/serialization/types/AuthorizedUser.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const AuthorizedUser: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/BadRequestErrorBody.ts b/src/serialization/types/BadRequestErrorBody.ts
new file mode 100644
index 00000000..60eb9184
--- /dev/null
+++ b/src/serialization/types/BadRequestErrorBody.ts
@@ -0,0 +1,18 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
+import * as core from "../../core";
+import { InvalidDomain } from "./InvalidDomain";
+import { NoDomains } from "./NoDomains";
+
+export const BadRequestErrorBody: core.serialization.Schema<
+ serializers.BadRequestErrorBody.Raw,
+ Webflow.BadRequestErrorBody
+> = core.serialization.undiscriminatedUnion([InvalidDomain, NoDomains]);
+
+export declare namespace BadRequestErrorBody {
+ type Raw = (InvalidDomain.Raw | undefined) | (NoDomains.Raw | undefined);
+}
diff --git a/src/serialization/types/Collection.ts b/src/serialization/types/Collection.ts
index fa3bd9de..5e5b5e66 100644
--- a/src/serialization/types/Collection.ts
+++ b/src/serialization/types/Collection.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Field } from "./Field";
export const Collection: core.serialization.ObjectSchema =
core.serialization.object({
@@ -14,7 +15,7 @@ export const Collection: core.serialization.ObjectSchema;
+ fields: Field.Raw[];
}
}
diff --git a/src/serialization/types/CollectionItem.ts b/src/serialization/types/CollectionItem.ts
index 4c74a09e..23cf3695 100644
--- a/src/serialization/types/CollectionItem.ts
+++ b/src/serialization/types/CollectionItem.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { CollectionItemFieldData } from "./CollectionItemFieldData";
export const CollectionItem: core.serialization.ObjectSchema =
core.serialization.object({
@@ -15,7 +16,7 @@ export const CollectionItem: core.serialization.ObjectSchema (await import("..")).CollectionItemFieldData).optional(),
+ fieldData: CollectionItemFieldData.optional(),
});
export declare namespace CollectionItem {
@@ -27,6 +28,6 @@ export declare namespace CollectionItem {
createdOn?: string | null;
isArchived?: boolean | null;
isDraft?: boolean | null;
- fieldData?: serializers.CollectionItemFieldData.Raw | null;
+ fieldData?: CollectionItemFieldData.Raw | null;
}
}
diff --git a/src/serialization/types/CollectionItemFieldData.ts b/src/serialization/types/CollectionItemFieldData.ts
index 1035a674..8ed0aa67 100644
--- a/src/serialization/types/CollectionItemFieldData.ts
+++ b/src/serialization/types/CollectionItemFieldData.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const CollectionItemFieldData: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/CollectionItemList.ts b/src/serialization/types/CollectionItemList.ts
index d6d7536a..fec01650 100644
--- a/src/serialization/types/CollectionItemList.ts
+++ b/src/serialization/types/CollectionItemList.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { CollectionItem } from "./CollectionItem";
+import { CollectionItemListPagination } from "./CollectionItemListPagination";
export const CollectionItemList: core.serialization.ObjectSchema<
serializers.CollectionItemList.Raw,
Webflow.CollectionItemList
> = core.serialization.object({
- items: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).CollectionItem))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).CollectionItemListPagination).optional(),
+ items: core.serialization.list(CollectionItem).optional(),
+ pagination: CollectionItemListPagination.optional(),
});
export declare namespace CollectionItemList {
interface Raw {
- items?: serializers.CollectionItem.Raw[] | null;
- pagination?: serializers.CollectionItemListPagination.Raw | null;
+ items?: CollectionItem.Raw[] | null;
+ pagination?: CollectionItemListPagination.Raw | null;
}
}
diff --git a/src/serialization/types/CollectionItemListPagination.ts b/src/serialization/types/CollectionItemListPagination.ts
index 01450834..70589b0e 100644
--- a/src/serialization/types/CollectionItemListPagination.ts
+++ b/src/serialization/types/CollectionItemListPagination.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const CollectionItemListPagination: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/CollectionList.ts b/src/serialization/types/CollectionList.ts
index 09fcdecc..b7723e68 100644
--- a/src/serialization/types/CollectionList.ts
+++ b/src/serialization/types/CollectionList.ts
@@ -2,19 +2,18 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { CollectionListArrayItem } from "./CollectionListArrayItem";
export const CollectionList: core.serialization.ObjectSchema =
core.serialization.object({
- collections: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).CollectionListArrayItem))
- .optional(),
+ collections: core.serialization.list(CollectionListArrayItem).optional(),
});
export declare namespace CollectionList {
interface Raw {
- collections?: serializers.CollectionListArrayItem.Raw[] | null;
+ collections?: CollectionListArrayItem.Raw[] | null;
}
}
diff --git a/src/serialization/types/CollectionListArrayItem.ts b/src/serialization/types/CollectionListArrayItem.ts
index de8fa372..e6bdb4b2 100644
--- a/src/serialization/types/CollectionListArrayItem.ts
+++ b/src/serialization/types/CollectionListArrayItem.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const CollectionListArrayItem: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/ConflictErrorBody.ts b/src/serialization/types/ConflictErrorBody.ts
new file mode 100644
index 00000000..5aed9236
--- /dev/null
+++ b/src/serialization/types/ConflictErrorBody.ts
@@ -0,0 +1,18 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
+import * as core from "../../core";
+import { DuplicateUserEmail } from "./DuplicateUserEmail";
+import { UserLimitReached } from "./UserLimitReached";
+
+export const ConflictErrorBody: core.serialization.Schema<
+ serializers.ConflictErrorBody.Raw,
+ Webflow.ConflictErrorBody
+> = core.serialization.undiscriminatedUnion([DuplicateUserEmail, UserLimitReached]);
+
+export declare namespace ConflictErrorBody {
+ type Raw = DuplicateUserEmail.Raw | UserLimitReached.Raw;
+}
diff --git a/src/serialization/types/CustomCodeBlock.ts b/src/serialization/types/CustomCodeBlock.ts
index 5582a254..3cc3b08f 100644
--- a/src/serialization/types/CustomCodeBlock.ts
+++ b/src/serialization/types/CustomCodeBlock.ts
@@ -2,9 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { CustomCodeBlockType } from "./CustomCodeBlockType";
+import { Scripts } from "./Scripts";
+import { ScriptApply } from "./ScriptApply";
export const CustomCodeBlock: core.serialization.ObjectSchema<
serializers.CustomCodeBlock.Raw,
@@ -12,8 +15,8 @@ export const CustomCodeBlock: core.serialization.ObjectSchema<
> = core.serialization.object({
siteId: core.serialization.string().optional(),
pageId: core.serialization.string().optional(),
- type: core.serialization.lazy(async () => (await import("..")).CustomCodeBlockType).optional(),
- scripts: core.serialization.lazy(async () => (await import("..")).Scripts).optional(),
+ type: CustomCodeBlockType.optional(),
+ scripts: Scripts.optional(),
createdOn: core.serialization.date().optional(),
lastUpdated: core.serialization.date().optional(),
});
@@ -22,8 +25,8 @@ export declare namespace CustomCodeBlock {
interface Raw {
siteId?: string | null;
pageId?: string | null;
- type?: serializers.CustomCodeBlockType.Raw | null;
- scripts?: serializers.Scripts.Raw | null;
+ type?: CustomCodeBlockType.Raw | null;
+ scripts?: Scripts.Raw | null;
createdOn?: string | null;
lastUpdated?: string | null;
}
diff --git a/src/serialization/types/CustomCodeBlockType.ts b/src/serialization/types/CustomCodeBlockType.ts
index 10c879e6..6232a480 100644
--- a/src/serialization/types/CustomCodeBlockType.ts
+++ b/src/serialization/types/CustomCodeBlockType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const CustomCodeBlockType: core.serialization.Schema<
diff --git a/src/serialization/types/CustomCodeHostedResponse.ts b/src/serialization/types/CustomCodeHostedResponse.ts
index 6adc0487..62db86d6 100644
--- a/src/serialization/types/CustomCodeHostedResponse.ts
+++ b/src/serialization/types/CustomCodeHostedResponse.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const CustomCodeHostedResponse: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/CustomCodeInlineResponse.ts b/src/serialization/types/CustomCodeInlineResponse.ts
index 2cfd8838..c3073c62 100644
--- a/src/serialization/types/CustomCodeInlineResponse.ts
+++ b/src/serialization/types/CustomCodeInlineResponse.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const CustomCodeInlineResponse: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/Dom.ts b/src/serialization/types/Dom.ts
index 5eb853df..0483b20f 100644
--- a/src/serialization/types/Dom.ts
+++ b/src/serialization/types/Dom.ts
@@ -2,20 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Node } from "./Node";
+import { Pagination } from "./Pagination";
export const Dom: core.serialization.ObjectSchema = core.serialization.object({
pageId: core.serialization.string().optional(),
- nodes: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Node)).optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ nodes: core.serialization.list(Node).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace Dom {
interface Raw {
pageId?: string | null;
- nodes?: serializers.Node.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ nodes?: Node.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/Domain.ts b/src/serialization/types/Domain.ts
index 02c50754..457b0478 100644
--- a/src/serialization/types/Domain.ts
+++ b/src/serialization/types/Domain.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const Domain: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/Domains.ts b/src/serialization/types/Domains.ts
index 54f0d7b9..afdbdde9 100644
--- a/src/serialization/types/Domains.ts
+++ b/src/serialization/types/Domains.ts
@@ -2,19 +2,18 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Domain } from "./Domain";
export const Domains: core.serialization.ObjectSchema =
core.serialization.object({
- customDomains: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).Domain))
- .optional(),
+ customDomains: core.serialization.list(Domain).optional(),
});
export declare namespace Domains {
interface Raw {
- customDomains?: serializers.Domain.Raw[] | null;
+ customDomains?: Domain.Raw[] | null;
}
}
diff --git a/src/serialization/types/DuplicateUserEmail.ts b/src/serialization/types/DuplicateUserEmail.ts
index 8c30516c..2cd21854 100644
--- a/src/serialization/types/DuplicateUserEmail.ts
+++ b/src/serialization/types/DuplicateUserEmail.ts
@@ -2,27 +2,16 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Error_ } from "./Error_";
export const DuplicateUserEmail: core.serialization.ObjectSchema<
serializers.DuplicateUserEmail.Raw,
Webflow.DuplicateUserEmail
-> = core.serialization.object({
- code: core.serialization.string().optional(),
- message: core.serialization.string().optional(),
- externalReference: core.serialization.string().optional(),
- details: core.serialization
- .list(core.serialization.lazy(async () => (await import("..")).ErrorDetailsItem))
- .optional(),
-});
+> = Error_;
export declare namespace DuplicateUserEmail {
- interface Raw {
- code?: string | null;
- message?: string | null;
- externalReference?: string | null;
- details?: serializers.ErrorDetailsItem.Raw[] | null;
- }
+ type Raw = Error_.Raw;
}
diff --git a/src/serialization/types/EcommerceSettings.ts b/src/serialization/types/EcommerceSettings.ts
index 336174ba..a9b566e7 100644
--- a/src/serialization/types/EcommerceSettings.ts
+++ b/src/serialization/types/EcommerceSettings.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const EcommerceSettings: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/ErrorDetailsItem.ts b/src/serialization/types/ErrorDetailsItem.ts
index e1f2ede6..fbe2f0fa 100644
--- a/src/serialization/types/ErrorDetailsItem.ts
+++ b/src/serialization/types/ErrorDetailsItem.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const ErrorDetailsItem: core.serialization.Schema =
diff --git a/src/serialization/types/Error_.ts b/src/serialization/types/Error_.ts
index 77c2654c..7bc5df26 100644
--- a/src/serialization/types/Error_.ts
+++ b/src/serialization/types/Error_.ts
@@ -2,18 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { ErrorDetailsItem } from "./ErrorDetailsItem";
export const Error_: core.serialization.ObjectSchema =
core.serialization.object({
code: core.serialization.string().optional(),
message: core.serialization.string().optional(),
externalReference: core.serialization.string().optional(),
- details: core.serialization
- .list(core.serialization.lazy(async () => (await import("..")).ErrorDetailsItem))
- .optional(),
+ details: core.serialization.list(ErrorDetailsItem).optional(),
});
export declare namespace Error_ {
@@ -21,6 +20,6 @@ export declare namespace Error_ {
code?: string | null;
message?: string | null;
externalReference?: string | null;
- details?: serializers.ErrorDetailsItem.Raw[] | null;
+ details?: ErrorDetailsItem.Raw[] | null;
}
}
diff --git a/src/serialization/types/Field.ts b/src/serialization/types/Field.ts
index 9a68b0a5..a03d8732 100644
--- a/src/serialization/types/Field.ts
+++ b/src/serialization/types/Field.ts
@@ -2,15 +2,16 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { FieldType } from "./FieldType";
export const Field: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string(),
isRequired: core.serialization.boolean(),
isEditable: core.serialization.boolean().optional(),
- type: core.serialization.lazy(async () => (await import("..")).FieldType),
+ type: FieldType,
slug: core.serialization.string().optional(),
displayName: core.serialization.string(),
helpText: core.serialization.string().optional(),
@@ -21,7 +22,7 @@ export declare namespace Field {
id: string;
isRequired: boolean;
isEditable?: boolean | null;
- type: serializers.FieldType.Raw;
+ type: FieldType.Raw;
slug?: string | null;
displayName: string;
helpText?: string | null;
diff --git a/src/serialization/types/FieldType.ts b/src/serialization/types/FieldType.ts
index 86c3489f..62bfe5f5 100644
--- a/src/serialization/types/FieldType.ts
+++ b/src/serialization/types/FieldType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const FieldType: core.serialization.Schema =
@@ -18,7 +18,7 @@ export const FieldType: core.serialization.Schema = core.serialization.object({
+ status: core.serialization.number().optional(),
+ message: core.serialization.string().optional(),
+ publicErrorCode: core.serialization.string().optional(),
+ externalReference: core.serialization.string().optional(),
+ details: core.serialization.list(core.serialization.string()).optional(),
+});
+
+export declare namespace ForbiddenErrorBody {
+ interface Raw {
+ status?: number | null;
+ message?: string | null;
+ publicErrorCode?: string | null;
+ externalReference?: string | null;
+ details?: string[] | null;
+ }
+}
diff --git a/src/serialization/types/Form.ts b/src/serialization/types/Form.ts
index ff829851..4acc6171 100644
--- a/src/serialization/types/Form.ts
+++ b/src/serialization/types/Form.ts
@@ -2,16 +2,19 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { FormField } from "./FormField";
+import { FormResponseSettings } from "./FormResponseSettings";
+import { FormFieldValue } from "./FormFieldValue";
export const Form: core.serialization.ObjectSchema = core.serialization.object({
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(),
+ fields: core.serialization.list(FormField).optional(),
+ responseSettings: FormResponseSettings.optional(),
id: core.serialization.string().optional(),
siteId: core.serialization.string().optional(),
siteDomainId: core.serialization.string().optional(),
@@ -25,8 +28,8 @@ export declare namespace Form {
displayName?: string | null;
createdOn?: string | null;
lastUpdated?: string | null;
- fields?: serializers.FormField.Raw[] | null;
- responseSettings?: serializers.FormResponseSettings.Raw | null;
+ fields?: FormField.Raw[] | null;
+ responseSettings?: FormResponseSettings.Raw | null;
id?: string | null;
siteId?: string | null;
siteDomainId?: string | null;
diff --git a/src/serialization/types/FormField.ts b/src/serialization/types/FormField.ts
index d301092d..359c10bf 100644
--- a/src/serialization/types/FormField.ts
+++ b/src/serialization/types/FormField.ts
@@ -2,16 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { FormFieldValue } from "./FormFieldValue";
export const FormField: core.serialization.Schema =
- core.serialization.record(
- core.serialization.string(),
- core.serialization.lazyObject(async () => (await import("..")).FormFieldValue)
- );
+ core.serialization.record(core.serialization.string(), FormFieldValue);
export declare namespace FormField {
- type Raw = Record;
+ type Raw = Record;
}
diff --git a/src/serialization/types/FormFieldValue.ts b/src/serialization/types/FormFieldValue.ts
index 7ce308f5..392ff038 100644
--- a/src/serialization/types/FormFieldValue.ts
+++ b/src/serialization/types/FormFieldValue.ts
@@ -2,14 +2,15 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { FormFieldValueType } from "./FormFieldValueType";
export const FormFieldValue: core.serialization.ObjectSchema =
core.serialization.object({
displayName: core.serialization.string().optional(),
- type: core.serialization.lazy(async () => (await import("..")).FormFieldValueType).optional(),
+ type: FormFieldValueType.optional(),
placeholder: core.serialization.string().optional(),
userVisible: core.serialization.boolean().optional(),
});
@@ -17,7 +18,7 @@ export const FormFieldValue: core.serialization.ObjectSchema =
core.serialization.object({
- forms: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Form)).optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ forms: core.serialization.list(Form).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace FormList {
interface Raw {
- forms?: serializers.Form.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ forms?: Form.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/FormResponseSettings.ts b/src/serialization/types/FormResponseSettings.ts
index 230593e9..e5e9d698 100644
--- a/src/serialization/types/FormResponseSettings.ts
+++ b/src/serialization/types/FormResponseSettings.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const FormResponseSettings: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/FormSubmission.ts b/src/serialization/types/FormSubmission.ts
index be6b0220..032f686a 100644
--- a/src/serialization/types/FormSubmission.ts
+++ b/src/serialization/types/FormSubmission.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const FormSubmission: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/FormSubmissionList.ts b/src/serialization/types/FormSubmissionList.ts
index e685bb0d..a30709f0 100644
--- a/src/serialization/types/FormSubmissionList.ts
+++ b/src/serialization/types/FormSubmissionList.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { FormSubmission } from "./FormSubmission";
+import { Pagination } from "./Pagination";
export const FormSubmissionList: core.serialization.ObjectSchema<
serializers.FormSubmissionList.Raw,
Webflow.FormSubmissionList
> = core.serialization.object({
- submissions: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).FormSubmission))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ submissions: core.serialization.list(FormSubmission).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace FormSubmissionList {
interface Raw {
- submissions?: serializers.FormSubmission.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ submissions?: FormSubmission.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/ImageNode.ts b/src/serialization/types/ImageNode.ts
index 689af6aa..0f059779 100644
--- a/src/serialization/types/ImageNode.ts
+++ b/src/serialization/types/ImageNode.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const ImageNode: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/InvalidDomain.ts b/src/serialization/types/InvalidDomain.ts
index 1a4cb74e..e4711cce 100644
--- a/src/serialization/types/InvalidDomain.ts
+++ b/src/serialization/types/InvalidDomain.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const InvalidDomain: core.serialization.Schema =
diff --git a/src/serialization/types/InventoryItem.ts b/src/serialization/types/InventoryItem.ts
index eddcb99c..82cb9813 100644
--- a/src/serialization/types/InventoryItem.ts
+++ b/src/serialization/types/InventoryItem.ts
@@ -2,21 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { InventoryItemInventoryType } from "./InventoryItemInventoryType";
export const InventoryItem: core.serialization.ObjectSchema =
core.serialization.object({
id: core.serialization.string().optional(),
quantity: core.serialization.number().optional(),
- inventoryType: core.serialization.lazy(async () => (await import("..")).InventoryItemInventoryType).optional(),
+ inventoryType: InventoryItemInventoryType.optional(),
});
export declare namespace InventoryItem {
interface Raw {
id?: string | null;
quantity?: number | null;
- inventoryType?: serializers.InventoryItemInventoryType.Raw | null;
+ inventoryType?: InventoryItemInventoryType.Raw | null;
}
}
diff --git a/src/serialization/types/InventoryItemInventoryType.ts b/src/serialization/types/InventoryItemInventoryType.ts
index 39d032dc..2a5879cb 100644
--- a/src/serialization/types/InventoryItemInventoryType.ts
+++ b/src/serialization/types/InventoryItemInventoryType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const InventoryItemInventoryType: core.serialization.Schema<
diff --git a/src/serialization/types/ListCustomCodeBlocks.ts b/src/serialization/types/ListCustomCodeBlocks.ts
index ddbe482c..db57194c 100644
--- a/src/serialization/types/ListCustomCodeBlocks.ts
+++ b/src/serialization/types/ListCustomCodeBlocks.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { CustomCodeBlock } from "./CustomCodeBlock";
+import { Pagination } from "./Pagination";
export const ListCustomCodeBlocks: core.serialization.ObjectSchema<
serializers.ListCustomCodeBlocks.Raw,
Webflow.ListCustomCodeBlocks
> = core.serialization.object({
- blocks: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).CustomCodeBlock))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ blocks: core.serialization.list(CustomCodeBlock).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace ListCustomCodeBlocks {
interface Raw {
- blocks?: serializers.CustomCodeBlock.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ blocks?: CustomCodeBlock.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/Locale.ts b/src/serialization/types/Locale.ts
index 5324d779..e9767cd8 100644
--- a/src/serialization/types/Locale.ts
+++ b/src/serialization/types/Locale.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const Locale: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/Locales.ts b/src/serialization/types/Locales.ts
index e3f7570b..549d44b8 100644
--- a/src/serialization/types/Locales.ts
+++ b/src/serialization/types/Locales.ts
@@ -2,21 +2,20 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Locale } from "./Locale";
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(),
+ primary: Locale.optional(),
+ secondary: core.serialization.list(Locale).optional(),
});
export declare namespace Locales {
interface Raw {
- primary?: serializers.Locale.Raw | null;
- secondary?: serializers.Locale.Raw[] | null;
+ primary?: Locale.Raw | null;
+ secondary?: Locale.Raw[] | null;
}
}
diff --git a/src/serialization/types/MissingScopes.ts b/src/serialization/types/MissingScopes.ts
index de4a383c..79ae084b 100644
--- a/src/serialization/types/MissingScopes.ts
+++ b/src/serialization/types/MissingScopes.ts
@@ -2,27 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Error_ } from "./Error_";
export const MissingScopes: core.serialization.ObjectSchema =
- core.serialization.object({
- code: core.serialization.stringLiteral("missing_scopes").optional(),
- type: core.serialization.string().optional(),
- message: core.serialization.string().optional(),
- externalReference: core.serialization.string().optional(),
- details: core.serialization
- .list(core.serialization.lazy(async () => (await import("..")).ErrorDetailsItem))
- .optional(),
- });
+ Error_;
export declare namespace MissingScopes {
- interface Raw {
- code?: "missing_scopes" | null;
- type?: string | null;
- message?: string | null;
- externalReference?: string | null;
- details?: serializers.ErrorDetailsItem.Raw[] | null;
- }
+ type Raw = Error_.Raw;
}
diff --git a/src/serialization/types/NoDomains.ts b/src/serialization/types/NoDomains.ts
index 9dd8a51d..43e88262 100644
--- a/src/serialization/types/NoDomains.ts
+++ b/src/serialization/types/NoDomains.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const NoDomains: core.serialization.Schema =
diff --git a/src/serialization/types/Node.ts b/src/serialization/types/Node.ts
index eb90cb4e..49a8f26b 100644
--- a/src/serialization/types/Node.ts
+++ b/src/serialization/types/Node.ts
@@ -2,24 +2,27 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { NodeType } from "./NodeType";
+import { TextNode } from "./TextNode";
+import { ImageNode } from "./ImageNode";
export const Node: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string().optional(),
- type: core.serialization.lazy(async () => (await import("..")).NodeType).optional(),
- text: core.serialization.lazyObject(async () => (await import("..")).TextNode).optional(),
- image: core.serialization.lazyObject(async () => (await import("..")).ImageNode).optional(),
+ type: NodeType.optional(),
+ text: TextNode.optional(),
+ image: ImageNode.optional(),
attributes: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
});
export declare namespace Node {
interface Raw {
id?: string | null;
- type?: serializers.NodeType.Raw | null;
- text?: serializers.TextNode.Raw | null;
- image?: serializers.ImageNode.Raw | null;
+ type?: NodeType.Raw | null;
+ text?: TextNode.Raw | null;
+ image?: ImageNode.Raw | null;
attributes?: Record | null;
}
}
diff --git a/src/serialization/types/NodeType.ts b/src/serialization/types/NodeType.ts
index adcc1d97..e3e70f16 100644
--- a/src/serialization/types/NodeType.ts
+++ b/src/serialization/types/NodeType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const NodeType: core.serialization.Schema = core.serialization.enum_(
diff --git a/src/serialization/types/NotEnterprisePlanSite.ts b/src/serialization/types/NotEnterprisePlanSite.ts
index a2045bbc..f412737f 100644
--- a/src/serialization/types/NotEnterprisePlanSite.ts
+++ b/src/serialization/types/NotEnterprisePlanSite.ts
@@ -2,29 +2,16 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Error_ } from "./Error_";
export const NotEnterprisePlanSite: core.serialization.ObjectSchema<
serializers.NotEnterprisePlanSite.Raw,
Webflow.NotEnterprisePlanSite
-> = core.serialization.object({
- code: core.serialization.stringLiteral("missing_scopes").optional(),
- type: core.serialization.string().optional(),
- message: core.serialization.string().optional(),
- externalReference: core.serialization.string().optional(),
- details: core.serialization
- .list(core.serialization.lazy(async () => (await import("..")).ErrorDetailsItem))
- .optional(),
-});
+> = Error_;
export declare namespace NotEnterprisePlanSite {
- interface Raw {
- code?: "missing_scopes" | null;
- type?: string | null;
- message?: string | null;
- externalReference?: string | null;
- details?: serializers.ErrorDetailsItem.Raw[] | null;
- }
+ type Raw = Error_.Raw;
}
diff --git a/src/serialization/types/OauthScope.ts b/src/serialization/types/OauthScope.ts
index 01579164..f35db81b 100644
--- a/src/serialization/types/OauthScope.ts
+++ b/src/serialization/types/OauthScope.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OauthScope: core.serialization.Schema =
diff --git a/src/serialization/types/Order.ts b/src/serialization/types/Order.ts
index d83cef0a..0d6fa5da 100644
--- a/src/serialization/types/Order.ts
+++ b/src/serialization/types/Order.ts
@@ -2,13 +2,25 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderStatus } from "./OrderStatus";
+import { OrderDisputeLastStatus } from "./OrderDisputeLastStatus";
+import { OrderPrice } from "./OrderPrice";
+import { OrderAddress } from "./OrderAddress";
+import { OrderCustomerInfo } from "./OrderCustomerInfo";
+import { OrderPurchasedItem } from "./OrderPurchasedItem";
+import { StripeDetails } from "./StripeDetails";
+import { StripeCard } from "./StripeCard";
+import { PaypalDetails } from "./PaypalDetails";
+import { OrderMetadata } from "./OrderMetadata";
+import { OrderTotals } from "./OrderTotals";
+import { OrderDownloadFilesItem } from "./OrderDownloadFilesItem";
export const Order: core.serialization.ObjectSchema = core.serialization.object({
orderId: core.serialization.string().optional(),
- status: core.serialization.lazy(async () => (await import("..")).OrderStatus).optional(),
+ status: OrderStatus.optional(),
comment: core.serialization.string().optional(),
orderComment: core.serialization.string().optional(),
acceptedOn: core.serialization.date().optional(),
@@ -16,44 +28,38 @@ export const Order: core.serialization.ObjectSchema (await import("..")).OrderDisputeLastStatus).optional(),
- customerPaid: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
- netAmount: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
- applicationFee: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
- allAddresses: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).OrderAddress))
- .optional(),
- shippingAddress: core.serialization.lazyObject(async () => (await import("..")).OrderAddress).optional(),
- billingAddress: core.serialization.lazyObject(async () => (await import("..")).OrderAddress).optional(),
+ disputeLastStatus: OrderDisputeLastStatus.optional(),
+ customerPaid: OrderPrice.optional(),
+ netAmount: OrderPrice.optional(),
+ applicationFee: OrderPrice.optional(),
+ allAddresses: core.serialization.list(OrderAddress).optional(),
+ shippingAddress: OrderAddress.optional(),
+ billingAddress: OrderAddress.optional(),
shippingProvider: core.serialization.string().optional(),
shippingTracking: core.serialization.string().optional(),
shippingTrackingUrl: core.serialization.property("shippingTrackingURL", core.serialization.string().optional()),
- customerInfo: core.serialization.lazyObject(async () => (await import("..")).OrderCustomerInfo).optional(),
- purchasedItems: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).OrderPurchasedItem))
- .optional(),
+ customerInfo: OrderCustomerInfo.optional(),
+ purchasedItems: core.serialization.list(OrderPurchasedItem).optional(),
purchasedItemsCount: core.serialization.number().optional(),
- stripeDetails: core.serialization.lazyObject(async () => (await import("..")).StripeDetails).optional(),
- stripeCard: core.serialization.lazyObject(async () => (await import("..")).StripeCard).optional(),
- paypalDetails: core.serialization.lazyObject(async () => (await import("..")).PaypalDetails).optional(),
+ stripeDetails: StripeDetails.optional(),
+ stripeCard: StripeCard.optional(),
+ paypalDetails: PaypalDetails.optional(),
customData: core.serialization
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
.optional(),
- metadata: core.serialization.lazyObject(async () => (await import("..")).OrderMetadata).optional(),
+ metadata: OrderMetadata.optional(),
isCustomerDeleted: core.serialization.boolean().optional(),
isShippingRequired: core.serialization.boolean().optional(),
hasDownloads: core.serialization.boolean().optional(),
paymentProcessor: core.serialization.string().optional(),
- totals: core.serialization.lazyObject(async () => (await import("..")).OrderTotals).optional(),
- downloadFiles: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).OrderDownloadFilesItem))
- .optional(),
+ totals: OrderTotals.optional(),
+ downloadFiles: core.serialization.list(OrderDownloadFilesItem).optional(),
});
export declare namespace Order {
interface Raw {
orderId?: string | null;
- status?: serializers.OrderStatus.Raw | null;
+ status?: OrderStatus.Raw | null;
comment?: string | null;
orderComment?: string | null;
acceptedOn?: string | null;
@@ -61,29 +67,29 @@ export declare namespace Order {
refundedOn?: string | null;
disputedOn?: string | null;
disputeUpdatedOn?: string | null;
- disputeLastStatus?: serializers.OrderDisputeLastStatus.Raw | null;
- customerPaid?: serializers.OrderPrice.Raw | null;
- netAmount?: serializers.OrderPrice.Raw | null;
- applicationFee?: serializers.OrderPrice.Raw | null;
- allAddresses?: serializers.OrderAddress.Raw[] | null;
- shippingAddress?: serializers.OrderAddress.Raw | null;
- billingAddress?: serializers.OrderAddress.Raw | null;
+ disputeLastStatus?: OrderDisputeLastStatus.Raw | null;
+ customerPaid?: OrderPrice.Raw | null;
+ netAmount?: OrderPrice.Raw | null;
+ applicationFee?: OrderPrice.Raw | null;
+ allAddresses?: OrderAddress.Raw[] | null;
+ shippingAddress?: OrderAddress.Raw | null;
+ billingAddress?: OrderAddress.Raw | null;
shippingProvider?: string | null;
shippingTracking?: string | null;
shippingTrackingURL?: string | null;
- customerInfo?: serializers.OrderCustomerInfo.Raw | null;
- purchasedItems?: serializers.OrderPurchasedItem.Raw[] | null;
+ customerInfo?: OrderCustomerInfo.Raw | null;
+ purchasedItems?: OrderPurchasedItem.Raw[] | null;
purchasedItemsCount?: number | null;
- stripeDetails?: serializers.StripeDetails.Raw | null;
- stripeCard?: serializers.StripeCard.Raw | null;
- paypalDetails?: serializers.PaypalDetails.Raw | null;
+ stripeDetails?: StripeDetails.Raw | null;
+ stripeCard?: StripeCard.Raw | null;
+ paypalDetails?: PaypalDetails.Raw | null;
customData?: Record[] | null;
- metadata?: serializers.OrderMetadata.Raw | null;
+ metadata?: OrderMetadata.Raw | null;
isCustomerDeleted?: boolean | null;
isShippingRequired?: boolean | null;
hasDownloads?: boolean | null;
paymentProcessor?: string | null;
- totals?: serializers.OrderTotals.Raw | null;
- downloadFiles?: serializers.OrderDownloadFilesItem.Raw[] | null;
+ totals?: OrderTotals.Raw | null;
+ downloadFiles?: OrderDownloadFilesItem.Raw[] | null;
}
}
diff --git a/src/serialization/types/OrderAddress.ts b/src/serialization/types/OrderAddress.ts
index aa15bd57..01044cb1 100644
--- a/src/serialization/types/OrderAddress.ts
+++ b/src/serialization/types/OrderAddress.ts
@@ -2,14 +2,16 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderAddressType } from "./OrderAddressType";
+import { OrderAddressJapanType } from "./OrderAddressJapanType";
export const OrderAddress: core.serialization.ObjectSchema =
core.serialization.object({
- type: core.serialization.lazy(async () => (await import("..")).OrderAddressType).optional(),
- japanType: core.serialization.lazy(async () => (await import("..")).OrderAddressJapanType).optional(),
+ type: OrderAddressType.optional(),
+ japanType: OrderAddressJapanType.optional(),
addressee: core.serialization.string().optional(),
line1: core.serialization.string().optional(),
line2: core.serialization.string().optional(),
@@ -21,8 +23,8 @@ export const OrderAddress: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/OrderCustomerInfo.ts b/src/serialization/types/OrderCustomerInfo.ts
index f5660af4..b0870929 100644
--- a/src/serialization/types/OrderCustomerInfo.ts
+++ b/src/serialization/types/OrderCustomerInfo.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderCustomerInfo: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/OrderDisputeLastStatus.ts b/src/serialization/types/OrderDisputeLastStatus.ts
index 3adff23d..2ed550d5 100644
--- a/src/serialization/types/OrderDisputeLastStatus.ts
+++ b/src/serialization/types/OrderDisputeLastStatus.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderDisputeLastStatus: core.serialization.Schema<
diff --git a/src/serialization/types/OrderDownloadFilesItem.ts b/src/serialization/types/OrderDownloadFilesItem.ts
index d24659ad..e808ff17 100644
--- a/src/serialization/types/OrderDownloadFilesItem.ts
+++ b/src/serialization/types/OrderDownloadFilesItem.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderDownloadFilesItem: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/OrderList.ts b/src/serialization/types/OrderList.ts
index b79e6e1d..f72bcec2 100644
--- a/src/serialization/types/OrderList.ts
+++ b/src/serialization/types/OrderList.ts
@@ -2,21 +2,21 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Order } from "./Order";
+import { Pagination } from "./Pagination";
export const OrderList: core.serialization.ObjectSchema =
core.serialization.object({
- orders: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).Order))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ orders: core.serialization.list(Order).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace OrderList {
interface Raw {
- orders?: serializers.Order.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ orders?: Order.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/OrderMetadata.ts b/src/serialization/types/OrderMetadata.ts
index ada1bfb9..5155eacc 100644
--- a/src/serialization/types/OrderMetadata.ts
+++ b/src/serialization/types/OrderMetadata.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderMetadata: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/OrderPrice.ts b/src/serialization/types/OrderPrice.ts
index bf0d4d5b..cd63a06d 100644
--- a/src/serialization/types/OrderPrice.ts
+++ b/src/serialization/types/OrderPrice.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderPrice: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/OrderPurchasedItem.ts b/src/serialization/types/OrderPurchasedItem.ts
index e4b7ad07..bedb4077 100644
--- a/src/serialization/types/OrderPurchasedItem.ts
+++ b/src/serialization/types/OrderPurchasedItem.ts
@@ -2,16 +2,18 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderPrice } from "./OrderPrice";
+import { OrderPurchasedItemVariantImage } from "./OrderPurchasedItemVariantImage";
export const OrderPurchasedItem: core.serialization.ObjectSchema<
serializers.OrderPurchasedItem.Raw,
Webflow.OrderPurchasedItem
> = core.serialization.object({
count: core.serialization.number().optional(),
- rowTotal: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
+ rowTotal: OrderPrice.optional(),
productId: core.serialization.string().optional(),
productName: core.serialization.string().optional(),
productSlug: core.serialization.string().optional(),
@@ -19,10 +21,8 @@ export const OrderPurchasedItem: core.serialization.ObjectSchema<
variantName: core.serialization.string().optional(),
variantSlug: core.serialization.string().optional(),
variantSku: core.serialization.property("variantSKU", core.serialization.string().optional()),
- variantImage: core.serialization
- .lazyObject(async () => (await import("..")).OrderPurchasedItemVariantImage)
- .optional(),
- variantPrice: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
+ variantImage: OrderPurchasedItemVariantImage.optional(),
+ variantPrice: OrderPrice.optional(),
weight: core.serialization.number().optional(),
width: core.serialization.number().optional(),
height: core.serialization.number().optional(),
@@ -32,7 +32,7 @@ export const OrderPurchasedItem: core.serialization.ObjectSchema<
export declare namespace OrderPurchasedItem {
interface Raw {
count?: number | null;
- rowTotal?: serializers.OrderPrice.Raw | null;
+ rowTotal?: OrderPrice.Raw | null;
productId?: string | null;
productName?: string | null;
productSlug?: string | null;
@@ -40,8 +40,8 @@ export declare namespace OrderPurchasedItem {
variantName?: string | null;
variantSlug?: string | null;
variantSKU?: string | null;
- variantImage?: serializers.OrderPurchasedItemVariantImage.Raw | null;
- variantPrice?: serializers.OrderPrice.Raw | null;
+ variantImage?: OrderPurchasedItemVariantImage.Raw | null;
+ variantPrice?: OrderPrice.Raw | null;
weight?: number | null;
width?: number | null;
height?: number | null;
diff --git a/src/serialization/types/OrderPurchasedItemVariantImage.ts b/src/serialization/types/OrderPurchasedItemVariantImage.ts
index 89ea01dc..7b51b164 100644
--- a/src/serialization/types/OrderPurchasedItemVariantImage.ts
+++ b/src/serialization/types/OrderPurchasedItemVariantImage.ts
@@ -2,21 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderPurchasedItemVariantImageFile } from "./OrderPurchasedItemVariantImageFile";
export const OrderPurchasedItemVariantImage: core.serialization.ObjectSchema<
serializers.OrderPurchasedItemVariantImage.Raw,
Webflow.OrderPurchasedItemVariantImage
> = core.serialization.object({
url: core.serialization.string().optional(),
- file: core.serialization.lazyObject(async () => (await import("..")).OrderPurchasedItemVariantImageFile).optional(),
+ file: OrderPurchasedItemVariantImageFile.optional(),
});
export declare namespace OrderPurchasedItemVariantImage {
interface Raw {
url?: string | null;
- file?: serializers.OrderPurchasedItemVariantImageFile.Raw | null;
+ file?: OrderPurchasedItemVariantImageFile.Raw | null;
}
}
diff --git a/src/serialization/types/OrderPurchasedItemVariantImageFile.ts b/src/serialization/types/OrderPurchasedItemVariantImageFile.ts
index d2d687ff..43e465a4 100644
--- a/src/serialization/types/OrderPurchasedItemVariantImageFile.ts
+++ b/src/serialization/types/OrderPurchasedItemVariantImageFile.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderPurchasedItemVariantImageFileVariantsItem } from "./OrderPurchasedItemVariantImageFileVariantsItem";
export const OrderPurchasedItemVariantImageFile: core.serialization.ObjectSchema<
serializers.OrderPurchasedItemVariantImageFile.Raw,
@@ -16,13 +17,7 @@ export const OrderPurchasedItemVariantImageFile: core.serialization.ObjectSchema
contentType: core.serialization.string().optional(),
width: core.serialization.number().optional(),
height: core.serialization.number().optional(),
- variants: core.serialization
- .list(
- core.serialization.lazyObject(
- async () => (await import("..")).OrderPurchasedItemVariantImageFileVariantsItem
- )
- )
- .optional(),
+ variants: core.serialization.list(OrderPurchasedItemVariantImageFileVariantsItem).optional(),
});
export declare namespace OrderPurchasedItemVariantImageFile {
@@ -33,6 +28,6 @@ export declare namespace OrderPurchasedItemVariantImageFile {
contentType?: string | null;
width?: number | null;
height?: number | null;
- variants?: serializers.OrderPurchasedItemVariantImageFileVariantsItem.Raw[] | null;
+ variants?: OrderPurchasedItemVariantImageFileVariantsItem.Raw[] | null;
}
}
diff --git a/src/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.ts b/src/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.ts
index 33b4b2b9..099deaec 100644
--- a/src/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.ts
+++ b/src/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderPurchasedItemVariantImageFileVariantsItem: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/OrderStatus.ts b/src/serialization/types/OrderStatus.ts
index c4aa99fb..402f5472 100644
--- a/src/serialization/types/OrderStatus.ts
+++ b/src/serialization/types/OrderStatus.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderStatus: core.serialization.Schema =
diff --git a/src/serialization/types/OrderTotals.ts b/src/serialization/types/OrderTotals.ts
index 88e52c1c..ff29ccfa 100644
--- a/src/serialization/types/OrderTotals.ts
+++ b/src/serialization/types/OrderTotals.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderPrice } from "./OrderPrice";
+import { OrderTotalsExtrasItem } from "./OrderTotalsExtrasItem";
export const OrderTotals: core.serialization.ObjectSchema =
core.serialization.object({
- subtotal: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
- extras: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).OrderTotalsExtrasItem))
- .optional(),
- total: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
+ subtotal: OrderPrice.optional(),
+ extras: core.serialization.list(OrderTotalsExtrasItem).optional(),
+ total: OrderPrice.optional(),
});
export declare namespace OrderTotals {
interface Raw {
- subtotal?: serializers.OrderPrice.Raw | null;
- extras?: serializers.OrderTotalsExtrasItem.Raw[] | null;
- total?: serializers.OrderPrice.Raw | null;
+ subtotal?: OrderPrice.Raw | null;
+ extras?: OrderTotalsExtrasItem.Raw[] | null;
+ total?: OrderPrice.Raw | null;
}
}
diff --git a/src/serialization/types/OrderTotalsExtrasItem.ts b/src/serialization/types/OrderTotalsExtrasItem.ts
index da01dc7e..1fe7fa42 100644
--- a/src/serialization/types/OrderTotalsExtrasItem.ts
+++ b/src/serialization/types/OrderTotalsExtrasItem.ts
@@ -2,25 +2,27 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { OrderTotalsExtrasItemType } from "./OrderTotalsExtrasItemType";
+import { OrderPrice } from "./OrderPrice";
export const OrderTotalsExtrasItem: core.serialization.ObjectSchema<
serializers.OrderTotalsExtrasItem.Raw,
Webflow.OrderTotalsExtrasItem
> = core.serialization.object({
- type: core.serialization.lazy(async () => (await import("..")).OrderTotalsExtrasItemType).optional(),
+ type: OrderTotalsExtrasItemType.optional(),
name: core.serialization.string().optional(),
description: core.serialization.string().optional(),
- price: core.serialization.lazyObject(async () => (await import("..")).OrderPrice).optional(),
+ price: OrderPrice.optional(),
});
export declare namespace OrderTotalsExtrasItem {
interface Raw {
- type?: serializers.OrderTotalsExtrasItemType.Raw | null;
+ type?: OrderTotalsExtrasItemType.Raw | null;
name?: string | null;
description?: string | null;
- price?: serializers.OrderPrice.Raw | null;
+ price?: OrderPrice.Raw | null;
}
}
diff --git a/src/serialization/types/OrderTotalsExtrasItemType.ts b/src/serialization/types/OrderTotalsExtrasItemType.ts
index a598b05d..9e9e0822 100644
--- a/src/serialization/types/OrderTotalsExtrasItemType.ts
+++ b/src/serialization/types/OrderTotalsExtrasItemType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const OrderTotalsExtrasItemType: core.serialization.Schema<
diff --git a/src/serialization/types/Page.ts b/src/serialization/types/Page.ts
index 66506f5d..2f206f24 100644
--- a/src/serialization/types/Page.ts
+++ b/src/serialization/types/Page.ts
@@ -2,9 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { PageSeo } from "./PageSeo";
+import { PageOpenGraph } from "./PageOpenGraph";
export const Page: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string().optional(),
@@ -19,8 +21,8 @@ export const Page: core.serialization.ObjectSchema (await import("..")).PageSeo).optional(),
- openGraph: core.serialization.lazyObject(async () => (await import("..")).PageOpenGraph).optional(),
+ seo: PageSeo.optional(),
+ openGraph: PageOpenGraph.optional(),
});
export declare namespace Page {
@@ -37,7 +39,7 @@ export declare namespace Page {
draft?: boolean | null;
canBranch?: boolean | null;
isMembersOnly?: boolean | null;
- seo?: serializers.PageSeo.Raw | null;
- openGraph?: serializers.PageOpenGraph.Raw | null;
+ seo?: PageSeo.Raw | null;
+ openGraph?: PageOpenGraph.Raw | null;
}
}
diff --git a/src/serialization/types/PageDetails.ts b/src/serialization/types/PageDetails.ts
new file mode 100644
index 00000000..2482518e
--- /dev/null
+++ b/src/serialization/types/PageDetails.ts
@@ -0,0 +1,50 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
+import * as core from "../../core";
+import { PageDetailsSeo } from "./PageDetailsSeo";
+import { PageDetailsOpenGraph } from "./PageDetailsOpenGraph";
+
+export const PageDetails: core.serialization.ObjectSchema =
+ core.serialization.object({
+ id: core.serialization.string().optional(),
+ siteId: core.serialization.string().optional(),
+ title: core.serialization.string().optional(),
+ slug: core.serialization.string().optional(),
+ parentId: core.serialization.string().optional(),
+ collectionId: core.serialization.string().optional(),
+ createdOn: core.serialization.date().optional(),
+ lastUpdated: core.serialization.date().optional(),
+ archived: core.serialization.boolean().optional(),
+ draft: core.serialization.boolean().optional(),
+ canBranch: core.serialization.boolean().optional(),
+ isMembersOnly: core.serialization.boolean().optional(),
+ seo: PageDetailsSeo.optional(),
+ openGraph: PageDetailsOpenGraph.optional(),
+ localeId: core.serialization.string().optional(),
+ publishedPath: core.serialization.string().optional(),
+ });
+
+export declare namespace PageDetails {
+ interface Raw {
+ id?: string | null;
+ siteId?: string | null;
+ title?: string | null;
+ slug?: string | null;
+ parentId?: string | null;
+ collectionId?: string | null;
+ createdOn?: string | null;
+ lastUpdated?: string | null;
+ archived?: boolean | null;
+ draft?: boolean | null;
+ canBranch?: boolean | null;
+ isMembersOnly?: boolean | null;
+ seo?: PageDetailsSeo.Raw | null;
+ openGraph?: PageDetailsOpenGraph.Raw | null;
+ localeId?: string | null;
+ publishedPath?: string | null;
+ }
+}
diff --git a/src/serialization/types/PageDetailsOpenGraph.ts b/src/serialization/types/PageDetailsOpenGraph.ts
new file mode 100644
index 00000000..5590ced3
--- /dev/null
+++ b/src/serialization/types/PageDetailsOpenGraph.ts
@@ -0,0 +1,26 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
+import * as core from "../../core";
+
+export const PageDetailsOpenGraph: core.serialization.ObjectSchema<
+ serializers.PageDetailsOpenGraph.Raw,
+ Webflow.PageDetailsOpenGraph
+> = core.serialization.object({
+ title: core.serialization.string().optional(),
+ titleCopied: core.serialization.boolean().optional(),
+ description: core.serialization.string().optional(),
+ descriptionCopied: core.serialization.boolean().optional(),
+});
+
+export declare namespace PageDetailsOpenGraph {
+ interface Raw {
+ title?: string | null;
+ titleCopied?: boolean | null;
+ description?: string | null;
+ descriptionCopied?: boolean | null;
+ }
+}
diff --git a/src/serialization/types/PageDetailsSeo.ts b/src/serialization/types/PageDetailsSeo.ts
new file mode 100644
index 00000000..ddbb15f8
--- /dev/null
+++ b/src/serialization/types/PageDetailsSeo.ts
@@ -0,0 +1,20 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
+import * as core from "../../core";
+
+export const PageDetailsSeo: core.serialization.ObjectSchema =
+ core.serialization.object({
+ title: core.serialization.string().optional(),
+ description: core.serialization.string().optional(),
+ });
+
+export declare namespace PageDetailsSeo {
+ interface Raw {
+ title?: string | null;
+ description?: string | null;
+ }
+}
diff --git a/src/serialization/types/PageList.ts b/src/serialization/types/PageList.ts
index 1f2fa6bf..2b3eab21 100644
--- a/src/serialization/types/PageList.ts
+++ b/src/serialization/types/PageList.ts
@@ -2,19 +2,21 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Page } from "./Page";
+import { Pagination } from "./Pagination";
export const PageList: core.serialization.ObjectSchema =
core.serialization.object({
- pages: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Page)).optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ pages: core.serialization.list(Page).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace PageList {
interface Raw {
- pages?: serializers.Page.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ pages?: Page.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/PageOpenGraph.ts b/src/serialization/types/PageOpenGraph.ts
index f69fc50c..a9aeb63d 100644
--- a/src/serialization/types/PageOpenGraph.ts
+++ b/src/serialization/types/PageOpenGraph.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const PageOpenGraph: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/PageSeo.ts b/src/serialization/types/PageSeo.ts
index 7034c873..45770a94 100644
--- a/src/serialization/types/PageSeo.ts
+++ b/src/serialization/types/PageSeo.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const PageSeo: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/Pagination.ts b/src/serialization/types/Pagination.ts
index 869237de..4d81b8f8 100644
--- a/src/serialization/types/Pagination.ts
+++ b/src/serialization/types/Pagination.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const Pagination: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/PaypalDetails.ts b/src/serialization/types/PaypalDetails.ts
index 07358799..6c2d2b1e 100644
--- a/src/serialization/types/PaypalDetails.ts
+++ b/src/serialization/types/PaypalDetails.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const PaypalDetails: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/Product.ts b/src/serialization/types/Product.ts
index 5f3eaa96..c832750e 100644
--- a/src/serialization/types/Product.ts
+++ b/src/serialization/types/Product.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { ProductFieldData } from "./ProductFieldData";
export const Product: core.serialization.ObjectSchema =
core.serialization.object({
@@ -15,7 +16,7 @@ export const Product: core.serialization.ObjectSchema (await import("..")).ProductFieldData).optional(),
+ fieldData: ProductFieldData.optional(),
});
export declare namespace Product {
@@ -27,6 +28,6 @@ export declare namespace Product {
createdOn?: string | null;
isArchived?: boolean | null;
isDraft?: boolean | null;
- fieldData?: serializers.ProductFieldData.Raw | null;
+ fieldData?: ProductFieldData.Raw | null;
}
}
diff --git a/src/serialization/types/ProductAndSkUs.ts b/src/serialization/types/ProductAndSkUs.ts
index f642a0fb..df36def5 100644
--- a/src/serialization/types/ProductAndSkUs.ts
+++ b/src/serialization/types/ProductAndSkUs.ts
@@ -2,19 +2,21 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Product } from "./Product";
+import { Sku } from "./Sku";
export const ProductAndSkUs: core.serialization.ObjectSchema =
core.serialization.object({
- product: core.serialization.lazyObject(async () => (await import("..")).Product).optional(),
- skus: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Sku)).optional(),
+ product: Product.optional(),
+ skus: core.serialization.list(Sku).optional(),
});
export declare namespace ProductAndSkUs {
interface Raw {
- product?: serializers.Product.Raw | null;
- skus?: serializers.Sku.Raw[] | null;
+ product?: Product.Raw | null;
+ skus?: Sku.Raw[] | null;
}
}
diff --git a/src/serialization/types/ProductAndSkUsList.ts b/src/serialization/types/ProductAndSkUsList.ts
index 53978790..1a2570a7 100644
--- a/src/serialization/types/ProductAndSkUsList.ts
+++ b/src/serialization/types/ProductAndSkUsList.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { ProductAndSkUs } from "./ProductAndSkUs";
+import { Pagination } from "./Pagination";
export const ProductAndSkUsList: core.serialization.ObjectSchema<
serializers.ProductAndSkUsList.Raw,
Webflow.ProductAndSkUsList
> = core.serialization.object({
- items: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).ProductAndSkUs))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ items: core.serialization.list(ProductAndSkUs).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace ProductAndSkUsList {
interface Raw {
- items?: serializers.ProductAndSkUs.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ items?: ProductAndSkUs.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/ProductFieldData.ts b/src/serialization/types/ProductFieldData.ts
index 448391c2..3c341243 100644
--- a/src/serialization/types/ProductFieldData.ts
+++ b/src/serialization/types/ProductFieldData.ts
@@ -2,9 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SkuPropertyList } from "./SkuPropertyList";
+import { ProductFieldDataTaxCategory } from "./ProductFieldDataTaxCategory";
+import { ProductFieldDataEcProductType } from "./ProductFieldDataEcProductType";
export const ProductFieldData: core.serialization.ObjectSchema<
serializers.ProductFieldData.Raw,
@@ -14,22 +17,11 @@ export const ProductFieldData: core.serialization.ObjectSchema<
slug: core.serialization.string().optional(),
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()
- ),
+ skuProperties: core.serialization.property("sku-properties", core.serialization.list(SkuPropertyList).optional()),
categories: core.serialization.list(core.serialization.string()).optional(),
- taxCategory: core.serialization.property(
- "tax-category",
- core.serialization.lazy(async () => (await import("..")).ProductFieldDataTaxCategory).optional()
- ),
+ taxCategory: core.serialization.property("tax-category", ProductFieldDataTaxCategory.optional()),
defaultSku: core.serialization.property("default-sku", core.serialization.string().optional()),
- ecProductType: core.serialization.property(
- "ec-product-type",
- core.serialization.lazy(async () => (await import("..")).ProductFieldDataEcProductType).optional()
- ),
+ ecProductType: core.serialization.property("ec-product-type", ProductFieldDataEcProductType.optional()),
});
export declare namespace ProductFieldData {
@@ -38,10 +30,10 @@ export declare namespace ProductFieldData {
slug?: string | null;
description?: string | null;
shippable?: boolean | null;
- "sku-properties"?: serializers.SkuPropertyList.Raw[] | null;
+ "sku-properties"?: SkuPropertyList.Raw[] | null;
categories?: string[] | null;
- "tax-category"?: serializers.ProductFieldDataTaxCategory.Raw | null;
+ "tax-category"?: ProductFieldDataTaxCategory.Raw | null;
"default-sku"?: string | null;
- "ec-product-type"?: serializers.ProductFieldDataEcProductType.Raw | null;
+ "ec-product-type"?: ProductFieldDataEcProductType.Raw | null;
}
}
diff --git a/src/serialization/types/ProductFieldDataEcProductType.ts b/src/serialization/types/ProductFieldDataEcProductType.ts
index 00d8c4c0..364268e7 100644
--- a/src/serialization/types/ProductFieldDataEcProductType.ts
+++ b/src/serialization/types/ProductFieldDataEcProductType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const ProductFieldDataEcProductType: core.serialization.Schema<
diff --git a/src/serialization/types/ProductFieldDataTaxCategory.ts b/src/serialization/types/ProductFieldDataTaxCategory.ts
index 075abd3a..b06152ad 100644
--- a/src/serialization/types/ProductFieldDataTaxCategory.ts
+++ b/src/serialization/types/ProductFieldDataTaxCategory.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const ProductFieldDataTaxCategory: core.serialization.Schema<
diff --git a/src/serialization/types/PublishStatus.ts b/src/serialization/types/PublishStatus.ts
index 0a41203d..cd6ce42c 100644
--- a/src/serialization/types/PublishStatus.ts
+++ b/src/serialization/types/PublishStatus.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const PublishStatus: core.serialization.Schema =
diff --git a/src/serialization/types/RegisteredScriptList.ts b/src/serialization/types/RegisteredScriptList.ts
index e8fbc0b3..fb9bef8c 100644
--- a/src/serialization/types/RegisteredScriptList.ts
+++ b/src/serialization/types/RegisteredScriptList.ts
@@ -2,21 +2,20 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { CustomCodeHostedResponse } from "./CustomCodeHostedResponse";
export const RegisteredScriptList: core.serialization.ObjectSchema<
serializers.RegisteredScriptList.Raw,
Webflow.RegisteredScriptList
> = core.serialization.object({
- registeredScripts: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).CustomCodeHostedResponse))
- .optional(),
+ registeredScripts: core.serialization.list(CustomCodeHostedResponse).optional(),
});
export declare namespace RegisteredScriptList {
interface Raw {
- registeredScripts?: serializers.CustomCodeHostedResponse.Raw[] | null;
+ registeredScripts?: CustomCodeHostedResponse.Raw[] | null;
}
}
diff --git a/src/serialization/types/ScriptApply.ts b/src/serialization/types/ScriptApply.ts
index 81009011..f505ba90 100644
--- a/src/serialization/types/ScriptApply.ts
+++ b/src/serialization/types/ScriptApply.ts
@@ -2,14 +2,15 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { ScriptApplyLocation } from "./ScriptApplyLocation";
export const ScriptApply: core.serialization.ObjectSchema =
core.serialization.object({
id: core.serialization.string(),
- location: core.serialization.lazy(async () => (await import("..")).ScriptApplyLocation),
+ location: ScriptApplyLocation,
version: core.serialization.string(),
attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
});
@@ -17,7 +18,7 @@ export const ScriptApply: core.serialization.ObjectSchema | null;
}
diff --git a/src/serialization/types/ScriptApplyList.ts b/src/serialization/types/ScriptApplyList.ts
index c5304b6b..d7689226 100644
--- a/src/serialization/types/ScriptApplyList.ts
+++ b/src/serialization/types/ScriptApplyList.ts
@@ -2,24 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { ScriptApply } from "./ScriptApply";
export const ScriptApplyList: core.serialization.ObjectSchema<
serializers.ScriptApplyList.Raw,
Webflow.ScriptApplyList
> = core.serialization.object({
- scripts: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).ScriptApply))
- .optional(),
+ scripts: core.serialization.list(ScriptApply).optional(),
lastUpdated: core.serialization.string().optional(),
createdOn: core.serialization.string().optional(),
});
export declare namespace ScriptApplyList {
interface Raw {
- scripts?: serializers.ScriptApply.Raw[] | null;
+ scripts?: ScriptApply.Raw[] | null;
lastUpdated?: string | null;
createdOn?: string | null;
}
diff --git a/src/serialization/types/ScriptApplyLocation.ts b/src/serialization/types/ScriptApplyLocation.ts
index 554dc7fb..586225fa 100644
--- a/src/serialization/types/ScriptApplyLocation.ts
+++ b/src/serialization/types/ScriptApplyLocation.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const ScriptApplyLocation: core.serialization.Schema<
diff --git a/src/serialization/types/Scripts.ts b/src/serialization/types/Scripts.ts
index 5fdc9edb..79e25eb5 100644
--- a/src/serialization/types/Scripts.ts
+++ b/src/serialization/types/Scripts.ts
@@ -2,14 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { ScriptApply } from "./ScriptApply";
-export const Scripts: core.serialization.Schema = core.serialization.list(
- core.serialization.lazyObject(async () => (await import("..")).ScriptApply)
-);
+export const Scripts: core.serialization.Schema =
+ core.serialization.list(ScriptApply);
export declare namespace Scripts {
- type Raw = serializers.ScriptApply.Raw[];
+ type Raw = ScriptApply.Raw[];
}
diff --git a/src/serialization/types/Site.ts b/src/serialization/types/Site.ts
index 5c2f22a3..7f144a3b 100644
--- a/src/serialization/types/Site.ts
+++ b/src/serialization/types/Site.ts
@@ -2,9 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Domain } from "./Domain";
+import { Locales } from "./Locales";
export const Site: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string(),
@@ -17,10 +19,8 @@ export const Site: core.serialization.ObjectSchema (await import("..")).Domain))
- .optional(),
- locales: core.serialization.lazyObject(async () => (await import("..")).Locales).optional(),
+ customDomains: core.serialization.list(Domain).optional(),
+ locales: Locales.optional(),
});
export declare namespace Site {
@@ -35,7 +35,7 @@ export declare namespace Site {
previewUrl?: string | null;
timeZone?: string | null;
parentFolderId?: string | null;
- customDomains?: serializers.Domain.Raw[] | null;
- locales?: serializers.Locales.Raw | null;
+ customDomains?: Domain.Raw[] | null;
+ locales?: Locales.Raw | null;
}
}
diff --git a/src/serialization/types/SiteActivityLogItem.ts b/src/serialization/types/SiteActivityLogItem.ts
index ee8223ff..3ff16de4 100644
--- a/src/serialization/types/SiteActivityLogItem.ts
+++ b/src/serialization/types/SiteActivityLogItem.ts
@@ -2,9 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SiteActivityLogItemResourceOperation } from "./SiteActivityLogItemResourceOperation";
+import { SiteActivityLogItemUser } from "./SiteActivityLogItemUser";
export const SiteActivityLogItem: core.serialization.ObjectSchema<
serializers.SiteActivityLogItem.Raw,
@@ -14,10 +16,8 @@ export const SiteActivityLogItem: core.serialization.ObjectSchema<
createdOn: core.serialization.date().optional(),
lastUpdated: core.serialization.date().optional(),
event: core.serialization.string().optional(),
- resourceOperation: core.serialization
- .lazy(async () => (await import("..")).SiteActivityLogItemResourceOperation)
- .optional(),
- user: core.serialization.lazyObject(async () => (await import("..")).SiteActivityLogItemUser).optional(),
+ resourceOperation: SiteActivityLogItemResourceOperation.optional(),
+ user: SiteActivityLogItemUser.optional(),
resourceId: core.serialization.string().optional(),
resourceName: core.serialization.string().optional(),
newValue: core.serialization.string().optional(),
@@ -31,8 +31,8 @@ export declare namespace SiteActivityLogItem {
createdOn?: string | null;
lastUpdated?: string | null;
event?: string | null;
- resourceOperation?: serializers.SiteActivityLogItemResourceOperation.Raw | null;
- user?: serializers.SiteActivityLogItemUser.Raw | null;
+ resourceOperation?: SiteActivityLogItemResourceOperation.Raw | null;
+ user?: SiteActivityLogItemUser.Raw | null;
resourceId?: string | null;
resourceName?: string | null;
newValue?: string | null;
diff --git a/src/serialization/types/SiteActivityLogItemResourceOperation.ts b/src/serialization/types/SiteActivityLogItemResourceOperation.ts
index 4d6dc3c3..3e1a946e 100644
--- a/src/serialization/types/SiteActivityLogItemResourceOperation.ts
+++ b/src/serialization/types/SiteActivityLogItemResourceOperation.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SiteActivityLogItemResourceOperation: core.serialization.Schema<
diff --git a/src/serialization/types/SiteActivityLogItemUser.ts b/src/serialization/types/SiteActivityLogItemUser.ts
index 03deb61b..01970e37 100644
--- a/src/serialization/types/SiteActivityLogItemUser.ts
+++ b/src/serialization/types/SiteActivityLogItemUser.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SiteActivityLogItemUser: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/SiteActivityLogResponse.ts b/src/serialization/types/SiteActivityLogResponse.ts
index 38efee69..86c7237a 100644
--- a/src/serialization/types/SiteActivityLogResponse.ts
+++ b/src/serialization/types/SiteActivityLogResponse.ts
@@ -2,23 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SiteActivityLogItem } from "./SiteActivityLogItem";
+import { Pagination } from "./Pagination";
export const SiteActivityLogResponse: core.serialization.ObjectSchema<
serializers.SiteActivityLogResponse.Raw,
Webflow.SiteActivityLogResponse
> = core.serialization.object({
- items: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).SiteActivityLogItem))
- .optional(),
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
+ items: core.serialization.list(SiteActivityLogItem).optional(),
+ pagination: Pagination.optional(),
});
export declare namespace SiteActivityLogResponse {
interface Raw {
- items?: serializers.SiteActivityLogItem.Raw[] | null;
- pagination?: serializers.Pagination.Raw | null;
+ items?: SiteActivityLogItem.Raw[] | null;
+ pagination?: Pagination.Raw | null;
}
}
diff --git a/src/serialization/types/Sites.ts b/src/serialization/types/Sites.ts
index 1addf834..5c85449d 100644
--- a/src/serialization/types/Sites.ts
+++ b/src/serialization/types/Sites.ts
@@ -2,16 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Site } from "./Site";
export const Sites: core.serialization.ObjectSchema = core.serialization.object({
- sites: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Site)).optional(),
+ sites: core.serialization.list(Site).optional(),
});
export declare namespace Sites {
interface Raw {
- sites?: serializers.Site.Raw[] | null;
+ sites?: Site.Raw[] | null;
}
}
diff --git a/src/serialization/types/Sku.ts b/src/serialization/types/Sku.ts
index d8874bc0..5758122a 100644
--- a/src/serialization/types/Sku.ts
+++ b/src/serialization/types/Sku.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SkuFieldData } from "./SkuFieldData";
export const Sku: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string().optional(),
@@ -12,7 +13,7 @@ export const Sku: core.serialization.ObjectSchema (await import("..")).SkuFieldData).optional(),
+ fieldData: SkuFieldData.optional(),
});
export declare namespace Sku {
@@ -22,6 +23,6 @@ export declare namespace Sku {
lastPublished?: string | null;
lastUpdated?: string | null;
createdOn?: string | null;
- fieldData?: serializers.SkuFieldData.Raw | null;
+ fieldData?: SkuFieldData.Raw | null;
}
}
diff --git a/src/serialization/types/SkuFieldData.ts b/src/serialization/types/SkuFieldData.ts
index e6780128..4bd54836 100644
--- a/src/serialization/types/SkuFieldData.ts
+++ b/src/serialization/types/SkuFieldData.ts
@@ -2,30 +2,29 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SkuValueList } from "./SkuValueList";
+import { SkuFieldDataPrice } from "./SkuFieldDataPrice";
+import { SkuFieldDataCompareAtPrice } from "./SkuFieldDataCompareAtPrice";
+import { SkuFieldDataEcSkuBillingMethod } from "./SkuFieldDataEcSkuBillingMethod";
+import { SkuFieldDataEcSkuSubscriptionPlan } from "./SkuFieldDataEcSkuSubscriptionPlan";
export const SkuFieldData: core.serialization.ObjectSchema =
core.serialization.object({
- skuValues: core.serialization.property(
- "sku-values",
- core.serialization.lazy(async () => (await import("..")).SkuValueList).optional()
- ),
+ skuValues: core.serialization.property("sku-values", SkuValueList.optional()),
name: core.serialization.string(),
slug: core.serialization.string(),
- price: core.serialization.lazyObject(async () => (await import("..")).SkuFieldDataPrice),
- compareAtPrice: core.serialization.property(
- "compare-at-price",
- core.serialization.lazyObject(async () => (await import("..")).SkuFieldDataCompareAtPrice).optional()
- ),
+ price: SkuFieldDataPrice,
+ compareAtPrice: core.serialization.property("compare-at-price", SkuFieldDataCompareAtPrice.optional()),
ecSkuBillingMethod: core.serialization.property(
"ec-sku-billing-method",
- core.serialization.lazy(async () => (await import("..")).SkuFieldDataEcSkuBillingMethod).optional()
+ SkuFieldDataEcSkuBillingMethod.optional()
),
ecSkuSubscriptionPlan: core.serialization.property(
"ec-sku-subscription-plan",
- core.serialization.lazyObject(async () => (await import("..")).SkuFieldDataEcSkuSubscriptionPlan).optional()
+ SkuFieldDataEcSkuSubscriptionPlan.optional()
),
trackInventory: core.serialization.property("track-inventory", core.serialization.boolean().optional()),
quantity: core.serialization.number().optional(),
@@ -33,13 +32,13 @@ export const SkuFieldData: core.serialization.ObjectSchema = core.serialization.object({
- interval: core.serialization
- .lazy(async () => (await import("..")).SkuFieldDataEcSkuSubscriptionPlanInterval)
- .optional(),
+ interval: SkuFieldDataEcSkuSubscriptionPlanInterval.optional(),
frequency: core.serialization.number().optional(),
trial: core.serialization.number().optional(),
- plans: core.serialization
- .list(
- core.serialization.lazyObject(async () => (await import("..")).SkuFieldDataEcSkuSubscriptionPlanPlansItem)
- )
- .optional(),
+ plans: core.serialization.list(SkuFieldDataEcSkuSubscriptionPlanPlansItem).optional(),
});
export declare namespace SkuFieldDataEcSkuSubscriptionPlan {
interface Raw {
- interval?: serializers.SkuFieldDataEcSkuSubscriptionPlanInterval.Raw | null;
+ interval?: SkuFieldDataEcSkuSubscriptionPlanInterval.Raw | null;
frequency?: number | null;
trial?: number | null;
- plans?: serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItem.Raw[] | null;
+ plans?: SkuFieldDataEcSkuSubscriptionPlanPlansItem.Raw[] | null;
}
}
diff --git a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.ts b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.ts
index fc798ad6..0505e729 100644
--- a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.ts
+++ b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SkuFieldDataEcSkuSubscriptionPlanInterval: core.serialization.Schema<
diff --git a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts
index 3a9d58de..9e6ec045 100644
--- a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts
+++ b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus } from "./SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus";
export const SkuFieldDataEcSkuSubscriptionPlanPlansItem: core.serialization.ObjectSchema<
serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItem.Raw,
@@ -12,15 +13,13 @@ export const SkuFieldDataEcSkuSubscriptionPlanPlansItem: core.serialization.Obje
> = core.serialization.object({
platform: core.serialization.stringLiteral("stripe").optional(),
id: core.serialization.string().optional(),
- status: core.serialization
- .lazy(async () => (await import("..")).SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus)
- .optional(),
+ status: SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.optional(),
});
export declare namespace SkuFieldDataEcSkuSubscriptionPlanPlansItem {
interface Raw {
platform?: "stripe" | null;
id?: string | null;
- status?: serializers.SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.Raw | null;
+ status?: SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.Raw | null;
}
}
diff --git a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts
index 7ffa54ff..4a557f31 100644
--- a/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts
+++ b/src/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus: core.serialization.Schema<
diff --git a/src/serialization/types/SkuFieldDataPrice.ts b/src/serialization/types/SkuFieldDataPrice.ts
index 364cad9e..57575230 100644
--- a/src/serialization/types/SkuFieldDataPrice.ts
+++ b/src/serialization/types/SkuFieldDataPrice.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SkuFieldDataPrice: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/SkuPropertyList.ts b/src/serialization/types/SkuPropertyList.ts
index 8a6a4529..34014bc4 100644
--- a/src/serialization/types/SkuPropertyList.ts
+++ b/src/serialization/types/SkuPropertyList.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { SkuPropertyListEnumItem } from "./SkuPropertyListEnumItem";
export const SkuPropertyList: core.serialization.ObjectSchema<
serializers.SkuPropertyList.Raw,
@@ -12,15 +13,13 @@ export const SkuPropertyList: core.serialization.ObjectSchema<
> = core.serialization.object({
id: core.serialization.string(),
name: core.serialization.string(),
- enum: core.serialization.list(
- core.serialization.lazyObject(async () => (await import("..")).SkuPropertyListEnumItem)
- ),
+ enum: core.serialization.list(SkuPropertyListEnumItem),
});
export declare namespace SkuPropertyList {
interface Raw {
id: string;
name: string;
- enum: serializers.SkuPropertyListEnumItem.Raw[];
+ enum: SkuPropertyListEnumItem.Raw[];
}
}
diff --git a/src/serialization/types/SkuPropertyListEnumItem.ts b/src/serialization/types/SkuPropertyListEnumItem.ts
index 7437b147..d997b0c3 100644
--- a/src/serialization/types/SkuPropertyListEnumItem.ts
+++ b/src/serialization/types/SkuPropertyListEnumItem.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SkuPropertyListEnumItem: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/SkuValueList.ts b/src/serialization/types/SkuValueList.ts
index ce9d8ec7..3350e638 100644
--- a/src/serialization/types/SkuValueList.ts
+++ b/src/serialization/types/SkuValueList.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const SkuValueList: core.serialization.Schema =
diff --git a/src/serialization/types/StripeCard.ts b/src/serialization/types/StripeCard.ts
index 437bfbc1..2ee72e91 100644
--- a/src/serialization/types/StripeCard.ts
+++ b/src/serialization/types/StripeCard.ts
@@ -2,23 +2,25 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { StripeCardBrand } from "./StripeCardBrand";
+import { StripeCardExpires } from "./StripeCardExpires";
export const StripeCard: core.serialization.ObjectSchema =
core.serialization.object({
last4: core.serialization.string().optional(),
- brand: core.serialization.lazy(async () => (await import("..")).StripeCardBrand).optional(),
+ brand: StripeCardBrand.optional(),
ownerName: core.serialization.string().optional(),
- expires: core.serialization.lazyObject(async () => (await import("..")).StripeCardExpires).optional(),
+ expires: StripeCardExpires.optional(),
});
export declare namespace StripeCard {
interface Raw {
last4?: string | null;
- brand?: serializers.StripeCardBrand.Raw | null;
+ brand?: StripeCardBrand.Raw | null;
ownerName?: string | null;
- expires?: serializers.StripeCardExpires.Raw | null;
+ expires?: StripeCardExpires.Raw | null;
}
}
diff --git a/src/serialization/types/StripeCardBrand.ts b/src/serialization/types/StripeCardBrand.ts
index 3c2f6fe1..eb1e7941 100644
--- a/src/serialization/types/StripeCardBrand.ts
+++ b/src/serialization/types/StripeCardBrand.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const StripeCardBrand: core.serialization.Schema =
diff --git a/src/serialization/types/StripeCardExpires.ts b/src/serialization/types/StripeCardExpires.ts
index fb840bf1..9284b080 100644
--- a/src/serialization/types/StripeCardExpires.ts
+++ b/src/serialization/types/StripeCardExpires.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const StripeCardExpires: core.serialization.ObjectSchema<
diff --git a/src/serialization/types/StripeDetails.ts b/src/serialization/types/StripeDetails.ts
index ac1b2b13..1a190f7d 100644
--- a/src/serialization/types/StripeDetails.ts
+++ b/src/serialization/types/StripeDetails.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const StripeDetails: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/TextNode.ts b/src/serialization/types/TextNode.ts
index 690d2994..abf03e06 100644
--- a/src/serialization/types/TextNode.ts
+++ b/src/serialization/types/TextNode.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const TextNode: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/TriggerType.ts b/src/serialization/types/TriggerType.ts
index f8c4c083..b6411437 100644
--- a/src/serialization/types/TriggerType.ts
+++ b/src/serialization/types/TriggerType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const TriggerType: core.serialization.Schema =
diff --git a/src/serialization/types/User.ts b/src/serialization/types/User.ts
index d85ac414..88dfbda9 100644
--- a/src/serialization/types/User.ts
+++ b/src/serialization/types/User.ts
@@ -2,9 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { UserStatus } from "./UserStatus";
+import { UserAccessGroupsItem } from "./UserAccessGroupsItem";
+import { UserData } from "./UserData";
export const User: core.serialization.ObjectSchema = core.serialization.object({
id: core.serialization.string().optional(),
@@ -13,11 +16,9 @@ export const User: core.serialization.ObjectSchema (await import("..")).UserStatus).optional(),
- accessGroups: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).UserAccessGroupsItem))
- .optional(),
- data: core.serialization.lazyObject(async () => (await import("..")).UserData).optional(),
+ status: UserStatus.optional(),
+ accessGroups: core.serialization.list(UserAccessGroupsItem).optional(),
+ data: UserData.optional(),
});
export declare namespace User {
@@ -28,8 +29,8 @@ export declare namespace User {
invitedOn?: string | null;
createdOn?: string | null;
lastLogin?: string | null;
- status?: serializers.UserStatus.Raw | null;
- accessGroups?: serializers.UserAccessGroupsItem.Raw[] | null;
- data?: serializers.UserData.Raw | null;
+ status?: UserStatus.Raw | null;
+ accessGroups?: UserAccessGroupsItem.Raw[] | null;
+ data?: UserData.Raw | null;
}
}
diff --git a/src/serialization/types/UserAccessGroupsItem.ts b/src/serialization/types/UserAccessGroupsItem.ts
index b613e032..d8eb434c 100644
--- a/src/serialization/types/UserAccessGroupsItem.ts
+++ b/src/serialization/types/UserAccessGroupsItem.ts
@@ -2,21 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { UserAccessGroupsItemType } from "./UserAccessGroupsItemType";
export const UserAccessGroupsItem: core.serialization.ObjectSchema<
serializers.UserAccessGroupsItem.Raw,
Webflow.UserAccessGroupsItem
> = core.serialization.object({
slug: core.serialization.string().optional(),
- type: core.serialization.lazy(async () => (await import("..")).UserAccessGroupsItemType).optional(),
+ type: UserAccessGroupsItemType.optional(),
});
export declare namespace UserAccessGroupsItem {
interface Raw {
slug?: string | null;
- type?: serializers.UserAccessGroupsItemType.Raw | null;
+ type?: UserAccessGroupsItemType.Raw | null;
}
}
diff --git a/src/serialization/types/UserAccessGroupsItemType.ts b/src/serialization/types/UserAccessGroupsItemType.ts
index 9417dff1..bc02739b 100644
--- a/src/serialization/types/UserAccessGroupsItemType.ts
+++ b/src/serialization/types/UserAccessGroupsItemType.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const UserAccessGroupsItemType: core.serialization.Schema<
diff --git a/src/serialization/types/UserData.ts b/src/serialization/types/UserData.ts
index bc5ff2c7..54b13771 100644
--- a/src/serialization/types/UserData.ts
+++ b/src/serialization/types/UserData.ts
@@ -2,17 +2,18 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { UserDataData } from "./UserDataData";
export const UserData: core.serialization.ObjectSchema =
core.serialization.object({
- data: core.serialization.lazyObject(async () => (await import("..")).UserDataData).optional(),
+ data: UserDataData.optional(),
});
export declare namespace UserData {
interface Raw {
- data?: serializers.UserDataData.Raw | null;
+ data?: UserDataData.Raw | null;
}
}
diff --git a/src/serialization/types/UserDataData.ts b/src/serialization/types/UserDataData.ts
index d0e285d5..6b5e9e08 100644
--- a/src/serialization/types/UserDataData.ts
+++ b/src/serialization/types/UserDataData.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const UserDataData: core.serialization.ObjectSchema =
diff --git a/src/serialization/types/UserLimitReached.ts b/src/serialization/types/UserLimitReached.ts
index 9c31295e..9d34349f 100644
--- a/src/serialization/types/UserLimitReached.ts
+++ b/src/serialization/types/UserLimitReached.ts
@@ -2,27 +2,16 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Error_ } from "./Error_";
export const UserLimitReached: core.serialization.ObjectSchema<
serializers.UserLimitReached.Raw,
Webflow.UserLimitReached
-> = core.serialization.object({
- code: core.serialization.string().optional(),
- message: core.serialization.string().optional(),
- externalReference: core.serialization.string().optional(),
- details: core.serialization
- .list(core.serialization.lazy(async () => (await import("..")).ErrorDetailsItem))
- .optional(),
-});
+> = Error_;
export declare namespace UserLimitReached {
- interface Raw {
- code?: string | null;
- message?: string | null;
- externalReference?: string | null;
- details?: serializers.ErrorDetailsItem.Raw[] | null;
- }
+ type Raw = Error_.Raw;
}
diff --git a/src/serialization/types/UserList.ts b/src/serialization/types/UserList.ts
index bd6e4871..4b3a9911 100644
--- a/src/serialization/types/UserList.ts
+++ b/src/serialization/types/UserList.ts
@@ -2,9 +2,10 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { User } from "./User";
export const UserList: core.serialization.ObjectSchema =
core.serialization.object({
@@ -12,7 +13,7 @@ export const UserList: core.serialization.ObjectSchema (await import("..")).User)).optional(),
+ users: core.serialization.list(User).optional(),
});
export declare namespace UserList {
@@ -21,6 +22,6 @@ export declare namespace UserList {
limit?: number | null;
offset?: number | null;
total?: number | null;
- users?: serializers.User.Raw[] | null;
+ users?: User.Raw[] | null;
}
}
diff --git a/src/serialization/types/UserStatus.ts b/src/serialization/types/UserStatus.ts
index e0dc72ab..66bdbb47 100644
--- a/src/serialization/types/UserStatus.ts
+++ b/src/serialization/types/UserStatus.ts
@@ -2,8 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
export const UserStatus: core.serialization.Schema =
diff --git a/src/serialization/types/UsersNotEnabled.ts b/src/serialization/types/UsersNotEnabled.ts
index ba7004e8..e5f78910 100644
--- a/src/serialization/types/UsersNotEnabled.ts
+++ b/src/serialization/types/UsersNotEnabled.ts
@@ -2,27 +2,16 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Error_ } from "./Error_";
export const UsersNotEnabled: core.serialization.ObjectSchema<
serializers.UsersNotEnabled.Raw,
Webflow.UsersNotEnabled
-> = core.serialization.object({
- code: core.serialization.string().optional(),
- message: core.serialization.string().optional(),
- externalReference: core.serialization.string().optional(),
- details: core.serialization
- .list(core.serialization.lazy(async () => (await import("..")).ErrorDetailsItem))
- .optional(),
-});
+> = Error_;
export declare namespace UsersNotEnabled {
- interface Raw {
- code?: string | null;
- message?: string | null;
- externalReference?: string | null;
- details?: serializers.ErrorDetailsItem.Raw[] | null;
- }
+ type Raw = Error_.Raw;
}
diff --git a/src/serialization/types/Webhook.ts b/src/serialization/types/Webhook.ts
index 0d7985ea..25873743 100644
--- a/src/serialization/types/Webhook.ts
+++ b/src/serialization/types/Webhook.ts
@@ -2,16 +2,17 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { TriggerType } from "./TriggerType";
export const Webhook: core.serialization.ObjectSchema =
core.serialization.object({
id: core.serialization.string().optional(),
workspaceId: core.serialization.string().optional(),
siteId: core.serialization.string().optional(),
- triggerType: core.serialization.lazy(async () => (await import("..")).TriggerType).optional(),
+ triggerType: TriggerType.optional(),
filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
lastTriggered: core.serialization.date().optional(),
createdOn: core.serialization.date().optional(),
@@ -23,7 +24,7 @@ export declare namespace Webhook {
id?: string | null;
workspaceId?: string | null;
siteId?: string | null;
- triggerType?: serializers.TriggerType.Raw | null;
+ triggerType?: TriggerType.Raw | null;
filter?: Record | null;
lastTriggered?: string | null;
createdOn?: string | null;
diff --git a/src/serialization/types/WebhookList.ts b/src/serialization/types/WebhookList.ts
index 759bec12..2d9268fe 100644
--- a/src/serialization/types/WebhookList.ts
+++ b/src/serialization/types/WebhookList.ts
@@ -2,21 +2,21 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as serializers from "..";
-import * as Webflow from "../../api";
+import * as serializers from "../index";
+import * as Webflow from "../../api/index";
import * as core from "../../core";
+import { Pagination } from "./Pagination";
+import { Webhook } from "./Webhook";
export const WebhookList: core.serialization.ObjectSchema =
core.serialization.object({
- pagination: core.serialization.lazyObject(async () => (await import("..")).Pagination).optional(),
- webhooks: core.serialization
- .list(core.serialization.lazyObject(async () => (await import("..")).Webhook))
- .optional(),
+ pagination: Pagination.optional(),
+ webhooks: core.serialization.list(Webhook).optional(),
});
export declare namespace WebhookList {
interface Raw {
- pagination?: serializers.Pagination.Raw | null;
- webhooks?: serializers.Webhook.Raw[] | null;
+ pagination?: Pagination.Raw | null;
+ webhooks?: Webhook.Raw[] | null;
}
}
diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts
index caa2144b..43dad6d5 100644
--- a/src/serialization/types/index.ts
+++ b/src/serialization/types/index.ts
@@ -1,4 +1,7 @@
export * from "./OauthScope";
+export * from "./ForbiddenErrorBody";
+export * from "./BadRequestErrorBody";
+export * from "./ConflictErrorBody";
export * from "./AuthorizedUser";
export * from "./Application";
export * from "./AuthorizationAuthorizationAuthorizedTo";
@@ -34,6 +37,9 @@ export * from "./PageSeo";
export * from "./PageOpenGraph";
export * from "./Page";
export * from "./PageList";
+export * from "./PageDetailsSeo";
+export * from "./PageDetailsOpenGraph";
+export * from "./PageDetails";
export * from "./TextNode";
export * from "./ImageNode";
export * from "./NodeType";
diff --git a/tests/client.test.ts b/tests/client.test.ts
deleted file mode 100644
index 62b373b9..00000000
--- a/tests/client.test.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
-* This is a test file for the SDK.
-*
-* Add any tests here and make sure to mark this file
-* in `.fernignore`.
-*/
-describe("test", () => {
- it("default", () => {
- expect(true).toBe(true);
- });
-});
\ No newline at end of file
diff --git a/tests/custom.test.ts b/tests/custom.test.ts
new file mode 100644
index 00000000..7f5e031c
--- /dev/null
+++ b/tests/custom.test.ts
@@ -0,0 +1,13 @@
+/**
+ * This is a custom test file, if you wish to add more tests
+ * to your SDK.
+ * Be sure to mark this file in `.fernignore`.
+ *
+ * If you include example requests/responses in your fern definition,
+ * you will have tests automatically generated for you.
+ */
+describe("test", () => {
+ it("default", () => {
+ expect(true).toBe(true);
+ });
+});
diff --git a/tsconfig.json b/tsconfig.json
index 5a306b23..538c94fe 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -12,8 +12,6 @@
"rootDir": "src",
"baseUrl": "src"
},
- "include": [
- "src"
- ],
+ "include": ["src"],
"exclude": []
-}
\ No newline at end of file
+}
diff --git a/yarn.lock b/yarn.lock
index 6655d11a..3c6e4286 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10,156 +10,159 @@
"@jridgewell/gen-mapping" "^0.3.5"
"@jridgewell/trace-mapping" "^0.3.24"
-"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.2":
- version "7.24.2"
- resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae"
- integrity sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==
+"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465"
+ integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==
dependencies:
- "@babel/highlight" "^7.24.2"
+ "@babel/highlight" "^7.24.7"
picocolors "^1.0.0"
-"@babel/compat-data@^7.23.5":
- 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/compat-data@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.7.tgz#d23bbea508c3883ba8251fb4164982c36ea577ed"
+ integrity sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==
"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.5.tgz#15ab5b98e101972d171aeef92ac70d8d6718f06a"
- integrity sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.7.tgz#b676450141e0b52a3d43bc91da86aa608f950ac4"
+ integrity sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==
dependencies:
"@ampproject/remapping" "^2.2.0"
- "@babel/code-frame" "^7.24.2"
- "@babel/generator" "^7.24.5"
- "@babel/helper-compilation-targets" "^7.23.6"
- "@babel/helper-module-transforms" "^7.24.5"
- "@babel/helpers" "^7.24.5"
- "@babel/parser" "^7.24.5"
- "@babel/template" "^7.24.0"
- "@babel/traverse" "^7.24.5"
- "@babel/types" "^7.24.5"
+ "@babel/code-frame" "^7.24.7"
+ "@babel/generator" "^7.24.7"
+ "@babel/helper-compilation-targets" "^7.24.7"
+ "@babel/helper-module-transforms" "^7.24.7"
+ "@babel/helpers" "^7.24.7"
+ "@babel/parser" "^7.24.7"
+ "@babel/template" "^7.24.7"
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
convert-source-map "^2.0.0"
debug "^4.1.0"
gensync "^1.0.0-beta.2"
json5 "^2.2.3"
semver "^6.3.1"
-"@babel/generator@^7.24.5", "@babel/generator@^7.7.2":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.5.tgz#e5afc068f932f05616b66713e28d0f04e99daeb3"
- integrity sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==
+"@babel/generator@^7.24.7", "@babel/generator@^7.7.2":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.7.tgz#1654d01de20ad66b4b4d99c135471bc654c55e6d"
+ integrity sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==
dependencies:
- "@babel/types" "^7.24.5"
+ "@babel/types" "^7.24.7"
"@jridgewell/gen-mapping" "^0.3.5"
"@jridgewell/trace-mapping" "^0.3.25"
jsesc "^2.5.1"
-"@babel/helper-compilation-targets@^7.23.6":
- version "7.23.6"
- resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991"
- integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==
+"@babel/helper-compilation-targets@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz#4eb6c4a80d6ffeac25ab8cd9a21b5dfa48d503a9"
+ integrity sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==
dependencies:
- "@babel/compat-data" "^7.23.5"
- "@babel/helper-validator-option" "^7.23.5"
+ "@babel/compat-data" "^7.24.7"
+ "@babel/helper-validator-option" "^7.24.7"
browserslist "^4.22.2"
lru-cache "^5.1.1"
semver "^6.3.1"
-"@babel/helper-environment-visitor@^7.22.20":
- version "7.22.20"
- resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167"
- integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==
-
-"@babel/helper-function-name@^7.23.0":
- version "7.23.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759"
- integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==
- dependencies:
- "@babel/template" "^7.22.15"
- "@babel/types" "^7.23.0"
-
-"@babel/helper-hoist-variables@^7.22.5":
- version "7.22.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb"
- integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==
- dependencies:
- "@babel/types" "^7.22.5"
-
-"@babel/helper-module-imports@^7.24.3":
- version "7.24.3"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz#6ac476e6d168c7c23ff3ba3cf4f7841d46ac8128"
- integrity sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==
- dependencies:
- "@babel/types" "^7.24.0"
-
-"@babel/helper-module-transforms@^7.24.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz#ea6c5e33f7b262a0ae762fd5986355c45f54a545"
- integrity sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==
- dependencies:
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-module-imports" "^7.24.3"
- "@babel/helper-simple-access" "^7.24.5"
- "@babel/helper-split-export-declaration" "^7.24.5"
- "@babel/helper-validator-identifier" "^7.24.5"
-
-"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.8.0":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz#a924607dd254a65695e5bd209b98b902b3b2f11a"
- integrity sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==
-
-"@babel/helper-simple-access@^7.24.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz#50da5b72f58c16b07fbd992810be6049478e85ba"
- integrity sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==
- dependencies:
- "@babel/types" "^7.24.5"
-
-"@babel/helper-split-export-declaration@^7.24.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz#b9a67f06a46b0b339323617c8c6213b9055a78b6"
- integrity sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==
- dependencies:
- "@babel/types" "^7.24.5"
-
-"@babel/helper-string-parser@^7.24.1":
- version "7.24.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e"
- integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==
-
-"@babel/helper-validator-identifier@^7.24.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz#918b1a7fa23056603506370089bd990d8720db62"
- integrity sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==
-
-"@babel/helper-validator-option@^7.23.5":
- version "7.23.5"
- 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.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.5.tgz#fedeb87eeafa62b621160402181ad8585a22a40a"
- integrity sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==
- dependencies:
- "@babel/template" "^7.24.0"
- "@babel/traverse" "^7.24.5"
- "@babel/types" "^7.24.5"
-
-"@babel/highlight@^7.24.2":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.5.tgz#bc0613f98e1dd0720e99b2a9ee3760194a704b6e"
- integrity sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==
- dependencies:
- "@babel/helper-validator-identifier" "^7.24.5"
+"@babel/helper-environment-visitor@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9"
+ integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==
+ dependencies:
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-function-name@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2"
+ integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==
+ dependencies:
+ "@babel/template" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-hoist-variables@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee"
+ integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==
+ dependencies:
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-module-imports@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b"
+ integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==
+ dependencies:
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-module-transforms@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz#31b6c9a2930679498db65b685b1698bfd6c7daf8"
+ integrity sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-module-imports" "^7.24.7"
+ "@babel/helper-simple-access" "^7.24.7"
+ "@babel/helper-split-export-declaration" "^7.24.7"
+ "@babel/helper-validator-identifier" "^7.24.7"
+
+"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz#98c84fe6fe3d0d3ae7bfc3a5e166a46844feb2a0"
+ integrity sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==
+
+"@babel/helper-simple-access@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3"
+ integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==
+ dependencies:
+ "@babel/traverse" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-split-export-declaration@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856"
+ integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==
+ dependencies:
+ "@babel/types" "^7.24.7"
+
+"@babel/helper-string-parser@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz#4d2d0f14820ede3b9807ea5fc36dfc8cd7da07f2"
+ integrity sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==
+
+"@babel/helper-validator-identifier@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db"
+ integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==
+
+"@babel/helper-validator-option@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz#24c3bb77c7a425d1742eec8fb433b5a1b38e62f6"
+ integrity sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==
+
+"@babel/helpers@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.7.tgz#aa2ccda29f62185acb5d42fb4a3a1b1082107416"
+ integrity sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==
+ dependencies:
+ "@babel/template" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/highlight@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d"
+ integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.24.7"
chalk "^2.4.2"
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.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.5.tgz#4a4d5ab4315579e5398a82dcf636ca80c3392790"
- integrity sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==
+"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.7.tgz#9a5226f92f0c5c8ead550b750f5608e766c8ce85"
+ integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==
"@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
@@ -197,11 +200,11 @@
"@babel/helper-plugin-utils" "^7.8.0"
"@babel/plugin-syntax-jsx@^7.7.2":
- version "7.24.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz#3f6ca04b8c841811dbc3c5c5f837934e0d626c10"
- integrity sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA==
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d"
+ integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.24.0"
+ "@babel/helper-plugin-utils" "^7.24.7"
"@babel/plugin-syntax-logical-assignment-operators@^7.8.3":
version "7.10.4"
@@ -253,44 +256,44 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-typescript@^7.7.2":
- version "7.24.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz#b3bcc51f396d15f3591683f90239de143c076844"
- integrity sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==
- dependencies:
- "@babel/helper-plugin-utils" "^7.24.0"
-
-"@babel/template@^7.22.15", "@babel/template@^7.24.0", "@babel/template@^7.3.3":
- version "7.24.0"
- resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.0.tgz#c6a524aa93a4a05d66aaf31654258fae69d87d50"
- integrity sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==
- dependencies:
- "@babel/code-frame" "^7.23.5"
- "@babel/parser" "^7.24.0"
- "@babel/types" "^7.24.0"
-
-"@babel/traverse@^7.24.5":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.5.tgz#972aa0bc45f16983bf64aa1f877b2dd0eea7e6f8"
- integrity sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==
- dependencies:
- "@babel/code-frame" "^7.24.2"
- "@babel/generator" "^7.24.5"
- "@babel/helper-environment-visitor" "^7.22.20"
- "@babel/helper-function-name" "^7.23.0"
- "@babel/helper-hoist-variables" "^7.22.5"
- "@babel/helper-split-export-declaration" "^7.24.5"
- "@babel/parser" "^7.24.5"
- "@babel/types" "^7.24.5"
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz#58d458271b4d3b6bb27ee6ac9525acbb259bad1c"
+ integrity sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.24.7"
+
+"@babel/template@^7.24.7", "@babel/template@^7.3.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315"
+ integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==
+ dependencies:
+ "@babel/code-frame" "^7.24.7"
+ "@babel/parser" "^7.24.7"
+ "@babel/types" "^7.24.7"
+
+"@babel/traverse@^7.24.7":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.7.tgz#de2b900163fa741721ba382163fe46a936c40cf5"
+ integrity sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==
+ dependencies:
+ "@babel/code-frame" "^7.24.7"
+ "@babel/generator" "^7.24.7"
+ "@babel/helper-environment-visitor" "^7.24.7"
+ "@babel/helper-function-name" "^7.24.7"
+ "@babel/helper-hoist-variables" "^7.24.7"
+ "@babel/helper-split-export-declaration" "^7.24.7"
+ "@babel/parser" "^7.24.7"
+ "@babel/types" "^7.24.7"
debug "^4.3.1"
globals "^11.1.0"
-"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.24.0", "@babel/types@^7.24.5", "@babel/types@^7.3.3":
- version "7.24.5"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.5.tgz#7661930afc638a5383eb0c4aee59b74f38db84d7"
- integrity sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==
+"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.3.3":
+ version "7.24.7"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.7.tgz#6027fe12bc1aa724cd32ab113fb7f1988f1f66f2"
+ integrity sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==
dependencies:
- "@babel/helper-string-parser" "^7.24.1"
- "@babel/helper-validator-identifier" "^7.24.5"
+ "@babel/helper-string-parser" "^7.24.7"
+ "@babel/helper-validator-identifier" "^7.24.7"
to-fast-properties "^2.0.0"
"@bcoe/v8-coverage@^0.2.3":
@@ -557,6 +560,11 @@
dependencies:
"@sinonjs/commons" "^3.0.0"
+"@tootallnate/once@2":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
+ integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==
+
"@types/babel__core@^7.1.14":
version "7.20.5"
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017"
@@ -584,9 +592,9 @@
"@babel/types" "^7.0.0"
"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6":
- version "7.20.5"
- resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.5.tgz#7b7502be0aa80cc4ef22978846b983edaafcd4dd"
- integrity sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==
+ version "7.20.6"
+ resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.6.tgz#8dc9f0ae0f202c08d8d4dab648912c8d6038e3f7"
+ integrity sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==
dependencies:
"@babel/types" "^7.20.7"
@@ -616,14 +624,23 @@
dependencies:
"@types/istanbul-lib-report" "*"
-"@types/jest@^29.5.5":
- version "29.5.12"
- resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.12.tgz#7f7dc6eb4cf246d2474ed78744b05d06ce025544"
- integrity sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==
+"@types/jest@29.5.5":
+ version "29.5.5"
+ resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.5.tgz#727204e06228fe24373df9bae76b90f3e8236a2a"
+ integrity sha512-ebylz2hnsWR9mYvmBFbXJXr+33UPc4+ZdxyDXh5w0FlPBTfCVN3wPL+kuOiQt3xvrK419v7XWeAs+AeOksafXg==
dependencies:
expect "^29.0.0"
pretty-format "^29.0.0"
+"@types/jsdom@^20.0.0":
+ version "20.0.1"
+ resolved "https://registry.yarnpkg.com/@types/jsdom/-/jsdom-20.0.1.tgz#07c14bc19bd2f918c1929541cdaacae894744808"
+ integrity sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==
+ dependencies:
+ "@types/node" "*"
+ "@types/tough-cookie" "*"
+ parse5 "^7.0.0"
+
"@types/node-fetch@2.6.9":
version "2.6.9"
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.9.tgz#15f529d247f1ede1824f7e7acdaa192d5f28071e"
@@ -633,9 +650,9 @@
form-data "^4.0.0"
"@types/node@*":
- version "20.12.7"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384"
- integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==
+ version "20.14.9"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.9.tgz#12e8e765ab27f8c421a1820c99f5f313a933b420"
+ integrity sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==
dependencies:
undici-types "~5.26.4"
@@ -654,6 +671,11 @@
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8"
integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==
+"@types/tough-cookie@*":
+ version "4.0.5"
+ resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.5.tgz#cb6e2a691b70cb177c6e3ae9c1d2e8b2ea8cd304"
+ integrity sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==
+
"@types/url-join@4.0.1":
version "4.0.1"
resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.1.tgz#4989c97f969464647a8586c7252d97b449cdc045"
@@ -671,6 +693,38 @@
dependencies:
"@types/yargs-parser" "*"
+abab@^2.0.6:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"
+ integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==
+
+acorn-globals@^7.0.0:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-7.0.1.tgz#0dbf05c44fa7c94332914c02066d5beff62c40c3"
+ integrity sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==
+ dependencies:
+ acorn "^8.1.0"
+ acorn-walk "^8.0.2"
+
+acorn-walk@^8.0.2:
+ version "8.3.3"
+ resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e"
+ integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==
+ dependencies:
+ acorn "^8.11.0"
+
+acorn@^8.1.0, acorn@^8.11.0, acorn@^8.8.1:
+ version "8.12.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.0.tgz#1627bfa2e058148036133b8d9b51a700663c294c"
+ integrity sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==
+
+agent-base@6:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77"
+ integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==
+ dependencies:
+ debug "4"
+
ansi-escapes@^4.2.1:
version "4.3.2"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e"
@@ -795,22 +849,22 @@ brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"
-braces@^3.0.2:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
- integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
+braces@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
+ integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
dependencies:
- fill-range "^7.0.1"
+ fill-range "^7.1.1"
browserslist@^4.22.2:
- version "4.23.0"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab"
- integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==
+ version "4.23.1"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96"
+ integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==
dependencies:
- caniuse-lite "^1.0.30001587"
- electron-to-chromium "^1.4.668"
+ caniuse-lite "^1.0.30001629"
+ electron-to-chromium "^1.4.796"
node-releases "^2.0.14"
- update-browserslist-db "^1.0.13"
+ update-browserslist-db "^1.0.16"
bs-logger@0.x:
version "0.2.6"
@@ -857,10 +911,10 @@ camelcase@^6.2.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
-caniuse-lite@^1.0.30001587:
- version "1.0.30001614"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001614.tgz#f894b4209376a0bf923d67d9c361d96b1dfebe39"
- integrity sha512-jmZQ1VpmlRwHgdP1/uiKzgiAuGOfLEJsYFP4+GBou/QQ4U6IOJCB4NP1c+1p9RGLpwObcT94jA5/uO+F1vBbog==
+caniuse-lite@^1.0.30001629:
+ version "1.0.30001638"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001638.tgz#598e1f0c2ac36f37ebc3f5b8887a32ca558e5d56"
+ integrity sha512-5SuJUJ7cZnhPpeLHaH0c/HPAnAHZvS6ElWyHK9GSIbVOQABLzowiI2pjmpvZ1WEbkyz46iFd4UXlOHR5SqgfMQ==
chalk@^2.4.2:
version "2.4.2"
@@ -976,13 +1030,44 @@ cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"
-debug@^4.1.0, debug@^4.1.1, debug@^4.3.1:
- version "4.3.4"
- resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
- integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
+cssom@^0.5.0:
+ version "0.5.0"
+ resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36"
+ integrity sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==
+
+cssom@~0.3.6:
+ version "0.3.8"
+ resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
+ integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==
+
+cssstyle@^2.3.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852"
+ integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==
+ dependencies:
+ cssom "~0.3.6"
+
+data-urls@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.2.tgz#9cf24a477ae22bcef5cd5f6f0bfbc1d2d3be9143"
+ integrity sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==
+ dependencies:
+ abab "^2.0.6"
+ whatwg-mimetype "^3.0.0"
+ whatwg-url "^11.0.0"
+
+debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1:
+ version "4.3.5"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e"
+ integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==
dependencies:
ms "2.1.2"
+decimal.js@^10.4.2:
+ version "10.4.3"
+ resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23"
+ integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==
+
dedent@^1.0.0:
version "1.5.3"
resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a"
@@ -1017,10 +1102,17 @@ diff-sequences@^29.6.3:
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921"
integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==
-electron-to-chromium@^1.4.668:
- version "1.4.751"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.751.tgz#b5b19742a435c589de02f60c16618150498bbd59"
- integrity sha512-2DEPi++qa89SMGRhufWTiLmzqyuGmNF3SK4+PQetW1JKiZdEpF4XQonJXJCzyuYSA6mauiMhbyVhqYAP45Hvfw==
+domexception@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/domexception/-/domexception-4.0.0.tgz#4ad1be56ccadc86fc76d033353999a8037d03673"
+ integrity sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==
+ dependencies:
+ webidl-conversions "^7.0.0"
+
+electron-to-chromium@^1.4.796:
+ version "1.4.812"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.812.tgz#21b78709c5a13af5d5c688d135a22dcea7617acf"
+ integrity sha512-7L8fC2Ey/b6SePDFKR2zHAy4mbdp1/38Yk5TsARO66W3hC5KEaeKMMHoxwtuH+jcu2AYLSn9QX04i95t6Fl1Hg==
emittery@^0.13.1:
version "0.13.1"
@@ -1032,6 +1124,11 @@ emoji-regex@^8.0.0:
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
+entities@^4.4.0:
+ version "4.5.0"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
+ integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
+
error-ex@^1.3.1:
version "1.3.2"
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
@@ -1051,7 +1148,7 @@ es-errors@^1.3.0:
resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f"
integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==
-escalade@^3.1.1:
+escalade@^3.1.1, escalade@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27"
integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==
@@ -1066,11 +1163,32 @@ escape-string-regexp@^2.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
-esprima@^4.0.0:
+escodegen@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.1.0.tgz#ba93bbb7a43986d29d6041f99f5262da773e2e17"
+ integrity sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==
+ dependencies:
+ esprima "^4.0.1"
+ estraverse "^5.2.0"
+ esutils "^2.0.2"
+ optionalDependencies:
+ source-map "~0.6.1"
+
+esprima@^4.0.0, esprima@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
+estraverse@^5.2.0:
+ version "5.3.0"
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
+ integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
+
+esutils@^2.0.2:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
+ integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
+
execa@^5.0.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
@@ -1114,10 +1232,10 @@ fb-watchman@^2.0.0:
dependencies:
bser "2.1.1"
-fill-range@^7.0.1:
- version "7.0.1"
- resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
- integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
+fill-range@^7.1.1:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
+ integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
dependencies:
to-regex-range "^5.0.1"
@@ -1138,6 +1256,11 @@ form-data@4.0.0, form-data@^4.0.0:
combined-stream "^1.0.8"
mime-types "^2.1.12"
+formdata-node@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-6.0.3.tgz#48f8e2206ae2befded82af621ef015f08168dc6d"
+ integrity sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==
+
fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -1240,23 +1363,54 @@ has-symbols@^1.0.3:
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
-hasown@^2.0.0:
+hasown@^2.0.0, hasown@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"
integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
dependencies:
function-bind "^1.1.2"
+html-encoding-sniffer@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9"
+ integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==
+ dependencies:
+ whatwg-encoding "^2.0.0"
+
html-escaper@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
+http-proxy-agent@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43"
+ integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==
+ dependencies:
+ "@tootallnate/once" "2"
+ agent-base "6"
+ debug "4"
+
+https-proxy-agent@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6"
+ integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==
+ dependencies:
+ agent-base "6"
+ debug "4"
+
human-signals@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
+iconv-lite@0.6.3:
+ version "0.6.3"
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
+ integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
+ dependencies:
+ safer-buffer ">= 2.1.2 < 3.0.0"
+
import-local@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4"
@@ -1289,11 +1443,11 @@ is-arrayish@^0.2.1:
integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
is-core-module@^2.13.0:
- version "2.13.1"
- resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384"
- integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==
+ version "2.14.0"
+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.14.0.tgz#43b8ef9f46a6a08888db67b1ffd4ec9e3dfd59d1"
+ integrity sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==
dependencies:
- hasown "^2.0.0"
+ hasown "^2.0.2"
is-fullwidth-code-point@^3.0.0:
version "3.0.0"
@@ -1310,6 +1464,11 @@ is-number@^7.0.0:
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
+is-potential-custom-element-name@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5"
+ integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==
+
is-stream@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"
@@ -1481,6 +1640,20 @@ jest-each@^29.7.0:
jest-util "^29.7.0"
pretty-format "^29.7.0"
+jest-environment-jsdom@29.7.0:
+ version "29.7.0"
+ resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-29.7.0.tgz#d206fa3551933c3fd519e5dfdb58a0f5139a837f"
+ integrity sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==
+ dependencies:
+ "@jest/environment" "^29.7.0"
+ "@jest/fake-timers" "^29.7.0"
+ "@jest/types" "^29.6.3"
+ "@types/jsdom" "^20.0.0"
+ "@types/node" "*"
+ jest-mock "^29.7.0"
+ jest-util "^29.7.0"
+ jsdom "^20.0.0"
+
jest-environment-node@^29.7.0:
version "29.7.0"
resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376"
@@ -1721,7 +1894,7 @@ jest-worker@^29.7.0:
merge-stream "^2.0.0"
supports-color "^8.0.0"
-jest@^29.7.0:
+jest@29.7.0:
version "29.7.0"
resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613"
integrity sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==
@@ -1749,6 +1922,38 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"
+jsdom@^20.0.0:
+ version "20.0.3"
+ resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-20.0.3.tgz#886a41ba1d4726f67a8858028c99489fed6ad4db"
+ integrity sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==
+ dependencies:
+ abab "^2.0.6"
+ acorn "^8.8.1"
+ acorn-globals "^7.0.0"
+ cssom "^0.5.0"
+ cssstyle "^2.3.0"
+ data-urls "^3.0.2"
+ decimal.js "^10.4.2"
+ domexception "^4.0.0"
+ escodegen "^2.0.0"
+ form-data "^4.0.0"
+ html-encoding-sniffer "^3.0.0"
+ http-proxy-agent "^5.0.0"
+ https-proxy-agent "^5.0.1"
+ is-potential-custom-element-name "^1.0.1"
+ nwsapi "^2.2.2"
+ parse5 "^7.1.1"
+ saxes "^6.0.0"
+ symbol-tree "^3.2.4"
+ tough-cookie "^4.1.2"
+ w3c-xmlserializer "^4.0.0"
+ webidl-conversions "^7.0.0"
+ whatwg-encoding "^2.0.0"
+ whatwg-mimetype "^3.0.0"
+ whatwg-url "^11.0.0"
+ ws "^8.11.0"
+ xml-name-validator "^4.0.0"
+
jsesc@^2.5.1:
version "2.5.2"
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
@@ -1798,13 +2003,6 @@ lru-cache@^5.1.1:
dependencies:
yallist "^3.0.2"
-lru-cache@^6.0.0:
- version "6.0.0"
- resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
- integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
- dependencies:
- yallist "^4.0.0"
-
make-dir@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e"
@@ -1830,11 +2028,11 @@ merge-stream@^2.0.0:
integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
micromatch@^4.0.4:
- version "4.0.5"
- resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
- integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5"
+ integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==
dependencies:
- braces "^3.0.2"
+ braces "^3.0.3"
picomatch "^2.3.1"
mime-db@1.52.0:
@@ -1900,10 +2098,15 @@ npm-run-path@^4.0.1:
dependencies:
path-key "^3.0.0"
+nwsapi@^2.2.2:
+ version "2.2.10"
+ resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.10.tgz#0b77a68e21a0b483db70b11fad055906e867cda8"
+ integrity sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ==
+
object-inspect@^1.13.1:
- version "1.13.1"
- resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2"
- integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==
+ version "1.13.2"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff"
+ integrity sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==
once@^1.3.0:
version "1.4.0"
@@ -1955,6 +2158,13 @@ parse-json@^5.2.0:
json-parse-even-better-errors "^2.3.0"
lines-and-columns "^1.1.6"
+parse5@^7.0.0, parse5@^7.1.1:
+ version "7.1.2"
+ resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32"
+ integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==
+ dependencies:
+ entities "^4.4.0"
+
path-exists@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
@@ -1975,10 +2185,10 @@ path-parse@^1.0.7:
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
-picocolors@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
- integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
+picocolors@^1.0.0, picocolors@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1"
+ integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==
picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1:
version "2.3.1"
@@ -2019,6 +2229,16 @@ prompts@^2.0.1:
kleur "^3.0.3"
sisteransi "^1.0.5"
+psl@^1.1.33:
+ version "1.9.0"
+ resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7"
+ integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==
+
+punycode@^2.1.1:
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
+ integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
+
pure-rand@^6.0.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.1.0.tgz#d173cf23258231976ccbdb05247c9787957604f2"
@@ -2031,6 +2251,11 @@ qs@6.11.2:
dependencies:
side-channel "^1.0.4"
+querystringify@^2.1.1:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"
+ integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==
+
react-is@^18.0.0:
version "18.3.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e"
@@ -2041,6 +2266,11 @@ require-directory@^2.1.1:
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==
+requires-port@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
+ integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==
+
resolve-cwd@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d"
@@ -2067,17 +2297,27 @@ resolve@^1.20.0:
path-parse "^1.0.7"
supports-preserve-symlinks-flag "^1.0.0"
+"safer-buffer@>= 2.1.2 < 3.0.0":
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+ integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
+
+saxes@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/saxes/-/saxes-6.0.0.tgz#fe5b4a4768df4f14a201b1ba6a65c1f3d9988cc5"
+ integrity sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==
+ dependencies:
+ xmlchars "^2.2.0"
+
semver@^6.3.0, semver@^6.3.1:
version "6.3.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
semver@^7.5.3, semver@^7.5.4:
- version "7.6.0"
- resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d"
- integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==
- dependencies:
- lru-cache "^6.0.0"
+ version "7.6.2"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13"
+ integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==
set-function-length@^1.2.1:
version "1.2.2"
@@ -2136,7 +2376,7 @@ source-map-support@0.5.13:
buffer-from "^1.0.0"
source-map "^0.6.0"
-source-map@^0.6.0, source-map@^0.6.1:
+source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
@@ -2218,6 +2458,11 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
+symbol-tree@^3.2.4:
+ version "3.2.4"
+ resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
+ integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==
+
test-exclude@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e"
@@ -2244,15 +2489,32 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"
+tough-cookie@^4.1.2:
+ version "4.1.4"
+ resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.4.tgz#945f1461b45b5a8c76821c33ea49c3ac192c1b36"
+ integrity sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==
+ dependencies:
+ psl "^1.1.33"
+ punycode "^2.1.1"
+ universalify "^0.2.0"
+ url-parse "^1.5.3"
+
+tr46@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9"
+ integrity sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==
+ dependencies:
+ punycode "^2.1.1"
+
tr46@~0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
-ts-jest@^29.1.1:
- version "29.1.2"
- resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.2.tgz#7613d8c81c43c8cb312c6904027257e814c40e09"
- integrity sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==
+ts-jest@29.1.1:
+ version "29.1.1"
+ resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.1.tgz#f58fe62c63caf7bfcc5cc6472082f79180f0815b"
+ integrity sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==
dependencies:
bs-logger "0.x"
fast-json-stable-stringify "2.x"
@@ -2283,28 +2545,48 @@ undici-types@~5.26.4:
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
-update-browserslist-db@^1.0.13:
- version "1.0.13"
- resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4"
- integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==
+universalify@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"
+ integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==
+
+update-browserslist-db@^1.0.16:
+ version "1.0.16"
+ resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356"
+ integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==
dependencies:
- escalade "^3.1.1"
- picocolors "^1.0.0"
+ escalade "^3.1.2"
+ picocolors "^1.0.1"
url-join@4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7"
integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==
+url-parse@^1.5.3:
+ version "1.5.10"
+ resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1"
+ integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==
+ dependencies:
+ querystringify "^2.1.1"
+ requires-port "^1.0.0"
+
v8-to-istanbul@^9.0.1:
- version "9.2.0"
- resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz#2ed7644a245cddd83d4e087b9b33b3e62dfd10ad"
- integrity sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==
+ version "9.3.0"
+ resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz#b9572abfa62bd556c16d75fdebc1a411d5ff3175"
+ integrity sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==
dependencies:
"@jridgewell/trace-mapping" "^0.3.12"
"@types/istanbul-lib-coverage" "^2.0.1"
convert-source-map "^2.0.0"
+w3c-xmlserializer@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz#aebdc84920d806222936e3cdce408e32488a3073"
+ integrity sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==
+ dependencies:
+ xml-name-validator "^4.0.0"
+
walker@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"
@@ -2317,6 +2599,31 @@ webidl-conversions@^3.0.0:
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
+webidl-conversions@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a"
+ integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==
+
+whatwg-encoding@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53"
+ integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==
+ dependencies:
+ iconv-lite "0.6.3"
+
+whatwg-mimetype@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7"
+ integrity sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==
+
+whatwg-url@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-11.0.0.tgz#0a849eebb5faf2119b901bb76fd795c2848d4018"
+ integrity sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==
+ dependencies:
+ tr46 "^3.0.0"
+ webidl-conversions "^7.0.0"
+
whatwg-url@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
@@ -2354,6 +2661,21 @@ write-file-atomic@^4.0.2:
imurmurhash "^0.1.4"
signal-exit "^3.0.7"
+ws@^8.11.0:
+ version "8.17.1"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b"
+ integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==
+
+xml-name-validator@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835"
+ integrity sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==
+
+xmlchars@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
+ integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==
+
y18n@^5.0.5:
version "5.0.8"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
@@ -2364,11 +2686,6 @@ yallist@^3.0.2:
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
-yallist@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
- integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
-
yargs-parser@^21.0.1, yargs-parser@^21.1.1:
version "21.1.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"