@centia-io/sdk 0.1.0 → 0.1.2
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 +9 -5
- package/dist/centia-io-sdk.d.cts +7 -2
- package/dist/centia-io-sdk.d.cts.map +1 -1
- package/dist/centia-io-sdk.d.ts +7 -2
- package/dist/centia-io-sdk.d.ts.map +1 -1
- package/dist/centia-io-sdk.js +9 -5
- package/dist/centia-io-sdk.js.map +1 -1
- package/dist/centia-io-sdk.umd.js +9 -5
- package/package.json +1 -1
|
@@ -827,10 +827,11 @@
|
|
|
827
827
|
constructor(client) {
|
|
828
828
|
this.client = client !== null && client !== void 0 ? client : getLegacyClient();
|
|
829
829
|
}
|
|
830
|
-
async query(rel) {
|
|
830
|
+
async query(rel, options) {
|
|
831
831
|
return this.client.request({
|
|
832
832
|
path: `api/v4/meta/${rel}`,
|
|
833
|
-
method: "GET"
|
|
833
|
+
method: "GET",
|
|
834
|
+
query: (options === null || options === void 0 ? void 0 : options.noRestriction) !== void 0 ? { noRestriction: String(options.noRestriction) } : void 0
|
|
834
835
|
});
|
|
835
836
|
}
|
|
836
837
|
};
|
|
@@ -2369,11 +2370,14 @@
|
|
|
2369
2370
|
});
|
|
2370
2371
|
}
|
|
2371
2372
|
async patchPrivileges(schema, table, body) {
|
|
2372
|
-
|
|
2373
|
+
var _this2 = this;
|
|
2374
|
+
var _res$getHeader;
|
|
2375
|
+
return { location: (_res$getHeader = (await _this2.client.requestFull({
|
|
2373
2376
|
path: `api/v4/schemas/${encodeURIComponent(schema)}/tables/${encodeURIComponent(table)}/privileges`,
|
|
2374
2377
|
method: "PATCH",
|
|
2375
|
-
body
|
|
2376
|
-
|
|
2378
|
+
body,
|
|
2379
|
+
expectedStatus: 303
|
|
2380
|
+
})).getHeader("Location")) !== null && _res$getHeader !== void 0 ? _res$getHeader : "" };
|
|
2377
2381
|
}
|
|
2378
2382
|
};
|
|
2379
2383
|
|