Skip to content

Commit 068ade5

Browse files
feat: add types for ContactImportResponse and ImportContactsRequest to support contact import functionality
1 parent 1844b31 commit 068ade5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/types/api/contact-imports.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export type ContactImportResponse = {
2+
id: number;
3+
status: "created" | "started" | "finished" | "failed";
4+
created_contacts_count?: number;
5+
updated_contacts_count?: number;
6+
contacts_over_limit_count?: number;
7+
};
8+
9+
export type ImportContactsRequest = {
10+
contacts: {
11+
email: string;
12+
fields?: {
13+
first_name?: string;
14+
last_name?: string;
15+
zip_code?: number;
16+
[key: string]: string | number | undefined;
17+
};
18+
list_ids_included?: number[];
19+
list_ids_excluded?: number[];
20+
}[];
21+
};

0 commit comments

Comments
 (0)