Skip to content

Commit 8b5c900

Browse files
authored
Merge pull request #189 from webflow/fern-bot/12-12-2024-0344PM
🌿 Fern Regeneration -- December 12, 2024
2 parents 1e38943 + 9ea750b commit 8b5c900

File tree

35 files changed

+350
-231
lines changed

35 files changed

+350
-231
lines changed

.mock/definition/__package__.yml

+28-14
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,19 @@ types:
564564
inline: true
565565
CollectionItem:
566566
docs: >
567-
The fields that define the schema for a given Item are based on the
568-
Collection that Item belongs to. Beyond the user defined fields, there are
569-
a handful of additional fields that are automatically created for all
570-
items
567+
A Collection Item represents a single entry in your collection. Each item
568+
includes:
569+
570+
571+
- **System metadata** - Automatically managed fields like IDs and
572+
timestamp <br/>
573+
574+
- **Status flags** - Controls for managing content state: `isDraft`,
575+
`isArchived `<br/>
576+
577+
- **Content fields** - Stored in `fieldData`. Each item needs a `name` and
578+
`slug`, and may include additional fields matching your collection's
579+
schema definition.
571580
properties:
572581
id:
573582
type: optional<string>
@@ -636,10 +645,19 @@ types:
636645
inline: true
637646
CollectionItemPostSingle:
638647
docs: >
639-
The fields that define the schema for a given Item are based on the
640-
Collection that Item belongs to. Beyond the user defined fields, there are
641-
a handful of additional fields that are automatically created for all
642-
items
648+
A Collection Item represents a single entry in your collection. Each item
649+
includes:
650+
651+
652+
- **System metadata** - Automatically managed fields like IDs and
653+
timestamp <br/>
654+
655+
- **Status flags** - Controls for managing content state: `isDraft`,
656+
`isArchived `<br/>
657+
658+
- **Content fields** - Stored in `fieldData`. Each item needs a `name` and
659+
`slug`, and may include additional fields matching your collection's
660+
schema definition.
643661
properties:
644662
id:
645663
type: optional<string>
@@ -658,11 +676,11 @@ types:
658676
docs: The date the item was created
659677
isArchived:
660678
type: optional<boolean>
661-
docs: Boolean determining if the Item is set to archived
679+
docs: Boolean determining if the Item is in an archived state.
662680
default: false
663681
isDraft:
664682
type: optional<boolean>
665-
docs: Boolean determining if the Item is set to draft
683+
docs: Boolean determining if the Item is in a draft state.
666684
default: false
667685
fieldData: CollectionItemPostSingleFieldData
668686
source:
@@ -706,11 +724,9 @@ types:
706724
isArchived:
707725
type: optional<boolean>
708726
docs: Boolean determining if the Item is set to archived
709-
default: false
710727
isDraft:
711728
type: optional<boolean>
712729
docs: Boolean determining if the Item is set to draft
713-
default: false
714730
fieldData: optional<CollectionItemWithIdInputFieldData>
715731
source:
716732
openapi: ../../../referenced-specs/v2.yml
@@ -808,11 +824,9 @@ types:
808824
isArchived:
809825
type: optional<boolean>
810826
docs: Boolean determining if the Item is set to archived
811-
default: false
812827
isDraft:
813828
type: optional<boolean>
814829
docs: Boolean determining if the Item is set to draft
815-
default: false
816830
fieldData: optional<CollectionItemPatchSingleFieldData>
817831
source:
818832
openapi: ../../../referenced-specs/v2.yml

