@vizzly/api-client 0.0.81 → 0.0.83

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,7 @@ 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;
295
296
  /** Build all possible table addresses for a data source */
@@ -298,4 +299,14 @@ export declare class VizzlyQueryEngineApi extends Api {
298
299
  dataSourceId: string;
299
300
  }>): Promise<import("../types").Response<DataOptimiser.GetTableAddressesResponse>>;
300
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;
301
312
  }
@@ -687,6 +687,7 @@ 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
690
691
  },
691
692
  acceptedAuthParams: ['queryEngineApiKey'],
692
693
  };
@@ -709,5 +710,39 @@ class VizzlyQueryEngineApi extends Api_1.Api {
709
710
  acceptedAuthParams: ['queryEngineApiKey'],
710
711
  };
711
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
+ }
712
747
  }
713
748
  exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",