@vizzly/api-client 0.0.80 → 0.0.81
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.
|
@@ -292,4 +292,10 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
292
292
|
purpose: 'upload' | 'download';
|
|
293
293
|
}>): Promise<import("../types").Response<DataOptimiser.GenerateSignedUrlResponse>>;
|
|
294
294
|
private buildGenerateSignedUrlRequest;
|
|
295
|
+
/** Build all possible table addresses for a data source */
|
|
296
|
+
getTableAddresses(params: RequestParams<{
|
|
297
|
+
companyId: string;
|
|
298
|
+
dataSourceId: string;
|
|
299
|
+
}>): Promise<import("../types").Response<DataOptimiser.GetTableAddressesResponse>>;
|
|
300
|
+
private buildGetTableAddressesRequest;
|
|
295
301
|
}
|
|
@@ -691,5 +691,23 @@ class VizzlyQueryEngineApi extends Api_1.Api {
|
|
|
691
691
|
acceptedAuthParams: ['queryEngineApiKey'],
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
+
/** Build all possible table addresses for a data source */
|
|
695
|
+
getTableAddresses(params) {
|
|
696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
+
return yield this.execute(this.buildGetTableAddressesRequest(params));
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
buildGetTableAddressesRequest(params) {
|
|
701
|
+
return {
|
|
702
|
+
path: Path_1.Path.buildPath(`/api/v1/data-optimiser/address`, ''),
|
|
703
|
+
method: 'post',
|
|
704
|
+
abortSignal: params.abortSignal,
|
|
705
|
+
body: {
|
|
706
|
+
company: { id: params.companyId },
|
|
707
|
+
dataSourceId: params.dataSourceId,
|
|
708
|
+
},
|
|
709
|
+
acceptedAuthParams: ['queryEngineApiKey'],
|
|
710
|
+
};
|
|
711
|
+
}
|
|
694
712
|
}
|
|
695
713
|
exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
|
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
|
}
|