Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface FileUploadOptionsSpec {
data: string | File;
key?: string;
overwrite?: boolean;
axiosRequestConfig?: AxiosRequestConfig;
}

export interface CreateGraphOptionsSpec {
Expand Down Expand Up @@ -145,8 +146,9 @@ class MultinetAPI {
}

public async uploadTable(
workspace: string, table: string, options: FileUploadOptionsSpec, config?: AxiosRequestConfig
workspace: string, table: string, options: FileUploadOptionsSpec
): Promise<Array<{}>> {
const config = options.axiosRequestConfig;
const headers = config ? config.headers : undefined;
const params = config ? config.params : undefined;
const { type, data, key, overwrite } = options;
Expand Down