haravan-client
Version:
### Haravan API
51 lines (50 loc) • 1.46 kB
TypeScript
export interface IHaravanCustomCollection {
body_html: string;
handle: string;
image: {
src: string;
created_at: string;
alt: string;
} | null;
id: number;
published: boolean;
published_at: string;
published_scope: 'global' | 'web';
sort_order: string;
template_suffix: string;
title: string;
updated_at: string;
}
export declare function putHaravanCustomCollection(param: {
accessToken: string;
customCollection: Partial<IHaravanCustomCollection>;
delay?: number;
id: string;
}): Promise<IHaravanCustomCollection>;
export declare function deleteHaravanCustomCollection(param: {
accessToken: string;
id: string;
delay?: number;
}): Promise<IHaravanCustomCollection>;
export declare function postHaravanCustomCollection(param: {
accessToken: string;
customCollection: Partial<IHaravanCustomCollection>;
delay?: number;
}): Promise<IHaravanCustomCollection>;
export declare function getHaravanCustomCollection(param: {
accessToken: string;
query?: string;
delay?: number;
id: string;
}): Promise<IHaravanCustomCollection>;
export declare function getHaravanCustomCollections(param: {
accessToken: string;
query: string;
delay?: number;
}): Promise<IHaravanCustomCollection[]>;
export declare function countHaravanCustomCollections(param: {
accessToken: string;
delay?: number;
}): Promise<{
count: number;
}>;