UNPKG

@strathberry/klaviyo-client

Version:

(Fork) Klaviyo API client for Node.js and browser

25 lines (24 loc) 1.05 kB
import { KlaviyoList, KlaviyoListDetails, KlaviyoListIdentifier, KlaviyoProfile, KlaviyoProfileIdentifier } from '..'; export declare class ListsKlaviyoApi { private readonly apiKey; private readonly token; constructor(apiKey: string, token: string); getGroupProfiles(groupId: string, marker?: number): Promise<KlaviyoProfileIdentifier[]>; createList(name: string): Promise<KlaviyoListIdentifier>; getLists(): Promise<KlaviyoList[]>; getListDetails(id: string): Promise<KlaviyoListDetails>; updateList(id: string, name: string): Promise<void>; deleteList(id: string): Promise<void>; addMembersToList(listId: string, profiles: Partial<KlaviyoProfile>): Promise<void>; subscribe(listId: string, profiles: Partial<{ email: string; phone_number: string; sms_consent: boolean; }>): Promise<void>; subscribeToBackInStock(variantId: string, profile: { email: string; } & Partial<{ phone_number: string; sms_consent: boolean; }>): Promise<void>; }