Skip to content

Commit 3c0af9f

Browse files
(fix): assets.list returns an object not Asset[]
1 parent 3efacef commit 3c0af9f

File tree

29 files changed

+186
-131
lines changed

29 files changed

+186
-131
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.0",
3+
"version": "v2.2.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.0",
68+
"X-Fern-SDK-Version": "v2.2.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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class Assets {
3535
* @example
3636
* await webflow.assets.list("site_id")
3737
*/
38-
public async list(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Asset[]> {
38+
public async list(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Assets> {
3939
const _response = await core.fetcher({
4040
url: urlJoin(
4141
(await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default,
@@ -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.0",
49+
"X-Fern-SDK-Version": "v2.2.1",
5050
"X-Fern-Runtime": core.RUNTIME.type,
5151
"X-Fern-Runtime-Version": core.RUNTIME.version,
5252
},
@@ -55,7 +55,7 @@ export class Assets {
5555
maxRetries: requestOptions?.maxRetries,
5656
});
5757
if (_response.ok) {
58-
return await serializers.assets.list.Response.parseOrThrow(_response.body, {
58+
return await serializers.Assets.parseOrThrow(_response.body, {
5959
unrecognizedObjectKeys: "passthrough",
6060
allowUnrecognizedUnionMembers: true,
6161
allowUnrecognizedEnumValues: true,
@@ -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.0",
132+
"X-Fern-SDK-Version": "v2.2.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.0",
208+
"X-Fern-SDK-Version": "v2.2.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.0",
283+
"X-Fern-SDK-Version": "v2.2.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.0",
358+
"X-Fern-SDK-Version": "v2.2.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.0",
434+
"X-Fern-SDK-Version": "v2.2.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.0",
516+
"X-Fern-SDK-Version": "v2.2.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.0",
595+
"X-Fern-SDK-Version": "v2.2.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.0",
51+
"X-Fern-SDK-Version": "v2.2.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.0",
134+
"X-Fern-SDK-Version": "v2.2.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.0",
210+
"X-Fern-SDK-Version": "v2.2.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.0",
285+
"X-Fern-SDK-Version": "v2.2.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.0",
358+
"X-Fern-SDK-Version": "v2.2.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.0",
58+
"X-Fern-SDK-Version": "v2.2.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.0",
143+
"X-Fern-SDK-Version": "v2.2.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: 10 additions & 10 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.0",
71+
"X-Fern-SDK-Version": "v2.2.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.0",
163+
"X-Fern-SDK-Version": "v2.2.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.0",
249+
"X-Fern-SDK-Version": "v2.2.1",
250250
"X-Fern-Runtime": core.RUNTIME.type,
251251
"X-Fern-Runtime-Version": core.RUNTIME.version,
252252
},
@@ -329,7 +329,7 @@ export class Items {
329329
Authorization: await this._getAuthorizationHeader(),
330330
"X-Fern-Language": "JavaScript",
331331
"X-Fern-SDK-Name": "webflow-api",
332-
"X-Fern-SDK-Version": "v2.2.0",
332+
"X-Fern-SDK-Version": "v2.2.1",
333333
"X-Fern-Runtime": core.RUNTIME.type,
334334
"X-Fern-Runtime-Version": core.RUNTIME.version,
335335
},
@@ -412,7 +412,7 @@ export class Items {
412412
Authorization: await this._getAuthorizationHeader(),
413413
"X-Fern-Language": "JavaScript",
414414
"X-Fern-SDK-Name": "webflow-api",
415-
"X-Fern-SDK-Version": "v2.2.0",
415+
"X-Fern-SDK-Version": "v2.2.1",
416416
"X-Fern-Runtime": core.RUNTIME.type,
417417
"X-Fern-Runtime-Version": core.RUNTIME.version,
418418
},
@@ -503,7 +503,7 @@ export class Items {
503503
Authorization: await this._getAuthorizationHeader(),
504504
"X-Fern-Language": "JavaScript",
505505
"X-Fern-SDK-Name": "webflow-api",
506-
"X-Fern-SDK-Version": "v2.2.0",
506+
"X-Fern-SDK-Version": "v2.2.1",
507507
"X-Fern-Runtime": core.RUNTIME.type,
508508
"X-Fern-Runtime-Version": core.RUNTIME.version,
509509
},
@@ -590,7 +590,7 @@ export class Items {
590590
Authorization: await this._getAuthorizationHeader(),
591591
"X-Fern-Language": "JavaScript",
592592
"X-Fern-SDK-Name": "webflow-api",
593-
"X-Fern-SDK-Version": "v2.2.0",
593+
"X-Fern-SDK-Version": "v2.2.1",
594594
"X-Fern-Runtime": core.RUNTIME.type,
595595
"X-Fern-Runtime-Version": core.RUNTIME.version,
596596
},
@@ -670,7 +670,7 @@ export class Items {
670670
Authorization: await this._getAuthorizationHeader(),
671671
"X-Fern-Language": "JavaScript",
672672
"X-Fern-SDK-Name": "webflow-api",
673-
"X-Fern-SDK-Version": "v2.2.0",
673+
"X-Fern-SDK-Version": "v2.2.1",
674674
"X-Fern-Runtime": core.RUNTIME.type,
675675
"X-Fern-Runtime-Version": core.RUNTIME.version,
676676
},
@@ -756,7 +756,7 @@ export class Items {
756756
Authorization: await this._getAuthorizationHeader(),
757757
"X-Fern-Language": "JavaScript",
758758
"X-Fern-SDK-Name": "webflow-api",
759-
"X-Fern-SDK-Version": "v2.2.0",
759+
"X-Fern-SDK-Version": "v2.2.1",
760760
"X-Fern-Runtime": core.RUNTIME.type,
761761
"X-Fern-Runtime-Version": core.RUNTIME.version,
762762
},
@@ -838,7 +838,7 @@ export class Items {
838838
Authorization: await this._getAuthorizationHeader(),
839839
"X-Fern-Language": "JavaScript",
840840
"X-Fern-SDK-Name": "webflow-api",
841-
"X-Fern-SDK-Version": "v2.2.0",
841+
"X-Fern-SDK-Version": "v2.2.1",
842842
"X-Fern-Runtime": core.RUNTIME.type,
843843
"X-Fern-Runtime-Version": core.RUNTIME.version,
844844
},

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.0",
56+
"X-Fern-SDK-Version": "v2.2.1",
5757
"X-Fern-Runtime": core.RUNTIME.type,
5858
"X-Fern-Runtime-Version": core.RUNTIME.version,
5959
},

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Forms {
6262
Authorization: await this._getAuthorizationHeader(),
6363
"X-Fern-Language": "JavaScript",
6464
"X-Fern-SDK-Name": "webflow-api",
65-
"X-Fern-SDK-Version": "v2.2.0",
65+
"X-Fern-SDK-Version": "v2.2.1",
6666
"X-Fern-Runtime": core.RUNTIME.type,
6767
"X-Fern-Runtime-Version": core.RUNTIME.version,
6868
},
@@ -143,7 +143,7 @@ export class Forms {
143143
Authorization: await this._getAuthorizationHeader(),
144144
"X-Fern-Language": "JavaScript",
145145
"X-Fern-SDK-Name": "webflow-api",
146-
"X-Fern-SDK-Version": "v2.2.0",
146+
"X-Fern-SDK-Version": "v2.2.1",
147147
"X-Fern-Runtime": core.RUNTIME.type,
148148
"X-Fern-Runtime-Version": core.RUNTIME.version,
149149
},
@@ -224,7 +224,7 @@ export class Forms {
224224
Authorization: await this._getAuthorizationHeader(),
225225
"X-Fern-Language": "JavaScript",
226226
"X-Fern-SDK-Name": "webflow-api",
227-
"X-Fern-SDK-Version": "v2.2.0",
227+
"X-Fern-SDK-Version": "v2.2.1",
228228
"X-Fern-Runtime": core.RUNTIME.type,
229229
"X-Fern-Runtime-Version": core.RUNTIME.version,
230230
},
@@ -305,7 +305,7 @@ export class Forms {
305305
Authorization: await this._getAuthorizationHeader(),
306306
"X-Fern-Language": "JavaScript",
307307
"X-Fern-SDK-Name": "webflow-api",
308-
"X-Fern-SDK-Version": "v2.2.0",
308+
"X-Fern-SDK-Version": "v2.2.1",
309309
"X-Fern-Runtime": core.RUNTIME.type,
310310
"X-Fern-Runtime-Version": core.RUNTIME.version,
311311
},
@@ -388,7 +388,7 @@ export class Forms {
388388
Authorization: await this._getAuthorizationHeader(),
389389
"X-Fern-Language": "JavaScript",
390390
"X-Fern-SDK-Name": "webflow-api",
391-
"X-Fern-SDK-Version": "v2.2.0",
391+
"X-Fern-SDK-Version": "v2.2.1",
392392
"X-Fern-Runtime": core.RUNTIME.type,
393393
"X-Fern-Runtime-Version": core.RUNTIME.version,
394394
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Inventory {
5454
Authorization: await this._getAuthorizationHeader(),
5555
"X-Fern-Language": "JavaScript",
5656
"X-Fern-SDK-Name": "webflow-api",
57-
"X-Fern-SDK-Version": "v2.2.0",
57+
"X-Fern-SDK-Version": "v2.2.1",
5858
"X-Fern-Runtime": core.RUNTIME.type,
5959
"X-Fern-Runtime-Version": core.RUNTIME.version,
6060
},
@@ -146,7 +146,7 @@ export class Inventory {
146146
Authorization: await this._getAuthorizationHeader(),
147147
"X-Fern-Language": "JavaScript",
148148
"X-Fern-SDK-Name": "webflow-api",
149-
"X-Fern-SDK-Version": "v2.2.0",
149+
"X-Fern-SDK-Version": "v2.2.1",
150150
"X-Fern-Runtime": core.RUNTIME.type,
151151
"X-Fern-Runtime-Version": core.RUNTIME.version,
152152
},

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Orders {
6868
Authorization: await this._getAuthorizationHeader(),
6969
"X-Fern-Language": "JavaScript",
7070
"X-Fern-SDK-Name": "webflow-api",
71-
"X-Fern-SDK-Version": "v2.2.0",
71+
"X-Fern-SDK-Version": "v2.2.1",
7272
"X-Fern-Runtime": core.RUNTIME.type,
7373
"X-Fern-Runtime-Version": core.RUNTIME.version,
7474
},
@@ -152,7 +152,7 @@ export class Orders {
152152
Authorization: await this._getAuthorizationHeader(),
153153
"X-Fern-Language": "JavaScript",
154154
"X-Fern-SDK-Name": "webflow-api",
155-
"X-Fern-SDK-Version": "v2.2.0",
155+
"X-Fern-SDK-Version": "v2.2.1",
156156
"X-Fern-Runtime": core.RUNTIME.type,
157157
"X-Fern-Runtime-Version": core.RUNTIME.version,
158158
},
@@ -245,7 +245,7 @@ export class Orders {
245245
Authorization: await this._getAuthorizationHeader(),
246246
"X-Fern-Language": "JavaScript",
247247
"X-Fern-SDK-Name": "webflow-api",
248-
"X-Fern-SDK-Version": "v2.2.0",
248+
"X-Fern-SDK-Version": "v2.2.1",
249249
"X-Fern-Runtime": core.RUNTIME.type,
250250
"X-Fern-Runtime-Version": core.RUNTIME.version,
251251
},
@@ -334,7 +334,7 @@ export class Orders {
334334
Authorization: await this._getAuthorizationHeader(),
335335
"X-Fern-Language": "JavaScript",
336336
"X-Fern-SDK-Name": "webflow-api",
337-
"X-Fern-SDK-Version": "v2.2.0",
337+
"X-Fern-SDK-Version": "v2.2.1",
338338
"X-Fern-Runtime": core.RUNTIME.type,
339339
"X-Fern-Runtime-Version": core.RUNTIME.version,
340340
},
@@ -424,7 +424,7 @@ export class Orders {
424424
Authorization: await this._getAuthorizationHeader(),
425425
"X-Fern-Language": "JavaScript",
426426
"X-Fern-SDK-Name": "webflow-api",
427-
"X-Fern-SDK-Version": "v2.2.0",
427+
"X-Fern-SDK-Version": "v2.2.1",
428428
"X-Fern-Runtime": core.RUNTIME.type,
429429
"X-Fern-Runtime-Version": core.RUNTIME.version,
430430
},
@@ -513,7 +513,7 @@ export class Orders {
513513
Authorization: await this._getAuthorizationHeader(),
514514
"X-Fern-Language": "JavaScript",
515515
"X-Fern-SDK-Name": "webflow-api",
516-
"X-Fern-SDK-Version": "v2.2.0",
516+
"X-Fern-SDK-Version": "v2.2.1",
517517
"X-Fern-Runtime": core.RUNTIME.type,
518518
"X-Fern-Runtime-Version": core.RUNTIME.version,
519519
},

0 commit comments

Comments
 (0)