@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.
@@ -1,5 +1,5 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { defaults, runRollbackApp2, runRollbackInfra2 } from '../api/apiRuntime'
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(runRollbackApp2)
21
+ appRollback = this.mutation(runRollbackApp)
22
22
 
23
23
  /**
24
24
  * Runs an infra rollback
25
25
  */
26
- infraRollback = this.mutation(runRollbackInfra2)
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()