Skip to content

Commit

Permalink
Merge pull request #189 from webflow/fern-bot/12-12-2024-0344PM
Browse files Browse the repository at this point in the history
🌿 Fern Regeneration -- December 12, 2024
  • Loading branch information
zplata authored Dec 12, 2024
2 parents 1e38943 + 9ea750b commit 8b5c900
Show file tree
Hide file tree
Showing 35 changed files with 350 additions and 231 deletions.
42 changes: 28 additions & 14 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,19 @@ types:
inline: true
CollectionItem:
docs: >
The fields that define the schema for a given Item are based on the
Collection that Item belongs to. Beyond the user defined fields, there are
a handful of additional fields that are automatically created for all
items
A Collection Item represents a single entry in your collection. Each item
includes:
- **System metadata** - Automatically managed fields like IDs and
timestamp <br/>
- **Status flags** - Controls for managing content state: `isDraft`,
`isArchived `<br/>
- **Content fields** - Stored in `fieldData`. Each item needs a `name` and
`slug`, and may include additional fields matching your collection's
schema definition.
properties:
id:
type: optional<string>
Expand Down Expand Up @@ -636,10 +645,19 @@ types:
inline: true
CollectionItemPostSingle:
docs: >
The fields that define the schema for a given Item are based on the
Collection that Item belongs to. Beyond the user defined fields, there are
a handful of additional fields that are automatically created for all
items
A Collection Item represents a single entry in your collection. Each item
includes:
- **System metadata** - Automatically managed fields like IDs and
timestamp <br/>
- **Status flags** - Controls for managing content state: `isDraft`,
`isArchived `<br/>
- **Content fields** - Stored in `fieldData`. Each item needs a `name` and
`slug`, and may include additional fields matching your collection's
schema definition.
properties:
id:
type: optional<string>
Expand All @@ -658,11 +676,11 @@ types:
docs: The date the item was created
isArchived:
type: optional<boolean>
docs: Boolean determining if the Item is set to archived
docs: Boolean determining if the Item is in an archived state.
default: false
isDraft:
type: optional<boolean>
docs: Boolean determining if the Item is set to draft
docs: Boolean determining if the Item is in a draft state.
default: false
fieldData: CollectionItemPostSingleFieldData
source:
Expand Down Expand Up @@ -706,11 +724,9 @@ types:
isArchived:
type: optional<boolean>
docs: Boolean determining if the Item is set to archived
default: false
isDraft:
type: optional<boolean>
docs: Boolean determining if the Item is set to draft
default: false
fieldData: optional<CollectionItemWithIdInputFieldData>
source:
openapi: ../../../referenced-specs/v2.yml
Expand Down Expand Up @@ -808,11 +824,9 @@ types:
isArchived:
type: optional<boolean>
docs: Boolean determining if the Item is set to archived
default: false
isDraft:
type: optional<boolean>
docs: Boolean determining if the Item is set to draft
default: false
fieldData: optional<CollectionItemPatchSingleFieldData>
source:
openapi: ../../../referenced-specs/v2.yml
Expand Down
15 changes: 12 additions & 3 deletions .mock/definition/collections/items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ types:
Multiple Items:
properties:
items:
type: optional<list<root.CollectionItem>>
docs: List of collection items to create
type: optional<list<root.CollectionItemPostSingle>>
docs: An array of items to create
source:
openapi: ../../../referenced-specs/v2.yml
inline: true
Expand Down Expand Up @@ -51,11 +51,19 @@ types:
- desc
source:
openapi: ../../../referenced-specs/v2.yml
Multiple Live Items:
properties:
items:
type: optional<list<root.CollectionItem>>
docs: List of collection items to create
source:
openapi: ../../../referenced-specs/v2.yml
inline: true
ItemsCreateItemLiveRequest:
discriminated: false
union:
- root.CollectionItem
- Multiple Items
- Multiple Live Items
source:
openapi: ../../../referenced-specs/v2.yml
ItemsDeleteItemsLiveRequestItemsItem:
Expand Down Expand Up @@ -319,6 +327,7 @@ service:
- root.BadRequestError
- root.UnauthorizedError
- root.NotFoundError
- root.ConflictError
- root.TooManyRequestsError
- root.InternalServerError
examples:
Expand Down
2 changes: 1 addition & 1 deletion .mock/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization" : "webflow",
"version" : "0.45.2"
"version" : "0.45.3"
}
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": "3.0.1",
"version": "3.0.2",
"private": false,
"repository": "https://github.com/webflow/js-webflow-api",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/accessGroups/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export class AccessGroups {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
32 changes: 16 additions & 16 deletions src/api/resources/assets/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -187,8 +187,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -309,8 +309,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -426,8 +426,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -542,8 +542,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -664,8 +664,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -790,8 +790,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -917,8 +917,8 @@ export class Assets {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
16 changes: 8 additions & 8 deletions src/api/resources/collections/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -186,8 +186,8 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -310,8 +310,8 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -427,8 +427,8 @@ export class Collections {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/collections/resources/fields/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export class Fields {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -200,8 +200,8 @@ export class Fields {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -324,8 +324,8 @@ export class Fields {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.0.1",
"User-Agent": "webflow-api/3.0.1",
"X-Fern-SDK-Version": "3.0.2",
"User-Agent": "webflow-api/3.0.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Loading

0 comments on commit 8b5c900

Please sign in to comment.