Skip to content

Commit 3efacef

Browse files
(release): v2.2.0
1 parent 0485c4f commit 3efacef

File tree

89 files changed

+372
-1089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+372
-1089
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webflow-api",
3-
"version": "2.1.2",
3+
"version": "v2.2.0",
44
"private": false,
55
"repository": "https://github.com/webflow/js-webflow-api",
66
"main": "./index.js",

src/Client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { Sites } from "./api/resources/sites/client/Client";
99
import { Collections } from "./api/resources/collections/client/Client";
1010
import { Pages } from "./api/resources/pages/client/Client";
1111
import { Scripts } from "./api/resources/scripts/client/Client";
12-
import { Webhooks } from "./api/resources/webhooks/client/Client";
1312
import { Assets } from "./api/resources/assets/client/Client";
13+
import { Webhooks } from "./api/resources/webhooks/client/Client";
1414
import { Forms } from "./api/resources/forms/client/Client";
1515
import { Users } from "./api/resources/users/client/Client";
1616
import { AccessGroups } from "./api/resources/accessGroups/client/Client";
@@ -64,18 +64,18 @@ export class WebflowClient {
6464
return (this._scripts ??= new Scripts(this._options));
6565
}
6666

67-
protected _webhooks: Webhooks | undefined;
68-
69-
public get webhooks(): Webhooks {
70-
return (this._webhooks ??= new Webhooks(this._options));
71-
}
72-
7367
protected _assets: Assets | undefined;
7468

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

73+
protected _webhooks: Webhooks | undefined;
74+
75+
public get webhooks(): Webhooks {
76+
return (this._webhooks ??= new Webhooks(this._options));
77+
}
78+
7979
protected _forms: Forms | undefined;
8080

