@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
55 lines • 4.67 kB
TypeScript
import type { Configuration } from '../generated';
import { ContactSourceRelationsAPIV4Api } from '../generated';
import type { V4ContactSourceRelationsControllerDeleteRelContactSourceV4Request, V4ContactSourceRelationsControllerGetRelContactSourceColumnsV4Request, V4ContactSourceRelationsControllerGetRelContactSourceV4Request, V4ContactSourceRelationsControllerGetRelContactSourcesInViewV4Request, V4ContactSourceRelationsControllerGetRelContactSourcesV4Request, V4ContactSourceRelationsControllerUpdateRelContactSourceV4Request, V4ContactSourceRelationsCreateRelContactSourceBodyDto, V4ContactSourceRelationsCreateRelContactSourceResponseDto, V4ContactSourceRelationsDeleteRelContactSourceResponseDto, V4ContactSourceRelationsGetRelContactSourceColumnsResponseDto, V4ContactSourceRelationsGetRelContactSourceResponseDto, V4ContactSourceRelationsGetRelContactSourcesInViewResponseDto, V4ContactSourceRelationsGetRelContactSourcesResponseDto, V4ContactSourceRelationsUpdateRelContactSourceBodyDto, V4ContactSourceRelationsUpdateRelContactSourceResponseDto } from '../generated';
export declare class RelationsContactSource {
readonly list: RelationsContactSourceList;
readonly create: RelationsContactSourceCreate;
readonly update: RelationsContactSourceUpdate;
readonly delete: RelationsContactSourceDelete;
constructor(config: Configuration);
}
export declare class RelationsContactSourceList {
private api;
constructor(api: ContactSourceRelationsAPIV4Api);
/**
* one - get /v4/contact-source-relations/contacts/{contactId}/sources/{sourceId}
*/
one(contactId: V4ContactSourceRelationsControllerGetRelContactSourceV4Request['contactId'], sourceId: V4ContactSourceRelationsControllerGetRelContactSourceV4Request['sourceId'], options?: Omit<V4ContactSourceRelationsControllerGetRelContactSourceV4Request, 'contactId' | 'sourceId'>): Promise<V4ContactSourceRelationsGetRelContactSourceResponseDto>;
/**
* oneWithColumns - get /v4/contact-source-relations/contacts/{contactId}/sources/{sourceId}/{columns}
*/
oneWithColumns(contactId: V4ContactSourceRelationsControllerGetRelContactSourceColumnsV4Request['contactId'], sourceId: V4ContactSourceRelationsControllerGetRelContactSourceColumnsV4Request['sourceId'], columns: V4ContactSourceRelationsControllerGetRelContactSourceColumnsV4Request['columns'], options?: Omit<V4ContactSourceRelationsControllerGetRelContactSourceColumnsV4Request, 'contactId' | 'sourceId' | 'columns'>): Promise<V4ContactSourceRelationsGetRelContactSourceColumnsResponseDto>;
/**
* all - get /v4/contact-source-relations
*/
all(options?: V4ContactSourceRelationsControllerGetRelContactSourcesV4Request): Promise<V4ContactSourceRelationsGetRelContactSourcesResponseDto>;
/**
* withView - get /v4/contact-source-relations/viewId/{viewId}
*/
withView(viewId: V4ContactSourceRelationsControllerGetRelContactSourcesInViewV4Request['viewId'], options?: Omit<V4ContactSourceRelationsControllerGetRelContactSourcesInViewV4Request, 'viewId'>): Promise<V4ContactSourceRelationsGetRelContactSourcesInViewResponseDto>;
}
export declare class RelationsContactSourceCreate {
private api;
constructor(api: ContactSourceRelationsAPIV4Api);
/**
* one - post /v4/contact-source-relations
*/
one(body: V4ContactSourceRelationsCreateRelContactSourceBodyDto): Promise<V4ContactSourceRelationsCreateRelContactSourceResponseDto>;
}
export declare class RelationsContactSourceUpdate {
private api;
constructor(api: ContactSourceRelationsAPIV4Api);
/**
* one - patch /v4/contact-source-relations/contacts/{contactId}/sources/{sourceId}
*/
one(contactId: V4ContactSourceRelationsControllerUpdateRelContactSourceV4Request['contactId'], sourceId: V4ContactSourceRelationsControllerUpdateRelContactSourceV4Request['sourceId'], body: V4ContactSourceRelationsUpdateRelContactSourceBodyDto['relContactSource']): Promise<V4ContactSourceRelationsUpdateRelContactSourceResponseDto>;
}
export declare class RelationsContactSourceDelete {
private api;
constructor(api: ContactSourceRelationsAPIV4Api);
/**
* one - delete /v4/contact-source-relations/contacts/{contactId}/sources/{sourceId}
*/
one(contactId: V4ContactSourceRelationsControllerDeleteRelContactSourceV4Request['contactId'], sourceId: V4ContactSourceRelationsControllerDeleteRelContactSourceV4Request['sourceId'], options?: Omit<V4ContactSourceRelationsControllerDeleteRelContactSourceV4Request, 'contactId' | 'sourceId'>): Promise<V4ContactSourceRelationsDeleteRelContactSourceResponseDto>;
}
//# sourceMappingURL=relationsContactSource.d.ts.map