feat(MailerLite Node): Update node to support new api (#11933)

This commit is contained in:
Jon
2024-12-16 13:44:52 +00:00
committed by GitHub
parent 271401d882
commit d6b8e65abe
19 changed files with 2830 additions and 394 deletions

View File

@@ -0,0 +1,35 @@
export interface CustomField {
name: string;
key: string;
}
export interface SubscriberFields {
city: string | null;
company: string | null;
country: string | null;
last_name: string | null;
name: string | null;
phone: string | null;
state: string | null;
z_i_p: string | null;
}
export interface Subscriber {
id: string;
email: string;
status: string;
source: string;
sent: number;
opens_count: number;
clicks_count: number;
open_rate: number;
click_rate: number;
ip_address: string | null;
subscribed_at: string;
unsubscribed_at: string | null;
created_at: string;
updated_at: string;
fields: SubscriberFields;
opted_in_at: string | null;
optin_ip: string | null;
}