@nu-art/google-services
Version:
google-services
22 lines (21 loc) • 1.25 kB
TypeScript
import { Module } from '@nu-art/ts-common';
import { people_v1 } from 'googleapis';
export declare const standardProperties: string[];
export declare const standardPhotoProperties: string[];
export type GoogleContact = people_v1.Schema$Person;
type Config = {
authKey?: string;
};
export declare class ModuleBE_GoogleContacts_Class extends Module<Config> {
constructor();
protected init(): void;
getContactById: (userEmail: string, contactId: string, authKey?: string) => Promise<people_v1.Schema$Person>;
delete: (userEmail: string, resource: string, authKey?: string) => Promise<people_v1.Schema$Empty>;
list: (userEmail: string, pageToken?: string, authKey?: string) => Promise<people_v1.Schema$ListConnectionsResponse>;
create: (userEmail: string, record: GoogleContact, authKey?: string) => Promise<people_v1.Schema$Person>;
update: (userEmail: string, record: GoogleContact, authKey?: string) => Promise<people_v1.Schema$Person>;
updatePhoto: (userEmail: string, person: GoogleContact, contactImageBase64: string, authKey?: string) => Promise<people_v1.Schema$UpdateContactPhotoResponse>;
private createContactApi;
}
export declare const ModuleBE_GoogleContacts: ModuleBE_GoogleContacts_Class;
export {};