fusio-sdk 5.1.13 → 5.1.15

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/index.cjs CHANGED
@@ -2076,7 +2076,7 @@ var BackendLogTag = class extends import_sdkgen_client32.TagAbstract {
2076
2076
  * @throws {CommonMessageException}
2077
2077
  * @throws {ClientException}
2078
2078
  */
2079
- async getAll(startIndex, count, search, from, to, routeId, appId, userId, ip, userAgent, method, path, header, body) {
2079
+ async getAll(startIndex, count, search, from, to, operationId, appId, userId, ip, userAgent, method, path, header, body) {
2080
2080
  const url = this.parser.url("/backend/log", {});
2081
2081
  let request = {
2082
2082
  url,
@@ -2088,7 +2088,7 @@ var BackendLogTag = class extends import_sdkgen_client32.TagAbstract {
2088
2088
  "search": search,
2089
2089
  "from": from,
2090
2090
  "to": to,
2091
- "routeId": routeId,
2091
+ "operationId": operationId,
2092
2092
  "appId": appId,
2093
2093
  "userId": userId,
2094
2094
  "ip": ip,
@@ -5785,6 +5785,29 @@ var ConsumerScopeTag = class extends import_sdkgen_client90.TagAbstract {
5785
5785
  }
5786
5786
  throw new import_sdkgen_client91.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5787
5787
  }
5788
+ /**
5789
+ * @returns {Promise<ConsumerScopeCategories>}
5790
+ * @throws {CommonMessageException}
5791
+ * @throws {ClientException}
5792
+ */
5793
+ async getCategories() {
5794
+ const url = this.parser.url("/consumer/scope/categories", {});
5795
+ let request = {
5796
+ url,
5797
+ method: "GET",
5798
+ headers: {},
5799
+ params: this.parser.query({}, [])
5800
+ };
5801
+ const response = await this.httpClient.request(request);
5802
+ if (response.ok) {
5803
+ return await response.json();
5804
+ }
5805
+ const statusCode = response.status;
5806
+ if (statusCode >= 0 && statusCode <= 999) {
5807
+ throw new CommonMessageException(await response.json());
5808
+ }
5809
+ throw new import_sdkgen_client91.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5810
+ }
5788
5811
  };
5789
5812
 
5790
5813
  // src/ConsumerTokenTag.ts