n8n/packages/nodes-base/nodes/Keap/ConctactInterface.ts
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
2023-01-27 12:22:44 +01:00

71 lines
1.3 KiB
TypeScript

import type { IDataObject } from 'n8n-workflow';
export interface IAddress {
country_code?: string;
field?: string;
line1?: string;
line2?: string;
locality?: string;
postal_code?: string;
region?: string;
zip_code?: string;
zip_four?: string;
}
export interface ICustomField {
content: IDataObject;
id: number;
}
export interface IEmailContact {
email?: string;
field?: string;
}
export interface IFax {
field?: string;
number?: string;
type?: string;
}
export interface IPhone {
extension?: string;
field?: string;
number?: string;
type?: string;
}
export interface ISocialAccount {
name?: string;
type?: string;
}
export interface IContact {
addresses?: IAddress[];
anniversary?: string;
company?: IDataObject;
contact_type?: string;
custom_fields?: ICustomField[];
duplicate_option?: string;
email_addresses?: IEmailContact[];
family_name?: string;
fax_numbers?: IFax[];
given_name?: string;
job_title?: string;
lead_source_id?: number;
middle_name?: string;
opt_in_reason?: string;
origin?: IDataObject;
owner_id?: number;
phone_numbers?: IPhone[];
preferred_locale?: string;
preferred_name?: string;
prefix?: string;
social_accounts?: ISocialAccount[];
source_type?: string;
spouse_name?: string;
suffix?: string;
time_zone?: string;
website?: string;
}