@vizzly/api-client 0.0.82 → 0.0.84

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.
@@ -299,4 +299,14 @@ export declare class VizzlyQueryEngineApi extends Api {
299
299
  dataSourceId: string;
300
300
  }>): Promise<import("../types").Response<DataOptimiser.GetTableAddressesResponse>>;
301
301
  private buildGetTableAddressesRequest;
302
+ /** Enable malware scanning for a company's bucket */
303
+ enableMalwareScan(params: RequestParams<{
304
+ companyId: string;
305
+ }>): Promise<import("../types").Response<{}>>;
306
+ private buildEnableMalwareScanRequest;
307
+ /** Put bucket cors for a company's bucket */
308
+ enableBucketCors(params: RequestParams<{
309
+ companyId: string;
310
+ }>): Promise<import("../types").Response<{}>>;
311
+ private buildEnableBucketCorsRequest;
302
312
  }
@@ -710,5 +710,39 @@ class VizzlyQueryEngineApi extends Api_1.Api {
710
710
  acceptedAuthParams: ['queryEngineApiKey'],
711
711
  };
712
712
  }
713
+ /** Enable malware scanning for a company's bucket */
714
+ enableMalwareScan(params) {
715
+ return __awaiter(this, void 0, void 0, function* () {
716
+ return yield this.execute(this.buildEnableMalwareScanRequest(params));
717
+ });
718
+ }
719
+ buildEnableMalwareScanRequest(params) {
720
+ return {
721
+ path: Path_1.Path.buildPath(`/api/v1/data-optimiser/malware-scan`, ''),
722
+ method: 'post',
723
+ abortSignal: params.abortSignal,
724
+ body: {
725
+ company: { id: params.companyId },
726
+ },
727
+ acceptedAuthParams: ['queryEngineApiKey'],
728
+ };
729
+ }
730
+ /** Put bucket cors for a company's bucket */
731
+ enableBucketCors(params) {
732
+ return __awaiter(this, void 0, void 0, function* () {
733
+ return yield this.execute(this.buildEnableBucketCorsRequest(params));
734
+ });
735
+ }
736
+ buildEnableBucketCorsRequest(params) {
737
+ return {
738
+ path: Path_1.Path.buildPath(`/api/v1/data-optimiser/bucket-cors`, ''),
739
+ method: 'post',
740
+ abortSignal: params.abortSignal,
741
+ body: {
742
+ company: { id: params.companyId },
743
+ },
744
+ acceptedAuthParams: ['queryEngineApiKey'],
745
+ };
746
+ }
713
747
  }
714
748
  exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
package/dist/types.d.ts CHANGED
@@ -610,7 +610,7 @@ export declare namespace DataOptimiser {
610
610
  }>;
611
611
  export type IngestFromUploadExecuteResponse = DataOptimiser.ExecuteResponse<{
612
612
  move_table_from_upload_to_ingest: DataOptimiser.ActionResult<{
613
- success: boolean;
613
+ executedInSnowflakeSessionId: string;
614
614
  }>;
615
615
  }>;
616
616
  export type CreateUploadTableExecuteResponse = DataOptimiser.ExecuteResponse<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",