.mock/definition/collections/items.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ types:
1515
Multiple Items:
1616
properties:
1717
items:
18-
type: optional<list<root.CollectionItem>>
19-
docs: List of collection items to create
18+
type: optional<list<root.CollectionItemPostSingle>>
19+
docs: An array of items to create
2020
source:
2121
openapi: ../../../referenced-specs/v2.yml
2222
inline: true
@@ -51,11 +51,19 @@ types:
5151
- desc
5252
source:
5353
openapi: ../../../referenced-specs/v2.yml
54+
Multiple Live Items:
55+
properties:
56+
items:
57+
type: optional<list<root.CollectionItem>>
58+
docs: List of collection items to create
59+
source:
60+
openapi: ../../../referenced-specs/v2.yml
61+
inline: true
5462
ItemsCreateItemLiveRequest:
5563
discriminated: false
5664
union:
5765
- root.CollectionItem
58-
- Multiple Items
66+
- Multiple Live Items
5967
source:
6068
openapi: ../../../referenced-specs/v2.yml
6169
ItemsDeleteItemsLiveRequestItemsItem:
@@ -319,6 +327,7 @@ service:
319327
- root.BadRequestError
320328
- root.UnauthorizedError
321329
- root.NotFoundError
330+
- root.ConflictError
322331
- root.TooManyRequestsError
323332
- root.InternalServerError
324333
examples:

