@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.
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centia-io/sdk",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "Centia-io TypeScript SDK",
5
5
  "author": "Martin Høgh",
6
6
  "license": "MIT",