Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
}
}
},
"originGitCommit": "f0174d404a2635415e858ef151cf9202df3e3d02",
"originGitCommit": "5794703692f268cfc384b13d92f0048189d4c6a4",
"sdkVersion": "3.3.5"
}
6 changes: 4 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ Publishes a site to one or more more domains.

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

You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.

<Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>

Required scope | `sites:write`
Expand Down Expand Up @@ -4874,7 +4876,7 @@ await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", {
limit: 1,
name: "name",
slug: "slug",
sortBy: "lastPublished",
sortBy: "createdOn",
sortOrder: "asc"
});

Expand Down Expand Up @@ -5270,7 +5272,7 @@ await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", {
limit: 1,
name: "name",
slug: "slug",
sortBy: "lastPublished",
sortBy: "createdOn",
sortOrder: "asc"
});

Expand Down
4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "webflow-api",
"X-Fern-SDK-Version": "3.3.2",
"User-Agent": "webflow-api/3.3.2",
"X-Fern-SDK-Version": "3.3.5",
"User-Agent": "webflow-api/3.3.5",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
50 changes: 46 additions & 4 deletions src/api/resources/collections/resources/items/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ItemsClient {
* limit: 1,
* name: "name",
* slug: "slug",
* sortBy: "lastPublished",
* sortBy: "createdOn",
* sortOrder: "asc"
* })
*/
Expand All @@ -62,13 +62,24 @@ export class ItemsClient {
request: Webflow.collections.ItemsListItemsRequest = {},
requestOptions?: ItemsClient.RequestOptions,
): Promise<core.WithRawResponse<Webflow.CollectionItemList>> {
const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
const { cmsLocaleId, offset, limit, name, slug, createdOn, lastPublished, lastUpdated, sortBy, sortOrder } =
request;
const _queryParams: Record<string, unknown> = {
cmsLocaleId,
offset,
limit,
name,
slug,
createdOn:
createdOn != null
? serializers.ItemsListItemsRequestCreatedOn.jsonOrThrow(createdOn, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
omitUndefined: true,
breadcrumbsPrefix: ["request", "createdOn"],
})
: createdOn,
lastPublished:
lastPublished != null
? serializers.ItemsListItemsRequestLastPublished.jsonOrThrow(lastPublished, {
Expand All @@ -79,6 +90,16 @@ export class ItemsClient {
breadcrumbsPrefix: ["request", "lastPublished"],
})
: lastPublished,
lastUpdated:
lastUpdated != null
? serializers.ItemsListItemsRequestLastUpdated.jsonOrThrow(lastUpdated, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
omitUndefined: true,
breadcrumbsPrefix: ["request", "lastUpdated"],
})
: lastUpdated,
sortBy:
sortBy != null
? serializers.collections.ItemsListItemsRequestSortBy.jsonOrThrow(sortBy, {
Expand Down Expand Up @@ -787,7 +808,7 @@ export class ItemsClient {
* limit: 1,
* name: "name",
* slug: "slug",
* sortBy: "lastPublished",
* sortBy: "createdOn",
* sortOrder: "asc"
* })
*/
Expand All @@ -804,13 +825,24 @@ export class ItemsClient {
request: Webflow.collections.ItemsListItemsLiveRequest = {},
requestOptions?: ItemsClient.RequestOptions,
): Promise<core.WithRawResponse<Webflow.CollectionItemList>> {
const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
const { cmsLocaleId, offset, limit, name, slug, createdOn, lastPublished, lastUpdated, sortBy, sortOrder } =
request;
const _queryParams: Record<string, unknown> = {
cmsLocaleId,
offset,
limit,
name,
slug,
createdOn:
createdOn != null
? serializers.ItemsListItemsLiveRequestCreatedOn.jsonOrThrow(createdOn, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
omitUndefined: true,
breadcrumbsPrefix: ["request", "createdOn"],
})
: createdOn,
lastPublished:
lastPublished != null
? serializers.ItemsListItemsLiveRequestLastPublished.jsonOrThrow(lastPublished, {
Expand All @@ -821,6 +853,16 @@ export class ItemsClient {
breadcrumbsPrefix: ["request", "lastPublished"],
})
: lastPublished,
lastUpdated:
lastUpdated != null
? serializers.ItemsListItemsLiveRequestLastUpdated.jsonOrThrow(lastUpdated, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
omitUndefined: true,
breadcrumbsPrefix: ["request", "lastUpdated"],
})
: lastUpdated,
sortBy:
sortBy != null
? serializers.collections.ItemsListItemsLiveRequestSortBy.jsonOrThrow(sortBy, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type * as Webflow from "../../../../../../index";
* limit: 1,
* name: "name",
* slug: "slug",
* sortBy: "lastPublished",
* sortBy: "createdOn",
* sortOrder: "asc"
* }
*/
Expand All @@ -25,8 +25,12 @@ export interface ItemsListItemsLiveRequest {
name?: string;
/** Filter by the exact slug of the item */
slug?: string;
/** Filter by the creation date of the item(s) */
createdOn?: Webflow.ItemsListItemsLiveRequestCreatedOn;
/** Filter by the last published date of the item(s) */
lastPublished?: Webflow.ItemsListItemsLiveRequestLastPublished;
/** Filter by the last updated date of the item(s) */
lastUpdated?: Webflow.ItemsListItemsLiveRequestLastUpdated;
/** Sort results by the provided value */
sortBy?: Webflow.collections.ItemsListItemsLiveRequestSortBy;
/** Sorts the results by asc or desc */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type * as Webflow from "../../../../../../index";
* limit: 1,
* name: "name",
* slug: "slug",
* sortBy: "lastPublished",
* sortBy: "createdOn",
* sortOrder: "asc"
* }
*/
Expand All @@ -25,8 +25,12 @@ export interface ItemsListItemsRequest {
name?: string;
/** Filter by the exact slug of the item */
slug?: string;
/** Filter by the creation date of the item(s) */
createdOn?: Webflow.ItemsListItemsRequestCreatedOn;
/** Filter by the last published date of the item(s) */
lastPublished?: Webflow.ItemsListItemsRequestLastPublished;
/** Filter by the last updated date of the item(s) */
lastUpdated?: Webflow.ItemsListItemsRequestLastUpdated;
/** Sort results by the provided value */
sortBy?: Webflow.collections.ItemsListItemsRequestSortBy;
/** Sorts the results by asc or desc */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

export const ItemsListItemsLiveRequestSortBy = {
CreatedOn: "createdOn",
LastPublished: "lastPublished",
LastUpdated: "lastUpdated",
Name: "name",
Slug: "slug",
} as const;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

export const ItemsListItemsRequestSortBy = {
CreatedOn: "createdOn",
LastPublished: "lastPublished",
LastUpdated: "lastUpdated",
Name: "name",
Slug: "slug",
} as const;
Expand Down
2 changes: 2 additions & 0 deletions src/api/resources/sites/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ export class SitesClient {
*
* To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint.
*
* You must include at least one of the `customDomains` or `publishToWebflowSubdomain` properties in the request body.
*
* <Note title="Rate limit: 1 publish per minute">This endpoint has a specific rate limit of one successful publish queue per minute.</Note>
*
* Required scope | `sites:write`
Expand Down
14 changes: 1 addition & 13 deletions src/api/types/ComponentProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,4 @@

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

/**
* 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.
*/
export interface ComponentProperty {
/** The ID of the property. */
propertyId?: string;
/** The type of the property. */
type?: Webflow.ComponentPropertyType;
/** The label of the property in the UI. */
label?: string;
/** Represents text content within the DOM. It contains both the raw text and its HTML representation. */
text?: Webflow.Text;
}
export type ComponentProperty = Webflow.ComponentPropertyText;
17 changes: 17 additions & 0 deletions src/api/types/ComponentPropertyText.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// This file was auto-generated by Fern from our API Definition.

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

/**
* A text-based component property containing raw text and HTML representation.
*/
export interface ComponentPropertyText {
/** The ID of the property. */
propertyId: string;
/** The type of the property. */
type: Webflow.ComponentPropertyTextType;
/** The label of the property in the UI. */
label: string;
/** Represents text content within the DOM. It contains both the raw text and its HTML representation. */
text: Webflow.Text;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file was auto-generated by Fern from our API Definition.

/** The type of the property. */
export const ComponentPropertyType = {
export const ComponentPropertyTextType = {
PlainText: "Plain Text",
RichText: "Rich Text",
AltText: "Alt Text",
} as const;
export type ComponentPropertyType = (typeof ComponentPropertyType)[keyof typeof ComponentPropertyType];
export type ComponentPropertyTextType = (typeof ComponentPropertyTextType)[keyof typeof ComponentPropertyTextType];
8 changes: 8 additions & 0 deletions src/api/types/ItemsListItemsLiveRequestCreatedOn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

export interface ItemsListItemsLiveRequestCreatedOn {
/** Filter items created before this date */
lte?: Date;
/** Filter items created after this date */
gte?: Date;
}
8 changes: 8 additions & 0 deletions src/api/types/ItemsListItemsLiveRequestLastUpdated.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

export interface ItemsListItemsLiveRequestLastUpdated {
/** Filter items last updated before this date */
lte?: Date;
/** Filter items last updated after this date */
gte?: Date;
}
8 changes: 8 additions & 0 deletions src/api/types/ItemsListItemsRequestCreatedOn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

export interface ItemsListItemsRequestCreatedOn {
/** Filter items created before this date */
lte?: Date;
/** Filter items created after this date */
gte?: Date;
}
8 changes: 8 additions & 0 deletions src/api/types/ItemsListItemsRequestLastUpdated.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

export interface ItemsListItemsRequestLastUpdated {
/** Filter items last updated before this date */
lte?: Date;
/** Filter items last updated after this date */
gte?: Date;
}
7 changes: 6 additions & 1 deletion src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export * from "./ComponentList";
export * from "./ComponentNode";
export * from "./ComponentProperties";
export * from "./ComponentProperty";
export * from "./ComponentPropertyType";
export * from "./ComponentPropertyText";
export * from "./ComponentPropertyTextType";
export * from "./Conflict";
export * from "./CustomCodeBlock";
export * from "./CustomCodeBlockType";
Expand Down Expand Up @@ -98,8 +99,12 @@ export * from "./InvalidDomain";
export * from "./InvalidScopes";
export * from "./InventoryItem";
export * from "./InventoryItemInventoryType";
export * from "./ItemsListItemsLiveRequestCreatedOn";
export * from "./ItemsListItemsLiveRequestLastPublished";
export * from "./ItemsListItemsLiveRequestLastUpdated";
export * from "./ItemsListItemsRequestCreatedOn";
export * from "./ItemsListItemsRequestLastPublished";
export * from "./ItemsListItemsRequestLastUpdated";
export * from "./ListCustomCodeBlocks";
export * from "./Locale";
export * from "./Locales";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type * as serializers from "../../../../../index";
export const ItemsListItemsLiveRequestSortBy: core.serialization.Schema<
serializers.collections.ItemsListItemsLiveRequestSortBy.Raw,
Webflow.collections.ItemsListItemsLiveRequestSortBy
> = core.serialization.enum_(["lastPublished", "name", "slug"]);
> = core.serialization.enum_(["createdOn", "lastPublished", "lastUpdated", "name", "slug"]);

export declare namespace ItemsListItemsLiveRequestSortBy {
export type Raw = "lastPublished" | "name" | "slug";
export type Raw = "createdOn" | "lastPublished" | "lastUpdated" | "name" | "slug";
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type * as serializers from "../../../../../index";
export const ItemsListItemsRequestSortBy: core.serialization.Schema<
serializers.collections.ItemsListItemsRequestSortBy.Raw,
Webflow.collections.ItemsListItemsRequestSortBy
> = core.serialization.enum_(["lastPublished", "name", "slug"]);
> = core.serialization.enum_(["createdOn", "lastPublished", "lastUpdated", "name", "slug"]);

export declare namespace ItemsListItemsRequestSortBy {
export type Raw = "lastPublished" | "name" | "slug";
export type Raw = "createdOn" | "lastPublished" | "lastUpdated" | "name" | "slug";
}
19 changes: 4 additions & 15 deletions src/serialization/types/ComponentProperty.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Webflow from "../../api/index";
import * as core from "../../core";
import type * as core from "../../core";
import type * as serializers from "../index";
import { ComponentPropertyType } from "./ComponentPropertyType";
import { Text } from "./Text";
import { ComponentPropertyText } from "./ComponentPropertyText";

export const ComponentProperty: core.serialization.ObjectSchema<
serializers.ComponentProperty.Raw,
Webflow.ComponentProperty
> = core.serialization.object({
propertyId: core.serialization.string().optional(),
type: ComponentPropertyType.optional(),
label: core.serialization.string().optional(),
text: Text.optional(),
});
> = ComponentPropertyText;

export declare namespace ComponentProperty {
export interface Raw {
propertyId?: string | null;
type?: ComponentPropertyType.Raw | null;
label?: string | null;
text?: Text.Raw | null;
}
export type Raw = ComponentPropertyText.Raw;
}
Loading