@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
43 lines • 2.17 kB
TypeScript
import type { Configuration } from '../generated';
import { AirtableAPIV4Api } from '../generated';
import type { V4AirtableControllerCreateCommentV4Request, V4AirtableControllerListCommentsV4Request, V4AirtableControllerListRecordsV4Request, V4AirtableCreateCommentBodyDto, V4AirtableCreateCommentResponseDto, V4AirtableGetSchemaResponseDto, V4AirtableListCommentsResponseDto, V4AirtableListRecordsResponseDto } from '../generated';
export declare class Airtable {
readonly schema: AirtableSchema;
readonly tables: AirtableTables;
constructor(config: Configuration);
}
export declare class AirtableSchema {
private api;
constructor(api: AirtableAPIV4Api);
/**
* get - get /v4/airtable/schema
*/
get(): Promise<V4AirtableGetSchemaResponseDto>;
}
export declare class AirtableTables {
private api;
readonly records: AirtableTablesRecords;
constructor(api: AirtableAPIV4Api);
}
export declare class AirtableTablesRecords {
private api;
readonly comments: AirtableTablesRecordsComments;
constructor(api: AirtableAPIV4Api);
/**
* list - get /v4/airtable/tables/{tableId}/records
*/
list(tableId: V4AirtableControllerListRecordsV4Request['tableId'], options?: Omit<V4AirtableControllerListRecordsV4Request, 'tableId'>): Promise<V4AirtableListRecordsResponseDto>;
}
export declare class AirtableTablesRecordsComments {
private api;
constructor(api: AirtableAPIV4Api);
/**
* list - get /v4/airtable/tables/{tableId}/records/{recordId}/comments
*/
list(tableId: V4AirtableControllerListCommentsV4Request['tableId'], recordId: V4AirtableControllerListCommentsV4Request['recordId'], options?: Omit<V4AirtableControllerListCommentsV4Request, 'tableId' | 'recordId'>): Promise<V4AirtableListCommentsResponseDto>;
/**
* create - post /v4/airtable/tables/{tableId}/records/{recordId}/comments
*/
create(tableId: V4AirtableControllerCreateCommentV4Request['tableId'], recordId: V4AirtableControllerCreateCommentV4Request['recordId'], body: V4AirtableCreateCommentBodyDto): Promise<V4AirtableCreateCommentResponseDto>;
}
//# sourceMappingURL=airtable.d.ts.map