@vizzly/api-client 0.0.88 → 0.0.89

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.
@@ -340,4 +340,12 @@ export declare class VizzlyQueryEngineApi extends Api {
340
340
  companyId: string;
341
341
  }>): Promise<import("../types").Response<{}>>;
342
342
  private buildEnableBucketCorsRequest;
343
+ /** Create a new warehouse of a given size */
344
+ createWarehouse(params: RequestParams<{
345
+ companyId: string;
346
+ warehouseSize: string;
347
+ }>): Promise<import("../types").Response<{
348
+ warehouseName: string;
349
+ }>>;
350
+ private buildCreateWarehouseRequest;
343
351
  }
@@ -789,5 +789,23 @@ class VizzlyQueryEngineApi extends Api_1.Api {
789
789
  acceptedAuthParams: ['queryEngineApiKey'],
790
790
  };
791
791
  }
792
+ /** Create a new warehouse of a given size */
793
+ createWarehouse(params) {
794
+ return __awaiter(this, void 0, void 0, function* () {
795
+ return yield this.execute(this.buildCreateWarehouseRequest(params));
796
+ });
797
+ }
798
+ buildCreateWarehouseRequest(params) {
799
+ return {
800
+ path: Path_1.Path.buildPath(`/api/v1/data-optimiser/warehouse`, ''),
801
+ method: 'post',
802
+ abortSignal: params.abortSignal,
803
+ body: {
804
+ company: { id: params.companyId },
805
+ warehouseSize: params.warehouseSize
806
+ },
807
+ acceptedAuthParams: ['queryEngineApiKey'],
808
+ };
809
+ }
792
810
  }
793
811
  exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",