@vizzly/api-client 0.0.75 → 0.0.77
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.
|
@@ -288,4 +288,12 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
288
288
|
create_upload_table: DataOptimiser.ActionStatus<{}>;
|
|
289
289
|
}>>>;
|
|
290
290
|
private buildCreateUploadTableRequest;
|
|
291
|
+
/** Generate pre-signed URL to perform static storage operations */
|
|
292
|
+
generateSignedUrl(params: RequestParams<{
|
|
293
|
+
companyId: string;
|
|
294
|
+
dataSourceId: string;
|
|
295
|
+
fileName: string;
|
|
296
|
+
purpose: 'upload' | 'download';
|
|
297
|
+
}>): Promise<import("../types").Response<DataOptimiser.GenerateSignedUrlResponse>>;
|
|
298
|
+
private buildGenerateSignedUrlRequest;
|
|
291
299
|
}
|
|
@@ -522,6 +522,8 @@ class VizzlyQueryEngineApi extends Api_1.Api {
|
|
|
522
522
|
dataSourceId: params.dataSourceId,
|
|
523
523
|
filter: params.filter,
|
|
524
524
|
previousWorkflowResults: params.previousWorkflowResults,
|
|
525
|
+
internalCompanyConnection: params.internalCompanyConnection,
|
|
526
|
+
externalSnowflakeConnection: params.externalSnowflakeConnection,
|
|
525
527
|
instructions: params.instructions,
|
|
526
528
|
fullTreeFields: params.fullTreeFields
|
|
527
529
|
},
|
|
@@ -671,5 +673,25 @@ class VizzlyQueryEngineApi extends Api_1.Api {
|
|
|
671
673
|
acceptedAuthParams: ['queryEngineApiKey'],
|
|
672
674
|
};
|
|
673
675
|
}
|
|
676
|
+
/** Generate pre-signed URL to perform static storage operations */
|
|
677
|
+
generateSignedUrl(params) {
|
|
678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
679
|
+
return yield this.execute(this.buildGenerateSignedUrlRequest(params));
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
buildGenerateSignedUrlRequest(params) {
|
|
683
|
+
return {
|
|
684
|
+
path: Path_1.Path.buildPath(`/api/v1/data-optimiser/signed-url`, ''),
|
|
685
|
+
method: 'post',
|
|
686
|
+
abortSignal: params.abortSignal,
|
|
687
|
+
body: {
|
|
688
|
+
company: { id: params.companyId },
|
|
689
|
+
dataSourceId: params.dataSourceId,
|
|
690
|
+
fileName: params.fileName,
|
|
691
|
+
purpose: params.purpose,
|
|
692
|
+
},
|
|
693
|
+
acceptedAuthParams: ['queryEngineApiKey'],
|
|
694
|
+
};
|
|
695
|
+
}
|
|
674
696
|
}
|
|
675
697
|
exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
|
package/dist/types.d.ts
CHANGED
|
@@ -579,6 +579,8 @@ export declare namespace DataOptimiser {
|
|
|
579
579
|
dataSourceId: string;
|
|
580
580
|
fullTreeFields: DataOptimiser.DataSourceFields;
|
|
581
581
|
filter: DataOptimiser.TreePartInstruction['filter'];
|
|
582
|
+
internalCompanyConnection: DataOptimiser.QueryEngineConnection;
|
|
583
|
+
externalSnowflakeConnection: DataOptimiser.QueryEngineConnection;
|
|
582
584
|
instructions: DataOptimiser.TreePartInstruction['columnInstructions'];
|
|
583
585
|
previousWorkflowResults: Partial<DataOptimiser.IngestTreePartExecuteResponse['workflowResults']>;
|
|
584
586
|
};
|
|
@@ -616,5 +618,12 @@ export declare namespace DataOptimiser {
|
|
|
616
618
|
destinationAddress: string[];
|
|
617
619
|
}>;
|
|
618
620
|
}>;
|
|
621
|
+
export type GenerateSignedUrlResponse = {
|
|
622
|
+
url: string;
|
|
623
|
+
requiredHeaders: {
|
|
624
|
+
[key: string]: string;
|
|
625
|
+
};
|
|
626
|
+
method: 'GET' | 'PUT';
|
|
627
|
+
};
|
|
619
628
|
export {};
|
|
620
629
|
}
|