@centia-io/sdk 0.0.47 → 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.
- package/dist/centia-io-sdk.cjs +21 -20
- package/dist/centia-io-sdk.d.cts +31 -29
- package/dist/centia-io-sdk.d.cts.map +1 -1
- package/dist/centia-io-sdk.d.ts +31 -29
- package/dist/centia-io-sdk.d.ts.map +1 -1
- package/dist/centia-io-sdk.js +21 -21
- package/dist/centia-io-sdk.js.map +1 -1
- package/dist/centia-io-sdk.umd.js +21 -20
- package/package.json +1 -1
package/dist/centia-io-sdk.js
CHANGED
|
@@ -618,6 +618,21 @@ var Sql = class {
|
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
620
|
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/SqlNoToken.ts
|
|
623
|
+
var SqlNoToken = class {
|
|
624
|
+
constructor(client) {
|
|
625
|
+
this.client = client;
|
|
626
|
+
}
|
|
627
|
+
async postSqlNoToken(database, body) {
|
|
628
|
+
return this.client.request({
|
|
629
|
+
path: `api/v4/prosql/database/${encodeURIComponent(database)}`,
|
|
630
|
+
method: "POST",
|
|
631
|
+
body
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
|
|
621
636
|
//#endregion
|
|
622
637
|
//#region src/Rpc.ts
|
|
623
638
|
var Rpc = class {
|
|
@@ -1990,11 +2005,12 @@ var Rules = class {
|
|
|
1990
2005
|
});
|
|
1991
2006
|
}
|
|
1992
2007
|
async patchRule(id, body) {
|
|
1993
|
-
return this.client.
|
|
2008
|
+
return { location: (await this.client.requestFull({
|
|
1994
2009
|
path: `api/v4/rules/${encodeURIComponent(id)}`,
|
|
1995
2010
|
method: "PATCH",
|
|
1996
|
-
body
|
|
1997
|
-
|
|
2011
|
+
body,
|
|
2012
|
+
expectedStatus: 303
|
|
2013
|
+
})).getHeader("Location") ?? "" };
|
|
1998
2014
|
}
|
|
1999
2015
|
async deleteRule(id) {
|
|
2000
2016
|
await this.client.request({
|
|
@@ -2145,21 +2161,6 @@ var GitCommit = class {
|
|
|
2145
2161
|
}
|
|
2146
2162
|
};
|
|
2147
2163
|
|
|
2148
|
-
//#endregion
|
|
2149
|
-
//#region src/provisioning/SqlNoToken.ts
|
|
2150
|
-
var SqlNoToken = class {
|
|
2151
|
-
constructor(client) {
|
|
2152
|
-
this.client = client;
|
|
2153
|
-
}
|
|
2154
|
-
async postSqlNoToken(database, body) {
|
|
2155
|
-
return this.client.request({
|
|
2156
|
-
path: `api/v4/sql/database/${encodeURIComponent(database)}`,
|
|
2157
|
-
method: "POST",
|
|
2158
|
-
body
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
};
|
|
2162
|
-
|
|
2163
2164
|
//#endregion
|
|
2164
2165
|
//#region src/admin.ts
|
|
2165
2166
|
/**
|
|
@@ -2198,8 +2199,7 @@ function createCentiaAdminClient(config) {
|
|
|
2198
2199
|
metadata: new MetadataWrite(http),
|
|
2199
2200
|
typeScript: new TypeScriptInterfaces(http),
|
|
2200
2201
|
fileImport: new FileImport(http),
|
|
2201
|
-
gitCommit: new GitCommit(http)
|
|
2202
|
-
sqlNoToken: new SqlNoToken(http)
|
|
2202
|
+
gitCommit: new GitCommit(http)
|
|
2203
2203
|
}
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
@@ -2214,5 +2214,5 @@ function createCentiaAdminClient(config) {
|
|
|
2214
2214
|
*/
|
|
2215
2215
|
|
|
2216
2216
|
//#endregion
|
|
2217
|
-
export { CentiaApiError, Claims, CodeFlow, Gql, Meta, PasswordFlow, Rpc, SignUp, Sql, Stats, Status, Tables, Users, Ws, createApi, createCentiaAdminClient, createCentiaClient, createSqlBuilder, isCentiaApiError };
|
|
2217
|
+
export { CentiaApiError, Claims, CodeFlow, Gql, Meta, PasswordFlow, Rpc, SignUp, Sql, SqlNoToken, Stats, Status, Tables, Users, Ws, createApi, createCentiaAdminClient, createCentiaClient, createSqlBuilder, isCentiaApiError };
|
|
2218
2218
|
//# sourceMappingURL=centia-io-sdk.js.map
|