Skip to content

Commit 66933ba

Browse files
authored
Merge pull request #139 from webflow/fern-bot/04-10-2024-1123PM
🌿 Fern Regeneration -- April 10, 2024
2 parents 15aab35 + aaad6fa commit 66933ba

File tree

122 files changed

+742
-1072
lines changed

Some content is hidden

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

122 files changed

+742
-1072
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": "v2.2.1",
3+
"version": "2.3.1",
44
"private": false,
55
"repository": "https://github.com/webflow/js-webflow-api",
66
"main": "./index.js",

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": "v2.2.1",
68+
"X-Fern-SDK-Version": "2.3.1",
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: 8 additions & 8 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": "v2.2.1",
49+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
132+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
208+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
283+
"X-Fern-SDK-Version": "2.3.1",
284284
"X-Fern-Runtime": core.RUNTIME.type,
285285
"X-Fern-Runtime-Version": core.RUNTIME.version,
286286
},
@@ -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": "v2.2.1",
358+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
434+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
516+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
595+
"X-Fern-SDK-Version": "2.3.1",
596596
"X-Fern-Runtime": core.RUNTIME.type,
597597
"X-Fern-Runtime-Version": core.RUNTIME.version,
598598
},

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": "v2.2.1",
51+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
134+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
210+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
285+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
358+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
58+
"X-Fern-SDK-Version": "2.3.1",
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": "v2.2.1",
143+
"X-Fern-SDK-Version": "2.3.1",
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: 12 additions & 19 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": "v2.2.1",
71+
"X-Fern-SDK-Version": "2.3.1",
7272
"X-Fern-Runtime": core.RUNTIME.type,
7373
"X-Fern-Runtime-Version": core.RUNTIME.version,
7474
},
@@ -160,7 +160,7 @@ export class Items {
160160
Authorization: await this._getAuthorizationHeader(),
161161
"X-Fern-Language": "JavaScript",
162162
"X-Fern-SDK-Name": "webflow-api",
163-
"X-Fern-SDK-Version": "v2.2.1",
163+
"X-Fern-SDK-Version": "2.3.1",
164164
"X-Fern-Runtime": core.RUNTIME.type,
165165
"X-Fern-Runtime-Version": core.RUNTIME.version,
166166
},
@@ -246,7 +246,7 @@ export class Items {
246246
Authorization: await this._getAuthorizationHeader(),
247247
"X-Fern-Language": "JavaScript",
248248
"X-Fern-SDK-Name": "webflow-api",
249-
"X-Fern-SDK-Version": "v2.2.1",
249+
"X-Fern-SDK-Version": "2.3.1",
250250
"X-Fern-Runtime": core.RUNTIME.type,
251251
"X-Fern-Runtime-Version": core.RUNTIME.version,
252252
},
@@ -305,7 +305,6 @@ export class Items {
305305
* @example
306306
* await webflow.collections.items.createItemForMultipleLocales("collection_id", {
307307
* id: "580e64008c9a982ac9b8b754",
308-
* lastPublished: "2023-03-17T18:47:35.560Z",
309308
* lastUpdated: "2023-03-17T18:47:35.560Z",
310309
* createdOn: "2023-03-17T18:47:35.560Z",
311310
* fieldData: {
@@ -329,7 +328,7 @@ export class Items {
329328
Authorization: await this._getAuthorizationHeader(),
330329
"X-Fern-Language": "JavaScript",
331330
"X-Fern-SDK-Name": "webflow-api",
332-
"X-Fern-SDK-Version": "v2.2.1",
331+
"X-Fern-SDK-Version": "2.3.1",
333332
"X-Fern-Runtime": core.RUNTIME.type,
334333
"X-Fern-Runtime-Version": core.RUNTIME.version,
335334
},
@@ -412,7 +411,7 @@ export class Items {
412411
Authorization: await this._getAuthorizationHeader(),
413412
"X-Fern-Language": "JavaScript",
414413
"X-Fern-SDK-Name": "webflow-api",
415-
"X-Fern-SDK-Version": "v2.2.1",
414+
"X-Fern-SDK-Version": "2.3.1",
416415
"X-Fern-Runtime": core.RUNTIME.type,
417416
"X-Fern-Runtime-Version": core.RUNTIME.version,
418417
},
@@ -503,7 +502,7 @@ export class Items {
503502
Authorization: await this._getAuthorizationHeader(),
504503
"X-Fern-Language": "JavaScript",
505504
"X-Fern-SDK-Name": "webflow-api",
506-
"X-Fern-SDK-Version": "v2.2.1",
505+
"X-Fern-SDK-Version": "2.3.1",
507506
"X-Fern-Runtime": core.RUNTIME.type,
508507
"X-Fern-Runtime-Version": core.RUNTIME.version,
509508
},
@@ -590,7 +589,7 @@ export class Items {
590589
Authorization: await this._getAuthorizationHeader(),
591590
"X-Fern-Language": "JavaScript",
592591
"X-Fern-SDK-Name": "webflow-api",
593-
"X-Fern-SDK-Version": "v2.2.1",
592+
"X-Fern-SDK-Version": "2.3.1",
594593
"X-Fern-Runtime": core.RUNTIME.type,
595594
"X-Fern-Runtime-Version": core.RUNTIME.version,
596595
},
@@ -670,7 +669,7 @@ export class Items {
670669
Authorization: await this._getAuthorizationHeader(),
671670
"X-Fern-Language": "JavaScript",
672671
"X-Fern-SDK-Name": "webflow-api",
673-
"X-Fern-SDK-Version": "v2.2.1",
672+
"X-Fern-SDK-Version": "2.3.1",
674673
"X-Fern-Runtime": core.RUNTIME.type,
675674
"X-Fern-Runtime-Version": core.RUNTIME.version,
676675
},
@@ -756,7 +755,7 @@ export class Items {
756755
Authorization: await this._getAuthorizationHeader(),
757756
"X-Fern-Language": "JavaScript",
758757
"X-Fern-SDK-Name": "webflow-api",
759-
"X-Fern-SDK-Version": "v2.2.1",
758+
"X-Fern-SDK-Version": "2.3.1",
760759
"X-Fern-Runtime": core.RUNTIME.type,
761760
"X-Fern-Runtime-Version": core.RUNTIME.version,
762761
},
@@ -827,7 +826,7 @@ export class Items {
827826
collectionId: string,
828827
request: Webflow.collections.ItemsPublishItemRequest,
829828
requestOptions?: Items.RequestOptions
830-
): Promise<Webflow.collections.ItemsPublishItemResponse> {
829+
): Promise<void> {
831830
const _response = await core.fetcher({
832831
url: urlJoin(
833832
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
@@ -838,7 +837,7 @@ export class Items {
838837
Authorization: await this._getAuthorizationHeader(),
839838
"X-Fern-Language": "JavaScript",
840839
"X-Fern-SDK-Name": "webflow-api",
841-
"X-Fern-SDK-Version": "v2.2.1",
840+
"X-Fern-SDK-Version": "2.3.1",
842841
"X-Fern-Runtime": core.RUNTIME.type,
843842
"X-Fern-Runtime-Version": core.RUNTIME.version,
844843
},
@@ -850,13 +849,7 @@ export class Items {
850849
maxRetries: requestOptions?.maxRetries,
851850
});
852851
if (_response.ok) {
853-
return await serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
854-
unrecognizedObjectKeys: "passthrough",
855-
allowUnrecognizedUnionMembers: true,
856-
allowUnrecognizedEnumValues: true,
857-
skipValidation: true,
858-
breadcrumbsPrefix: ["response"],
859-
});
852+
return;
860853
}
861854

862855
if (_response.error.reason === "status-code") {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import * as Webflow from "../../../../../..";
88
* @example
99
* {
1010
* id: "580e64008c9a982ac9b8b754",
11-
* lastPublished: "2023-03-17T18:47:35.560Z",
1211
* lastUpdated: "2023-03-17T18:47:35.560Z",
1312
* createdOn: "2023-03-17T18:47:35.560Z",
1413
* fieldData: {

src/api/resources/collections/resources/items/types/ItemsPublishItemResponse.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export * from "./BulkCollectionItemFieldData";
2-
export * from "./ItemsPublishItemResponse";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class Ecommerce {
5353
Authorization: await this._getAuthorizationHeader(),
5454
"X-Fern-Language": "JavaScript",
5555
"X-Fern-SDK-Name": "webflow-api",
56-
"X-Fern-SDK-Version": "v2.2.1",
56+
"X-Fern-SDK-Version": "2.3.1",
5757
"X-Fern-Runtime": core.RUNTIME.type,
5858
"X-Fern-Runtime-Version": core.RUNTIME.version,
5959
},

0 commit comments

Comments
 (0)