@vizzly/api-client 0.0.79 → 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.
@@ -271,8 +271,6 @@ export declare class VizzlyQueryEngineApi extends Api {
271
271
  createUploadTable(params: RequestParams<{
272
272
  companyId: string;
273
273
  dataSourceId: string;
274
- locationName: string;
275
- folderPath: string;
276
274
  fileName: string;
277
275
  previousWorkflowResults: Partial<DataOptimiser.CreateUploadTableExecuteResponse['workflowResults']>;
278
276
  }>): Promise<import("../types").Response<DataOptimiser.CreateUploadTableExecuteResponse>>;
@@ -280,8 +278,6 @@ export declare class VizzlyQueryEngineApi extends Api {
280
278
  getCreateUploadTableStatus(params: RequestParams<{
281
279
  companyId: string;
282
280
  dataSourceId: string;
283
- locationName: string;
284
- folderPath: string;
285
281
  fileName: string;
286
282
  previousWorkflowResults: Partial<DataOptimiser.CreateUploadTableExecuteResponse['workflowResults']>;
287
283
  }>): Promise<import("../types").Response<DataOptimiser.StatusResponse<{
@@ -296,4 +292,10 @@ export declare class VizzlyQueryEngineApi extends Api {
296
292
  purpose: 'upload' | 'download';
297
293
  }>): Promise<import("../types").Response<DataOptimiser.GenerateSignedUrlResponse>>;
298
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;
299
301
  }
@@ -122,7 +122,7 @@ class VizzlyQueryEngineApi extends Api_1.Api {
122
122
  abortSignal: params.abortSignal,
123
123
  body: {
124
124
  company: { id: params.companyId },
125
- fullTreeDataSourceId: params.fullTreeDataSourceId
125
+ fullTreeDataSourceId: params.fullTreeDataSourceId,
126
126
  },
127
127
  acceptedAuthParams: ['queryEngineApiKey'],
128
128
  };
@@ -525,7 +525,7 @@ class VizzlyQueryEngineApi extends Api_1.Api {
525
525
  internalCompanyConnection: params.internalCompanyConnection,
526
526
  externalSnowflakeConnection: params.externalSnowflakeConnection,
527
527
  instructions: params.instructions,
528
- fullTreeFields: params.fullTreeFields
528
+ fullTreeFields: params.fullTreeFields,
529
529
  },
530
530
  acceptedAuthParams: ['queryEngineApiKey'],
531
531
  };
@@ -665,8 +665,6 @@ class VizzlyQueryEngineApi extends Api_1.Api {
665
665
  body: {
666
666
  company: { id: params.companyId },
667
667
  dataSourceId: params.dataSourceId,
668
- locationName: params.locationName,
669
- folderPath: params.folderPath,
670
668
  fileName: params.fileName,
671
669
  previousWorkflowResults: params.previousWorkflowResults,
672
670
  },
@@ -693,5 +691,23 @@ class VizzlyQueryEngineApi extends Api_1.Api {
693
691
  acceptedAuthParams: ['queryEngineApiKey'],
694
692
  };
695
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
+ }
696
712
  }
697
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",