@centia-io/sdk 0.0.48 → 0.0.49

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.
@@ -624,6 +624,21 @@
624
624
  }
625
625
  };
626
626
 
627
+ //#endregion
628
+ //#region src/SqlNoToken.ts
629
+ var SqlNoToken = class {
630
+ constructor(client) {
631
+ this.client = client;
632
+ }
633
+ async postSqlNoToken(database, body) {
634
+ return this.client.request({
635
+ path: `api/v4/prosql/database/${encodeURIComponent(database)}`,
636
+ method: "POST",
637
+ body
638
+ });
639
+ }
640
+ };
641
+
627
642
  //#endregion
628
643
  //#region src/Rpc.ts
629
644
  var Rpc = class {
@@ -1996,11 +2011,12 @@
1996
2011
  });
1997
2012
  }
1998
2013
  async patchRule(id, body) {
1999
- return this.client.request({
2014
+ return { location: (await this.client.requestFull({
2000
2015
  path: `api/v4/rules/${encodeURIComponent(id)}`,
2001
2016
  method: "PATCH",
2002
- body
2003
- });
2017
+ body,
2018
+ expectedStatus: 303
2019
+ })).getHeader("Location") ?? "" };
2004
2020
  }
2005
2021
  async deleteRule(id) {
2006
2022
  await this.client.request({
@@ -2151,21 +2167,6 @@
2151
2167
  }
2152
2168
  };
2153
2169
 
2154
- //#endregion
2155
- //#region src/provisioning/SqlNoToken.ts
2156
- var SqlNoToken = class {
2157
- constructor(client) {
2158
- this.client = client;
2159
- }
2160
- async postSqlNoToken(database, body) {
2161
- return this.client.request({
2162
- path: `api/v4/sql/database/${encodeURIComponent(database)}`,
2163
- method: "POST",
2164
- body
2165
- });
2166
- }
2167
- };
2168
-
2169
2170
  //#endregion
2170
2171
  //#region src/admin.ts
2171
2172
  /**
@@ -2204,8 +2205,7 @@
2204
2205
  metadata: new MetadataWrite(http),
2205
2206
  typeScript: new TypeScriptInterfaces(http),
2206
2207
  fileImport: new FileImport(http),
2207
- gitCommit: new GitCommit(http),
2208
- sqlNoToken: new SqlNoToken(http)
2208
+ gitCommit: new GitCommit(http)
2209
2209
  }
2210
2210
  };
2211
2211
  }
@@ -2229,6 +2229,7 @@ exports.PasswordFlow = PasswordFlow;
2229
2229
  exports.Rpc = Rpc;
2230
2230
  exports.SignUp = SignUp;
2231
2231
  exports.Sql = Sql;
2232
+ exports.SqlNoToken = SqlNoToken;
2232
2233
  exports.Stats = Stats;
2233
2234
  exports.Status = Status;
2234
2235
  exports.Tables = Tables;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centia-io/sdk",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "Centia-io TypeScript SDK",
5
5
  "author": "Martin Høgh",
6
6
  "license": "MIT",