@stack-spot/portal-network 0.52.0 → 0.52.1
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.52.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.52.0...portal-network@v0.52.1) (2024-11-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* cloudPlatform client ([#490](https://github.com/stack-spot/portal-commons/issues/490)) ([cba2450](https://github.com/stack-spot/portal-commons/commit/cba245085abe0a63b98c7b9aa85f612115d9185f))
|
|
9
|
+
|
|
3
10
|
## [0.52.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.51.0...portal-network@v0.52.0) (2024-11-07)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -105,7 +105,15 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
105
105
|
/**
|
|
106
106
|
* Get list of foundations folders or folder by id
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
listFolder: import("../network/types.js").QueryObject<Omit<{
|
|
109
|
+
authorization: string;
|
|
110
|
+
foundationId: string;
|
|
111
|
+
folderId?: string | undefined;
|
|
112
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListFolderResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* Get list of foundations folders or folder by id
|
|
115
|
+
*/
|
|
116
|
+
getFolder: import("../network/types.js").QueryObject<Omit<{
|
|
109
117
|
authorization: string;
|
|
110
118
|
folderId: string;
|
|
111
119
|
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").FolderResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA+B7C,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;IAGlE;;OAEG;IACH,gBAAgB;;;;oGAAyD;IACzE;;OAEG;IACH,WAAW;;+FAAuD;IAClE;;OAEG;IACH,kBAAkB;;;;0GAA8D;IAChF;;OAEG;IACH,0BAA0B;;qGAAwD;IAClF;;OAEG;IACH,qBAAqB;;8FAAsD;IAC3E;;OAEG;IACH,2BAA2B;;oGAA4D;IACvF;;OAEG;IACH,2BAA2B;;oGAA4D;IACvF;;OAEG;IACH,yBAAyB;;iGAA0D;IACnF;;OAEG;IACH,uBAAuB;;;;gGAAqD;IAC5E;;OAEG;IACH,gBAAgB;;;kGAAyD;IACzE;;OAEG;IACH,oBAAoB;;2FAA4D;IAChF;;OAEG;IACH,gBAAgB;;oGAA4D;IAC5E;;OAEG;IACH,iBAAiB;;+FAA6D;IAC9E;;OAEG;IACH,eAAe;;;gGAAwD;IACvE;;OAEG;IACH,UAAU;;sFAAsD;IAChE;;OAEG;IACH,UAAU;;;;8FAAmD;IAC7D;;OAEG;IACH,SAAS;;;0FAAkD;IAC3D;;OAEG;IACH,aAAa,uLAAkD;IAC/D;;OAEG;IACH,gBAAgB;;sFAA4D;IAC5E;;OAEG;IACH,YAAY;;;0FAAwD;IACpE;;OAEG;IACH,YAAY;;;+FAAoD;IAChE;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,SAAS;;;4FAAiD;IAC1D;;OAEG;IACH,UAAU;;;;wFAAsD;CACjE;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { createApplication, createCidr, createDeployment, createDnsZone, createFolder, createFoundation, defaults, getApplication, getApplicationHistory, getDeployment, getDeploymentHealth, getDeploymentLogs, getDeploymentStatus, getFolder, getFoundation, getRepositoryImages, listApplications, listCidr, listDeployments, listDnsZone, listFolder, listFoundations, listRepositories, listRuntimes, providers, } from '../api/cloudPlatform.js';
|
|
1
2
|
import apis from '../apis.json';
|
|
2
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
3
4
|
import { cntDictionary } from '../error/dictionary/cnt.js';
|
|
4
5
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
5
|
-
import { createApplication, createCidr, createDeployment, createDnsZone, createFolder, createFoundation, defaults, getApplication, getApplicationHistory, getDeployment, getDeploymentHealth, getDeploymentLogs, getDeploymentStatus, getFolder, getFoundation, getRepositoryImages, listApplications, listCidr, listDeployments, listDnsZone, listFoundations, listRepositories, listRuntimes, providers, } from '../api/cloudPlatform.js';
|
|
6
6
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
7
7
|
class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
8
8
|
constructor() {
|
|
@@ -145,7 +145,16 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
145
145
|
/**
|
|
146
146
|
* Get list of foundations folders or folder by id
|
|
147
147
|
*/
|
|
148
|
-
Object.defineProperty(this, "
|
|
148
|
+
Object.defineProperty(this, "listFolder", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
configurable: true,
|
|
151
|
+
writable: true,
|
|
152
|
+
value: this.query(removeAuthorizationParam(listFolder))
|
|
153
|
+
});
|
|
154
|
+
/**
|
|
155
|
+
* Get list of foundations folders or folder by id
|
|
156
|
+
*/
|
|
157
|
+
Object.defineProperty(this, "getFolder", {
|
|
149
158
|
enumerable: true,
|
|
150
159
|
configurable: true,
|
|
151
160
|
writable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,SAAS,GACV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE9E,MAAM,mBAAoB,SAAQ,uBAAuB;IACvD;QACE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAMzC;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;WAAA;QACzE;;WAEG;QACH;;;;mBAAc,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;WAAA;QAClE;;WAEG;QACH;;;;mBAAqB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,qBA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AAC,CAAC;WAAA;QAC7D;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;WAAA;QAC3D;;WAEG;QACH;;;;mBAAgB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;WAAA;QAC/D;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;WAAA;QAC5E;;WAEG;QACH;;;;mBAAe,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;WAAA;QACpE;;WAEG;QACH;;;;mBAAe,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;WAAA;QAChE;;WAEG;QACH;;;;mBAAgB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,aAAa,CAAC,CAAC;WAAA;QACtE;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;WAAA;QAC1D;;WAEG;QACH;;;;mBAAa,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;WAAA;IApGhE,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACpF,CAAC;CAiGF;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import apis from '../apis.json'
|
|
3
|
-
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
4
|
-
import { cntDictionary } from '../error/dictionary/cnt'
|
|
5
|
-
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
|
-
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
2
|
import {
|
|
8
3
|
createApplication,
|
|
9
4
|
createCidr,
|
|
@@ -25,11 +20,17 @@ import {
|
|
|
25
20
|
listCidr,
|
|
26
21
|
listDeployments,
|
|
27
22
|
listDnsZone,
|
|
23
|
+
listFolder,
|
|
28
24
|
listFoundations,
|
|
29
25
|
listRepositories,
|
|
30
26
|
listRuntimes,
|
|
31
27
|
providers,
|
|
32
28
|
} from '../api/cloudPlatform'
|
|
29
|
+
import apis from '../apis.json'
|
|
30
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
31
|
+
import { cntDictionary } from '../error/dictionary/cnt'
|
|
32
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
33
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
33
34
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
34
35
|
|
|
35
36
|
class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
@@ -103,7 +104,11 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
103
104
|
/**
|
|
104
105
|
* Get list of foundations folders or folder by id
|
|
105
106
|
*/
|
|
106
|
-
|
|
107
|
+
listFolder = this.query(removeAuthorizationParam(listFolder))
|
|
108
|
+
/**
|
|
109
|
+
* Get list of foundations folders or folder by id
|
|
110
|
+
*/
|
|
111
|
+
getFolder = this.query(removeAuthorizationParam(getFolder))
|
|
107
112
|
/**
|
|
108
113
|
* Get list of providers for a foundation
|
|
109
114
|
*/
|