@vizzly/api-client 0.0.80 → 0.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -290,6 +290,13 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
290
290
|
dataSourceId: string;
|
|
291
291
|
fileName: string;
|
|
292
292
|
purpose: 'upload' | 'download';
|
|
293
|
+
contentType?: string;
|
|
293
294
|
}>): Promise<import("../types").Response<DataOptimiser.GenerateSignedUrlResponse>>;
|
|
294
295
|
private buildGenerateSignedUrlRequest;
|
|
296
|
+
/** Build all possible table addresses for a data source */
|
|
297
|
+
getTableAddresses(params: RequestParams<{
|
|
298
|
+
companyId: string;
|
|
299
|
+
dataSourceId: string;
|
|
300
|
+
}>): Promise<import("../types").Response<DataOptimiser.GetTableAddressesResponse>>;
|
|
301
|
+
private buildGetTableAddressesRequest;
|
|
295
302
|
}
|
|
@@ -687,6 +687,25 @@ class VizzlyQueryEngineApi extends Api_1.Api {
|
|
|
687
687
|
dataSourceId: params.dataSourceId,
|
|
688
688
|
fileName: params.fileName,
|
|
689
689
|
purpose: params.purpose,
|
|
690
|
+
contentType: params.contentType
|
|
691
|
+
},
|
|
692
|
+
acceptedAuthParams: ['queryEngineApiKey'],
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
/** Build all possible table addresses for a data source */
|
|
696
|
+
getTableAddresses(params) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
return yield this.execute(this.buildGetTableAddressesRequest(params));
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
buildGetTableAddressesRequest(params) {
|
|
702
|
+
return {
|
|
703
|
+
path: Path_1.Path.buildPath(`/api/v1/data-optimiser/address`, ''),
|
|
704
|
+
method: 'post',
|
|
705
|
+
abortSignal: params.abortSignal,
|
|
706
|
+
body: {
|
|
707
|
+
company: { id: params.companyId },
|
|
708
|
+
dataSourceId: params.dataSourceId,
|
|
690
709
|
},
|
|
691
710
|
acceptedAuthParams: ['queryEngineApiKey'],
|
|
692
711
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -626,6 +626,12 @@ export declare namespace DataOptimiser {
|
|
|
626
626
|
method: 'GET' | 'PUT';
|
|
627
627
|
scanResult?: FileScanResult;
|
|
628
628
|
};
|
|
629
|
+
export type GetTableAddressesResponse = {
|
|
630
|
+
ingestsTableAddress: [string, string, string];
|
|
631
|
+
snapshotsTableAddress: [string, string, string];
|
|
632
|
+
uploadsTableAddress: [string, string, string];
|
|
633
|
+
subsnapsTableAddress: [string, string, string];
|
|
634
|
+
};
|
|
629
635
|
export type FileScanResult = 'malicious' | 'safe' | 'unknown' | 'in_progress';
|
|
630
636
|
export {};
|
|
631
637
|
}
|