fusio-sdk 7.0.9 → 7.0.10

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
@@ -4941,6 +4941,31 @@ var BackendSpecificationTag = class extends import_sdkgen_client75.TagAbstract {
4941
4941
  }
4942
4942
  throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4943
4943
  }
4944
+ /**
4945
+ * Returns the changelog between your current specification and the last tag
4946
+ *
4947
+ * @returns {Promise<BackendSpecificationChangelog>}
4948
+ * @throws {CommonMessageException}
4949
+ * @throws {ClientException}
4950
+ */
4951
+ async getChangelog() {
4952
+ const url = this.parser.url("/backend/specification/changelog", {});
4953
+ let request = {
4954
+ url,
4955
+ method: "GET",
4956
+ headers: {},
4957
+ params: this.parser.query({}, [])
4958
+ };
4959
+ const response = await this.httpClient.request(request);
4960
+ if (response.ok) {
4961
+ return await response.json();
4962
+ }
4963
+ const statusCode = response.status;
4964
+ if (statusCode >= 0 && statusCode <= 999) {
4965
+ throw new CommonMessageException(await response.json());
4966
+ }
4967
+ throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4968
+ }
4944
4969
  /**
4945
4970
  * Publish the specification
4946
4971
  *
@@ -4969,6 +4994,34 @@ var BackendSpecificationTag = class extends import_sdkgen_client75.TagAbstract {
4969
4994
  }
4970
4995
  throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
4971
4996
  }
4997
+ /**
4998
+ * Creates a new tag of your specification
4999
+ *
5000
+ * @returns {Promise<CommonMessage>}
5001
+ * @throws {CommonMessageException}
5002
+ * @throws {ClientException}
5003
+ */
5004
+ async tag(payload) {
5005
+ const url = this.parser.url("/backend/specification/tag", {});
5006
+ let request = {
5007
+ url,
5008
+ method: "POST",
5009
+ headers: {
5010
+ "Content-Type": "application/json"
5011
+ },
5012
+ params: this.parser.query({}, []),
5013
+ data: payload
5014
+ };
5015
+ const response = await this.httpClient.request(request);
5016
+ if (response.ok) {
5017
+ return await response.json();
5018
+ }
5019
+ const statusCode = response.status;
5020
+ if (statusCode >= 0 && statusCode <= 999) {
5021
+ throw new CommonMessageException(await response.json());
5022
+ }
5023
+ throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
5024
+ }
4972
5025
  };
4973
5026
 
4974
5027
  // src/BackendStatisticTag.ts