Interface KeapNodeParameters

Source
interface KeapNodeParameters {
    additionalFields?:
        | {
            emailAddress?: string;
            notes?: string;
            optInReason?: string;
            website?: string;
        }
        | {
            anniversary?: string;
            companyId?: number;
            contactType?: string;
            familyName?: string;
            givenName?: string;
            ipAddress?: string;
            jobTitle?: string;
            leadSourceId?: number;
            middleName?: string;
            optInReason?: string;
            ownerId?: string;
            preferredLocale?: string;
            preferredName?: string;
            sourceType?: | "MANUAL"
            | "OTHER"
            | "API"
            | "IMPORT"
            | "LANDINGPAGE"
            | "UNKNOWN";
            spouseName?: string;
            timezone?: string;
            website?: string;
        }
        | {
            body?: string;
            title?: string;
            type?: | "other"
            | "email"
            | "appointment"
            | "call"
            | "fax"
            | "letter";
        }
        | {
            body?: string;
            contactId?: number;
            title?: string;
            type?: | "other"
            | "email"
            | "appointment"
            | "call"
            | "fax"
            | "letter";
            userId?: string;
        }
        | {
            leadAffiliateId?: number;
            promoCodes?: string;
            salesAffiliateId?: number;
        }
        | {
            active?: boolean;
            productDesc?: string;
            productPrice?: number;
            productShortDesc?: string;
            sku?: string;
            subscriptionOnly?: boolean;
        }
        | {
            clickedDate?: string;
            contactId?: number;
            headers?: string;
            htmlContent?: string;
            openedDate?: string;
            originalProvider?: | "UNKNOWN"
            | "INFUSIONSOFT"
            | "MICROSOFT"
            | "GOOGLE";
            originalProviderId?: string;
            plainContent?: string;
            providerSourceId?: string;
            receivedDate?: string;
            sentDate?: string;
            sentFromReplyAddress?: string;
            sentToBccAddresses?: string;
            sentToCCAddresses?: string;
            subject?: string;
        }
        | {
            addressField?: string;
            htmlContent?: string;
            plainContent?: string;
        };
    addressesUi?: | {
        addressesValues: {
            countryCode?: string;
            line1?: string;
            line2?: string;
            locality?: string;
            postalCode?: string;
            region?: string;
            zipCode?: string;
            zipFour?: string;
        };
    }
    | {
        addressesValues: {
            countryCode?: string;
            field?: "OTHER"
            | "BILLING"
            | "SHIPPING";
            line1?: string;
            line2?: string;
            locality?: string;
            postalCode?: string;
            region?: string;
            zipCode?: string;
            zipFour?: string;
        }[];
    };
    addressUi?: {
        addressValues: {
            company?: string;
            countryCode?: string;
            firstName?: string;
            lastName?: string;
            line1?: string;
            line2?: string;
            locality?: string;
            middleName?: string;
            phone?: string;
            region?: string;
            zipCode?: string;
            zipFour?: string;
        };
    };
    attachmentsUi?: {
        attachmentsBinary: { property?: string }[];
        attachmentsValues: {
            fileData?: string;
            fileName?: string;
        }[];
    };
    binaryData?: boolean;
    binaryPropertyName?: string;
    companyName?: string;
    contactId?: string;
    contactIds?: string;
    duplicateOption?: "email"
    | "emailAndName";
    emailsUi?: {
        emailsValues: {
            email?: string;
            field?: "EMAIL1" | "EMAIL2" | "EMAIL3";
        }[];
    };
    faxesUi?: | {
        faxesValues: { number?: string; type?: string };
    }
    | {
        faxesValues: {
            field?: "FAX1"
            | "FAX2";
            number?: string;
        }[];
    };
    fileAssociation?: "contact"
    | "company"
    | "user";
    fileData?: string;
    fileId?: string;
    fileName?: string;
    filters?:
        | { contactId?: number; userId?: string }
        | { active?: boolean }
        | {
            contactId?: number;
            email?: string;
            sinceSentDate?: string;
            untilSentDate?: string;
        }
        | {
            contactId?: number;
            name?: string;
            permission?: "company"
            | "user"
            | "both";
            type?:
                | "contact"
                | "image"
                | "application"
                | "hidden"
                | "ticket"
                | "import"
                | "fax"
                | "attachment"
                | "digitalProduct"
                | "funnel"
                | "logoThumnail"
                | "reSampledImage"
                | "styleCart"
                | "templateThumnail"
                | "webform";
            viewable?: "public"
            | "private"
            | "both";
        };
    isPublic?: boolean;
    limit?: number;
    noteId?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete"
    | "upsert"
    | "upload"
    | "send"
    | "createRecord";
    options?: | {
        companyName?: string;
        fields?: string;
        order?: "id"
        | "name"
        | "datecreated";
        orderDirection?: "ascending" | "descending";
    }
    | { fields?: string }
    | {
        email?: string;
        familyName?: string;
        givenName?: string;
        order?: "id" | "email" | "name" | "date";
        orderDirection?: "ascending" | "descending";
        since?: string;
        until?: string;
    }
    | {
        contactId?: number;
        order?: string;
        paid?: boolean;
        productId?: number;
        since?: string;
        until?: string;
    };
    orderDate?: string;
    orderId?: string;
    orderItemsUi?: {
        orderItemsValues: {
            description?: string;
            price?: number;
            "product ID"?: number;
            quantity?: number;
        }[];
    };
    orderTitle?: string;
    orderType?: "offline"
    | "online";
    phonesUi?:
        | {
            phonesValues: { number?: string; type?: string }[];
        }
        | {
            phonesValues: {
                field?: | "PHONE1"
                | "PHONE2"
                | "PHONE3"
                | "PHONE4"
                | "PHONE5";
                number?: string;
            }[];
        };
    productId?: string;
    productName?: string;
    resource?: | "contact"
    | "contactTag"
    | "ecommerceOrder"
    | "company"
    | "file"
    | "email"
    | "contactNote"
    | "ecommerceProduct";
    returnAll?: boolean;
    sentFromAddress?: string;
    sentToAddress?: string;
    socialAccountsUi?: {
        socialAccountsValues: {
            name?: string;
            type?: "Facebook"
            | "Twitter"
            | "LinkedIn";
        }[];
    };
    subject?: string;
    tagIds?: string
    | unknown[];
    userId?: string;
}

