@stack-spot/portal-network 0.79.1 → 0.80.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 +7 -0
- package/dist/api/apiRuntime.d.ts +338 -138
- package/dist/api/apiRuntime.d.ts.map +1 -1
- package/dist/api/apiRuntime.js +126 -130
- package/dist/api/apiRuntime.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +66 -4
- package/dist/client/runtime-manager.d.ts.map +1 -1
- package/dist/client/runtime-manager.js +84 -3
- package/dist/client/runtime-manager.js.map +1 -1
- package/package.json +1 -1
- package/src/api/apiRuntime.ts +540 -466
- package/src/client/runtime-manager.ts +51 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { defaults,
|
|
2
|
+
import { defaults, getAppInfo, getAppsInRealm, getPluginDeployments, getRunByUlid, getRunsOnAllEnvs, getRunsOnEnv, getRunsRunning, getRunTaskPlugins, getRunTasks, runRollbackApp, runRollbackInfra } from '../api/apiRuntime'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
5
|
import { rteDictionary } from '../error/dictionary/rte'
|
|
@@ -18,12 +18,59 @@ class RuntimeManagerClient extends ReactQueryNetworkClient {
|
|
|
18
18
|
/**
|
|
19
19
|
* Runs an app rollback
|
|
20
20
|
*/
|
|
21
|
-
appRollback = this.mutation(
|
|
21
|
+
appRollback = this.mutation(runRollbackApp)
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Runs an infra rollback
|
|
25
25
|
*/
|
|
26
|
-
infraRollback = this.mutation(
|
|
27
|
-
|
|
26
|
+
infraRollback = this.mutation(runRollbackInfra)
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting all runnings run
|
|
30
|
+
*/
|
|
31
|
+
adminGetRunsRunning = this.query(getRunsRunning)
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting all runs off an app or infra on an env
|
|
35
|
+
*/
|
|
36
|
+
adminGetRunsOnEnv = this.query(getRunsOnEnv)
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting all runs off an app or infra on every environment its deployed
|
|
40
|
+
*/
|
|
41
|
+
adminGetRunsOnAllEnvs = this.query(getRunsOnAllEnvs)
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting run data by ulid identifier
|
|
45
|
+
*/
|
|
46
|
+
adminGetRunByUlid = this.query(getRunByUlid)
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting run task data of a run
|
|
50
|
+
*/
|
|
51
|
+
adminGetRunTasks = this.query(getRunTasks)
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting run task plugin data of a run
|
|
55
|
+
*/
|
|
56
|
+
adminGetRunTaskPlugins = this.query(getRunTaskPlugins)
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting plugin deployment data of a run
|
|
60
|
+
*/
|
|
61
|
+
adminGetPluginDeployments = this.query(getPluginDeployments)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting the list of apps in a realm
|
|
66
|
+
*/
|
|
67
|
+
adminGetAppsInRealm = this.query(getAppsInRealm)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Internal use only (Only Authorized tokens) - Admin endpoint for getting app or infra information by ulid
|
|
72
|
+
*/
|
|
73
|
+
adminGetAppInfo = this.query(getAppInfo)
|
|
74
|
+
}
|
|
28
75
|
|
|
29
76
|
export const runtimeManagerClient = new RuntimeManagerClient()
|