@terasky/backstage-plugin-vcf-automation 1.1.1 → 1.2.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/dist/api/VcfAutomationClient.esm.js +36 -0
- package/dist/api/VcfAutomationClient.esm.js.map +1 -1
- package/dist/components/VCFAutomationCCINamespaceDetails.esm.js +166 -0
- package/dist/components/VCFAutomationCCINamespaceDetails.esm.js.map +1 -0
- package/dist/components/VCFAutomationCCINamespaceOverview.esm.js +159 -0
- package/dist/components/VCFAutomationCCINamespaceOverview.esm.js.map +1 -0
- package/dist/components/VCFAutomationCCIResourceDetails.esm.js +359 -0
- package/dist/components/VCFAutomationCCIResourceDetails.esm.js.map +1 -0
- package/dist/components/VCFAutomationCCIResourceOverview.esm.js +265 -0
- package/dist/components/VCFAutomationCCIResourceOverview.esm.js.map +1 -0
- package/dist/components/VCFAutomationProjectDetails.esm.js +25 -8
- package/dist/components/VCFAutomationProjectDetails.esm.js.map +1 -1
- package/dist/components/VCFAutomationProjectOverview.esm.js +17 -6
- package/dist/components/VCFAutomationProjectOverview.esm.js.map +1 -1
- package/dist/index.d.ts +104 -18
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +28 -0
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,14 @@ declare const VCFAutomationGenericResourceOverview: () => react_jsx_runtime.JSX.
|
|
|
24
24
|
|
|
25
25
|
declare const VCFAutomationDeploymentOverview: () => react_jsx_runtime.JSX.Element;
|
|
26
26
|
|
|
27
|
+
declare const VCFAutomationCCINamespaceOverview: () => react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
declare const VCFAutomationCCIResourceOverview: () => react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
declare const VCFAutomationCCINamespaceDetails: () => react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
declare const VCFAutomationCCIResourceDetails: () => react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
27
35
|
interface VcfPageable {
|
|
28
36
|
pageNumber: number;
|
|
29
37
|
pageSize: number;
|
|
@@ -153,39 +161,111 @@ interface VcfProjectZone {
|
|
|
153
161
|
id: string;
|
|
154
162
|
}
|
|
155
163
|
interface VcfProject$1 {
|
|
156
|
-
|
|
164
|
+
name: string;
|
|
165
|
+
description: string;
|
|
166
|
+
id: string;
|
|
167
|
+
operationTimeout: number;
|
|
157
168
|
administrators: Array<{
|
|
158
169
|
email: string;
|
|
159
170
|
type: string;
|
|
160
|
-
}
|
|
161
|
-
|
|
171
|
+
}> | any[];
|
|
172
|
+
machineNamingTemplate?: string;
|
|
173
|
+
members?: Array<{
|
|
162
174
|
email: string;
|
|
163
175
|
type: string;
|
|
164
176
|
}>;
|
|
165
|
-
viewers
|
|
177
|
+
viewers?: Array<{
|
|
166
178
|
email: string;
|
|
167
179
|
type: string;
|
|
168
180
|
}>;
|
|
169
|
-
supervisors
|
|
181
|
+
supervisors?: Array<{
|
|
170
182
|
email: string;
|
|
171
183
|
type: string;
|
|
172
184
|
}>;
|
|
173
|
-
zones
|
|
174
|
-
constraints
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
description: string;
|
|
181
|
-
id: string;
|
|
182
|
-
organizationId: string;
|
|
183
|
-
orgId: string;
|
|
184
|
-
_links: {
|
|
185
|
+
zones?: VcfProjectZone[];
|
|
186
|
+
constraints?: Record<string, unknown>;
|
|
187
|
+
sharedResources?: boolean;
|
|
188
|
+
placementPolicy?: string;
|
|
189
|
+
customProperties?: Record<string, unknown>;
|
|
190
|
+
organizationId?: string;
|
|
191
|
+
_links?: {
|
|
185
192
|
self: {
|
|
186
193
|
href: string;
|
|
187
194
|
};
|
|
188
195
|
};
|
|
196
|
+
orgId?: string;
|
|
197
|
+
users?: any[];
|
|
198
|
+
auditors?: any[];
|
|
199
|
+
advancedUsers?: any[];
|
|
200
|
+
properties?: Record<string, unknown>;
|
|
201
|
+
}
|
|
202
|
+
interface CciSupervisorNamespace {
|
|
203
|
+
id: string;
|
|
204
|
+
name: string;
|
|
205
|
+
type: 'CCI.Supervisor.Namespace';
|
|
206
|
+
properties: {
|
|
207
|
+
metadata: {
|
|
208
|
+
'infrastructure.cci.vmware.com/id': string;
|
|
209
|
+
'infrastructure.cci.vmware.com/project-id': string;
|
|
210
|
+
};
|
|
211
|
+
existing: boolean;
|
|
212
|
+
name: string;
|
|
213
|
+
id: string;
|
|
214
|
+
resourceLink: string;
|
|
215
|
+
status: {
|
|
216
|
+
conditions: Array<{
|
|
217
|
+
lastTransitionTime: string;
|
|
218
|
+
status: string;
|
|
219
|
+
type: string;
|
|
220
|
+
}>;
|
|
221
|
+
namespaceEndpointURL: string;
|
|
222
|
+
phase: string;
|
|
223
|
+
storageClasses: Array<{
|
|
224
|
+
limit: string;
|
|
225
|
+
name: string;
|
|
226
|
+
}>;
|
|
227
|
+
vmClasses: Array<{
|
|
228
|
+
name: string;
|
|
229
|
+
}>;
|
|
230
|
+
zones: Array<{
|
|
231
|
+
cpuLimit: string;
|
|
232
|
+
cpuReservation: string;
|
|
233
|
+
memoryLimit: string;
|
|
234
|
+
memoryReservation: string;
|
|
235
|
+
name: string;
|
|
236
|
+
}>;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
createdAt: string;
|
|
240
|
+
syncStatus: string;
|
|
241
|
+
origin: string;
|
|
242
|
+
state: string;
|
|
243
|
+
}
|
|
244
|
+
interface CciSupervisorResource {
|
|
245
|
+
id: string;
|
|
246
|
+
name: string;
|
|
247
|
+
type: 'CCI.Supervisor.Resource';
|
|
248
|
+
properties: {
|
|
249
|
+
wait?: {
|
|
250
|
+
conditions: Array<{
|
|
251
|
+
type: string;
|
|
252
|
+
status: string;
|
|
253
|
+
}>;
|
|
254
|
+
};
|
|
255
|
+
manifest: any;
|
|
256
|
+
count?: number;
|
|
257
|
+
existing: boolean;
|
|
258
|
+
countIndex?: number;
|
|
259
|
+
context: string;
|
|
260
|
+
id: string;
|
|
261
|
+
resourceLink: string;
|
|
262
|
+
object: any;
|
|
263
|
+
};
|
|
264
|
+
createdAt: string;
|
|
265
|
+
syncStatus: string;
|
|
266
|
+
origin: string;
|
|
267
|
+
dependsOn: string[];
|
|
268
|
+
state: string;
|
|
189
269
|
}
|
|
190
270
|
|
|
191
271
|
interface VcfDeploymentEvent {
|
|
@@ -308,6 +388,9 @@ interface VcfAutomationApi {
|
|
|
308
388
|
getProjectDetails(projectId: string, instanceName?: string): Promise<VcfProject>;
|
|
309
389
|
getGenericResourceDetails(deploymentId: string, resourceId: string, instanceName?: string): Promise<any>;
|
|
310
390
|
getDeploymentDetails(deploymentId: string, instanceName?: string): Promise<any>;
|
|
391
|
+
getProjects(instanceName?: string): Promise<any>;
|
|
392
|
+
getDeployments(instanceName?: string): Promise<any>;
|
|
393
|
+
getDeploymentResources(deploymentId: string, instanceName?: string): Promise<any>;
|
|
311
394
|
}
|
|
312
395
|
declare const vcfAutomationApiRef: _backstage_core_plugin_api.ApiRef<VcfAutomationApi>;
|
|
313
396
|
declare class VcfAutomationClient implements VcfAutomationApi {
|
|
@@ -323,8 +406,11 @@ declare class VcfAutomationClient implements VcfAutomationApi {
|
|
|
323
406
|
getGenericResourceDetails(deploymentId: string, resourceId: string, instanceName?: string): Promise<any>;
|
|
324
407
|
getDeploymentDetails(deploymentId: string, instanceName?: string): Promise<any>;
|
|
325
408
|
getProjectDetails(projectId: string, instanceName?: string): Promise<VcfProject>;
|
|
409
|
+
getProjects(instanceName?: string): Promise<any>;
|
|
410
|
+
getDeployments(instanceName?: string): Promise<any>;
|
|
411
|
+
getDeploymentResources(deploymentId: string, instanceName?: string): Promise<any>;
|
|
326
412
|
}
|
|
327
413
|
|
|
328
414
|
declare const rootRouteRef: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
329
415
|
|
|
330
|
-
export { VCFAutomationDeploymentDetails, VCFAutomationDeploymentOverview, VCFAutomationGenericResourceDetails, VCFAutomationGenericResourceOverview, VCFAutomationProjectDetails, VCFAutomationProjectOverview, VCFAutomationVSphereVMDetails, VCFAutomationVSphereVMOverview, type VcfAutomationApi, VcfAutomationClient, type VcfDeploymentEvent$1 as VcfDeploymentEvent, type VcfDeploymentHistory, type VcfPageResponse, type VcfPageable, type VcfProject$1 as VcfProject, type VcfProjectZone, type VcfResource, type VcfResourceDisk, type VcfResourceExpense, type VcfResourceNetwork, rootRouteRef, vcfAutomationApiRef, vcfAutomationPlugin };
|
|
416
|
+
export { type CciSupervisorNamespace, type CciSupervisorResource, VCFAutomationCCINamespaceDetails, VCFAutomationCCINamespaceOverview, VCFAutomationCCIResourceDetails, VCFAutomationCCIResourceOverview, VCFAutomationDeploymentDetails, VCFAutomationDeploymentOverview, VCFAutomationGenericResourceDetails, VCFAutomationGenericResourceOverview, VCFAutomationProjectDetails, VCFAutomationProjectOverview, VCFAutomationVSphereVMDetails, VCFAutomationVSphereVMOverview, type VcfAutomationApi, VcfAutomationClient, type VcfDeploymentEvent$1 as VcfDeploymentEvent, type VcfDeploymentHistory, type VcfPageResponse, type VcfPageable, type VcfProject$1 as VcfProject, type VcfProjectZone, type VcfResource, type VcfResourceDisk, type VcfResourceExpense, type VcfResourceNetwork, rootRouteRef, vcfAutomationApiRef, vcfAutomationPlugin };
|
package/dist/index.esm.js
CHANGED
|
@@ -7,6 +7,10 @@ export { VCFAutomationVSphereVMDetails } from './components/VCFAutomationVSphere
|
|
|
7
7
|
export { VCFAutomationGenericResourceDetails } from './components/VCFAutomationGenericResourceDetails.esm.js';
|
|
8
8
|
export { VCFAutomationGenericResourceOverview } from './components/VCFAutomationGenericResourceOverview.esm.js';
|
|
9
9
|
export { VCFAutomationDeploymentOverview } from './components/VCFAutomationDeploymentOverview.esm.js';
|
|
10
|
+
export { VCFAutomationCCINamespaceOverview } from './components/VCFAutomationCCINamespaceOverview.esm.js';
|
|
11
|
+
export { VCFAutomationCCIResourceOverview } from './components/VCFAutomationCCIResourceOverview.esm.js';
|
|
12
|
+
export { VCFAutomationCCINamespaceDetails } from './components/VCFAutomationCCINamespaceDetails.esm.js';
|
|
13
|
+
export { VCFAutomationCCIResourceDetails } from './components/VCFAutomationCCIResourceDetails.esm.js';
|
|
10
14
|
export { VcfAutomationClient, vcfAutomationApiRef } from './api/VcfAutomationClient.esm.js';
|
|
11
15
|
export { rootRouteRef } from './routes.esm.js';
|
|
12
16
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/plugin.esm.js
CHANGED
|
@@ -77,6 +77,34 @@ vcfAutomationPlugin.provide(
|
|
|
77
77
|
mountPoint: rootRouteRef
|
|
78
78
|
})
|
|
79
79
|
);
|
|
80
|
+
vcfAutomationPlugin.provide(
|
|
81
|
+
createRoutableExtension({
|
|
82
|
+
name: "VcfAutomationCCINamespaceOverview",
|
|
83
|
+
component: () => import('./components/VCFAutomationCCINamespaceOverview.esm.js').then((m) => m.VCFAutomationCCINamespaceOverview),
|
|
84
|
+
mountPoint: rootRouteRef
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
vcfAutomationPlugin.provide(
|
|
88
|
+
createRoutableExtension({
|
|
89
|
+
name: "VcfAutomationCCINamespaceDetails",
|
|
90
|
+
component: () => import('./components/VCFAutomationCCINamespaceDetails.esm.js').then((m) => m.VCFAutomationCCINamespaceDetails),
|
|
91
|
+
mountPoint: rootRouteRef
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
vcfAutomationPlugin.provide(
|
|
95
|
+
createRoutableExtension({
|
|
96
|
+
name: "VcfAutomationCCIResourceOverview",
|
|
97
|
+
component: () => import('./components/VCFAutomationCCIResourceOverview.esm.js').then((m) => m.VCFAutomationCCIResourceOverview),
|
|
98
|
+
mountPoint: rootRouteRef
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
vcfAutomationPlugin.provide(
|
|
102
|
+
createRoutableExtension({
|
|
103
|
+
name: "VcfAutomationCCIResourceDetails",
|
|
104
|
+
component: () => import('./components/VCFAutomationCCIResourceDetails.esm.js').then((m) => m.VCFAutomationCCIResourceDetails),
|
|
105
|
+
mountPoint: rootRouteRef
|
|
106
|
+
})
|
|
107
|
+
);
|
|
80
108
|
|
|
81
109
|
export { catalogIndexRouteRef, vcfAutomationPlugin };
|
|
82
110
|
//# sourceMappingURL=plugin.esm.js.map
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["import {\n createPlugin,\n createApiFactory,\n discoveryApiRef,\n identityApiRef,\n createRoutableExtension,\n createExternalRouteRef,\n} from '@backstage/core-plugin-api';\nimport { rootRouteRef } from './routes';\nimport { vcfAutomationApiRef, VcfAutomationClient } from './api';\n\nexport const catalogIndexRouteRef = createExternalRouteRef({\n id: 'catalog-index',\n});\n\nexport const vcfAutomationPlugin = createPlugin({\n id: 'vcf-automation',\n apis: [\n createApiFactory({\n api: vcfAutomationApiRef,\n deps: { discoveryApi: discoveryApiRef, identityApi: identityApiRef },\n factory: ({ discoveryApi, identityApi }) =>\n new VcfAutomationClient({ discoveryApi, identityApi }),\n }),\n ],\n routes: {\n root: rootRouteRef,\n },\n externalRoutes: {\n catalogIndex: catalogIndexRouteRef,\n },\n});\n\nexport const VcfAutomationDeploymentDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationDeploymentDetails',\n component: () =>\n import('./components/VCFAutomationDeploymentDetails').then(m => m.VCFAutomationDeploymentDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationVSphereVMDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationVSphereVMDetails',\n component: () =>\n import('./components/VCFAutomationVSphereVMDetails').then(m => m.VCFAutomationVSphereVMDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationProjectDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationProjectDetails',\n component: () =>\n import('./components/VCFAutomationProjectDetails').then(m => m.VCFAutomationProjectDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationDeploymentOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationDeploymentOverview',\n component: () =>\n import('./components/VCFAutomationDeploymentOverview').then(m => m.VCFAutomationDeploymentOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationVSphereVMOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationVSphereVMOverview',\n component: () =>\n import('./components/VCFAutomationVSphereVMOverview').then(m => m.VCFAutomationVSphereVMOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationProjectOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationProjectOverview',\n component: () =>\n import('./components/VCFAutomationProjectOverview').then(m => m.VCFAutomationProjectOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationGenericResourceDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationGenericResourceDetails',\n component: () =>\n import('./components/VCFAutomationGenericResourceDetails').then(m => m.VCFAutomationGenericResourceDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationGenericResourceOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationGenericResourceOverview',\n component: () =>\n import('./components/VCFAutomationGenericResourceOverview').then(m => m.VCFAutomationGenericResourceOverview),\n mountPoint: rootRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;;AAWO,MAAM,u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,OAAA;AAAA,EACjE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,iCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,qDAA8C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,+BAA+B,CAAA;AAAA,IACpG,UAAY,EAAA;AAAA,GACb;AACH;AAE8C,mBAAoB,CAAA,OAAA;AAAA,EAChE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,gCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,oDAA6C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,8BAA8B,CAAA;AAAA,IAClG,UAAY,EAAA;AAAA,GACb;AACH;AAE4C,mBAAoB,CAAA,OAAA;AAAA,EAC9D,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,8BAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,kDAA2C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,4BAA4B,CAAA;AAAA,IAC9F,UAAY,EAAA;AAAA,GACb;AACH;AAEmD,mBAAoB,CAAA,OAAA;AAAA,EACrE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,qCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,yDAAkD,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,mCAAmC,CAAA;AAAA,IAC5G,UAAY,EAAA;AAAA,GACb;AACH;AAEoD,mBAAoB,CAAA,OAAA;AAAA,EACtE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,sCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,0DAAmD,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,oCAAoC,CAAA;AAAA,IAC9G,UAAY,EAAA;AAAA,GACb;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["import {\n createPlugin,\n createApiFactory,\n discoveryApiRef,\n identityApiRef,\n createRoutableExtension,\n createExternalRouteRef,\n} from '@backstage/core-plugin-api';\nimport { rootRouteRef } from './routes';\nimport { vcfAutomationApiRef, VcfAutomationClient } from './api';\n\nexport const catalogIndexRouteRef = createExternalRouteRef({\n id: 'catalog-index',\n});\n\nexport const vcfAutomationPlugin = createPlugin({\n id: 'vcf-automation',\n apis: [\n createApiFactory({\n api: vcfAutomationApiRef,\n deps: { discoveryApi: discoveryApiRef, identityApi: identityApiRef },\n factory: ({ discoveryApi, identityApi }) =>\n new VcfAutomationClient({ discoveryApi, identityApi }),\n }),\n ],\n routes: {\n root: rootRouteRef,\n },\n externalRoutes: {\n catalogIndex: catalogIndexRouteRef,\n },\n});\n\nexport const VcfAutomationDeploymentDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationDeploymentDetails',\n component: () =>\n import('./components/VCFAutomationDeploymentDetails').then(m => m.VCFAutomationDeploymentDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationVSphereVMDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationVSphereVMDetails',\n component: () =>\n import('./components/VCFAutomationVSphereVMDetails').then(m => m.VCFAutomationVSphereVMDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationProjectDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationProjectDetails',\n component: () =>\n import('./components/VCFAutomationProjectDetails').then(m => m.VCFAutomationProjectDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationDeploymentOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationDeploymentOverview',\n component: () =>\n import('./components/VCFAutomationDeploymentOverview').then(m => m.VCFAutomationDeploymentOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationVSphereVMOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationVSphereVMOverview',\n component: () =>\n import('./components/VCFAutomationVSphereVMOverview').then(m => m.VCFAutomationVSphereVMOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationProjectOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationProjectOverview',\n component: () =>\n import('./components/VCFAutomationProjectOverview').then(m => m.VCFAutomationProjectOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationGenericResourceDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationGenericResourceDetails',\n component: () =>\n import('./components/VCFAutomationGenericResourceDetails').then(m => m.VCFAutomationGenericResourceDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationGenericResourceOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationGenericResourceOverview',\n component: () =>\n import('./components/VCFAutomationGenericResourceOverview').then(m => m.VCFAutomationGenericResourceOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationCCINamespaceOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationCCINamespaceOverview',\n component: () =>\n import('./components/VCFAutomationCCINamespaceOverview').then(m => m.VCFAutomationCCINamespaceOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationCCINamespaceDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationCCINamespaceDetails',\n component: () =>\n import('./components/VCFAutomationCCINamespaceDetails').then(m => m.VCFAutomationCCINamespaceDetails),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationCCIResourceOverview = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationCCIResourceOverview',\n component: () =>\n import('./components/VCFAutomationCCIResourceOverview').then(m => m.VCFAutomationCCIResourceOverview),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const VcfAutomationCCIResourceDetails = vcfAutomationPlugin.provide(\n createRoutableExtension({\n name: 'VcfAutomationCCIResourceDetails',\n component: () =>\n import('./components/VCFAutomationCCIResourceDetails').then(m => m.VCFAutomationCCIResourceDetails),\n mountPoint: rootRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;;AAWO,MAAM,uBAAuB,sBAAuB,CAAA;AAAA,EACzD,EAAI,EAAA;AACN,CAAC;AAEM,MAAM,sBAAsB,YAAa,CAAA;AAAA,EAC9C,EAAI,EAAA,gBAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,mBAAA;AAAA,MACL,IAAM,EAAA,EAAE,YAAc,EAAA,eAAA,EAAiB,aAAa,cAAe,EAAA;AAAA,MACnE,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,WAAA,EACxB,KAAA,IAAI,mBAAoB,CAAA,EAAE,YAAc,EAAA,WAAA,EAAa;AAAA,KACxD;AAAA,GACH;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA;AAAA,GACR;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,YAAc,EAAA;AAAA;AAElB,CAAC;AAE6C,mBAAoB,CAAA,OAAA;AAAA,EAChE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,gCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,oDAA6C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,8BAA8B,CAAA;AAAA,IAClG,UAAY,EAAA;AAAA,GACb;AACH;AAE6C,mBAAoB,CAAA,OAAA;AAAA,EAC/D,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,+BAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,mDAA4C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,6BAA6B,CAAA;AAAA,IAChG,UAAY,EAAA;AAAA,GACb;AACH;AAE2C,mBAAoB,CAAA,OAAA;AAAA,EAC7D,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,6BAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,iDAA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mBAAoB,CAAA,OAAA;AAAA,EACnE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,mCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,uDAAgD,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,iCAAiC,CAAA;AAAA,IACxG,UAAY,EAAA;AAAA,GACb;AACH;AAEgD,mBAAoB,CAAA,OAAA;AAAA,EAClE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,kCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,sDAA+C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,gCAAgC,CAAA;AAAA,IACtG,UAAY,EAAA;AAAA,GACb;AACH;AAEgD,mBAAoB,CAAA,OAAA;AAAA,EAClE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,kCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,sDAA+C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,gCAAgC,CAAA;AAAA,IACtG,UAAY,EAAA;AAAA,GACb;AACH;AAE+C,mBAAoB,CAAA,OAAA;AAAA,EACjE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,iCAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,qDAA8C,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,+BAA+B,CAAA;AAAA,IACpG,UAAY,EAAA;AAAA,GACb;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terasky/backstage-plugin-vcf-automation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@material-ui/icons": "^4.11.3",
|
|
45
45
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
46
46
|
"@terasky/backstage-plugin-vcf-automation-common": "^1.0.1",
|
|
47
|
+
"js-yaml": "^4.1.0",
|
|
47
48
|
"react-use": "^17.6.0"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"@testing-library/jest-dom": "^5.10.1",
|
|
60
61
|
"@testing-library/react": "^12.1.3",
|
|
61
62
|
"@testing-library/user-event": "^14.0.0",
|
|
63
|
+
"@types/js-yaml": "^4.0.5",
|
|
62
64
|
"@types/node": "*",
|
|
63
65
|
"@types/react": "^16.13.1 || ^17.0.0",
|
|
64
66
|
"msw": "^1.0.0"
|