/** * Google Contacts Node - Version 1 * Discriminator: resource=contact, operation=create */ interface Credentials { googleContactsOAuth2Api: CredentialReference; } /** Create a contact */ export type GoogleContactsV1ContactCreateParams = { resource: 'contact'; operation: 'create'; /** * Family Name */ familyName?: string | Expression | PlaceholderValue; /** * Given Name */ givenName?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Addresses * @default {} */ addressesUi?: { /** Address */ addressesValues?: { /** Street Address */ streetAddress?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** Region */ region?: string | Expression | PlaceholderValue; /** Country Code */ countryCode?: string | Expression | PlaceholderValue; /** Postal Code */ postalCode?: string | Expression | PlaceholderValue; /** Type */ type?: 'home' | 'work' | 'other' | Expression; }; }; /** Birthday */ birthday?: string | Expression; /** Company * @default {} */ companyUi?: { /** Company */ companyValues?: Array<{ /** Current * @default false */ current?: boolean | Expression; /** Domain */ domain?: string | Expression | PlaceholderValue; /** Name */ name?: string | Expression | PlaceholderValue; /** Title */ title?: string | Expression | PlaceholderValue; }>; }; /** Custom Fields * @default {} */ customFieldsUi?: { /** Custom Field */ customFieldsValues?: Array<{ /** The end user specified key of the user defined data */ key?: string | Expression | PlaceholderValue; /** The end user specified value of the user defined data */ value?: string | Expression | PlaceholderValue; }>; }; /** Emails * @default {} */ emailsUi?: { /** Email */ emailsValues?: Array<{ /** The type of the email address. The type can be custom or one of these predefined values. */ type?: 'home' | 'work' | 'other' | Expression; /** The email address */ value?: string | Expression | PlaceholderValue; }>; }; /** An event related to the person * @default {} */ eventsUi?: { /** Event */ eventsValues?: Array<{ /** The date of the event */ date?: string | Expression; /** The type of the event. The type can be custom or one of these predefined values. */ type?: 'anniversary' | 'other' | Expression; }>; }; /** The name that should be used to sort the person in a list */ fileAs?: string | Expression | PlaceholderValue; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ group?: string[]; /** Honorific Prefix */ honorificPrefix?: string | Expression | PlaceholderValue; /** Honorific Suffix */ honorificSuffix?: string | Expression | PlaceholderValue; /** Middle Name */ middleName?: string | Expression | PlaceholderValue; /** Notes */ biographies?: string | Expression | PlaceholderValue; /** Phone * @default {} */ phoneUi?: { /** Phone */ phoneValues?: Array<{ /** Type */ type?: 'googleVoice' | 'home' | 'homeFax' | 'main' | 'mobile' | 'other' | 'otherFax' | 'pager' | 'work' | 'workFax' | 'workMobile' | 'workPager' | Expression; /** The phone number */ value?: string | Expression | PlaceholderValue; }>; }; /** Relations * @default {} */ relationsUi?: { /** Relation */ relationsValues?: Array<{ /** The name of the other person this relation refers to */ person?: string | Expression | PlaceholderValue; /** The person's relation to the other person. The type can be custom or one of these predefined values. */ type?: 'assistant' | 'brother' | 'child' | 'domesticPartner' | 'father' | 'friend' | 'manager' | 'mother' | 'parent' | 'referredBy' | 'relative' | 'sister' | 'spouse' | Expression; }>; }; }; }; export type GoogleContactsV1ContactCreateOutput = { contactId?: string; coverPhotos?: Array<{ 'default'?: boolean; metadata?: { primary?: boolean; source?: { id?: string; type?: string; }; }; url?: string; }>; emailAddresses?: Array<{ formattedType?: string; metadata?: { primary?: boolean; source?: { id?: string; type?: string; }; }; type?: string; value?: string; }>; etag?: string; memberships?: Array<{ contactGroupMembership?: { contactGroupId?: string; contactGroupResourceName?: string; }; metadata?: { source?: { id?: string; type?: string; }; }; }>; metadata?: { objectType?: string; sources?: Array<{ etag?: string; id?: string; profileMetadata?: { objectType?: string; userTypes?: Array; }; type?: string; updateTime?: string; }>; }; names?: Array<{ displayName?: string; displayNameLastFirst?: string; familyName?: string; givenName?: string; metadata?: { primary?: boolean; source?: { id?: string; type?: string; }; sourcePrimary?: boolean; }; unstructuredName?: string; }>; phoneNumbers?: Array<{ canonicalForm?: string; formattedType?: string; metadata?: { primary?: boolean; source?: { id?: string; type?: string; }; }; type?: string; value?: string; }>; photos?: Array<{ 'default'?: boolean; metadata?: { primary?: boolean; source?: { id?: string; type?: string; }; }; url?: string; }>; resourceName?: string; }; export type GoogleContactsV1ContactCreateNode = { type: 'n8n-nodes-base.googleContacts'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };