Skip to content

Commit

Permalink
(release): v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] authored Mar 29, 2024
1 parent 0485c4f commit 3efacef
Show file tree
Hide file tree
Showing 89 changed files with 372 additions and 1,089 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webflow-api",
"version": "2.1.2",
"version": "v2.2.0",
"private": false,
"repository": "https://github.com/webflow/js-webflow-api",
"main": "./index.js",
Expand Down
14 changes: 7 additions & 7 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { Sites } from "./api/resources/sites/client/Client";
import { Collections } from "./api/resources/collections/client/Client";
import { Pages } from "./api/resources/pages/client/Client";
import { Scripts } from "./api/resources/scripts/client/Client";
import { Webhooks } from "./api/resources/webhooks/client/Client";
import { Assets } from "./api/resources/assets/client/Client";
import { Webhooks } from "./api/resources/webhooks/client/Client";
import { Forms } from "./api/resources/forms/client/Client";
import { Users } from "./api/resources/users/client/Client";
import { AccessGroups } from "./api/resources/accessGroups/client/Client";
Expand Down Expand Up @@ -64,18 +64,18 @@ export class WebflowClient {
return (this._scripts ??= new Scripts(this._options));
}

protected _webhooks: Webhooks | undefined;

public get webhooks(): Webhooks {
return (this._webhooks ??= new Webhooks(this._options));
}

protected _assets: Assets | undefined;

public get assets(): Assets {
return (this._assets ??= new Assets(this._options));
}

protected _webhooks: Webhooks | undefined;

public get webhooks(): Webhooks {
return (this._webhooks ??= new Webhooks(this._options));
}

protected _forms: Forms | undefined;

public get forms(): Forms {
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/accessGroups/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class AccessGroups {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
18 changes: 9 additions & 9 deletions src/api/resources/assets/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -129,7 +129,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -205,7 +205,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -280,7 +280,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -337,7 +337,7 @@ export class Assets {
*
* @example
* await webflow.assets.update("asset_id", {
* displayName: "file.png"
* displayName: "bulldoze.png"
* })
*/
public async update(
Expand All @@ -355,7 +355,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -431,7 +431,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -513,7 +513,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -592,7 +592,7 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* @example
* {
* displayName: "file.png"
* displayName: "bulldoze.png"
* }
*/
export interface AssetsUpdateRequest {
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/collections/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -131,7 +131,7 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -207,7 +207,7 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -282,7 +282,7 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -355,7 +355,7 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class Fields {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -140,7 +140,7 @@ export class Fields {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
76 changes: 42 additions & 34 deletions src/api/resources/collections/resources/items/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -132,14 +132,16 @@ export class Items {
*
* @example
* await webflow.collections.items.createItem("collection_id", {
* id: "580e64008c9a982ac9b8b754",
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2023-03-17T18:47:35.560Z",
* lastUpdated: "2023-03-17T18:47:35.560Z",
* createdOn: "2023-03-17T18:47:35.560Z",
* lastPublished: "2022-11-29T16:22:43.159Z",
* lastUpdated: "2022-11-17T17:19:43.282Z",
* createdOn: "2022-11-17T17:11:57.148Z",
* isArchived: false,
* isDraft: false,
* fieldData: {
* name: "My new item",
* slug: "my-new-item"
* name: "Pan Galactic Gargle Blaster Recipe",
* slug: "pan-galactic-gargle-blaster"
* }
* })
*/
Expand All @@ -158,7 +160,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -216,14 +218,16 @@ export class Items {
*
* @example
* await webflow.collections.items.createItemLive("collection_id", {
* id: "580e64008c9a982ac9b8b754",
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2023-03-17T18:47:35.560Z",
* lastUpdated: "2023-03-17T18:47:35.560Z",
* createdOn: "2023-03-17T18:47:35.560Z",
* lastPublished: "2022-11-29T16:22:43.159Z",
* lastUpdated: "2022-11-17T17:19:43.282Z",
* createdOn: "2022-11-17T17:11:57.148Z",
* isArchived: false,
* isDraft: false,
* fieldData: {
* name: "My new item",
* slug: "my-new-item"
* name: "Pan Galactic Gargle Blaster Recipe",
* slug: "pan-galactic-gargle-blaster"
* }
* })
*/
Expand All @@ -242,7 +246,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -325,7 +329,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -408,7 +412,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -499,7 +503,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -557,14 +561,16 @@ export class Items {
*
* @example
* await webflow.collections.items.updateItem("collection_id", "item_id", {
* id: "580e64008c9a982ac9b8b754",
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2023-03-17T18:47:35.560Z",
* lastUpdated: "2023-03-17T18:47:35.560Z",
* createdOn: "2023-03-17T18:47:35.560Z",
* lastPublished: "2022-11-29T16:22:43.159Z",
* lastUpdated: "2022-11-17T17:19:43.282Z",
* createdOn: "2022-11-17T17:11:57.148Z",
* isArchived: false,
* isDraft: false,
* fieldData: {
* name: "My new item",
* slug: "my-new-item"
* name: "Pan Galactic Gargle Blaster Recipe",
* slug: "pan-galactic-gargle-blaster"
* }
* })
*/
Expand All @@ -584,7 +590,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -664,7 +670,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -721,14 +727,16 @@ export class Items {
*
* @example
* await webflow.collections.items.updateItemLive("collection_id", "item_id", {
* id: "580e64008c9a982ac9b8b754",
* id: "42b720ef280c7a7a3be8cabe",
* cmsLocaleId: "653ad57de882f528b32e810e",
* lastPublished: "2023-03-17T18:47:35.560Z",
* lastUpdated: "2023-03-17T18:47:35.560Z",
* createdOn: "2023-03-17T18:47:35.560Z",
* lastPublished: "2022-11-29T16:22:43.159Z",
* lastUpdated: "2022-11-17T17:19:43.282Z",
* createdOn: "2022-11-17T17:11:57.148Z",
* isArchived: false,
* isDraft: false,
* fieldData: {
* name: "My new item",
* slug: "my-new-item"
* name: "Pan Galactic Gargle Blaster Recipe",
* slug: "pan-galactic-gargle-blaster"
* }
* })
*/
Expand All @@ -748,7 +756,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -830,7 +838,7 @@ export class Items {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "2.1.2",
"X-Fern-SDK-Version": "v2.2.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as Webflow from "../../../../../..";
export interface BulkCollectionItem {
/** Unique identifier for the Item */
id: string;
/** Array of identifiers for the locales where the item will be crated */
/** Array of identifiers for the locales where the item will be created */
cmsLocaleIds?: string[];
/** The date the item was last published */
lastPublished?: string;
Expand Down
Loading

0 comments on commit 3efacef

Please sign in to comment.