@stack-spot/portal-network 0.23.1 → 0.25.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 +19 -0
- package/dist/api/account.d.ts +17 -4
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +19 -9
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +12 -2
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +11 -2
- package/dist/client/account.js.map +1 -1
- package/dist/client/content.d.ts +184 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +199 -1
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +50 -20
- package/src/client/account.ts +6 -1
- package/src/client/content.ts +90 -1
package/src/client/content.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { addLink, addWorkspace, changeVisibility, createStudio, defaults, deleteLink, deleteStudio, delWorkspace, getStackVersionListByIds, getStudioByIdOrSlug, getStudios1, getStudiosToCreateButton, getStudioTabs, listLinksByStackVersion, listReasons, listWorkspaces, updateStudio, updateStudioTabs } from '../api/content'
|
|
2
|
+
import { addLink, addWorkspace, changeVisibility, createStudio, defaults, deleteLink, deleteStudio, delWorkspace, getStackVersionListByIds, getStudioByIdOrSlug, getStudios1, getStudiosToCreateButton, getStudioTabs, listLinksByStackVersion, listReasons, listWorkspaces, stackModalViewSummary, updateStudio, updateStudioTabs, deleteV1StacksVersionsByStackVersionId, getStackWorkspaces, getStackWorkspaceDetailView, getUnusedStackVersions, getPluginModalView, getStackUsesPlugin, getGetPluginView, getPluginInfrastructureView, getApplicationsUsesPlugin, getStarterUsesPlugin, getPluginVersionsNotInUse, getPluginVersions, getDependentPluginsVersions, getStarterStackVersionsAndPluginsVersions, getInfrastructureEnvironmentsUsesPlugin, getApplicationDetailsView, stackVersionUsageSummary, deprecateStackVersionBy, getPluginVersionUsageSummary, deprecatePluginVersion, deletePluginVersion } from '../api/content'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
5
|
import { cntDictionary } from '../error/dictionary/cnt'
|
|
@@ -83,6 +83,95 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
83
83
|
* Gets content deprecation reasons
|
|
84
84
|
*/
|
|
85
85
|
deprecationReasons = this.query(listReasons)
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get usage summary of stack
|
|
89
|
+
*/
|
|
90
|
+
stackUsageSummary = this.query(stackModalViewSummary)
|
|
91
|
+
/**
|
|
92
|
+
* List of Workspaces using the Stack
|
|
93
|
+
*/
|
|
94
|
+
workspacesUsingStack = this.query(getStackWorkspaces)
|
|
95
|
+
/**
|
|
96
|
+
* List StackVersions used by Workspace
|
|
97
|
+
*/
|
|
98
|
+
stackVersionsUsedByWorkspace = this.query(getStackWorkspaceDetailView)
|
|
99
|
+
/**
|
|
100
|
+
* List of StackVersions not used by any Content
|
|
101
|
+
*/
|
|
102
|
+
stackVersionsNotInUse = this.query(getUnusedStackVersions)
|
|
103
|
+
/**
|
|
104
|
+
* Get usage summary of plugin
|
|
105
|
+
*/
|
|
106
|
+
pluginUsageSummary = this.query(getPluginModalView)
|
|
107
|
+
/**
|
|
108
|
+
* List of Stacks using the plugin
|
|
109
|
+
*/
|
|
110
|
+
stacksUsingPlugin = this.query(getStackUsesPlugin)
|
|
111
|
+
/**
|
|
112
|
+
* List of PluginVersions used by Stack
|
|
113
|
+
*/
|
|
114
|
+
pluginVersionsUsedByStack = this.query(getPluginVersions)
|
|
115
|
+
/**
|
|
116
|
+
* List of Plugin that requires the plugin
|
|
117
|
+
*/
|
|
118
|
+
pluginsRequiresPlugin = this.query(getGetPluginView)
|
|
119
|
+
/**
|
|
120
|
+
* List of PluginVersions used by Plugin
|
|
121
|
+
*/
|
|
122
|
+
pluginVersionsUsedByPlugin = this.query(getDependentPluginsVersions)
|
|
123
|
+
/**
|
|
124
|
+
* List of Starter using the plugin
|
|
125
|
+
*/
|
|
126
|
+
starterUsingPlugin = this.query(getStarterUsesPlugin)
|
|
127
|
+
/**
|
|
128
|
+
* List of PluginVersions used by Starter
|
|
129
|
+
*/
|
|
130
|
+
pluginVersionsUsedByStarter = this.query(getStarterStackVersionsAndPluginsVersions)
|
|
131
|
+
/**
|
|
132
|
+
* List of Infrastructure using the plugin
|
|
133
|
+
*/
|
|
134
|
+
infrastructureUsingPlugin = this.query(getPluginInfrastructureView)
|
|
135
|
+
/**
|
|
136
|
+
* List of PluginVersions used by Infrastructure
|
|
137
|
+
*/
|
|
138
|
+
pluginVersionsUsedByInfrastructure = this.query(getInfrastructureEnvironmentsUsesPlugin)
|
|
139
|
+
/**
|
|
140
|
+
* List of Application using the plugin
|
|
141
|
+
*/
|
|
142
|
+
applicationUsingPlugin = this.query(getApplicationsUsesPlugin)
|
|
143
|
+
/**
|
|
144
|
+
* List of PluginVersions used by Applications
|
|
145
|
+
*/
|
|
146
|
+
pluginVersionsUsedByApplication = this.query(getApplicationDetailsView)
|
|
147
|
+
/**
|
|
148
|
+
* List of PluginVersions not used by any Content
|
|
149
|
+
*/
|
|
150
|
+
pluginVersionsNotInUse = this.query(getPluginVersionsNotInUse)
|
|
151
|
+
/**
|
|
152
|
+
* Get Stack Version Usage Summary
|
|
153
|
+
*/
|
|
154
|
+
stackVersionsUsageSummary = this.query(stackVersionUsageSummary)
|
|
155
|
+
/**
|
|
156
|
+
* Get Plugin Version Usage Summary
|
|
157
|
+
*/
|
|
158
|
+
pluginVersionUsageSummary = this.query(getPluginVersionUsageSummary)
|
|
159
|
+
/**
|
|
160
|
+
* Deprecate a stack version
|
|
161
|
+
*/
|
|
162
|
+
deprecateStackVersion = this.mutation(removeAuthorizationParam(deprecateStackVersionBy))
|
|
163
|
+
/**
|
|
164
|
+
* Delete a stack version of type draft or unpublish
|
|
165
|
+
*/
|
|
166
|
+
deleteStackVersion = this.mutation(deleteV1StacksVersionsByStackVersionId)
|
|
167
|
+
/**
|
|
168
|
+
* Deprecate a plugin version
|
|
169
|
+
*/
|
|
170
|
+
deprecatePluginVersion = this.mutation(removeAuthorizationParam(deprecatePluginVersion))
|
|
171
|
+
/**
|
|
172
|
+
* Delete a Plugin version of type draft or unpublish
|
|
173
|
+
*/
|
|
174
|
+
deletePluginVersion = this.mutation(deletePluginVersion)
|
|
86
175
|
}
|
|
87
176
|
|
|
88
177
|
export const contentClient = new ContentClient()
|