1 export const queryContacts = ({
10 url: 'contacts/v4/contacts',
12 params: { Page, PageSize, LabelID },
15 export const queryContactExport = ({
24 url: 'contacts/v4/contacts/export',
26 params: { Page, PageSize, LabelID },
29 export const getContact = (contactID: string) => ({
30 url: `contacts/v4/contacts/${contactID}`,
37 Signature: string | null;
40 export const addContacts = ({
54 url: 'contacts/v4/contacts',
56 data: { Contacts, Overwrite, Labels, Import },
59 export const updateContact = (contactID: string, { Cards }: { Cards: Card[] }) => ({
60 url: `contacts/v4/contacts/${contactID}`,
65 export const labelContacts = ({ LabelID, ContactIDs }: { LabelID: string; ContactIDs: string[] }) => ({
66 url: 'contacts/v4/contacts/label',
68 data: { LabelID, ContactIDs },
71 export const unLabelContacts = ({ LabelID, ContactIDs }: { LabelID: string; ContactIDs: string[] }) => ({
72 url: 'contacts/v4/contacts/unlabel',
74 data: { LabelID, ContactIDs },
77 export const deleteContacts = (IDs: string[]) => ({
78 url: 'contacts/v4/contacts/delete',
83 export const clearContacts = () => ({
84 url: 'contacts/v4/contacts',
88 export const queryContactEmails = ({
106 url: 'contacts/v4/contacts/emails',
108 params: { Page, PageSize, Email, LabelID },
111 export const labelContactEmails = ({ LabelID, ContactEmailIDs }: { LabelID: string; ContactEmailIDs: string[] }) => ({
112 url: 'contacts/v4/contacts/emails/label',
114 data: { LabelID, ContactEmailIDs },
117 export const unLabelContactEmails = ({ LabelID, ContactEmailIDs }: { LabelID: string; ContactEmailIDs: string[] }) => ({
118 url: 'contacts/v4/contacts/emails/unlabel',
120 data: { LabelID, ContactEmailIDs },