8181
public get forms(): Forms {

src/api/resources/accessGroups/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class AccessGroups {
6565
Authorization: await this._getAuthorizationHeader(),
6666
"X-Fern-Language": "JavaScript",
6767
"X-Fern-SDK-Name": "webflow-api",
68-
"X-Fern-SDK-Version": "2.1.2",
68+
"X-Fern-SDK-Version": "v2.2.0",
6969
"X-Fern-Runtime": core.RUNTIME.type,
7070
"X-Fern-Runtime-Version": core.RUNTIME.version,
7171
},

src/api/resources/assets/client/Client.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class Assets {
4646
Authorization: await this._getAuthorizationHeader(),
4747
"X-Fern-Language": "JavaScript",
4848
"X-Fern-SDK-Name": "webflow-api",
49-
"X-Fern-SDK-Version": "2.1.2",
49+
"X-Fern-SDK-Version": "v2.2.0",
5050
"X-Fern-Runtime": core.RUNTIME.type,
5151
"X-Fern-Runtime-Version": core.RUNTIME.version,
5252
},
@@ -129,7 +129,7 @@ export class Assets {
129129
Authorization: await this._getAuthorizationHeader(),
130130
"X-Fern-Language": "JavaScript",
131131
"X-Fern-SDK-Name": "webflow-api",
132-
"X-Fern-SDK-Version": "2.1.2",
132+
"X-Fern-SDK-Version": "v2.2.0",
133133
"X-Fern-Runtime": core.RUNTIME.type,
134134
"X-Fern-Runtime-Version": core.RUNTIME.version,
135135
},
@@ -205,7 +205,7 @@ export class Assets {
205205
Authorization: await this._getAuthorizationHeader(),
206206
"X-Fern-Language": "JavaScript",
207207
"X-Fern-SDK-Name": "webflow-api",
208-
"X-Fern-SDK-Version": "2.1.2",
208+
"X-Fern-SDK-Version": "v2.2.0",
209209
"X-Fern-Runtime": core.RUNTIME.type,
210210
"X-Fern-Runtime-Version": core.RUNTIME.version,
211211
},
@@ -280,7 +280,7 @@ export class Assets {
280280
Authorization: await this._getAuthorizationHeader(),
281281
"X-Fern-Language": "JavaScript",
282282
"X-Fern-SDK-Name": "webflow-api",
283-
"X-Fern-SDK-Version": "2.1.2",
283+
"X-Fern-SDK-Version": "v2.2.0",
284284
"X-Fern-Runtime": core.RUNTIME.type,
285285
"X-Fern-Runtime-Version": core.RUNTIME.version,
286286
},
@@ -337,7 +337,7 @@ export class Assets {
337337
*
338338
* @example
339339
* await webflow.assets.update("asset_id", {
340-
* displayName: "file.png"
340+
* displayName: "bulldoze.png"
341341
* })
342342
*/
343343
public async update(
@@ -355,7 +355,7 @@ export class Assets {
355355
Authorization: await this._getAuthorizationHeader(),
356356
"X-Fern-Language": "JavaScript",
357357
"X-Fern-SDK-Name": "webflow-api",
358-
"X-Fern-SDK-Version": "2.1.2",
358+
"X-Fern-SDK-Version": "v2.2.0",
359359
"X-Fern-Runtime": core.RUNTIME.type,
360360
"X-Fern-Runtime-Version": core.RUNTIME.version,
361361
},
@@ -431,7 +431,7 @@ export class Assets {
431431
Authorization: await this._getAuthorizationHeader(),
432432
"X-Fern-Language": "JavaScript",
433433
"X-Fern-SDK-Name": "webflow-api",
434-
"X-Fern-SDK-Version": "2.1.2",
434+
"X-Fern-SDK-Version": "v2.2.0",
435435
"X-Fern-Runtime": core.RUNTIME.type,
436436
"X-Fern-Runtime-Version": core.RUNTIME.version,
437437
},
@@ -513,7 +513,7 @@ export class Assets {
513513
Authorization: await this._getAuthorizationHeader(),
514514
"X-Fern-Language": "JavaScript",
515515
"X-Fern-SDK-Name": "webflow-api",
516-
"X-Fern-SDK-Version": "2.1.2",
516+
"X-Fern-SDK-Version": "v2.2.0",
517517
"X-Fern-Runtime": core.RUNTIME.type,
518518
"X-Fern-Runtime-Version": core.RUNTIME.version,
519519
},
@@ -592,7 +592,7 @@ export class Assets {
592592
Authorization: await this._getAuthorizationHeader(),
593593
"X-Fern-Language": "JavaScript",
594594
"X-Fern-SDK-Name": "webflow-api",
595-
"X-Fern-SDK-Version": "2.1.2",
595+
"X-Fern-SDK-Version": "v2.2.0",
596596
"X-Fern-Runtime": core.RUNTIME.type,
597597
"X-Fern-Runtime-Version": core.RUNTIME.version,
598598
},

src/api/resources/assets/client/requests/AssetsUpdateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* @example
77
* {
8-
* displayName: "file.png"
8+
* displayName: "bulldoze.png"
99
* }
1010
*/
1111
export interface AssetsUpdateRequest {

src/api/resources/collections/client/Client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Collections {
4848
Authorization: await this._getAuthorizationHeader(),
4949
"X-Fern-Language": "JavaScript",
5050
"X-Fern-SDK-Name": "webflow-api",
51-
"X-Fern-SDK-Version": "2.1.2",
51+
"X-Fern-SDK-Version": "v2.2.0",
5252
"X-Fern-Runtime": core.RUNTIME.type,
5353
"X-Fern-Runtime-Version": core.RUNTIME.version,
5454
},
@@ -131,7 +131,7 @@ export class Collections {
131131
Authorization: await this._getAuthorizationHeader(),
132132
"X-Fern-Language": "JavaScript",
133133
"X-Fern-SDK-Name": "webflow-api",
134-
"X-Fern-SDK-Version": "2.1.2",
134+
"X-Fern-SDK-Version": "v2.2.0",
135135
"X-Fern-Runtime": core.RUNTIME.type,
136136
"X-Fern-Runtime-Version": core.RUNTIME.version,
137137
},
@@ -207,7 +207,7 @@ export class Collections {
207207
Authorization: await this._getAuthorizationHeader(),
208208
"X-Fern-Language": "JavaScript",
209209
"X-Fern-SDK-Name": "webflow-api",
210-
"X-Fern-SDK-Version": "2.1.2",
210+
"X-Fern-SDK-Version": "v2.2.0",
211211
"X-Fern-Runtime": core.RUNTIME.type,
212212
"X-Fern-Runtime-Version": core.RUNTIME.version,
213213
},
@@ -282,7 +282,7 @@ export class Collections {
282282
Authorization: await this._getAuthorizationHeader(),
283283
"X-Fern-Language": "JavaScript",
284284
"X-Fern-SDK-Name": "webflow-api",
285-
"X-Fern-SDK-Version": "2.1.2",
285+
"X-Fern-SDK-Version": "v2.2.0",
286286
"X-Fern-Runtime": core.RUNTIME.type,
287287
"X-Fern-Runtime-Version": core.RUNTIME.version,
288288
},
@@ -355,7 +355,7 @@ export class Collections {
355355
Authorization: await this._getAuthorizationHeader(),
356356
"X-Fern-Language": "JavaScript",
357357
"X-Fern-SDK-Name": "webflow-api",
358-
"X-Fern-SDK-Version": "2.1.2",
358+
"X-Fern-SDK-Version": "v2.2.0",
359359
"X-Fern-Runtime": core.RUNTIME.type,
360360
"X-Fern-Runtime-Version": core.RUNTIME.version,
361361
},

src/api/resources/collections/resources/fields/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class Fields {
5555
Authorization: await this._getAuthorizationHeader(),
5656
"X-Fern-Language": "JavaScript",
5757
"X-Fern-SDK-Name": "webflow-api",
58-
"X-Fern-SDK-Version": "2.1.2",
58+
"X-Fern-SDK-Version": "v2.2.0",
5959
"X-Fern-Runtime": core.RUNTIME.type,
6060
"X-Fern-Runtime-Version": core.RUNTIME.version,
6161
},
@@ -140,7 +140,7 @@ export class Fields {
140140
Authorization: await this._getAuthorizationHeader(),
141141
"X-Fern-Language": "JavaScript",
142142
"X-Fern-SDK-Name": "webflow-api",
143-
"X-Fern-SDK-Version": "2.1.2",
143+
"X-Fern-SDK-Version": "v2.2.0",
144144
"X-Fern-Runtime": core.RUNTIME.type,
145145
"X-Fern-Runtime-Version": core.RUNTIME.version,
146146
},

src/api/resources/collections/resources/items/client/Client.ts

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Items {
6868
Authorization: await this._getAuthorizationHeader(),
6969
"X-Fern-Language": "JavaScript",
7070
"X-Fern-SDK-Name": "webflow-api",
71-
"X-Fern-SDK-Version": "2.1.2",
71+
"X-Fern-SDK-Version": "v2.2.0",
7272
"X-Fern-Runtime": core.RUNTIME.type,
7373
"X-Fern-Runtime-Version": core.RUNTIME.version,
7474
},
@@ -132,14 +132,16 @@ export class Items {
132132
*
133133
* @example
134134
* await webflow.collections.items.createItem("collection_id", {
135-
* id: "580e64008c9a982ac9b8b754",
135+
* id: "42b720ef280c7a7a3be8cabe",
136136
* cmsLocaleId: "653ad57de882f528b32e810e",
137-
* lastPublished: "2023-03-17T18:47:35.560Z",
138-
* lastUpdated: "2023-03-17T18:47:35.560Z",
139-
* createdOn: "2023-03-17T18:47:35.560Z",
137+
* lastPublished: "2022-11-29T16:22:43.159Z",
138+
* lastUpdated: "2022-11-17T17:19:43.282Z",
139+
* createdOn: "2022-11-17T17:11:57.148Z",
140+
* isArchived: false,
141+
* isDraft: false,
140142
* fieldData: {
141-
* name: "My new item",
142-
* slug: "my-new-item"
143+
* name: "Pan Galactic Gargle Blaster Recipe",
144+
* slug: "pan-galactic-gargle-blaster"
143145
* }
144146
* })
145147
*/
@@ -158,7 +160,7 @@ export class Items {
158160
Authorization: await this._getAuthorizationHeader(),
159161
"X-Fern-Language": "JavaScript",
160162
"X-Fern-SDK-Name": "webflow-api",
161-
"X-Fern-SDK-Version": "2.1.2",
163+
"X-Fern-SDK-Version": "v2.2.0",
162164
"X-Fern-Runtime": core.RUNTIME.type,
163165
"X-Fern-Runtime-Version": core.RUNTIME.version,
164166
},
@@ -216,14 +218,16 @@ export class Items {
216218
*
217219
* @example
218220
* await webflow.collections.items.createItemLive("collection_id", {
219-
* id: "580e64008c9a982ac9b8b754",
221+
* id: "42b720ef280c7a7a3be8cabe",
220222
* cmsLocaleId: "653ad57de882f528b32e810e",
221-
* lastPublished: "2023-03-17T18:47:35.560Z",
222-
* lastUpdated: "2023-03-17T18:47:35.560Z",
223-
* createdOn: "2023-03-17T18:47:35.560Z",
223+
* lastPublished: "2022-11-29T16:22:43.159Z",
224+
* lastUpdated: "2022-11-17T17:19:43.282Z",
225+
* createdOn: "2022-11-17T17:11:57.148Z",
226+
* isArchived: false,
227+
* isDraft: false,
224228
* fieldData: {
225-
* name: "My new item",
226-
* slug: "my-new-item"
229+
* name: "Pan Galactic Gargle Blaster Recipe",
230+
* slug: "pan-galactic-gargle-blaster"
227231
* }
228232
* })
229233
*/
@@ -242,7 +246,7 @@ export class Items {
242246
Authorization: await this._getAuthorizationHeader(),
243247
"X-Fern-Language": "JavaScript",
244248
"X-Fern-SDK-Name": "webflow-api",
245-
"X-Fern-SDK-Version": "2.1.2",
249+
"X-Fern-SDK-Version": "v2.2.0",
246250
"X-Fern-Runtime": core.RUNTIME.type,
247251
"X-Fern-Runtime-Version": core.RUNTIME.version,
248252
},
@@ -325,7 +329,7 @@ export class Items {
325329
Authorization: await this._getAuthorizationHeader(),
326330
"X-Fern-Language": "JavaScript",
327331
"X-Fern-SDK-Name": "webflow-api",
328-
"X-Fern-SDK-Version": "2.1.2",
332+
"X-Fern-SDK-Version": "v2.2.0",
329333
"X-Fern-Runtime": core.RUNTIME.type,
330334
"X-Fern-Runtime-Version": core.RUNTIME.version,
331335
},
@@ -408,7 +412,7 @@ export class Items {
408412
Authorization: await this._getAuthorizationHeader(),
409413
"X-Fern-Language": "JavaScript",
410414
"X-Fern-SDK-Name": "webflow-api",
411-
"X-Fern-SDK-Version": "2.1.2",
415+
"X-Fern-SDK-Version": "v2.2.0",
412416
"X-Fern-Runtime": core.RUNTIME.type,
413417
"X-Fern-Runtime-Version": core.RUNTIME.version,
414418
},
@@ -499,7 +503,7 @@ export class Items {
499503
Authorization: await this._getAuthorizationHeader(),
500504
"X-Fern-Language": "JavaScript",
501505
"X-Fern-SDK-Name": "webflow-api",
502-
"X-Fern-SDK-Version": "2.1.2",
506+
"X-Fern-SDK-Version": "v2.2.0",
503507
"X-Fern-Runtime": core.RUNTIME.type,
504508
"X-Fern-Runtime-Version": core.RUNTIME.version,
505509
},
@@ -557,14 +561,16 @@ export class Items {
557561
*
558562
* @example
559563
* await webflow.collections.items.updateItem("collection_id", "item_id", {
560-
* id: "580e64008c9a982ac9b8b754",
564+
* id: "42b720ef280c7a7a3be8cabe",
561565
* cmsLocaleId: "653ad57de882f528b32e810e",
562-
* lastPublished: "2023-03-17T18:47:35.560Z",
563-
* lastUpdated: "2023-03-17T18:47:35.560Z",
564-
* createdOn: "2023-03-17T18:47:35.560Z",
566+
* lastPublished: "2022-11-29T16:22:43.159Z",
567+
* lastUpdated: "2022-11-17T17:19:43.282Z",
568+
* createdOn: "2022-11-17T17:11:57.148Z",
569+
* isArchived: false,
570+
* isDraft: false,
565571
* fieldData: {
566-
* name: "My new item",
567-
* slug: "my-new-item"
572+
* name: "Pan Galactic Gargle Blaster Recipe",
573+
* slug: "pan-galactic-gargle-blaster"
568574
* }
569575
* })
570576
*/
@@ -584,7 +590,7 @@ export class Items {
584590
Authorization: await this._getAuthorizationHeader(),
585591
"X-Fern-Language": "JavaScript",
586592
"X-Fern-SDK-Name": "webflow-api",
587-
"X-Fern-SDK-Version": "2.1.2",
593+
"X-Fern-SDK-Version": "v2.2.0",
588594
"X-Fern-Runtime": core.RUNTIME.type,
589595
"X-Fern-Runtime-Version": core.RUNTIME.version,
590596
},
@@ -664,7 +670,7 @@ export class Items {
664670
Authorization: await this._getAuthorizationHeader(),
665671
"X-Fern-Language": "JavaScript",
666672
"X-Fern-SDK-Name": "webflow-api",
667-
"X-Fern-SDK-Version": "2.1.2",
673+
"X-Fern-SDK-Version": "v2.2.0",
668674
"X-Fern-Runtime": core.RUNTIME.type,
669675
"X-Fern-Runtime-Version": core.RUNTIME.version,
670676
},
@@ -721,14 +727,16 @@ export class Items {
721727
*
722728
* @example
723729
* await webflow.collections.items.updateItemLive("collection_id", "item_id", {
724-
* id: "580e64008c9a982ac9b8b754",
730+
* id: "42b720ef280c7a7a3be8cabe",
725731
* cmsLocaleId: "653ad57de882f528b32e810e",
726-
* lastPublished: "2023-03-17T18:47:35.560Z",
727-
* lastUpdated: "2023-03-17T18:47:35.560Z",
728-
* createdOn: "2023-03-17T18:47:35.560Z",
732+
* lastPublished: "2022-11-29T16:22:43.159Z",
733+
* lastUpdated: "2022-11-17T17:19:43.282Z",
734+
* createdOn: "2022-11-17T17:11:57.148Z",
735+
* isArchived: false,
736+
* isDraft: false,
729737
* fieldData: {
730-
* name: "My new item",
731-
* slug: "my-new-item"
738+
* name: "Pan Galactic Gargle Blaster Recipe",
739+
* slug: "pan-galactic-gargle-blaster"
732740
* }
733741
* })
734742
*/
@@ -748,7 +756,7 @@ export class Items {
748756
Authorization: await this._getAuthorizationHeader(),
749757
"X-Fern-Language": "JavaScript",
750758
"X-Fern-SDK-Name": "webflow-api",
751-
"X-Fern-SDK-Version": "2.1.2",
759+
"X-Fern-SDK-Version": "v2.2.0",
752760
"X-Fern-Runtime": core.RUNTIME.type,
753761
"X-Fern-Runtime-Version": core.RUNTIME.version,
754762
},
@@ -830,7 +838,7 @@ export class Items {
830838
Authorization: await this._getAuthorizationHeader(),
831839
"X-Fern-Language": "JavaScript",
832840
"X-Fern-SDK-Name": "webflow-api",
833-
"X-Fern-SDK-Version": "2.1.2",
841+
"X-Fern-SDK-Version": "v2.2.0",
834842
"X-Fern-Runtime": core.RUNTIME.type,
835843
"X-Fern-Runtime-Version": core.RUNTIME.version,
836844
},

src/api/resources/collections/resources/items/client/requests/BulkCollectionItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as Webflow from "../../../../../..";
2020
export interface BulkCollectionItem {
2121
/** Unique identifier for the Item */
2222
id: string;
23-
/** Array of identifiers for the locales where the item will be crated */
23+
/** Array of identifiers for the locales where the item will be created */
2424
cmsLocaleIds?: string[];
2525
/** The date the item was last published */
2626
lastPublished?: string;

0 commit comments

Comments
 (0)