Properties§

Source§

readonly additionalFields?:
    | {
        emailAddress?: string;
        notes?: string;
        optInReason?: string;
        website?: string;
    }
    | {
        anniversary?: string;
        companyId?: number;
        contactType?: string;
        familyName?: string;
        givenName?: string;
        ipAddress?: string;
        jobTitle?: string;
        leadSourceId?: number;
        middleName?: string;
        optInReason?: string;
        ownerId?: string;
        preferredLocale?: string;
        preferredName?: string;
        sourceType?: | "MANUAL"
        | "OTHER"
        | "API"
        | "IMPORT"
        | "LANDINGPAGE"
        | "UNKNOWN";
        spouseName?: string;
        timezone?: string;
        website?: string;
    }
    | {
        body?: string;
        title?: string;
        type?: | "other"
        | "email"
        | "appointment"
        | "call"
        | "fax"
        | "letter";
    }
    | {
        body?: string;
        contactId?: number;
        title?: string;
        type?: | "other"
        | "email"
        | "appointment"
        | "call"
        | "fax"
        | "letter";
        userId?: string;
    }
    | {
        leadAffiliateId?: number;
        promoCodes?: string;
        salesAffiliateId?: number;
    }
    | {
        active?: boolean;
        productDesc?: string;
        productPrice?: number;
        productShortDesc?: string;
        sku?: string;
        subscriptionOnly?: boolean;
    }
    | {
        clickedDate?: string;
        contactId?: number;
        headers?: string;
        htmlContent?: string;
        openedDate?: string;
        originalProvider?: | "UNKNOWN"
        | "INFUSIONSOFT"
        | "MICROSOFT"
        | "GOOGLE";
        originalProviderId?: string;
        plainContent?: string;
        providerSourceId?: string;
        receivedDate?: string;
        sentDate?: string;
        sentFromReplyAddress?: string;
        sentToBccAddresses?: string;
        sentToCCAddresses?: string;
        subject?: string;
    }
    | {
        addressField?: string;
        htmlContent?: string;
        plainContent?: string;
    }

Default: {}

Source§

readonly addressesUi?:
    | {
        addressesValues: {
            countryCode?: string;
            line1?: string;
            line2?: string;
            locality?: string;
            postalCode?: string;
            region?: string;
            zipCode?: string;
            zipFour?: string;
        };
    }
    | {
        addressesValues: {
            countryCode?: string;
            field?: "OTHER"
            | "BILLING"
            | "SHIPPING";
            line1?: string;
            line2?: string;
            locality?: string;
            postalCode?: string;
            region?: string;
            zipCode?: string;
            zipFour?: string;
        }[];
    }

Default: {} Type options: {"multipleValues":false}

Source§

readonly addressUi?: {
    addressValues: {
        company?: string;
        countryCode?: string;
        firstName?: string;
        lastName?: string;
        line1?: string;
        line2?: string;
        locality?: string;
        middleName?: string;
        phone?: string;
        region?: string;
        zipCode?: string;
        zipFour?: string;
    };
}

Default: {} Type options: {"multipleValues":false}

Source§

