@vizzly/api-client 0.0.61 → 0.0.63
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.
|
@@ -127,9 +127,13 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
127
127
|
ingestDatasource(params: RequestParams<{
|
|
128
128
|
companyId: string;
|
|
129
129
|
dataSourceId: string;
|
|
130
|
-
ingestFields: DataOptimiser.
|
|
130
|
+
ingestFields: DataOptimiser.EphemeralDataSourceFields;
|
|
131
131
|
internalCompanyConnection: DataOptimiser.QueryEngineConnection;
|
|
132
132
|
externalSnowflakeConnection: DataOptimiser.QueryEngineConnection;
|
|
133
|
+
transformations: Array<{
|
|
134
|
+
columnName: string;
|
|
135
|
+
function: string;
|
|
136
|
+
}>;
|
|
133
137
|
}>): Promise<import("../types").Response<DataOptimiser.ExecuteResponse<{
|
|
134
138
|
setup_export_data_integration: DataOptimiser.ActionResult<{}>;
|
|
135
139
|
ingest_to_s3: DataOptimiser.ActionResult<{
|
|
@@ -145,9 +149,13 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
145
149
|
getIngestDatasourceStatus(params: RequestParams<{
|
|
146
150
|
companyId: string;
|
|
147
151
|
dataSourceId: string;
|
|
148
|
-
ingestFields: DataOptimiser.
|
|
152
|
+
ingestFields: DataOptimiser.EphemeralDataSourceFields;
|
|
149
153
|
internalCompanyConnection: DataOptimiser.QueryEngineConnection;
|
|
150
154
|
externalSnowflakeConnection: DataOptimiser.QueryEngineConnection;
|
|
155
|
+
transformations: Array<{
|
|
156
|
+
columnName: string;
|
|
157
|
+
function: string;
|
|
158
|
+
}>;
|
|
151
159
|
}>): Promise<import("../types").Response<DataOptimiser.StatusResponse<{
|
|
152
160
|
setup_export_data_integration: DataOptimiser.ActionStatus<{}>;
|
|
153
161
|
ingest_to_s3: DataOptimiser.ActionStatus<{
|
|
@@ -191,4 +199,27 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
191
199
|
}>;
|
|
192
200
|
}>>>;
|
|
193
201
|
private buildCreateSnapshotRequest;
|
|
202
|
+
createSubsnap(params: RequestParams<{
|
|
203
|
+
companyId: string;
|
|
204
|
+
dashboardId: string;
|
|
205
|
+
snapshotDataSourceId: string;
|
|
206
|
+
subsnapDataSourceId: string;
|
|
207
|
+
snapshotFields: DataOptimiser.DataSourceFields;
|
|
208
|
+
}>): Promise<import("../types").Response<DataOptimiser.ExecuteResponse<{
|
|
209
|
+
create_subsnap: DataOptimiser.ActionResult<{
|
|
210
|
+
subsnapFields: DataOptimiser.DataSourceFields;
|
|
211
|
+
}>;
|
|
212
|
+
}>>>;
|
|
213
|
+
getCreateSubsnapStatus(params: RequestParams<{
|
|
214
|
+
companyId: string;
|
|
215
|
+
dashboardId: string;
|
|
216
|
+
snapshotDataSourceId: string;
|
|
217
|
+
subsnapDataSourceId: string;
|
|
218
|
+
snapshotFields: DataOptimiser.DataSourceFields;
|
|
219
|
+
}>): Promise<import("../types").Response<DataOptimiser.StatusResponse<{
|
|
220
|
+
create_subsnap: DataOptimiser.ActionStatus<{
|
|
221
|
+
subsnapDataSourceFields: DataOptimiser.DataSourceFields;
|
|
222
|
+
}>;
|
|
223
|
+
}>>>;
|
|
224
|
+
private buildCreateSubsnapRequest;
|
|
194
225
|
}
|
|
@@ -488,6 +488,7 @@ 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
492
|
},
|
|
492
493
|
acceptedAuthParams: ['queryEngineApiKey'],
|
|
493
494
|
};
|
|
@@ -522,5 +523,31 @@ class VizzlyQueryEngineApi extends Api_1.Api {
|
|
|
522
523
|
acceptedAuthParams: ['queryEngineApiKey'],
|
|
523
524
|
};
|
|
524
525
|
}
|
|
526
|
+
createSubsnap(params) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
return yield this.execute(this.buildCreateSubsnapRequest(params, { statusOnly: false }));
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
getCreateSubsnapStatus(params) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
+
return yield this.execute(this.buildCreateSubsnapRequest(params, { statusOnly: true }));
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
buildCreateSubsnapRequest(params, options) {
|
|
537
|
+
const maybeStatusRoutePath = (options === null || options === void 0 ? void 0 : options.statusOnly) ? '/status' : '';
|
|
538
|
+
return {
|
|
539
|
+
path: Path_1.Path.buildPath(`/api/v1/data-optimiser/subsnap`, maybeStatusRoutePath),
|
|
540
|
+
method: 'post',
|
|
541
|
+
abortSignal: params.abortSignal,
|
|
542
|
+
body: {
|
|
543
|
+
company: { id: params.companyId },
|
|
544
|
+
dashboardId: params.dashboardId,
|
|
545
|
+
snapshotDataSourceId: params.snapshotDataSourceId,
|
|
546
|
+
subsnapDataSourceId: params.subsnapDataSourceId,
|
|
547
|
+
snapshotFields: params.snapshotFields,
|
|
548
|
+
},
|
|
549
|
+
acceptedAuthParams: ['queryEngineApiKey'],
|
|
550
|
+
};
|
|
551
|
+
}
|
|
525
552
|
}
|
|
526
553
|
exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
|