Skip to content

Commit 3e14e9e

Browse files
SDK regeneration
1 parent 706baa5 commit 3e14e9e

35 files changed

Lines changed: 503 additions & 277 deletions

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
}
3535
}
3636
},
37-
"originGitCommit": "f0174d404a2635415e858ef151cf9202df3e3d02",
37+
"originGitCommit": "5794703692f268cfc384b13d92f0048189d4c6a4",
3838
"sdkVersion": "3.3.5"
3939
}

reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ Publishes a site to one or more more domains.
537537

538538
To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint.
539539

540+
You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
541+
540542
<Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
541543

542544
Required scope | `sites:write`
@@ -4874,7 +4876,7 @@ await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", {
48744876
limit: 1,
48754877
name: "name",
48764878
slug: "slug",
4877-
sortBy: "lastPublished",
4879+
sortBy: "createdOn",
48784880
sortOrder: "asc"
48794881
});
48804882

@@ -5270,7 +5272,7 @@ await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", {
52705272
limit: 1,
52715273
name: "name",
52725274
slug: "slug",
5273-
sortBy: "lastPublished",
5275+
sortBy: "createdOn",
52745276
sortOrder: "asc"
52755277
});
52765278

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5151
{
5252
"X-Fern-Language": "JavaScript",
5353
"X-Fern-SDK-Name": "webflow-api",
54-
"X-Fern-SDK-Version": "3.3.2",
55-
"User-Agent": "webflow-api/3.3.2",
54+
"X-Fern-SDK-Version": "3.3.5",
55+
"User-Agent": "webflow-api/3.3.5",
5656
"X-Fern-Runtime": core.RUNTIME.type,
5757
"X-Fern-Runtime-Version": core.RUNTIME.version,
5858
},

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

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class ItemsClient {
4545
* limit: 1,
4646
* name: "name",
4747
* slug: "slug",
48-
* sortBy: "lastPublished",
48+
* sortBy: "createdOn",
4949
* sortOrder: "asc"
5050
* })
5151
*/
@@ -62,13 +62,24 @@ export class ItemsClient {
6262
request: Webflow.collections.ItemsListItemsRequest = {},
6363
requestOptions?: ItemsClient.RequestOptions,
6464
): Promise<core.WithRawResponse<Webflow.CollectionItemList>> {
65-
const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
65+
const { cmsLocaleId, offset, limit, name, slug, createdOn, lastPublished, lastUpdated, sortBy, sortOrder } =
66+
request;
6667
const _queryParams: Record<string, unknown> = {
6768
cmsLocaleId,
6869
offset,
6970
limit,
7071
name,
7172
slug,
73+
createdOn:
74+
createdOn != null
75+
? serializers.ItemsListItemsRequestCreatedOn.jsonOrThrow(createdOn, {
76+
unrecognizedObjectKeys: "passthrough",
77+
allowUnrecognizedUnionMembers: true,
78+
allowUnrecognizedEnumValues: true,
79+
omitUndefined: true,
80+
breadcrumbsPrefix: ["request", "createdOn"],
81+
})
82+
: createdOn,
7283
lastPublished:
7384
lastPublished != null
7485
? serializers.ItemsListItemsRequestLastPublished.jsonOrThrow(lastPublished, {
@@ -79,6 +90,16 @@ export class ItemsClient {
7990
breadcrumbsPrefix: ["request", "lastPublished"],
8091
})
8192
: lastPublished,
93+
lastUpdated:
94+
lastUpdated != null
95+
? serializers.ItemsListItemsRequestLastUpdated.jsonOrThrow(lastUpdated, {
96+
unrecognizedObjectKeys: "passthrough",
97+
allowUnrecognizedUnionMembers: true,
98+
allowUnrecognizedEnumValues: true,
99+
omitUndefined: true,
100+
breadcrumbsPrefix: ["request", "lastUpdated"],
101+
})
102+
: lastUpdated,
82103
sortBy:
83104
sortBy != null
84105
? serializers.collections.ItemsListItemsRequestSortBy.jsonOrThrow(sortBy, {
@@ -787,7 +808,7 @@ export class ItemsClient {
787808
* limit: 1,
788809
* name: "name",
789810
* slug: "slug",
790-
* sortBy: "lastPublished",
811+
* sortBy: "createdOn",
791812
* sortOrder: "asc"
792813
* })
793814
*/
@@ -804,13 +825,24 @@ export class ItemsClient {
804825
request: Webflow.collections.ItemsListItemsLiveRequest = {},
805826
requestOptions?: ItemsClient.RequestOptions,
806827
): Promise<core.WithRawResponse<Webflow.CollectionItemList>> {
807-
const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
828+
const { cmsLocaleId, offset, limit, name, slug, createdOn, lastPublished, lastUpdated, sortBy, sortOrder } =
829+
request;
808830
const _queryParams: Record<string, unknown> = {
809831
cmsLocaleId,
810832
offset,
811833
limit,
812834
name,
813835
slug,
836+
createdOn:
837+
createdOn != null
838+
? serializers.ItemsListItemsLiveRequestCreatedOn.jsonOrThrow(createdOn, {
839+
unrecognizedObjectKeys: "passthrough",
840+
allowUnrecognizedUnionMembers: true,
841+
allowUnrecognizedEnumValues: true,
842+
omitUndefined: true,
843+
breadcrumbsPrefix: ["request", "createdOn"],
844+
})
845+
: createdOn,
814846
lastPublished:
815847
lastPublished != null
816848
? serializers.ItemsListItemsLiveRequestLastPublished.jsonOrThrow(lastPublished, {
@@ -821,6 +853,16 @@ export class ItemsClient {
821853
breadcrumbsPrefix: ["request", "lastPublished"],
822854
})
823855
: lastPublished,
856+
lastUpdated:
857+
lastUpdated != null
858+
? serializers.ItemsListItemsLiveRequestLastUpdated.jsonOrThrow(lastUpdated, {
859+
unrecognizedObjectKeys: "passthrough",
860+
allowUnrecognizedUnionMembers: true,
861+
allowUnrecognizedEnumValues: true,
862+
omitUndefined: true,
863+
breadcrumbsPrefix: ["request", "lastUpdated"],
864+
})
865+
: lastUpdated,
824866
sortBy:
825867
sortBy != null
826868
? serializers.collections.ItemsListItemsLiveRequestSortBy.jsonOrThrow(sortBy, {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type * as Webflow from "../../../../../../index";
1010
* limit: 1,
1111
* name: "name",
1212
* slug: "slug",
13-
* sortBy: "lastPublished",
13+
* sortBy: "createdOn",
1414
* sortOrder: "asc"
1515
* }
1616
*/
@@ -25,8 +25,12 @@ export interface ItemsListItemsLiveRequest {
2525
name?: string;
2626
/** Filter by the exact slug of the item */
2727
slug?: string;
28+
/** Filter by the creation date of the item(s) */
29+
createdOn?: Webflow.ItemsListItemsLiveRequestCreatedOn;
2830
/** Filter by the last published date of the item(s) */
2931
lastPublished?: Webflow.ItemsListItemsLiveRequestLastPublished;
32+
/** Filter by the last updated date of the item(s) */
33+
lastUpdated?: Webflow.ItemsListItemsLiveRequestLastUpdated;
3034
/** Sort results by the provided value */
3135
sortBy?: Webflow.collections.ItemsListItemsLiveRequestSortBy;
3236
/** Sorts the results by asc or desc */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type * as Webflow from "../../../../../../index";
1010
* limit: 1,
1111
* name: "name",
1212
* slug: "slug",
13-
* sortBy: "lastPublished",
13+
* sortBy: "createdOn",
1414
* sortOrder: "asc"
1515
* }
1616
*/
@@ -25,8 +25,12 @@ export interface ItemsListItemsRequest {
2525
name?: string;
2626
/** Filter by the exact slug of the item */
2727
slug?: string;
28+
/** Filter by the creation date of the item(s) */
29+
createdOn?: Webflow.ItemsListItemsRequestCreatedOn;
2830
/** Filter by the last published date of the item(s) */
2931
lastPublished?: Webflow.ItemsListItemsRequestLastPublished;
32+
/** Filter by the last updated date of the item(s) */
33+
lastUpdated?: Webflow.ItemsListItemsRequestLastUpdated;
3034
/** Sort results by the provided value */
3135
sortBy?: Webflow.collections.ItemsListItemsRequestSortBy;
3236
/** Sorts the results by asc or desc */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// This file was auto-generated by Fern from our API Definition.
22

33
export const ItemsListItemsLiveRequestSortBy = {
4+
CreatedOn: "createdOn",
45
LastPublished: "lastPublished",
6+
LastUpdated: "lastUpdated",
57
Name: "name",
68
Slug: "slug",
79
} as const;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// This file was auto-generated by Fern from our API Definition.
22

33
export const ItemsListItemsRequestSortBy = {
4+
CreatedOn: "createdOn",
45
LastPublished: "lastPublished",
6+
LastUpdated: "lastUpdated",
57
Name: "name",
68
Slug: "slug",
79
} as const;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,8 @@ export class SitesClient {
829829
*
830830
* To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint.
831831
*
832+
* You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
833+
*
832834
* <Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
833835
*
834836
* Required scope | `sites:write`

src/api/types/ComponentProperty.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,4 @@
22

33
import type * as Webflow from "../index";
44

5-
/**
6-
* Represents a property of a component instance in the DOM. A property contains a list of both the raw text and the HTML representation, allowing for flexibility in rendering and processing. Additional attributes can be associated with the text for styling or other purposes.
7-
*/
8-
export interface ComponentProperty {
9-
/** The ID of the property. */
10-
propertyId?: string;
11-
/** The type of the property. */
12-
type?: Webflow.ComponentPropertyType;
13-
/** The label of the property in the UI. */
14-
label?: string;
15-
/** Represents text content within the DOM. It contains both the raw text and its HTML representation. */
16-
text?: Webflow.Text;
17-
}
5+
export type ComponentProperty = Webflow.ComponentPropertyText;

0 commit comments

Comments
 (0)