.mock/fern.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization" : "webflow",
3-
"version" : "0.45.2"
3+
"version" : "0.45.3"
44
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webflow-api",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"private": false,
55
"repository": "https://github.com/webflow/js-webflow-api",
66
"main": "./index.js",

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export class AccessGroups {
7878
Authorization: await this._getAuthorizationHeader(),
7979
"X-Fern-Language": "JavaScript",
8080
"X-Fern-SDK-Name": "webflow-api",
81-
"X-Fern-SDK-Version": "3.0.1",
82-
"User-Agent": "webflow-api/3.0.1",
81+
"X-Fern-SDK-Version": "3.0.2",
82+
"User-Agent": "webflow-api/3.0.2",
8383
"X-Fern-Runtime": core.RUNTIME.type,
8484
"X-Fern-Runtime-Version": core.RUNTIME.version,
8585
...requestOptions?.headers,

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

+16-16
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class Assets {
5858
Authorization: await this._getAuthorizationHeader(),
5959
"X-Fern-Language": "JavaScript",
6060
"X-Fern-SDK-Name": "webflow-api",
61-
"X-Fern-SDK-Version": "3.0.1",
62-
"User-Agent": "webflow-api/3.0.1",
61+
"X-Fern-SDK-Version": "3.0.2",
62+
"User-Agent": "webflow-api/3.0.2",
6363
"X-Fern-Runtime": core.RUNTIME.type,
6464
"X-Fern-Runtime-Version": core.RUNTIME.version,
6565
...requestOptions?.headers,
@@ -187,8 +187,8 @@ export class Assets {
187187
Authorization: await this._getAuthorizationHeader(),
188188
"X-Fern-Language": "JavaScript",
189189
"X-Fern-SDK-Name": "webflow-api",
190-
"X-Fern-SDK-Version": "3.0.1",
191-
"User-Agent": "webflow-api/3.0.1",
190+
"X-Fern-SDK-Version": "3.0.2",
191+
"User-Agent": "webflow-api/3.0.2",
192192
"X-Fern-Runtime": core.RUNTIME.type,
193193
"X-Fern-Runtime-Version": core.RUNTIME.version,
194194
...requestOptions?.headers,
@@ -309,8 +309,8 @@ export class Assets {
309309
Authorization: await this._getAuthorizationHeader(),
310310
"X-Fern-Language": "JavaScript",
311311
"X-Fern-SDK-Name": "webflow-api",
312-
"X-Fern-SDK-Version": "3.0.1",
313-
"User-Agent": "webflow-api/3.0.1",
312+
"X-Fern-SDK-Version": "3.0.2",
313+
"User-Agent": "webflow-api/3.0.2",
314314
"X-Fern-Runtime": core.RUNTIME.type,
315315
"X-Fern-Runtime-Version": core.RUNTIME.version,
316316
...requestOptions?.headers,
@@ -426,8 +426,8 @@ export class Assets {
426426
Authorization: await this._getAuthorizationHeader(),
427427
"X-Fern-Language": "JavaScript",
428428
"X-Fern-SDK-Name": "webflow-api",
429-
"X-Fern-SDK-Version": "3.0.1",
430-
"User-Agent": "webflow-api/3.0.1",
429+
"X-Fern-SDK-Version": "3.0.2",
430+
"User-Agent": "webflow-api/3.0.2",
431431
"X-Fern-Runtime": core.RUNTIME.type,
432432
"X-Fern-Runtime-Version": core.RUNTIME.version,
433433
...requestOptions?.headers,
@@ -542,8 +542,8 @@ export class Assets {
542542
Authorization: await this._getAuthorizationHeader(),
543543
"X-Fern-Language": "JavaScript",
544544
"X-Fern-SDK-Name": "webflow-api",
545-
"X-Fern-SDK-Version": "3.0.1",
546-
"User-Agent": "webflow-api/3.0.1",
545+
"X-Fern-SDK-Version": "3.0.2",
546+
"User-Agent": "webflow-api/3.0.2",
547547
"X-Fern-Runtime": core.RUNTIME.type,
548548
"X-Fern-Runtime-Version": core.RUNTIME.version,
549549
...requestOptions?.headers,
@@ -664,8 +664,8 @@ export class Assets {
664664
Authorization: await this._getAuthorizationHeader(),
665665
"X-Fern-Language": "JavaScript",
666666
"X-Fern-SDK-Name": "webflow-api",
667-
"X-Fern-SDK-Version": "3.0.1",
668-
"User-Agent": "webflow-api/3.0.1",
667+
"X-Fern-SDK-Version": "3.0.2",
668+
"User-Agent": "webflow-api/3.0.2",
669669
"X-Fern-Runtime": core.RUNTIME.type,
670670
"X-Fern-Runtime-Version": core.RUNTIME.version,
671671
...requestOptions?.headers,
@@ -790,8 +790,8 @@ export class Assets {
790790
Authorization: await this._getAuthorizationHeader(),
791791
"X-Fern-Language": "JavaScript",
792792
"X-Fern-SDK-Name": "webflow-api",
793-
"X-Fern-SDK-Version": "3.0.1",
794-
"User-Agent": "webflow-api/3.0.1",
793+
"X-Fern-SDK-Version": "3.0.2",
794+
"User-Agent": "webflow-api/3.0.2",
795795
"X-Fern-Runtime": core.RUNTIME.type,
796796
"X-Fern-Runtime-Version": core.RUNTIME.version,
797797
...requestOptions?.headers,
@@ -917,8 +917,8 @@ export class Assets {
917917
Authorization: await this._getAuthorizationHeader(),
918918
"X-Fern-Language": "JavaScript",
919919
"X-Fern-SDK-Name": "webflow-api",
920-
"X-Fern-SDK-Version": "3.0.1",
921-
"User-Agent": "webflow-api/3.0.1",
920+
"X-Fern-SDK-Version": "3.0.2",
921+
"User-Agent": "webflow-api/3.0.2",
922922
"X-Fern-Runtime": core.RUNTIME.type,
923923
"X-Fern-Runtime-Version": core.RUNTIME.version,
924924
...requestOptions?.headers,

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class Collections {
6060
Authorization: await this._getAuthorizationHeader(),
6161
"X-Fern-Language": "JavaScript",
6262
"X-Fern-SDK-Name": "webflow-api",
63-
"X-Fern-SDK-Version": "3.0.1",
64-
"User-Agent": "webflow-api/3.0.1",
63+
"X-Fern-SDK-Version": "3.0.2",
64+
"User-Agent": "webflow-api/3.0.2",
6565
"X-Fern-Runtime": core.RUNTIME.type,
6666
"X-Fern-Runtime-Version": core.RUNTIME.version,
6767
...requestOptions?.headers,
@@ -186,8 +186,8 @@ export class Collections {
186186
Authorization: await this._getAuthorizationHeader(),
187187
"X-Fern-Language": "JavaScript",
188188
"X-Fern-SDK-Name": "webflow-api",
189-
"X-Fern-SDK-Version": "3.0.1",
190-
"User-Agent": "webflow-api/3.0.1",
189+
"X-Fern-SDK-Version": "3.0.2",
190+
"User-Agent": "webflow-api/3.0.2",
191191
"X-Fern-Runtime": core.RUNTIME.type,
192192
"X-Fern-Runtime-Version": core.RUNTIME.version,
193193
...requestOptions?.headers,
@@ -310,8 +310,8 @@ export class Collections {
310310
Authorization: await this._getAuthorizationHeader(),
311311
"X-Fern-Language": "JavaScript",
312312
"X-Fern-SDK-Name": "webflow-api",
313-
"X-Fern-SDK-Version": "3.0.1",
314-
"User-Agent": "webflow-api/3.0.1",
313+
"X-Fern-SDK-Version": "3.0.2",
314+
"User-Agent": "webflow-api/3.0.2",
315315
"X-Fern-Runtime": core.RUNTIME.type,
316316
"X-Fern-Runtime-Version": core.RUNTIME.version,
317317
...requestOptions?.headers,
@@ -427,8 +427,8 @@ export class Collections {
427427
Authorization: await this._getAuthorizationHeader(),
428428
"X-Fern-Language": "JavaScript",
429429
"X-Fern-SDK-Name": "webflow-api",
430-
"X-Fern-SDK-Version": "3.0.1",
431-
"User-Agent": "webflow-api/3.0.1",
430+
"X-Fern-SDK-Version": "3.0.2",
431+
"User-Agent": "webflow-api/3.0.2",
432432
"X-Fern-Runtime": core.RUNTIME.type,
433433
"X-Fern-Runtime-Version": core.RUNTIME.version,
434434
...requestOptions?.headers,

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class Fields {
7575
Authorization: await this._getAuthorizationHeader(),
7676
"X-Fern-Language": "JavaScript",
7777
"X-Fern-SDK-Name": "webflow-api",
78-
"X-Fern-SDK-Version": "3.0.1",
79-
"User-Agent": "webflow-api/3.0.1",
78+
"X-Fern-SDK-Version": "3.0.2",
79+
"User-Agent": "webflow-api/3.0.2",
8080
"X-Fern-Runtime": core.RUNTIME.type,
8181
"X-Fern-Runtime-Version": core.RUNTIME.version,
8282
...requestOptions?.headers,
@@ -200,8 +200,8 @@ export class Fields {
200200
Authorization: await this._getAuthorizationHeader(),
201201
"X-Fern-Language": "JavaScript",
202202
"X-Fern-SDK-Name": "webflow-api",
203-
"X-Fern-SDK-Version": "3.0.1",
204-
"User-Agent": "webflow-api/3.0.1",
203+
"X-Fern-SDK-Version": "3.0.2",
204+
"User-Agent": "webflow-api/3.0.2",
205205
"X-Fern-Runtime": core.RUNTIME.type,
206206
"X-Fern-Runtime-Version": core.RUNTIME.version,
207207
...requestOptions?.headers,
@@ -324,8 +324,8 @@ export class Fields {
324324
Authorization: await this._getAuthorizationHeader(),
325325
"X-Fern-Language": "JavaScript",
326326
"X-Fern-SDK-Name": "webflow-api",
327-
"X-Fern-SDK-Version": "3.0.1",
328-
"User-Agent": "webflow-api/3.0.1",
327+
"X-Fern-SDK-Version": "3.0.2",
328+
"User-Agent": "webflow-api/3.0.2",
329329
"X-Fern-Runtime": core.RUNTIME.type,
330330
"X-Fern-Runtime-Version": core.RUNTIME.version,
331331
...requestOptions?.headers,

0 commit comments

Comments
 (0)