@vizzly/api-client 0.0.51 → 0.0.52
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.
|
@@ -94,4 +94,21 @@ export declare class VizzlyQueryEngineApi extends Api {
|
|
|
94
94
|
buildUpdateQueryEngineUserRequest(params: RequestParams<nVizzlyQueryEngine.UpdateQueryEngineUserParams>): Request<{}>;
|
|
95
95
|
uploadDataToVizzlyCloud(params: RequestParams<nVizzlyQueryEngine.UploadDataToVizzlyCloudParams>): Promise<import("../types").Response<unknown>>;
|
|
96
96
|
buildUploadDataToVizzlyCloudRequest(params: RequestParams<nVizzlyQueryEngine.UploadDataToVizzlyCloudParams>): Request<{}>;
|
|
97
|
+
createCompanyInfrastructure(params: RequestParams<{
|
|
98
|
+
companyId: string;
|
|
99
|
+
}>): Promise<import("../types").Response<{
|
|
100
|
+
aws: {
|
|
101
|
+
bucket: string;
|
|
102
|
+
role: string;
|
|
103
|
+
};
|
|
104
|
+
connection: {
|
|
105
|
+
account: string;
|
|
106
|
+
database: string;
|
|
107
|
+
privateKey: string;
|
|
108
|
+
role: string;
|
|
109
|
+
warehouse: string;
|
|
110
|
+
username: string;
|
|
111
|
+
};
|
|
112
|
+
}>>;
|
|
113
|
+
private buildCreateCompanyInfrastructureRequest;
|
|
97
114
|
}
|
|
@@ -435,5 +435,21 @@ class VizzlyQueryEngineApi extends Api_1.Api {
|
|
|
435
435
|
},
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
+
createCompanyInfrastructure(params) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
return yield this.execute(this.buildCreateCompanyInfrastructureRequest(params));
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
buildCreateCompanyInfrastructureRequest(params) {
|
|
444
|
+
return {
|
|
445
|
+
path: `/api/v1/data-optimiser/company`,
|
|
446
|
+
method: 'post',
|
|
447
|
+
abortSignal: params.abortSignal,
|
|
448
|
+
body: {
|
|
449
|
+
company: { id: params.companyId },
|
|
450
|
+
},
|
|
451
|
+
acceptedAuthParams: ['queryEngineApiKey']
|
|
452
|
+
};
|
|
453
|
+
}
|
|
438
454
|
}
|
|
439
455
|
exports.VizzlyQueryEngineApi = VizzlyQueryEngineApi;
|