readonly attachmentsUi?: {
    attachmentsBinary: { property?: string }[];
    attachmentsValues: {
        fileData?: string;
        fileName?: string;
    }[];
}

Attachments to be sent with each copy of the email, maximum of 10 with size of 1MB each Default: {} Type options: {"multipleValues":true}

Source§

readonly binaryData?: boolean

Whether the data to upload should be taken from binary field

Source§

readonly binaryPropertyName?: string

Default: "data"

Source§

readonly companyName?: string

Source§

readonly contactId?: string

Source§

readonly contactIds?: string

Contact IDs to receive the email. Multiple can be added seperated by comma.

Source§

readonly duplicateOption?: "email" | "emailAndName"

Performs duplicate checking by one of the following options: Email, EmailAndName. If a match is found using the option provided, the existing contact will be updated. Default: "email"

Source§

readonly emailsUi?: {
    emailsValues: {
        email?: string;
        field?: "EMAIL1" | "EMAIL2" | "EMAIL3";
    }[];
}

Default: {} Type options: {"multipleValues":true}

Source§

readonly faxesUi?:
    | {
        faxesValues: { number?: string; type?: string };
    }
    | {
        faxesValues: {
            field?: "FAX1"
            | "FAX2";
            number?: string;
        }[];
    }

Default: {} Type options: {"multipleValues":false}

Source§

readonly fileAssociation?: "contact" | "company" | "user"

Source§

readonly fileData?: string

The content of the attachment, encoded in Base64

Source§

readonly fileId?: string

Source§

readonly fileName?: string

The filename of the attached file, including extension

Source§

readonly filters?:
    | { contactId?: number; userId?: string }
    | { active?: boolean }
    | {
        contactId?: number;
        email?: string;
        sinceSentDate?: string;
        untilSentDate?: string;
    }
    | {
        contactId?: number;
        name?: string;
        permission?: "company"
        | "user"
        | "both";
        type?:
            | "contact"
            | "image"
            | "application"
            | "hidden"
            | "ticket"
            | "import"
            | "fax"
            | "attachment"
            | "digitalProduct"
            | "funnel"
            | "logoThumnail"
            | "reSampledImage"
            | "styleCart"
            | "templateThumnail"
            | "webform";
        viewable?: "public"
        | "private"
        | "both";
    }

Default: {}

Source§

readonly isPublic?: boolean

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":200}

Source§

readonly noteId?: string

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete"
    | "upsert"
    | "upload"
    | "send"
    | "createRecord"

Default: "create"

Source§

readonly options?:
    | {
        companyName?: string;
        fields?: string;
        order?: "id"
        | "name"
        | "datecreated";
        orderDirection?: "ascending" | "descending";
    }
    | { fields?: string }
    | {
        email?: string;
        familyName?: string;
        givenName?: string;
        order?: "id" | "email" | "name" | "date";
        orderDirection?: "ascending" | "descending";
        since?: string;
        until?: string;
    }
    | {
        contactId?: number;
        order?: string;
        paid?: boolean;
        productId?: number;
        since?: string;
        until?: string;
    }

Default: {}

Source§

readonly orderDate?: string

Source§

readonly orderId?: string

Source§

readonly orderItemsUi?: {
    orderItemsValues: {
        description?: string;
        price?: number;
        "product ID"?: number;
        quantity?: number;
    }[];
}

Default: {} Type options: {"multipleValues":true}

Source§

readonly orderTitle?: string

Source§

readonly orderType?: "offline" | "online"

Source§

readonly phonesUi?:
    | {
        phonesValues: { number?: string; type?: string }[];
    }
    | {
        phonesValues: {
            field?: | "PHONE1"
            | "PHONE2"
            | "PHONE3"
            | "PHONE4"
            | "PHONE5";
            number?: string;
        }[];
    }

Default: {} Type options: {"multipleValues":true}

Source§

readonly productId?: string

Source§

readonly productName?: string

Source§

readonly resource?:
    | "contact"
    | "contactTag"
    | "ecommerceOrder"
    | "company"
    | "file"
    | "email"
    | "contactNote"
    | "ecommerceProduct"

Default: "company"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly sentFromAddress?: string

Source§

readonly sentToAddress?: string

Source§

readonly socialAccountsUi?: {
    socialAccountsValues: {
        name?: string;
        type?: "Facebook" | "Twitter" | "LinkedIn";
    }[];
}

Default: {} Type options: {"multipleValues":true}

Source§

readonly subject?: string

The subject line of the email

Source§

readonly tagIds?: string | unknown[]

Choose from the list, or specify IDs using an expression Default: [] Type options: {"loadOptionsMethod":"getTags"}

Source§

readonly userId?: string

The infusionsoft user to create the note on behalf of. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getUsers"}