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": "297f18129a1b2c249c35ce1bac943f1f58528d08",
"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
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;
}
4 changes: 4 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,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";
}
20 changes: 20 additions & 0 deletions src/serialization/types/ItemsListItemsLiveRequestCreatedOn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 serializers from "../index";

export const ItemsListItemsLiveRequestCreatedOn: core.serialization.ObjectSchema<
serializers.ItemsListItemsLiveRequestCreatedOn.Raw,
Webflow.ItemsListItemsLiveRequestCreatedOn
> = core.serialization.object({
lte: core.serialization.date().optional(),
gte: core.serialization.date().optional(),
});

export declare namespace ItemsListItemsLiveRequestCreatedOn {
export interface Raw {
lte?: string | null;
gte?: string | null;
}
}
20 changes: 20 additions & 0 deletions src/serialization/types/ItemsListItemsLiveRequestLastUpdated.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 serializers from "../index";

export const ItemsListItemsLiveRequestLastUpdated: core.serialization.ObjectSchema<
serializers.ItemsListItemsLiveRequestLastUpdated.Raw,
Webflow.ItemsListItemsLiveRequestLastUpdated
> = core.serialization.object({
lte: core.serialization.date().optional(),
gte: core.serialization.date().optional(),
});

export declare namespace ItemsListItemsLiveRequestLastUpdated {
export interface Raw {
lte?: string | null;
gte?: string | null;
}
}
20 changes: 20 additions & 0 deletions src/serialization/types/ItemsListItemsRequestCreatedOn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 serializers from "../index";

export const ItemsListItemsRequestCreatedOn: core.serialization.ObjectSchema<
serializers.ItemsListItemsRequestCreatedOn.Raw,
Webflow.ItemsListItemsRequestCreatedOn
> = core.serialization.object({
lte: core.serialization.date().optional(),
gte: core.serialization.date().optional(),
});

export declare namespace ItemsListItemsRequestCreatedOn {
export interface Raw {
lte?: string | null;
gte?: string | null;
}
}
20 changes: 20 additions & 0 deletions src/serialization/types/ItemsListItemsRequestLastUpdated.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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 serializers from "../index";

export const ItemsListItemsRequestLastUpdated: core.serialization.ObjectSchema<
serializers.ItemsListItemsRequestLastUpdated.Raw,
Webflow.ItemsListItemsRequestLastUpdated
> = core.serialization.object({
lte: core.serialization.date().optional(),
gte: core.serialization.date().optional(),
});

export declare namespace ItemsListItemsRequestLastUpdated {
export interface Raw {
lte?: string | null;
gte?: string | null;
}
}
4 changes: 4 additions & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,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
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "3.3.4";
export const SDK_VERSION = "3.3.5";
Loading