@vizzly/api-client 0.0.65 → 0.0.67

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.
@@ -134,19 +134,8 @@ export declare class VizzlyQueryEngineApi extends Api {
134
134
  columnName: string;
135
135
  function: string;
136
136
  }>;
137
- }>): Promise<import("../types").Response<DataOptimiser.ExecuteResponse<{
138
- setup_export_data_integration: DataOptimiser.ActionResult<{}>;
139
- ingest_to_s3: DataOptimiser.ActionResult<{
140
- toBucket: string;
141
- toPath: string;
142
- fromSnowflakeTableAddress: string[];
143
- executedInSnowflakeSessionId: string;
144
- }>;
145
- ingest_s3_storage_to_snowflake: DataOptimiser.ActionResult<{
146
- destinationAddress: string[];
147
- executedInSnowflakeSessionId: string;
148
- }>;
149
- }>>>;
137
+ previousWorkflowResults: Partial<DataOptimiser.IngestExecuteResponse['workflowResults']>;
138
+ }>): Promise<import("../types").Response<DataOptimiser.IngestExecuteResponse>>;
150
139
  /** Get the status of a call to ingest data for a data source. */
151
140
  getIngestDatasourceStatus(params: RequestParams<{
152
141
  companyId: string;
@@ -158,6 +147,7 @@ export declare class VizzlyQueryEngineApi extends Api {
158
147
  columnName: string;
159
148
  function: string;
160
149
  }>;
150
+ previousWorkflowResults: Partial<DataOptimiser.IngestExecuteResponse['workflowResults']>;
161
151
  }>): Promise<import("../types").Response<DataOptimiser.StatusResponse<{
162
152
  setup_export_data_integration: DataOptimiser.ActionStatus<{}>;
163
153
  ingest_to_s3: DataOptimiser.ActionStatus<{
@@ -181,9 +171,10 @@ export declare class VizzlyQueryEngineApi extends Api {
181
171
  cascadingInstructions: DataOptimiser.CascadingInstructions;
182
172
  internalCompanyConnection: DataOptimiser.QueryEngineConnection;
183
173
  primaryDateFieldId?: string | undefined;
174
+ previousWorkflowResults: Partial<DataOptimiser.CreateSnapshotExecuteResponse['workflowResults']>;
184
175
  }>): Promise<import("../types").Response<DataOptimiser.StatusResponse<{
185
176
  create_snapshot: DataOptimiser.ActionStatus<{
186
- executedInSnowflakeSessionId: string;
177
+ snapshotDataSourceFields: DataOptimiser.DataSourceFields;
187
178
  }>;
188
179
  }>>>;
189
180
  /** Send request to create a snapshot */
@@ -195,11 +186,8 @@ export declare class VizzlyQueryEngineApi extends Api {
195
186
  cascadingInstructions: DataOptimiser.CascadingInstructions;
196
187
  internalCompanyConnection: DataOptimiser.QueryEngineConnection;
197
188
  primaryDateFieldId?: string | undefined;
198
- }>): Promise<import("../types").Response<DataOptimiser.ExecuteResponse<{
199
- create_snapshot: DataOptimiser.ActionResult<{
200
- snapshotFields: DataOptimiser.DataSourceFields;
201
- }>;
202
- }>>>;
189
+ previousWorkflowResults: Partial<DataOptimiser.CreateSnapshotExecuteResponse['workflowResults']>;
190
+ }>): Promise<import("../types").Response<DataOptimiser.CreateSnapshotExecuteResponse>>;
203
191
  private buildCreateSnapshotRequest;
204
192
  createSubsnap(params: RequestParams<{
205
193
  companyId: string;
@@ -488,7 +488,8 @@ class VizzlyQueryEngineApi extends Api_1.Api {
488
488
  ingestFields: params.ingestFields,
489
489
  internalCompanyConnection: params.internalCompanyConnection,
490
490
  externalSnowflakeConnection: params.externalSnowflakeConnection,
491
- transformations: params.transformations
491
+ transformations: params.transformations,
492
+ previousWorkflowResults: params.previousWorkflowResults
492
493
  },
493
494
  acceptedAuthParams: ['queryEngineApiKey'],
494
495
  };
@@ -519,6 +520,7 @@ class VizzlyQueryEngineApi extends Api_1.Api {
519
520
  cascadingInstructions: params.cascadingInstructions,
520
521
  primaryDateFieldId: params.primaryDateFieldId,
521
522
  internalCompanyConnection: params.internalCompanyConnection,
523
+ previousWorkflowResults: params.previousWorkflowResults
522
524
  },
523
525
  acceptedAuthParams: ['queryEngineApiKey'],
524
526
  };
package/dist/types.d.ts CHANGED
@@ -533,10 +533,29 @@ export declare namespace DataOptimiser {
533
533
  content: any;
534
534
  };
535
535
  }> = {
536
- actionResults: WorkflowResult;
536
+ workflowResults: WorkflowResult;
537
537
  };
538
538
  type QueryEngineConnection = {
539
539
  encryptedCredentials: string;
540
540
  unencryptedCredentials?: Partial<SnowflakeConnection>;
541
541
  };
542
+ type IngestExecuteResponse = ExecuteResponse<{
543
+ setup_export_data_integration: DataOptimiser.ActionResult<{}>;
544
+ ingest_to_s3: DataOptimiser.ActionResult<{
545
+ toBucket: string;
546
+ toPath: string;
547
+ fromSnowflakeTableAddress: string[];
548
+ executedInSnowflakeSessionId: string;
549
+ }>;
550
+ ingest_s3_storage_to_snowflake: DataOptimiser.ActionResult<{
551
+ destinationAddress: string[];
552
+ executedInSnowflakeSessionId: string;
553
+ }>;
554
+ }>;
555
+ type CreateSnapshotExecuteResponse = DataOptimiser.ExecuteResponse<{
556
+ create_snapshot: DataOptimiser.ActionResult<{
557
+ executedInSnowflakeSessionId: string;
558
+ snapshotFields: DataOptimiser.DataSourceFields;
559
+ }>;
560
+ }>;
542
561
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",