@stack-spot/portal-network 0.178.0 → 0.179.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.179.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.178.0...portal-network@v0.179.0) (2025-09-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * exposed openapi request ([#1606](https://github.com/stack-spot/portal-commons/issues/1606)) ([e917526](https://github.com/stack-spot/portal-commons/commit/e91752611f5254ebb7e25ff1b654a6de45d87bed))
9
+
3
10
  ## [0.178.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.177.3...portal-network@v0.178.0) (2025-09-23)
4
11
 
5
12
 
@@ -36,6 +36,15 @@ declare class ApiManagementClient extends ReactQueryNetworkClient {
36
36
  };
37
37
  queryParams: import("../api/apiManagement.js").RequestParams;
38
38
  }, object>;
39
+ /**
40
+ * Gets the openAPI of one version
41
+ */
42
+ getApiVersionDocs: import("../network/types.js").QueryObject<{
43
+ schemaId: string;
44
+ schemaVersionId: string;
45
+ entryId: string;
46
+ name?: string | undefined;
47
+ }, object>;
39
48
  }
40
49
  export declare const apiManagementClient: ApiManagementClient;
41
50
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"api-management.d.ts","sourceRoot":"","sources":["../../src/client/api-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,OAAO;;;;;;;eAAyB;IAEhC;;OAEG;IACH,UAAU;;;;;eAA2B;IAErC;;OAEG;IACH,cAAc;;;;;;;;eAA4B;CAE3C;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
1
+ {"version":3,"file":"api-management.d.ts","sourceRoot":"","sources":["../../src/client/api-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,OAAO;;;;;;;eAAyB;IAEhC;;OAEG;IACH,UAAU;;;;;eAA2B;IAErC;;OAEG;IACH,cAAc;;;;;;;;eAA4B;IAE1C;;OAEG;IACH,iBAAiB;;;;;eAAsC;CAExD;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
@@ -1,8 +1,8 @@
1
- import { defaults, getEntries, getEntryById, getSubEntries } from '../api/apiManagement.js';
1
+ import { getApiAddresses } from '../api-addresses.js';
2
+ import { defaults, downloadObjectArtifacts, getEntries, getEntryById, getSubEntries } from '../api/apiManagement.js';
2
3
  import { DefaultAPIError } from '../error/DefaultAPIError.js';
3
4
  import { actionDictionary } from '../error/dictionary/action.js';
4
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
5
- import { getApiAddresses } from '../api-addresses.js';
6
6
  class ApiManagementClient extends ReactQueryNetworkClient {
7
7
  constructor() {
8
8
  super(getApiAddresses().apiManagement.url, defaults);
@@ -33,6 +33,15 @@ class ApiManagementClient extends ReactQueryNetworkClient {
33
33
  writable: true,
34
34
  value: this.query(getSubEntries)
35
35
  });
36
+ /**
37
+ * Gets the openAPI of one version
38
+ */
39
+ Object.defineProperty(this, "getApiVersionDocs", {
40
+ enumerable: true,
41
+ configurable: true,
42
+ writable: true,
43
+ value: this.query(downloadObjectArtifacts)
44
+ });
36
45
  }
37
46
  buildStackSpotError(error) {
38
47
  return new DefaultAPIError(error.data, error.status, actionDictionary, error.headers);
@@ -1 +1 @@
1
- {"version":3,"file":"api-management.js","sourceRoot":"","sources":["../../src/client/api-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,mBAAoB,SAAQ,uBAAuB;IACvD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOtD;;WAEG;QACH;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;WAAA;QAEhC;;WAEG;QACH;;;;mBAAa,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;WAAA;QAErC;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;WAAA;IAnB1C,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACvF,CAAC;CAiBF;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"api-management.js","sourceRoot":"","sources":["../../src/client/api-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjH,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,MAAM,mBAAoB,SAAQ,uBAAuB;IACvD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOtD;;WAEG;QACH;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;WAAA;QAEhC;;WAEG;QACH;;;;mBAAa,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;WAAA;QAErC;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;WAAA;QAE1C;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC;WAAA;IAxBvD,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACvF,CAAC;CAsBF;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-network",
3
- "version": "0.178.0",
3
+ "version": "0.179.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,10 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { defaults, getEntries, getEntryById, getSubEntries } from '../api/apiManagement'
2
+ import { getApiAddresses } from '../api-addresses'
3
+ import { defaults, downloadObjectArtifacts, getEntries, getEntryById, getSubEntries } from '../api/apiManagement'
3
4
  import { DefaultAPIError } from '../error/DefaultAPIError'
4
5
  import { actionDictionary } from '../error/dictionary/action'
5
6
  import { StackspotAPIError } from '../error/StackspotAPIError'
6
7
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
7
- import { getApiAddresses } from '../api-addresses'
8
8
 
9
9
  class ApiManagementClient extends ReactQueryNetworkClient {
10
10
  constructor() {
@@ -30,6 +30,11 @@ class ApiManagementClient extends ReactQueryNetworkClient {
30
30
  */
31
31
  getApiVersions = this.query(getSubEntries)
32
32
 
33
+ /**
34
+ * Gets the openAPI of one version
35
+ */
36
+ getApiVersionDocs = this.query(downloadObjectArtifacts)
37
+
33
38
  }
34
39
 
35
40
  export const apiManagementClient = new ApiManagementClient()