@centia-io/sdk 0.0.57 → 0.0.58
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.
- package/dist/centia-io-sdk.cjs +5 -2
- package/dist/centia-io-sdk.d.cts +5 -2
- package/dist/centia-io-sdk.d.cts.map +1 -1
- package/dist/centia-io-sdk.d.ts +5 -2
- package/dist/centia-io-sdk.d.ts.map +1 -1
- package/dist/centia-io-sdk.js +5 -2
- package/dist/centia-io-sdk.js.map +1 -1
- package/dist/centia-io-sdk.umd.js +5 -2
- package/package.json +1 -1
|
@@ -2184,12 +2184,15 @@
|
|
|
2184
2184
|
basePath(schema) {
|
|
2185
2185
|
return `api/v4/schemas/${encodeURIComponent(schema)}/tables`;
|
|
2186
2186
|
}
|
|
2187
|
-
async getTable(schema, table) {
|
|
2187
|
+
async getTable(schema, table, opts) {
|
|
2188
2188
|
var _this = this;
|
|
2189
2189
|
const path = table ? `${_this.basePath(schema)}/${encodeURIComponent(table)}` : _this.basePath(schema);
|
|
2190
|
+
const query = {};
|
|
2191
|
+
if (opts === null || opts === void 0 ? void 0 : opts.namesOnly) query.namesOnly = "true";
|
|
2190
2192
|
return _this.client.request({
|
|
2191
2193
|
path,
|
|
2192
|
-
method: "GET"
|
|
2194
|
+
method: "GET",
|
|
2195
|
+
query: Object.keys(query).length > 0 ? query : void 0
|
|
2193
2196
|
});
|
|
2194
2197
|
}
|
|
2195
2198
|
async postTable(schema, body) {
|