diff --git a/package-lock.json b/package-lock.json index ed27994f..503feddc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "xpanse-ui", - "version": "1.0.17", + "version": "1.0.18", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "xpanse-ui", - "version": "1.0.17", + "version": "1.0.18", "dependencies": { "@ant-design/icons": "^5.5.1", "@axa-fr/react-oidc": "^7.22.32", - "@tanstack/react-query": "^5.59.19", - "antd": "^5.21.6", + "@tanstack/react-query": "^5.59.20", + "antd": "^5.22.0", "echarts": "5.5.1", "echarts-for-react": "^3.0.2", "rc-field-form": "^2.5.0", @@ -19,7 +19,7 @@ "rc-tabs": "^15.4.0", "react": "^18.2.0", "react-dom": "^18.3.1", - "react-router-dom": "^6.27.0", + "react-router-dom": "^6.28.0", "react-timer-hook": "^3.0.8", "yaml": "^2.6.0", "zustand": "^5.0.1" @@ -27,17 +27,17 @@ "devDependencies": { "@axa-fr/oidc-client": "^7.22.32", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@hey-api/openapi-ts": "^0.54.2", - "@tanstack/eslint-plugin-query": "^5.59.7", + "@hey-api/openapi-ts": "^0.55.2", + "@tanstack/eslint-plugin-query": "^5.60.1", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.0.1", "@types/jest": "^29.5.14", - "@types/node": "^22.8.7", + "@types/node": "^22.9.0", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@types/uuid": "^10.0.0", - "@typescript-eslint/eslint-plugin": "^8.13.0", - "@typescript-eslint/parser": "^8.13.0", + "@typescript-eslint/eslint-plugin": "^8.14.0", + "@typescript-eslint/parser": "^8.14.0", "@vitejs/plugin-react": "^4.3.3", "env-cmd": "^10.1.0", "eslint": "^8.57.1", @@ -51,14 +51,14 @@ "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "knip": "^5.36.2", + "knip": "^5.36.7", "prettier": "3.3.3", "prettier-plugin-organize-imports": "^4.1.0", "release-it": "^17.10.0", "ts-jest": "^29.2.5", "typescript": "5.6.3", - "uuid": "^11.0.2", - "vite": "^5.4.10" + "uuid": "^11.0.3", + "vite": "^5.4.11" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -2232,9 +2232,9 @@ "dev": true }, "node_modules/@babel/runtime": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.6.tgz", - "integrity": "sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz", + "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -2764,9 +2764,9 @@ } }, "node_modules/@hey-api/openapi-ts": { - "version": "0.54.2", - "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.54.2.tgz", - "integrity": "sha512-hU/Xf8D5yOSA5JsOkM0x4Sz9jChI0v4JMkkk3sy1Tc3DXbbr+s3uyJngvYoimXOq6ljF/9QSCtrk7z5LXxd64g==", + "version": "0.55.2", + "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.55.2.tgz", + "integrity": "sha512-EdVslFxtV27prj8oLWCm4ZOFAx+zGOqRVbDkKOcaYzg6wQQdvQ0j14LMapvhM0PtP2hkffh6PGeh6dt9aJORZQ==", "dev": true, "dependencies": { "@apidevtools/json-schema-ref-parser": "11.7.2", @@ -2781,7 +2781,7 @@ "node": "^18.0.0 || >=20.0.0" }, "funding": { - "url": "https://github.com/sponsors/mrlubos" + "url": "https://github.com/sponsors/hey-api" }, "peerDependencies": { "typescript": "^5.x" @@ -4053,9 +4053,9 @@ } }, "node_modules/@rc-component/trigger": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-2.2.3.tgz", - "integrity": "sha512-X1oFIpKoXAMXNDYCviOmTfuNuYxE4h5laBsyCqVAVMjNHxoF3/uiyA7XdegK1XbCvBbCZ6P6byWrEoDRpKL8+A==", + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-2.2.5.tgz", + "integrity": "sha512-F1EJ4KjFpGAHAjuKvOyZB/6IZDkVx0bHl0M4fQM5wXcmm7lgTgVSSnR3bXwdmS6jOJGHOqfDxIJW3WUvwMIXhQ==", "dependencies": { "@babel/runtime": "^7.23.2", "@rc-component/portal": "^1.1.0", @@ -4073,9 +4073,9 @@ } }, "node_modules/@remix-run/router": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.20.0.tgz", - "integrity": "sha512-mUnk8rPJBI9loFDZ+YzPGdeniYK+FTmRD1TMCz7ev2SNIozyKKpnGgsxO34u6Z4z/t0ITuu7voi/AshfsGsgFg==", + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.21.0.tgz", + "integrity": "sha512-xfSkCAchbdG5PnbrKqFWwia4Bi61nH+wm8wLEqfHDyp7Y3dZzgqS2itV8i4gAq9pC2HsTpwyBC6Ds8VHZ96JlA==", "engines": { "node": ">=14.0.0" } @@ -4348,9 +4348,9 @@ } }, "node_modules/@tanstack/eslint-plugin-query": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@tanstack/eslint-plugin-query/-/eslint-plugin-query-5.59.7.tgz", - "integrity": "sha512-txQGX5yC+4gmbR81EXaum2tOxeDQkRCWnaLmaP/pSrbIVCUkbMbrxxsaoOgN+fBqqqGo9V3LoCVL6ez1tRUF7Q==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@tanstack/eslint-plugin-query/-/eslint-plugin-query-5.60.1.tgz", + "integrity": "sha512-oCaWtFKa6WwX14fm/Sp486eTFXXgadiDzEYxhM/tiAlM+xzvPwp6ZHgR6sndmvYK+s/jbksDCTLIPS0PCH8L2g==", "dev": true, "dependencies": { "@typescript-eslint/utils": "^8.3.0" @@ -4497,20 +4497,20 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.59.17", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.59.17.tgz", - "integrity": "sha512-jWdDiif8kaqnRGHNXAa9CnudtxY5v9DUxXhodgqX2Rwzj+1UwStDHEbBd9IA5C7VYAaJ2s+BxFR6PUBs8ERorA==", + "version": "5.59.20", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.59.20.tgz", + "integrity": "sha512-e8vw0lf7KwfGe1if4uPFhvZRWULqHjFcz3K8AebtieXvnMOz5FSzlZe3mTLlPuUBcydCnBRqYs2YJ5ys68wwLg==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.59.19", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.59.19.tgz", - "integrity": "sha512-xLRfyFyQOFcLltKCds0LijfC6/HQJrrTTnZB8ciyn74LIkVAm++vZJ6eUVG20RmJtdP8REdy7vSOYW4M3//XLA==", + "version": "5.59.20", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.59.20.tgz", + "integrity": "sha512-Zly0egsK0tFdfSbh5/mapSa+Zfc3Et0Zkar7Wo5sQkFzWyB3p3uZWOHR2wrlAEEV2L953eLuDBtbgFvMYiLvUw==", "dependencies": { - "@tanstack/query-core": "5.59.17" + "@tanstack/query-core": "5.59.20" }, "funding": { "type": "github", @@ -4916,9 +4916,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.8.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.7.tgz", - "integrity": "sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==", + "version": "22.9.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz", + "integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==", "dev": true, "dependencies": { "undici-types": "~6.19.8" @@ -4995,16 +4995,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.13.0.tgz", - "integrity": "sha512-nQtBLiZYMUPkclSeC3id+x4uVd1SGtHuElTxL++SfP47jR0zfkZBJHc+gL4qPsgTuypz0k8Y2GheaDYn6Gy3rg==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.14.0.tgz", + "integrity": "sha512-tqp8H7UWFaZj0yNO6bycd5YjMwxa6wIHOLZvWPkidwbgLCsBMetQoGj7DPuAlWa2yGO3H48xmPwjhsSPPCGU5w==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.13.0", - "@typescript-eslint/type-utils": "8.13.0", - "@typescript-eslint/utils": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0", + "@typescript-eslint/scope-manager": "8.14.0", + "@typescript-eslint/type-utils": "8.14.0", + "@typescript-eslint/utils": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -5028,13 +5028,13 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.13.0.tgz", - "integrity": "sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz", + "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0" + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5045,9 +5045,9 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.13.0.tgz", - "integrity": "sha512-4cyFErJetFLckcThRUFdReWJjVsPCqyBlJTi6IDEpc1GWCIIZRFxVppjWLIMcQhNGhdWJJRYFHpHoDWvMlDzng==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.14.0.tgz", + "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5058,13 +5058,13 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.13.0.tgz", - "integrity": "sha512-v7SCIGmVsRK2Cy/LTLGN22uea6SaUIlpBcO/gnMGT/7zPtxp90bphcGf4fyrCQl3ZtiBKqVTG32hb668oIYy1g==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz", + "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0", + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -5086,15 +5086,15 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.13.0.tgz", - "integrity": "sha512-A1EeYOND6Uv250nybnLZapeXpYMl8tkzYUxqmoKAWnI4sei3ihf2XdZVd+vVOmHGcp3t+P7yRrNsyyiXTvShFQ==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.14.0.tgz", + "integrity": "sha512-OGqj6uB8THhrHj0Fk27DcHPojW7zKwKkPmHXHvQ58pLYp4hy8CSUdTKykKeh+5vFqTTVmjz0zCOOPKRovdsgHA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.13.0", - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/typescript-estree": "8.13.0" + "@typescript-eslint/scope-manager": "8.14.0", + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/typescript-estree": "8.14.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5108,12 +5108,12 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.13.0.tgz", - "integrity": "sha512-7N/+lztJqH4Mrf0lb10R/CbI1EaAMMGyF5y0oJvFoAhafwgiRA7TXyd8TFn8FC8k5y2dTsYogg238qavRGNnlw==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz", + "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/types": "8.14.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -5180,15 +5180,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.13.0.tgz", - "integrity": "sha512-w0xp+xGg8u/nONcGw1UXAr6cjCPU1w0XVyBs6Zqaj5eLmxkKQAByTdV/uGgNN5tVvN/kKpoQlP2cL7R+ajZZIQ==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.14.0.tgz", + "integrity": "sha512-2p82Yn9juUJq0XynBXtFCyrBDb6/dJombnz6vbo6mgQEtWHfvHbQuEa9kAOVIt1c9YFwi7H6WxtPj1kg+80+RA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.13.0", - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/typescript-estree": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0", + "@typescript-eslint/scope-manager": "8.14.0", + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/typescript-estree": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0", "debug": "^4.3.4" }, "engines": { @@ -5208,13 +5208,13 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.13.0.tgz", - "integrity": "sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz", + "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0" + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5225,9 +5225,9 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.13.0.tgz", - "integrity": "sha512-4cyFErJetFLckcThRUFdReWJjVsPCqyBlJTi6IDEpc1GWCIIZRFxVppjWLIMcQhNGhdWJJRYFHpHoDWvMlDzng==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.14.0.tgz", + "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5238,13 +5238,13 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.13.0.tgz", - "integrity": "sha512-v7SCIGmVsRK2Cy/LTLGN22uea6SaUIlpBcO/gnMGT/7zPtxp90bphcGf4fyrCQl3ZtiBKqVTG32hb668oIYy1g==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz", + "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0", + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -5266,12 +5266,12 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.13.0.tgz", - "integrity": "sha512-7N/+lztJqH4Mrf0lb10R/CbI1EaAMMGyF5y0oJvFoAhafwgiRA7TXyd8TFn8FC8k5y2dTsYogg238qavRGNnlw==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz", + "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/types": "8.14.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -5336,13 +5336,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.13.0.tgz", - "integrity": "sha512-Rqnn6xXTR316fP4D2pohZenJnp+NwQ1mo7/JM+J1LWZENSLkJI8ID8QNtlvFeb0HnFSK94D6q0cnMX6SbE5/vA==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.14.0.tgz", + "integrity": "sha512-Xcz9qOtZuGusVOH5Uk07NGs39wrKkf3AxlkK79RBK6aJC1l03CobXjJbwBPSidetAOV+5rEVuiT1VSBUOAsanQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.13.0", - "@typescript-eslint/utils": "8.13.0", + "@typescript-eslint/typescript-estree": "8.14.0", + "@typescript-eslint/utils": "8.14.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -5360,13 +5360,13 @@ } }, "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.13.0.tgz", - "integrity": "sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz", + "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0" + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5377,9 +5377,9 @@ } }, "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.13.0.tgz", - "integrity": "sha512-4cyFErJetFLckcThRUFdReWJjVsPCqyBlJTi6IDEpc1GWCIIZRFxVppjWLIMcQhNGhdWJJRYFHpHoDWvMlDzng==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.14.0.tgz", + "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5390,13 +5390,13 @@ } }, "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.13.0.tgz", - "integrity": "sha512-v7SCIGmVsRK2Cy/LTLGN22uea6SaUIlpBcO/gnMGT/7zPtxp90bphcGf4fyrCQl3ZtiBKqVTG32hb668oIYy1g==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz", + "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/visitor-keys": "8.13.0", + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/visitor-keys": "8.14.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -5418,15 +5418,15 @@ } }, "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.13.0.tgz", - "integrity": "sha512-A1EeYOND6Uv250nybnLZapeXpYMl8tkzYUxqmoKAWnI4sei3ihf2XdZVd+vVOmHGcp3t+P7yRrNsyyiXTvShFQ==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.14.0.tgz", + "integrity": "sha512-OGqj6uB8THhrHj0Fk27DcHPojW7zKwKkPmHXHvQ58pLYp4hy8CSUdTKykKeh+5vFqTTVmjz0zCOOPKRovdsgHA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.13.0", - "@typescript-eslint/types": "8.13.0", - "@typescript-eslint/typescript-estree": "8.13.0" + "@typescript-eslint/scope-manager": "8.14.0", + "@typescript-eslint/types": "8.14.0", + "@typescript-eslint/typescript-estree": "8.14.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5440,12 +5440,12 @@ } }, "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.13.0.tgz", - "integrity": "sha512-7N/+lztJqH4Mrf0lb10R/CbI1EaAMMGyF5y0oJvFoAhafwgiRA7TXyd8TFn8FC8k5y2dTsYogg238qavRGNnlw==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz", + "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/types": "8.14.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -5887,55 +5887,55 @@ } }, "node_modules/antd": { - "version": "5.21.6", - "resolved": "https://registry.npmjs.org/antd/-/antd-5.21.6.tgz", - "integrity": "sha512-EviOde/VEu+OsIKH5t6YXTMmmNeg9R85m0W5zXAo+Np8Latg9q10691JvAqOTMpnrRmbdeKUQL1Krp69Bzbe/g==", + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/antd/-/antd-5.22.0.tgz", + "integrity": "sha512-hZE8riK8+LWsXUnPpbluvBxjnwXRh34s1yIND7g5WUV/AVZtPjt81jOoXCbKw5SJ8ORIx2o7nlaa4PJ3Luwisg==", "dependencies": { "@ant-design/colors": "^7.1.0", "@ant-design/cssinjs": "^1.21.1", "@ant-design/cssinjs-utils": "^1.1.1", "@ant-design/icons": "^5.5.1", "@ant-design/react-slick": "~1.1.2", - "@babel/runtime": "^7.25.6", + "@babel/runtime": "^7.25.7", "@ctrl/tinycolor": "^3.6.1", "@rc-component/color-picker": "~2.0.1", "@rc-component/mutate-observer": "^1.1.0", "@rc-component/qrcode": "~1.0.0", "@rc-component/tour": "~1.15.1", - "@rc-component/trigger": "^2.2.3", + "@rc-component/trigger": "^2.2.5", "classnames": "^2.5.1", "copy-to-clipboard": "^3.3.3", "dayjs": "^1.11.11", - "rc-cascader": "~3.28.2", + "rc-cascader": "~3.30.0", "rc-checkbox": "~3.3.0", - "rc-collapse": "~3.8.0", + "rc-collapse": "~3.9.0", "rc-dialog": "~9.6.0", "rc-drawer": "~7.2.0", "rc-dropdown": "~4.2.0", - "rc-field-form": "~2.4.0", + "rc-field-form": "~2.5.0", "rc-image": "~7.11.0", "rc-input": "~1.6.3", - "rc-input-number": "~9.2.0", - "rc-mentions": "~2.16.1", - "rc-menu": "~9.15.1", + "rc-input-number": "~9.3.0", + "rc-mentions": "~2.17.0", + "rc-menu": "~9.16.0", "rc-motion": "^2.9.3", "rc-notification": "~5.6.2", "rc-pagination": "~4.3.0", - "rc-picker": "~4.6.15", + "rc-picker": "~4.7.2", "rc-progress": "~4.0.0", "rc-rate": "~2.13.0", "rc-resize-observer": "^1.4.0", "rc-segmented": "~2.5.0", - "rc-select": "~14.15.2", + "rc-select": "~14.16.3", "rc-slider": "~11.1.7", "rc-steps": "~6.0.1", "rc-switch": "~4.1.0", - "rc-table": "~7.47.5", - "rc-tabs": "~15.3.0", + "rc-table": "~7.48.1", + "rc-tabs": "~15.4.0", "rc-textarea": "~1.8.2", "rc-tooltip": "~6.2.1", - "rc-tree": "~5.9.0", - "rc-tree-select": "~5.23.0", + "rc-tree": "~5.10.1", + "rc-tree-select": "~5.24.3", "rc-upload": "~4.8.1", "rc-util": "^5.43.0", "scroll-into-view-if-needed": "^3.1.0", @@ -5950,61 +5950,6 @@ "react-dom": ">=16.9.0" } }, - "node_modules/antd/node_modules/rc-field-form": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/rc-field-form/-/rc-field-form-2.4.0.tgz", - "integrity": "sha512-XZ/lF9iqf9HXApIHQHqzJK5v2w4mkUMsVqAzOyWVzoiwwXEavY6Tpuw7HavgzIoD+huVff4JghSGcgEfX6eycg==", - "dependencies": { - "@babel/runtime": "^7.18.0", - "@rc-component/async-validator": "^5.0.3", - "rc-util": "^5.32.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/antd/node_modules/rc-menu": { - "version": "9.15.1", - "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.15.1.tgz", - "integrity": "sha512-UKporqU6LPfHnpPmtP6hdEK4iO5Q+b7BRv/uRpxdIyDGplZy9jwUjsnpev5bs3PQKB0H0n34WAPDfjAfn3kAPA==", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^2.0.0", - "classnames": "2.x", - "rc-motion": "^2.4.3", - "rc-overflow": "^1.3.1", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/antd/node_modules/rc-tabs": { - "version": "15.3.0", - "resolved": "https://registry.npmjs.org/rc-tabs/-/rc-tabs-15.3.0.tgz", - "integrity": "sha512-lzE18r+zppT/jZWOAWS6ntdkDUKHOLJzqMi5UAij1LeKwOaQaupupAoI9Srn73GRzVpmGznkECMRrzkRusC40A==", - "dependencies": { - "@babel/runtime": "^7.11.2", - "classnames": "2.x", - "rc-dropdown": "~4.2.0", - "rc-menu": "~9.15.1", - "rc-motion": "^2.6.2", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.34.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -6069,11 +6014,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-tree-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-tree-filter/-/array-tree-filter-2.1.0.tgz", - "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==" - }, "node_modules/array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", @@ -13008,9 +12948,9 @@ } }, "node_modules/knip": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/knip/-/knip-5.36.2.tgz", - "integrity": "sha512-MudNTKBSqThAFAV29GuRPSKSebByZeQCFeNgXVRVSd+sXcubehTgQHTGqqiwlXGCt4WBP7vuVekp0ZehfZtHuw==", + "version": "5.36.7", + "resolved": "https://registry.npmjs.org/knip/-/knip-5.36.7.tgz", + "integrity": "sha512-PSuu62+6wqd1Q1V/ZzbDhvJ3X+RU8wZILon90h2s93+d1OZL118ZE9WihzSqwP29GVt72MTlbS/HHG+O47H68w==", "dev": true, "funding": [ { @@ -14854,16 +14794,15 @@ } }, "node_modules/rc-cascader": { - "version": "3.28.2", - "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.28.2.tgz", - "integrity": "sha512-8f+JgM83iLTvjgdkgU7GfI4qY8icXOBP0cGZjOdx2iJAkEe8ucobxDQAVE69UD/c3ehCxZlcgEHeD5hFmypbUw==", + "version": "3.30.0", + "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.30.0.tgz", + "integrity": "sha512-rrzSbk1Bdqbu+pDwiLCLHu72+lwX9BZ28+JKzoi0DWZ4N29QYFeip8Gctl33QVd2Xg3Rf14D3yAOG76ElJw16w==", "dependencies": { - "@babel/runtime": "^7.12.5", - "array-tree-filter": "^2.1.0", + "@babel/runtime": "^7.25.7", "classnames": "^2.3.1", - "rc-select": "~14.15.0", - "rc-tree": "~5.9.0", - "rc-util": "^5.37.0" + "rc-select": "~14.16.2", + "rc-tree": "~5.10.1", + "rc-util": "^5.43.0" }, "peerDependencies": { "react": ">=16.9.0", @@ -14885,9 +14824,9 @@ } }, "node_modules/rc-collapse": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-3.8.0.tgz", - "integrity": "sha512-YVBkssrKPBG09TGfcWWGj8zJBYD9G3XuTy89t5iUmSXrIXEAnO1M+qjUxRW6b4Qi0+wNWG6MHJF/+US+nmIlzA==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-3.9.0.tgz", + "integrity": "sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA==", "dependencies": { "@babel/runtime": "^7.10.1", "classnames": "2.x", @@ -14995,9 +14934,9 @@ } }, "node_modules/rc-input-number": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-9.2.0.tgz", - "integrity": "sha512-5XZFhBCV5f9UQ62AZ2hFbEY8iZT/dm23Q1kAg0H8EvOgD3UDbYYJAayoVIkM3lQaCqYAW5gV0yV3vjw1XtzWHg==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-9.3.0.tgz", + "integrity": "sha512-JQ363ywqRyxwgVxpg2z2kja3CehTpYdqR7emJ/6yJjRdbvo+RvfE83fcpBCIJRq3zLp8SakmEXq60qzWyZ7Usw==", "dependencies": { "@babel/runtime": "^7.10.1", "@rc-component/mini-decimal": "^1.0.1", @@ -15011,15 +14950,15 @@ } }, "node_modules/rc-mentions": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-2.16.1.tgz", - "integrity": "sha512-GnhSTGP9Mtv6pqFFGQze44LlrtWOjHNrUUAcsdo9DnNAhN4pwVPEWy4z+2jpjkiGlJ3VoXdvMHcNDQdfI9fEaw==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-2.17.0.tgz", + "integrity": "sha512-sfHy+qLvc+p8jx8GUsujZWXDOIlIimp6YQz7N5ONQ6bHsa2kyG+BLa5k2wuxgebBbH97is33wxiyq5UkiXRpHA==", "dependencies": { "@babel/runtime": "^7.22.5", "@rc-component/trigger": "^2.0.0", "classnames": "^2.2.6", "rc-input": "~1.6.0", - "rc-menu": "~9.15.1", + "rc-menu": "~9.16.0", "rc-textarea": "~1.8.0", "rc-util": "^5.34.1" }, @@ -15028,23 +14967,6 @@ "react-dom": ">=16.9.0" } }, - "node_modules/rc-mentions/node_modules/rc-menu": { - "version": "9.15.1", - "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.15.1.tgz", - "integrity": "sha512-UKporqU6LPfHnpPmtP6hdEK4iO5Q+b7BRv/uRpxdIyDGplZy9jwUjsnpev5bs3PQKB0H0n34WAPDfjAfn3kAPA==", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^2.0.0", - "classnames": "2.x", - "rc-motion": "^2.4.3", - "rc-overflow": "^1.3.1", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, "node_modules/rc-menu": { "version": "9.16.0", "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.16.0.tgz", @@ -15124,9 +15046,9 @@ } }, "node_modules/rc-picker": { - "version": "4.6.15", - "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-4.6.15.tgz", - "integrity": "sha512-OWZ1yrMie+KN2uEUfYCfS4b2Vu6RC1FWwNI0s+qypsc3wRt7g+peuZKVIzXCTaJwyyZruo80+akPg2+GmyiJjw==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-4.7.2.tgz", + "integrity": "sha512-KShWVIdrncIKBZ1rm6E2s4Di9jlpcm38EYIZ472skXqKUz8YKlWQgewG5dT+HUjfon+tLs7dp5kmWUe0bW7Gqw==", "dependencies": { "@babel/runtime": "^7.24.7", "@rc-component/trigger": "^2.0.0", @@ -15223,9 +15145,9 @@ } }, "node_modules/rc-select": { - "version": "14.15.2", - "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-14.15.2.tgz", - "integrity": "sha512-oNoXlaFmpqXYcQDzcPVLrEqS2J9c+/+oJuGrlXeVVX/gVgrbHa5YcyiRUXRydFjyuA7GP3elRuLF7Y3Tfwltlw==", + "version": "14.16.3", + "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-14.16.3.tgz", + "integrity": "sha512-51+j6s3fJJJXB7E+B6W1hM4Tjzv1B/Decooz9ilgegDBt3ZAth1b/xMwYCTrT5BbG2e53XACQsyDib2+3Ro1fg==", "dependencies": { "@babel/runtime": "^7.10.1", "@rc-component/trigger": "^2.1.1", @@ -15292,9 +15214,9 @@ } }, "node_modules/rc-table": { - "version": "7.47.5", - "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.47.5.tgz", - "integrity": "sha512-fzq+V9j/atbPIcvs3emuclaEoXulwQpIiJA6/7ey52j8+9cJ4P8DGmp4YzfUVDrb3qhgedcVeD6eRgUrokwVEQ==", + "version": "7.48.1", + "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.48.1.tgz", + "integrity": "sha512-Z4mDKjWg+xz/Ezdw6ivWcbqRpaJ0QfCORRoRrlrw65KSGZLK8OcTdacH22/fyGb8L4It/0/9qcMm8VrVAk/WBw==", "dependencies": { "@babel/runtime": "^7.10.1", "@rc-component/context": "^1.4.0", @@ -15363,9 +15285,9 @@ } }, "node_modules/rc-tree": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-5.9.0.tgz", - "integrity": "sha512-CPrgOvm9d/9E+izTONKSngNzQdIEjMox2PBufWjS1wf7vxtvmCWzK1SlpHbRY6IaBfJIeZ+88RkcIevf729cRg==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-5.10.1.tgz", + "integrity": "sha512-FPXb3tT/u39mgjr6JNlHaUTYfHkVGW56XaGDahDpEFLGsnPxGcVLNTjcqoQb/GNbSCycl7tD7EvIymwOTP0+Yw==", "dependencies": { "@babel/runtime": "^7.10.1", "classnames": "2.x", @@ -15382,15 +15304,15 @@ } }, "node_modules/rc-tree-select": { - "version": "5.23.0", - "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-5.23.0.tgz", - "integrity": "sha512-aQGi2tFSRw1WbXv0UVXPzHm09E0cSvUVZMLxQtMv3rnZZpNmdRXWrnd9QkLNlVH31F+X5rgghmdSFF3yZW0N9A==", + "version": "5.24.4", + "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-5.24.4.tgz", + "integrity": "sha512-MzljkSkk7weKOcE853UtYlXB6uyUEzcEQhhpaCwE6jQPbmBUgGiRURuKWpYUnM/dXrwTTlCK969M6Pgjj35MLA==", "dependencies": { - "@babel/runtime": "^7.10.1", + "@babel/runtime": "^7.25.7", "classnames": "2.x", - "rc-select": "~14.15.0", - "rc-tree": "~5.9.0", - "rc-util": "^5.16.1" + "rc-select": "~14.16.2", + "rc-tree": "~5.10.1", + "rc-util": "^5.43.0" }, "peerDependencies": { "react": "*", @@ -15430,9 +15352,9 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" }, "node_modules/rc-virtual-list": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-3.14.2.tgz", - "integrity": "sha512-rA+W5xryhklJAcmswNyuKB3ZGeB855io+yOFQK5u/RXhjdshGblfKpNkQr4/9fBhZns0+uiL/0/s6IP2krtSmg==", + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-3.15.0.tgz", + "integrity": "sha512-dF2YQztqrU3ijAeWOqscTshCEr7vpimzSqAVjO1AyAmaqcHulaXpnGR0ptK5PXfxTUy48VkJOiglMIxlkYGs0w==", "dependencies": { "@babel/runtime": "^7.20.0", "classnames": "^2.2.6", @@ -15503,11 +15425,11 @@ "peer": true }, "node_modules/react-router": { - "version": "6.27.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.27.0.tgz", - "integrity": "sha512-YA+HGZXz4jaAkVoYBE98VQl+nVzI+cVI2Oj/06F5ZM+0u3TgedN9Y9kmMRo2mnkSK2nCpNQn0DVob4HCsY/WLw==", + "version": "6.28.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.28.0.tgz", + "integrity": "sha512-HrYdIFqdrnhDw0PqG/AKjAqEqM7AvxCz0DQ4h2W8k6nqmc5uRBYDag0SBxx9iYz5G8gnuNVLzUe13wl9eAsXXg==", "dependencies": { - "@remix-run/router": "1.20.0" + "@remix-run/router": "1.21.0" }, "engines": { "node": ">=14.0.0" @@ -15517,12 +15439,12 @@ } }, "node_modules/react-router-dom": { - "version": "6.27.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.27.0.tgz", - "integrity": "sha512-+bvtFWMC0DgAFrfKXKG9Fc+BcXWRUO1aJIihbB79xaeq0v5UzfvnM5houGUm1Y461WVRcgAQ+Clh5rdb1eCx4g==", + "version": "6.28.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.28.0.tgz", + "integrity": "sha512-kQ7Unsl5YdyOltsPGl31zOjLrDv+m2VcIEcIHqYYD3Lp0UppLjrzcfJqDJwXxFw3TH/yvapbnUvPlAj7Kx5nbg==", "dependencies": { - "@remix-run/router": "1.20.0", - "react-router": "6.27.0" + "@remix-run/router": "1.21.0", + "react-router": "6.28.0" }, "engines": { "node": ">=14.0.0" @@ -17588,9 +17510,9 @@ "dev": true }, "node_modules/uuid": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.2.tgz", - "integrity": "sha512-14FfcOJmqdjbBPdDjFQyk/SdT4NySW4eM0zcG+HqbHP5jzuH56xO3J1DGhgs/cEMCfwYi3HQI1gnTO62iaG+tQ==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.3.tgz", + "integrity": "sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==", "dev": true, "funding": [ "https://github.com/sponsors/broofa", @@ -17615,9 +17537,9 @@ } }, "node_modules/vite": { - "version": "5.4.10", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.10.tgz", - "integrity": "sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==", + "version": "5.4.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz", + "integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==", "dev": true, "dependencies": { "esbuild": "^0.21.3", diff --git a/package.json b/package.json index 9c671ea0..dff47da0 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "xpanse-ui", - "version": "1.0.17", + "version": "1.0.18", "private": true, "type": "module", "dependencies": { "@ant-design/icons": "^5.5.1", "@axa-fr/react-oidc": "^7.22.32", - "@tanstack/react-query": "^5.59.19", - "antd": "^5.21.6", + "@tanstack/react-query": "^5.59.20", + "antd": "^5.22.0", "echarts": "5.5.1", "echarts-for-react": "^3.0.2", "rc-field-form": "^2.5.0", @@ -15,7 +15,7 @@ "rc-tabs": "^15.4.0", "react": "^18.2.0", "react-dom": "^18.3.1", - "react-router-dom": "^6.27.0", + "react-router-dom": "^6.28.0", "react-timer-hook": "^3.0.8", "yaml": "^2.6.0", "zustand": "^5.0.1" @@ -100,18 +100,18 @@ }, "devDependencies": { "@axa-fr/oidc-client": "^7.22.32", - "@hey-api/openapi-ts": "^0.54.2", + "@hey-api/openapi-ts": "^0.55.2", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@tanstack/eslint-plugin-query": "^5.59.7", + "@tanstack/eslint-plugin-query": "^5.60.1", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.0.1", "@types/jest": "^29.5.14", - "@types/node": "^22.8.7", + "@types/node": "^22.9.0", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@types/uuid": "^10.0.0", - "@typescript-eslint/eslint-plugin": "^8.13.0", - "@typescript-eslint/parser": "^8.13.0", + "@typescript-eslint/eslint-plugin": "^8.14.0", + "@typescript-eslint/parser": "^8.14.0", "@vitejs/plugin-react": "^4.3.3", "env-cmd": "^10.1.0", "eslint": "^8.57.1", @@ -125,14 +125,14 @@ "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "knip": "^5.36.2", + "knip": "^5.36.7", "prettier": "3.3.3", "prettier-plugin-organize-imports": "^4.1.0", "release-it": "^17.10.0", "ts-jest": "^29.2.5", "typescript": "5.6.3", - "uuid": "^11.0.2", - "vite": "^5.4.10" + "uuid": "^11.0.3", + "vite": "^5.4.11" }, "overrides": { "react-scripts": { diff --git a/public/OidcServiceWorker.js b/public/OidcServiceWorker.js index dde8e81d..1a8e50a9 100644 --- a/public/OidcServiceWorker.js +++ b/public/OidcServiceWorker.js @@ -497,7 +497,7 @@ const extractConfigurationNameFromCodeVerifier = (chaine) => { return null; } }; -const version = "7.22.26"; +const version = "7.22.32"; if (typeof trustedTypes !== "undefined" && typeof trustedTypes.createPolicy == "function") { trustedTypes.createPolicy("default", { createScriptURL: function(url) { diff --git a/src/components/content/common/latestServiceOrderStatusQuery/useLatestServiceOrderStatusQuery.ts b/src/components/content/common/latestServiceOrderStatusQuery/useLatestServiceOrderStatusQuery.ts new file mode 100644 index 00000000..18724937 --- /dev/null +++ b/src/components/content/common/latestServiceOrderStatusQuery/useLatestServiceOrderStatusQuery.ts @@ -0,0 +1,37 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Huawei Inc. + */ + +import { useQuery } from '@tanstack/react-query'; +import { + getLatestServiceOrderStatus, + GetLatestServiceOrderStatusData, + taskStatus, +} from '../../../../xpanse-api/generated'; +import { deploymentStatusPollingInterval } from '../../../utils/constants.tsx'; + +export function useLatestServiceOrderStatusQuery( + orderId: string | undefined, + isStartPolling: boolean, + refetchUntilStates: taskStatus[] +) { + return useQuery({ + queryKey: ['getServiceDetailsById', orderId], + queryFn: () => { + const data: GetLatestServiceOrderStatusData = { + lastKnownServiceDeploymentState: undefined, + orderId: orderId ?? '', + }; + return getLatestServiceOrderStatus(data); + }, + refetchInterval: (query) => + query.state.data && refetchUntilStates.includes(query.state.data.taskStatus as taskStatus) + ? false + : deploymentStatusPollingInterval, + refetchIntervalInBackground: true, + refetchOnWindowFocus: false, + enabled: orderId !== undefined && isStartPolling, + gcTime: 0, + }); +} diff --git a/src/components/content/deployedServices/myServices/MyServices.tsx b/src/components/content/deployedServices/myServices/MyServices.tsx index aa58648d..ea303371 100644 --- a/src/components/content/deployedServices/myServices/MyServices.tsx +++ b/src/components/content/deployedServices/myServices/MyServices.tsx @@ -46,6 +46,7 @@ import { import { sortVersionNum } from '../../../utils/Sort'; import { serviceIdQuery, serviceStateQuery } from '../../../utils/constants'; import { cspMap } from '../../common/csp/CspLogo'; +import { useLatestServiceOrderStatusQuery } from '../../common/latestServiceOrderStatusQuery/useLatestServiceOrderStatusQuery.ts'; import { ContactDetailsShowType } from '../../common/ocl/ContactDetailsShowType'; import { ContactDetailsText } from '../../common/ocl/ContactDetailsText'; import { getExistingServiceParameters } from '../../order/common/utils/existingServiceParameters'; @@ -55,10 +56,7 @@ import { Locks } from '../../order/locks/Locks'; import { Migrate } from '../../order/migrate/Migrate'; import { Modify } from '../../order/modify/Modify'; import OrderSubmitStatusAlert from '../../order/orderStatus/OrderSubmitStatusAlert'; -import { - useLatestServiceOrderStatusQuery, - useServiceDetailsByIdQuery, -} from '../../order/orderStatus/useServiceDetailsPollingQuery'; +import { useServiceDetailsByIdQuery } from '../../order/orderStatus/useServiceDetailsPollingQuery'; import { PurgeServiceStatusAlert } from '../../order/purge/PurgeServiceStatusAlert'; import { usePurgeRequestStatusQuery } from '../../order/purge/usePurgeRequestStatusQuery'; import { usePurgeRequestSubmitQuery } from '../../order/purge/usePurgeRequestSubmitQuery'; diff --git a/src/components/content/order/create/OrderSubmit.tsx b/src/components/content/order/create/OrderSubmit.tsx index 78f69209..46eb05ad 100644 --- a/src/components/content/order/create/OrderSubmit.tsx +++ b/src/components/content/order/create/OrderSubmit.tsx @@ -13,20 +13,18 @@ import serviceOrderStyles from '../../../../styles/service-order.module.css'; import tableStyles from '../../../../styles/table.module.css'; import { ApiError, DeployRequest, taskStatus } from '../../../../xpanse-api/generated'; import { - CUSTOMER_SERVICE_NAME_FIELD, createServicePageRoute, + CUSTOMER_SERVICE_NAME_FIELD, homePageRoute, servicesSubPageRoute, } from '../../../utils/constants'; import { ApiDoc } from '../../common/doc/ApiDoc'; +import { useLatestServiceOrderStatusQuery } from '../../common/latestServiceOrderStatusQuery/useLatestServiceOrderStatusQuery.ts'; import { EulaInfo } from '../common/EulaInfo'; import { OrderItem } from '../common/utils/OrderItem'; import { OrderSubmitProps } from '../common/utils/OrderSubmitProps'; import OrderSubmitStatusAlert from '../orderStatus/OrderSubmitStatusAlert'; -import { - useLatestServiceOrderStatusQuery, - useServiceDetailsByIdQuery, -} from '../orderStatus/useServiceDetailsPollingQuery'; +import { useServiceDetailsByIdQuery } from '../orderStatus/useServiceDetailsPollingQuery'; import useRedeployFailedDeploymentQuery from '../retryDeployment/useRedeployFailedDeploymentQuery'; import { useOrderFormStore } from '../store/OrderFormStore'; import NavigateOrderSubmission from './NavigateOrderSubmission'; diff --git a/src/components/content/order/migrate/MigrateServiceStatusAlert.tsx b/src/components/content/order/migrate/MigrateServiceStatusAlert.tsx index 345d6578..ffcec4f0 100644 --- a/src/components/content/order/migrate/MigrateServiceStatusAlert.tsx +++ b/src/components/content/order/migrate/MigrateServiceStatusAlert.tsx @@ -8,17 +8,20 @@ import { useStopwatch } from 'react-timer-hook'; import { ApiError, DeployedServiceDetails, - migrationStatus, + GetLatestServiceOrderStatusResponse, Response, - ServiceMigrationDetails, + ServiceOrder, ServiceProviderContactDetails, + taskStatus, + VendorHostedDeployedServiceDetails, } from '../../../../xpanse-api/generated'; import { convertStringArrayToUnorderedList } from '../../../utils/generateUnorderedList'; import { MigrationOrderSubmitResult } from './MigrationOrderSubmitResult'; -import { MigrationProcessingStatus } from './MigrationProcessingStatus'; +import { MigrationProcessingStatus } from './MigrationProcessingStatus.tsx'; function MigrateServiceStatusAlert({ migrateRequestError, + migrateRequestData, deployedServiceDetails, oldDeployedServiceDetails, serviceProviderContactDetails, @@ -26,52 +29,19 @@ function MigrateServiceStatusAlert({ migrationDetails, }: { migrateRequestError: Error | null; - deployedServiceDetails: DeployedServiceDetails | undefined; - oldDeployedServiceDetails: DeployedServiceDetails | undefined; + migrateRequestData: ServiceOrder | undefined; + deployedServiceDetails: DeployedServiceDetails | VendorHostedDeployedServiceDetails | undefined; + oldDeployedServiceDetails: DeployedServiceDetails | VendorHostedDeployedServiceDetails | undefined; serviceProviderContactDetails: ServiceProviderContactDetails | undefined; isPollingError: boolean; - migrationDetails: ServiceMigrationDetails | undefined; + migrationDetails: GetLatestServiceOrderStatusResponse | undefined; }): React.JSX.Element { const stopWatch = useStopwatch({ autoStart: true, }); const msg = useMemo(() => { - if (migrationDetails) { - if ( - deployedServiceDetails && - (migrationDetails.migrationStatus === migrationStatus.MIGRATION_COMPLETED || - migrationDetails.migrationStatus === migrationStatus.DEPLOY_FAILED) - ) { - return ( - - ); - } else if ( - oldDeployedServiceDetails && - migrationDetails.migrationStatus === migrationStatus.DESTROY_FAILED - ) { - return ( - - ); - } else if ( - migrationDetails.migrationStatus === migrationStatus.DATA_IMPORT_FAILED || - migrationDetails.migrationStatus === migrationStatus.DATA_EXPORT_FAILED - ) { - return 'Data Migration Failed'; - } else if (migrationDetails.migrationStatus === migrationStatus.DEPLOY_STARTED) { - return 'New Service Deployment In-progress'; - } else if (migrationDetails.migrationStatus === migrationStatus.DESTROY_STARTED) { - return 'Old Service Destroy In-progress'; - } else { - return 'Migrating... Please wait...'; - } - } else if (migrateRequestError) { + if (migrateRequestError) { if ( migrateRequestError instanceof ApiError && migrateRequestError.body && @@ -85,8 +55,19 @@ function MigrateServiceStatusAlert({ } } else if (isPollingError) { return 'Migration status polling failed. Please visit MyServices page to check the status of the request.'; + } else if (migrationDetails) { + if (migrationDetails.isOrderCompleted) { + return ( + + ); + } else { + return 'Migrating... Please wait...'; + } } - return 'Request submission in-progress'; + return 'Migrate request submission in-progress'; }, [deployedServiceDetails, migrationDetails, isPollingError, migrateRequestError, oldDeployedServiceDetails]); const alertType = useMemo(() => { @@ -94,20 +75,14 @@ function MigrateServiceStatusAlert({ return 'error'; } if (migrationDetails) { - if ( - migrationDetails.migrationStatus === migrationStatus.MIGRATION_FAILED || - migrationDetails.migrationStatus === migrationStatus.DATA_EXPORT_FAILED || - migrationDetails.migrationStatus === migrationStatus.DATA_IMPORT_FAILED || - migrationDetails.migrationStatus === migrationStatus.DEPLOY_FAILED || - migrationDetails.migrationStatus === migrationStatus.DESTROY_FAILED - ) { + if (migrationDetails.taskStatus === taskStatus.FAILED) { return 'error'; } } return 'success'; }, [migrationDetails, isPollingError, migrateRequestError]); - if (isPollingError || migrateRequestError) { + if (isPollingError || migrateRequestError || migrationDetails?.isOrderCompleted) { if (stopWatch.isRunning) { stopWatch.pause(); } @@ -123,14 +98,7 @@ function MigrateServiceStatusAlert({ } if (migrationDetails) { - if ( - migrationDetails.migrationStatus === migrationStatus.MIGRATION_FAILED || - migrationDetails.migrationStatus === migrationStatus.DATA_EXPORT_FAILED || - migrationDetails.migrationStatus === migrationStatus.DATA_IMPORT_FAILED || - migrationDetails.migrationStatus === migrationStatus.DEPLOY_FAILED || - migrationDetails.migrationStatus === migrationStatus.DESTROY_FAILED || - migrationDetails.migrationStatus === migrationStatus.MIGRATION_COMPLETED - ) { + if (migrationDetails.taskStatus === taskStatus.FAILED) { if (stopWatch.isRunning) { stopWatch.pause(); } @@ -140,7 +108,7 @@ function MigrateServiceStatusAlert({ return ( { + const previous = () => { setCurrentMigrationStep(MigrationSteps.ImportServiceData); }; - if (migrateServiceDetailsQuery.data) { - if (migrateServiceDetailsQuery.data.migrationStatus === migrationStatus.MIGRATION_COMPLETED) { + if (getMigrateLatestServiceOrderStatusQuery.data) { + if (getMigrateLatestServiceOrderStatusQuery.data.taskStatus === taskStatus.SUCCESSFUL) { stepItem.status = 'finish'; - } else if ( - migrateServiceDetailsQuery.data.migrationStatus === migrationStatus.DATA_EXPORT_FAILED || - migrateServiceDetailsQuery.data.migrationStatus === migrationStatus.DEPLOY_FAILED || - migrateServiceDetailsQuery.data.migrationStatus === migrationStatus.DATA_IMPORT_FAILED || - migrateServiceDetailsQuery.data.migrationStatus === migrationStatus.DESTROY_FAILED || - migrateServiceDetailsQuery.data.migrationStatus === migrationStatus.MIGRATION_FAILED - ) { + } else if (getMigrateLatestServiceOrderStatusQuery.data.taskStatus === taskStatus.FAILED) { stepItem.status = 'error'; } else { stepItem.status = 'process'; @@ -136,11 +123,12 @@ export const MigrateServiceSubmit = ({ {isShowDeploymentResult ? ( ) : null}
{ - prev(); + previous(); }} disabled={stepItem.status === 'finish' || stepItem.status === 'process'} > diff --git a/src/components/content/order/migrate/MigrationProcessingStatus.tsx b/src/components/content/order/migrate/MigrationProcessingStatus.tsx index 6ed295fd..cdb55cc3 100644 --- a/src/components/content/order/migrate/MigrationProcessingStatus.tsx +++ b/src/components/content/order/migrate/MigrationProcessingStatus.tsx @@ -14,43 +14,72 @@ import { import { convertMapToDetailsList } from '../../../utils/convertMapToDetailsList'; export function MigrationProcessingStatus({ - response, - currentServiceHostingType, + deployedResponse, + destroyedResponse, }: { - response: DeployedServiceDetails | VendorHostedDeployedServiceDetails; - currentServiceHostingType: string; + deployedResponse: DeployedServiceDetails | VendorHostedDeployedServiceDetails | undefined; + destroyedResponse: DeployedServiceDetails | VendorHostedDeployedServiceDetails | undefined; }): React.JSX.Element { const endPointMap = new Map(); - if (response.serviceDeploymentState === serviceDeploymentState.DEPLOYMENT_SUCCESSFUL) { - if (response.deployedServiceProperties) { - for (const key in response.deployedServiceProperties) { - endPointMap.set(key, response.deployedServiceProperties[key]); + + if (deployedResponse && deployedResponse.serviceDeploymentState === serviceDeploymentState.DEPLOYMENT_SUCCESSFUL) { + if ( + destroyedResponse && + destroyedResponse.serviceDeploymentState === serviceDeploymentState.DESTROY_SUCCESSFUL + ) { + if (deployedResponse.deployedServiceProperties) { + for (const key in deployedResponse.deployedServiceProperties) { + endPointMap.set(key, deployedResponse.deployedServiceProperties[key]); + } } - } - if (endPointMap.size > 0) { + if (endPointMap.size > 0) { + return ( + <> + {'Deployment Successful'} +
+ {convertMapToDetailsList(endPointMap, 'Endpoint Information')} +
+ + ); + } else { + return {'Migration Successful'}; + } + } else if ( + destroyedResponse && + destroyedResponse.serviceDeploymentState === serviceDeploymentState.DESTROY_FAILED + ) { return ( - <> - {'Deployment Successful'} -
- {convertMapToDetailsList(endPointMap, 'Endpoint Information')} +
+ {'Migration Failed.'} +
+ {destroyedResponse.serviceHostingType === serviceHostingType.SELF.toString() + ? (destroyedResponse as DeployedServiceDetails).resultMessage + ? (destroyedResponse as DeployedServiceDetails).resultMessage + : (destroyedResponse as DeployedServiceDetails).resultMessage + : 'Migrate status polling failed. Please visit MyServices page to check ' + + 'the status of the request and contact service vendor for error details.'}
- +
); - } else { - return {'Migration Successful'}; } - } else if (response.serviceDeploymentState === serviceDeploymentState.DEPLOYMENT_FAILED) { + } else if ( + deployedResponse && + deployedResponse.serviceDeploymentState === serviceDeploymentState.DEPLOYMENT_FAILED + ) { return (
{'Migration Failed.'}
- {currentServiceHostingType === serviceHostingType.SELF.toString() - ? (response as DeployedServiceDetails).resultMessage + {deployedResponse.serviceHostingType === serviceHostingType.SELF.toString() + ? (deployedResponse as DeployedServiceDetails).resultMessage + ? (deployedResponse as DeployedServiceDetails).resultMessage + : (deployedResponse as DeployedServiceDetails).resultMessage : 'Migrate status polling failed. Please visit MyServices page to check ' + 'the status of the request and contact service vendor for error details.'}
); } + return <>; } diff --git a/src/components/content/order/migrate/useMigrateServiceQuery.ts b/src/components/content/order/migrate/useMigrateServiceQuery.ts index 72a0142a..064fc817 100644 --- a/src/components/content/order/migrate/useMigrateServiceQuery.ts +++ b/src/components/content/order/migrate/useMigrateServiceQuery.ts @@ -5,21 +5,18 @@ import { useMutation, useQuery } from '@tanstack/react-query'; import { - GetMigrationOrderDetailsByIdData, + getSelfHostedServiceDetailsById, GetSelfHostedServiceDetailsByIdData, + getVendorHostedServiceDetailsById, GetVendorHostedServiceDetailsByIdData, + migrate, MigrateData, MigrateRequest, - getMigrationOrderDetailsById, - getSelfHostedServiceDetailsById, - getVendorHostedServiceDetailsById, - migrate, - migrationStatus, serviceHostingType, + taskStatus, } from '../../../../xpanse-api/generated'; -import { deploymentStatusPollingInterval } from '../../../utils/constants'; -export function useMigrateServiceQuery() { +export function useMigrateServiceRequest() { return useMutation({ mutationFn: (migrateRequest: MigrateRequest) => { const data: MigrateData = { @@ -30,33 +27,10 @@ export function useMigrateServiceQuery() { }); } -export function useMigrateServiceDetailsPollingQuery( - migrationId: string | undefined, - isStartPolling: boolean, - refetchUntilStates: migrationStatus[] -) { - return useQuery({ - queryKey: ['getServiceDetailsById', migrationId], - queryFn: () => { - const data: GetMigrationOrderDetailsByIdData = { - migrationId: migrationId ?? '', - }; - return getMigrationOrderDetailsById(data); - }, - refetchInterval: (query) => - query.state.data && refetchUntilStates.includes(query.state.data.migrationStatus as migrationStatus) - ? false - : deploymentStatusPollingInterval, - refetchIntervalInBackground: true, - refetchOnWindowFocus: false, - enabled: migrationId !== undefined && isStartPolling, - }); -} - -export function useServiceDetailsPollingQuery( +export function useServiceDetailsByServiceIdQuery( serviceId: string | undefined, currentServiceHostingType: string, - currentMigrationStatus: string | undefined + currentMigrationTaskStatus: string | undefined ) { return useQuery({ queryKey: ['getServiceDetailsById', serviceId, currentServiceHostingType], @@ -75,9 +49,7 @@ export function useServiceDetailsPollingQuery( }, enabled: serviceId !== undefined && - (currentMigrationStatus === migrationStatus.MIGRATION_COMPLETED || - currentMigrationStatus === migrationStatus.DEPLOY_FAILED || - currentMigrationStatus === migrationStatus.DESTROY_FAILED), + (currentMigrationTaskStatus === taskStatus.SUCCESSFUL || currentMigrationTaskStatus === taskStatus.FAILED), staleTime: Infinity, gcTime: Infinity, }); diff --git a/src/components/content/order/orderStatus/OrderSubmitResultDetails.tsx b/src/components/content/order/orderStatus/OrderSubmitResultDetails.tsx index 74764742..3fb34a68 100644 --- a/src/components/content/order/orderStatus/OrderSubmitResultDetails.tsx +++ b/src/components/content/order/orderStatus/OrderSubmitResultDetails.tsx @@ -43,7 +43,9 @@ function OrderSubmitResultDetails({ msg, uuid }: { msg: string | React.JSX.Eleme
- {msg} +
+                
{msg}
+
); } diff --git a/src/components/content/order/orderStatus/useServiceDetailsPollingQuery.ts b/src/components/content/order/orderStatus/useServiceDetailsPollingQuery.ts index 11a74b8b..c75d1e04 100644 --- a/src/components/content/order/orderStatus/useServiceDetailsPollingQuery.ts +++ b/src/components/content/order/orderStatus/useServiceDetailsPollingQuery.ts @@ -5,15 +5,12 @@ import { useQuery } from '@tanstack/react-query'; import { - getLatestServiceOrderStatus, - GetLatestServiceOrderStatusData, getSelfHostedServiceDetailsById, GetSelfHostedServiceDetailsByIdData, getVendorHostedServiceDetailsById, GetVendorHostedServiceDetailsByIdData, serviceDeploymentState, serviceHostingType, - taskStatus, } from '../../../../xpanse-api/generated'; import { deploymentStatusPollingInterval } from '../../../utils/constants'; @@ -77,28 +74,3 @@ export function useServiceDetailsByIdQuery( gcTime: 0, }); } - -export function useLatestServiceOrderStatusQuery( - orderId: string | undefined, - isStartPolling: boolean, - refetchUntilStates: taskStatus[] -) { - return useQuery({ - queryKey: ['getServiceDetailsById', orderId], - queryFn: () => { - const data: GetLatestServiceOrderStatusData = { - lastKnownServiceDeploymentState: undefined, - orderId: orderId ?? '', - }; - return getLatestServiceOrderStatus(data); - }, - refetchInterval: (query) => - query.state.data && refetchUntilStates.includes(query.state.data.taskStatus as taskStatus) - ? false - : deploymentStatusPollingInterval, - refetchIntervalInBackground: true, - refetchOnWindowFocus: false, - enabled: orderId !== undefined && isStartPolling, - gcTime: 0, - }); -} diff --git a/src/styles/submit-alert.module.css b/src/styles/submit-alert.module.css index 984ed6a8..b241b193 100644 --- a/src/styles/submit-alert.module.css +++ b/src/styles/submit-alert.module.css @@ -7,4 +7,6 @@ margin-bottom: 20px; margin-left: 30px; margin-right: 30px; + max-width: 100%; + overflow: hidden; } diff --git a/src/styles/submit-result.module.css b/src/styles/submit-result.module.css index 6b45e6d0..2b8d4474 100644 --- a/src/styles/submit-result.module.css +++ b/src/styles/submit-result.module.css @@ -19,3 +19,8 @@ .result-main-details { margin-bottom: 0 !important; } + +.order-submit-result-content { + white-space: pre-wrap; + word-break: break-all; +} diff --git a/src/xpanse-api/api.json b/src/xpanse-api/api.json index 8a435963..3a7fb326 100644 --- a/src/xpanse-api/api.json +++ b/src/xpanse-api/api.json @@ -3,7 +3,7 @@ "info": { "title": "XpanseAPI", "description": "RESTful Services to interact with Xpanse runtime.", - "version": "@project.version@" + "version": "1.0.22-SNAPSHOT" }, "servers": [ { @@ -155,8 +155,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -165,8 +165,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -175,8 +175,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -261,8 +261,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -271,8 +271,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -281,8 +281,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -375,8 +375,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -385,8 +385,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -395,8 +395,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -475,8 +475,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -485,8 +485,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -495,8 +495,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -565,8 +565,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -575,8 +575,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -585,8 +585,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -695,8 +695,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -705,8 +705,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -715,8 +715,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -787,8 +787,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -797,8 +797,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -807,8 +807,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -886,8 +886,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -896,8 +896,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -906,8 +906,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -985,8 +985,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -995,8 +995,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1005,8 +1005,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1084,8 +1084,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1094,8 +1094,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1104,8 +1104,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1129,8 +1129,7 @@ "content": { "application/json": { "schema": { - "type": "string", - "format": "uuid" + "$ref": "#/components/schemas/ServiceOrder" } } } @@ -1195,7 +1194,7 @@ } } }, - "401": { + "502": { "description": "", "content": { "application/json": { @@ -1205,7 +1204,7 @@ } } }, - "502": { + "403": { "description": "", "content": { "application/json": { @@ -1215,7 +1214,7 @@ } } }, - "403": { + "401": { "description": "", "content": { "application/json": { @@ -1294,7 +1293,7 @@ } } }, - "401": { + "502": { "description": "", "content": { "application/json": { @@ -1304,7 +1303,7 @@ } } }, - "502": { + "403": { "description": "", "content": { "application/json": { @@ -1314,7 +1313,7 @@ } } }, - "403": { + "401": { "description": "", "content": { "application/json": { @@ -1404,8 +1403,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1414,8 +1413,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1424,8 +1423,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1514,8 +1513,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1524,8 +1523,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1534,8 +1533,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1554,8 +1553,15 @@ } } }, - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceOrder" + } + } + } } } } @@ -1607,8 +1613,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1617,8 +1623,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1627,8 +1633,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1715,8 +1721,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1725,8 +1731,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1735,8 +1741,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1813,8 +1819,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1823,8 +1829,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1833,8 +1839,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1906,8 +1912,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1916,8 +1922,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1926,8 +1932,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2016,8 +2022,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2026,8 +2032,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2036,8 +2042,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2109,8 +2115,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2119,8 +2125,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2129,8 +2135,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2218,8 +2224,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2228,8 +2234,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2238,8 +2244,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2317,8 +2323,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2327,8 +2333,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2337,8 +2343,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2425,8 +2431,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2435,8 +2441,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2445,8 +2451,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2522,8 +2528,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2532,8 +2538,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2542,8 +2548,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2614,8 +2620,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2624,8 +2630,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2634,8 +2640,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2722,8 +2728,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2732,8 +2738,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2742,8 +2748,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2819,8 +2825,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2829,8 +2835,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2839,8 +2845,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2933,8 +2939,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2943,8 +2949,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2953,8 +2959,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3033,8 +3039,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3043,8 +3049,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3053,8 +3059,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3123,8 +3129,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3133,8 +3139,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3143,8 +3149,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3253,8 +3259,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3263,8 +3269,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3273,8 +3279,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3356,8 +3362,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3366,8 +3372,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3376,8 +3382,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3521,8 +3527,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3531,8 +3537,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3541,8 +3547,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3621,7 +3627,7 @@ } } }, - "401": { + "502": { "description": "", "content": { "application/json": { @@ -3631,7 +3637,7 @@ } } }, - "502": { + "403": { "description": "", "content": { "application/json": { @@ -3641,7 +3647,7 @@ } } }, - "403": { + "401": { "description": "", "content": { "application/json": { @@ -3720,8 +3726,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3730,8 +3736,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3740,8 +3746,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3765,8 +3771,7 @@ "content": { "application/json": { "schema": { - "type": "string", - "format": "uuid" + "$ref": "#/components/schemas/ServiceOrder" } } } @@ -3892,8 +3897,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3902,8 +3907,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3912,8 +3917,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3992,8 +3997,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4002,8 +4007,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4012,8 +4017,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4092,8 +4097,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4102,8 +4107,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4112,8 +4117,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4192,8 +4197,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4202,8 +4207,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4212,8 +4217,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4292,8 +4297,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4302,8 +4307,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4312,8 +4317,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4412,8 +4417,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4422,8 +4427,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4432,8 +4437,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4512,8 +4517,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4522,8 +4527,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4532,8 +4537,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4613,8 +4618,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4623,8 +4628,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4633,8 +4638,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4716,8 +4721,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4726,8 +4731,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4736,8 +4741,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4800,6 +4805,8 @@ "rollback", "modify", "destroy", + "migrate", + "recreate", "lockChange", "configChange", "purge", @@ -4851,8 +4858,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4861,8 +4868,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4871,8 +4878,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4952,8 +4959,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4962,8 +4969,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4972,8 +4979,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5067,16 +5074,6 @@ } } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "502": { "description": "Bad Gateway", "content": { @@ -5097,208 +5094,6 @@ } } }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeploymentStatusUpdate" - } - } - } - } - } - } - }, - "/xpanse/services/recreate": { - "get": { - "tags": ["Service"], - "description": "List all services recreate by a user.
Required role: admin or user
", - "operationId": "listServiceRecreates", - "parameters": [ - { - "name": "recreateId", - "in": "query", - "description": "Id of the service recreate", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "serviceId", - "in": "query", - "description": "Id of the old service", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "recreateStatus", - "in": "query", - "description": "Status of the service recreate", - "required": false, - "schema": { - "type": "string", - "enum": [ - "RecreateStarted", - "RecreateCompleted", - "RecreateFailed", - "DestroyStarted", - "DestroyFailed", - "DestroyCompleted", - "DeployStarted", - "DeployFailed", - "DeployCompleted" - ] - } - } - ], - "responses": { - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ServiceRecreateDetails" - } - } - } - } - } - } - } - }, - "/xpanse/services/recreate/{recreateId}": { - "get": { - "tags": ["Service"], - "description": "Get recreate records based on recreate id.
Required role: admin or user
", - "operationId": "getRecreateOrderDetailsById", - "parameters": [ - { - "name": "recreateId", - "in": "path", - "description": "Recreate ID", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "401": { "description": "Unauthorized", "content": { @@ -5309,26 +5104,6 @@ } } }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "408": { "description": "Request Timeout", "content": { @@ -5344,7 +5119,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceRecreateDetails" + "$ref": "#/components/schemas/DeploymentStatusUpdate" } } } @@ -5358,214 +5133,13 @@ "description": "Get details of the service order by the order id.
Required role: admin or isv or user
", "operationId": "getOrderDetailsByOrderId", "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "Id of the service order", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServiceOrderDetails" - } - } - } - } - } - }, - "delete": { - "tags": ["ServiceOrders"], - "description": "Delete the service order by the order id.
Required role: admin or isv or user
", - "operationId": "deleteOrderByOrderId", - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "Id of the service order", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "204": { - "description": "No Content" - } - } - } - }, - "/xpanse/services/orders/{orderId}/status": { - "get": { - "tags": ["ServiceOrders"], - "description": "Long-polling method to get the latest or updated task status of the service order.
Required role: admin or isv or user
", - "operationId": "getLatestServiceOrderStatus", - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "Id of the service order", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "lastKnownServiceDeploymentState", - "in": "query", - "description": "Last known service order task status to client. When provided, the service will wait for a configured period time until to see if there is a change to the last known state.", - "required": false, + { + "name": "orderId", + "in": "path", + "description": "Id of the service order", + "required": true, "schema": { - "type": "string", - "enum": ["created", "in progress", "successful", "failed"] + "type": "string" } } ], @@ -5600,8 +5174,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5610,8 +5184,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5620,8 +5194,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5645,74 +5219,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceOrderStatusUpdate" + "$ref": "#/components/schemas/ServiceOrderDetails" } } } } } - } - }, - "/xpanse/services/migrations": { - "get": { - "tags": ["Migration"], - "description": "List all services migration by a user.
Required role: admin or user
", - "operationId": "listServiceMigrations", + }, + "delete": { + "tags": ["ServiceOrders"], + "description": "Delete the service order by the order id.
Required role: admin or isv or user
", + "operationId": "deleteOrderByOrderId", "parameters": [ { - "name": "migrationId", - "in": "query", - "description": "Id of the service migrate", - "required": false, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "newServiceId", - "in": "query", - "description": "Id of the new service", - "required": false, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "oldServiceId", - "in": "query", - "description": "Id of the old service", - "required": false, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "migrationStatus", - "in": "query", - "description": "Status of the service migrate", - "required": false, + "name": "orderId", + "in": "path", + "description": "Id of the service order", + "required": true, "schema": { - "type": "string", - "enum": [ - "MigrationStarted", - "MigrationCompleted", - "MigrationFailed", - "DataExportStarted", - "DataExportFailed", - "DataExportCompleted", - "DeployStarted", - "DeployFailed", - "DeployCompleted", - "DataImportStarted", - "DataImportFailed", - "DataImportCompleted", - "DestroyStarted", - "DestroyFailed", - "DestroyCompleted" - ] + "type": "string" } } ], @@ -5747,16 +5272,6 @@ } } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "502": { "description": "Bad Gateway", "content": { @@ -5777,8 +5292,8 @@ } } }, - "408": { - "description": "Request Timeout", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5787,36 +5302,46 @@ } } }, - "200": { - "description": "OK", + "408": { + "description": "Request Timeout", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ServiceMigrationDetails" - } + "$ref": "#/components/schemas/Response" } } } + }, + "204": { + "description": "No Content" } } } }, - "/xpanse/services/migration/{migrationId}": { + "/xpanse/services/orders/{orderId}/status": { "get": { - "tags": ["Migration"], - "description": "Get migration records based on migration id.
Required role: admin or user
", - "operationId": "getMigrationOrderDetailsById", + "tags": ["ServiceOrders"], + "description": "Long-polling method to get the latest or updated task status of the service order.
Required role: admin or isv or user
", + "operationId": "getLatestServiceOrderStatus", "parameters": [ { - "name": "migrationId", + "name": "orderId", "in": "path", - "description": "Migration ID", + "description": "Id of the service order", "required": true, "schema": { "type": "string" } + }, + { + "name": "lastKnownServiceDeploymentState", + "in": "query", + "description": "Last known service order task status to client. When provided, the service will wait for a configured period time until to see if there is a change to the last known state.", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "in progress", "successful", "failed"] + } } ], "responses": { @@ -5850,8 +5375,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5860,8 +5385,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5870,8 +5395,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5895,7 +5420,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceMigrationDetails" + "$ref": "#/components/schemas/ServiceOrderStatusUpdate" } } } @@ -6022,8 +5547,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6032,8 +5557,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6042,8 +5567,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6125,8 +5650,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6135,8 +5660,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6145,8 +5670,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6297,8 +5822,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6307,8 +5832,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6317,8 +5842,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6400,8 +5925,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6410,8 +5935,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6420,8 +5945,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6500,8 +6025,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6510,8 +6035,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6520,8 +6045,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6637,8 +6162,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6647,8 +6172,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6657,8 +6182,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6740,8 +6265,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6750,8 +6275,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6760,8 +6285,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6877,8 +6402,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6887,8 +6412,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6897,8 +6422,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7005,8 +6530,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7015,8 +6540,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7025,8 +6550,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7169,8 +6694,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7179,8 +6704,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7189,8 +6714,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7261,8 +6786,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7271,8 +6796,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7281,8 +6806,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7372,8 +6897,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7381,9 +6906,9 @@ } } } - }, - "502": { - "description": "Bad Gateway", + }, + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7392,8 +6917,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7464,8 +6989,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7474,8 +6999,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7484,8 +7009,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7629,8 +7154,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7639,8 +7164,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7649,8 +7174,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7732,8 +7257,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7742,8 +7267,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7752,8 +7277,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7891,8 +7416,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7901,8 +7426,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7911,8 +7436,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8032,8 +7557,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8042,8 +7567,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8052,8 +7577,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8156,8 +7681,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8166,8 +7691,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8176,8 +7701,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8286,8 +7811,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8296,8 +7821,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8306,8 +7831,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8400,8 +7925,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8410,8 +7935,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8420,8 +7945,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8565,8 +8090,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8575,8 +8100,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8585,8 +8110,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8676,8 +8201,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8686,8 +8211,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8696,8 +8221,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8775,8 +8300,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8785,8 +8310,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8795,8 +8320,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8884,8 +8409,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8894,8 +8419,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8904,8 +8429,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8924,6 +8449,9 @@ } } }, + "204": { + "description": "no pending configuration update requests" + }, "200": { "description": "pending configuration update request details", "content": { @@ -8933,9 +8461,6 @@ } } } - }, - "204": { - "description": "no pending configuration update requests" } } } @@ -8996,8 +8521,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9006,8 +8531,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9016,8 +8541,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9085,8 +8610,8 @@ } } }, - "401": { - "description": "Unauthorized", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9095,8 +8620,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9105,8 +8630,8 @@ } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9178,7 +8703,7 @@ } } }, - "401": { + "502": { "description": "", "content": { "application/json": { @@ -9188,7 +8713,7 @@ } } }, - "502": { + "403": { "description": "", "content": { "application/json": { @@ -9198,7 +8723,7 @@ } } }, - "403": { + "401": { "description": "", "content": { "application/json": { @@ -9278,7 +8803,7 @@ } } }, - "401": { + "502": { "description": "", "content": { "application/json": { @@ -9288,7 +8813,7 @@ } } }, - "502": { + "403": { "description": "", "content": { "application/json": { @@ -9298,7 +8823,7 @@ } } }, - "403": { + "401": { "description": "", "content": { "application/json": { @@ -11383,6 +10908,8 @@ "rollback", "modify", "destroy", + "migrate", + "recreate", "lockChange", "configChange", "purge", @@ -11396,6 +10923,20 @@ "description": "The task status of the service order.", "enum": ["created", "in progress", "successful", "failed"] }, + "originalServiceId": { + "type": "string", + "description": "The id of the original service.", + "format": "uuid" + }, + "parentOrderId": { + "type": "string", + "description": "The id of the parent service order.", + "format": "uuid" + }, + "workflowId": { + "type": "string", + "description": "The id of the workflow." + }, "errorMsg": { "type": "string", "description": "The error message if the service order task failed." @@ -11414,6 +10955,10 @@ "description": "The completed time of the service order.", "format": "date-time" }, + "requestBody": { + "type": "object", + "description": "The request json of the service order." + }, "previousDeployRequest": { "$ref": "#/components/schemas/DeployRequest" }, @@ -11472,47 +11017,6 @@ } } }, - "ServiceRecreateDetails": { - "required": ["createTime", "lastModifiedTime", "recreateId", "recreateStatus", "serviceId"], - "type": "object", - "properties": { - "recreateId": { - "type": "string", - "description": "The ID of the service recreate", - "format": "uuid" - }, - "serviceId": { - "type": "string", - "description": "The ID of the old service", - "format": "uuid" - }, - "recreateStatus": { - "type": "string", - "description": "The status of the service recreate", - "enum": [ - "RecreateStarted", - "RecreateCompleted", - "RecreateFailed", - "DestroyStarted", - "DestroyFailed", - "DestroyCompleted", - "DeployStarted", - "DeployFailed", - "DeployCompleted" - ] - }, - "createTime": { - "type": "string", - "description": "Time of service recreate.", - "format": "date-time" - }, - "lastModifiedTime": { - "type": "string", - "description": "Time of update service recreate.", - "format": "date-time" - } - } - }, "ServiceOrderStatusUpdate": { "required": ["isOrderCompleted", "taskStatus"], "type": "object", @@ -11532,65 +11036,6 @@ } } }, - "ServiceMigrationDetails": { - "required": [ - "createTime", - "lastModifiedTime", - "migrationId", - "migrationStatus", - "newServiceId", - "oldServiceId" - ], - "type": "object", - "properties": { - "migrationId": { - "type": "string", - "description": "The ID of the service migration", - "format": "uuid" - }, - "oldServiceId": { - "type": "string", - "description": "The ID of the old service", - "format": "uuid" - }, - "newServiceId": { - "type": "string", - "description": "The ID of the new service", - "format": "uuid" - }, - "migrationStatus": { - "type": "string", - "description": "The status of the service migration", - "enum": [ - "MigrationStarted", - "MigrationCompleted", - "MigrationFailed", - "DataExportStarted", - "DataExportFailed", - "DataExportCompleted", - "DeployStarted", - "DeployFailed", - "DeployCompleted", - "DataImportStarted", - "DataImportFailed", - "DataImportCompleted", - "DestroyStarted", - "DestroyFailed", - "DestroyCompleted" - ] - }, - "createTime": { - "type": "string", - "description": "Time of service migration.", - "format": "date-time" - }, - "lastModifiedTime": { - "type": "string", - "description": "Time of update service migration.", - "format": "date-time" - } - } - }, "DeployedServiceDetails": { "required": [ "billingMode", diff --git a/src/xpanse-api/generated/core/OpenAPI.ts b/src/xpanse-api/generated/core/OpenAPI.ts index f5a02af2..8c25c044 100644 --- a/src/xpanse-api/generated/core/OpenAPI.ts +++ b/src/xpanse-api/generated/core/OpenAPI.ts @@ -52,7 +52,7 @@ export const OpenAPI: OpenAPIConfig = { PASSWORD: undefined, TOKEN: undefined, USERNAME: undefined, - VERSION: '@project.version@', + VERSION: '1.0.22-SNAPSHOT', WITH_CREDENTIALS: false, interceptors: { request: new Interceptors(), diff --git a/src/xpanse-api/generated/services.gen.ts b/src/xpanse-api/generated/services.gen.ts index 0a648d7f..31084fb2 100644 --- a/src/xpanse-api/generated/services.gen.ts +++ b/src/xpanse-api/generated/services.gen.ts @@ -77,8 +77,6 @@ import type { GetLatestServiceOrderStatusResponse, GetMetricsData, GetMetricsResponse, - GetMigrationOrderDetailsByIdData, - GetMigrationOrderDetailsByIdResponse, GetOrderableServiceDetailsData, GetOrderableServiceDetailsResponse, GetOrderDetailsByOrderIdData, @@ -89,8 +87,6 @@ import type { GetPolicyDetailsResponse, GetPricesByServiceData, GetPricesByServiceResponse, - GetRecreateOrderDetailsByIdData, - GetRecreateOrderDetailsByIdResponse, GetRegistrationDetailsData, GetRegistrationDetailsResponse, GetSelfHostedServiceDetailsByIdData, @@ -118,12 +114,8 @@ import type { ListManagedServiceTemplatesResponse, ListOrderableServicesData, ListOrderableServicesResponse, - ListServiceMigrationsData, - ListServiceMigrationsResponse, ListServicePoliciesData, ListServicePoliciesResponse, - ListServiceRecreatesData, - ListServiceRecreatesResponse, ListServiceTemplatesData, ListServiceTemplatesResponse, ListUserPoliciesData, @@ -431,7 +423,7 @@ export const restartService = (data: RestartServiceData): CancelablePromise Required role: admin or user
* @param data The data for the request. * @param data.serviceId - * @returns string Accepted + * @returns ServiceOrder Accepted * @throws ApiError */ export const recreateService = (data: RecreateServiceData): CancelablePromise => { @@ -546,7 +538,7 @@ export const changeServiceConfiguration = ( * @param data The data for the request. * @param data.serviceId Id of the service * @param data.requestBody - * @returns void No Content + * @returns ServiceOrder OK * @throws ApiError */ export const changeServiceLockConfig = ( @@ -1146,7 +1138,7 @@ export const deploy = (data: DeployData): CancelablePromise => { * Create a job to migrate the deployed service.
Required role: admin or user
* @param data The data for the request. * @param data.requestBody - * @returns string Accepted + * @returns ServiceOrder Accepted * @throws ApiError */ export const migrate = (data: MigrateData): CancelablePromise => { @@ -1508,66 +1500,6 @@ export const getLatestServiceDeploymentStatus = ( }); }; -/** - * List all services recreate by a user.
Required role: admin or user
- * @param data The data for the request. - * @param data.recreateId Id of the service recreate - * @param data.serviceId Id of the old service - * @param data.recreateStatus Status of the service recreate - * @returns ServiceRecreateDetails OK - * @throws ApiError - */ -export const listServiceRecreates = ( - data: ListServiceRecreatesData = {} -): CancelablePromise => { - return __request(OpenAPI, { - method: 'GET', - url: '/xpanse/services/recreate', - query: { - recreateId: data.recreateId, - serviceId: data.serviceId, - recreateStatus: data.recreateStatus, - }, - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Get recreate records based on recreate id.
Required role: admin or user
- * @param data The data for the request. - * @param data.recreateId Recreate ID - * @returns ServiceRecreateDetails OK - * @throws ApiError - */ -export const getRecreateOrderDetailsById = ( - data: GetRecreateOrderDetailsByIdData -): CancelablePromise => { - return __request(OpenAPI, { - method: 'GET', - url: '/xpanse/services/recreate/{recreateId}', - path: { - recreateId: data.recreateId, - }, - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - /** * Get details of the service order by the order id.
Required role: admin or isv or user
* @param data The data for the request. @@ -1656,68 +1588,6 @@ export const getLatestServiceOrderStatus = ( }); }; -/** - * List all services migration by a user.
Required role: admin or user
- * @param data The data for the request. - * @param data.migrationId Id of the service migrate - * @param data.newServiceId Id of the new service - * @param data.oldServiceId Id of the old service - * @param data.migrationStatus Status of the service migrate - * @returns ServiceMigrationDetails OK - * @throws ApiError - */ -export const listServiceMigrations = ( - data: ListServiceMigrationsData = {} -): CancelablePromise => { - return __request(OpenAPI, { - method: 'GET', - url: '/xpanse/services/migrations', - query: { - migrationId: data.migrationId, - newServiceId: data.newServiceId, - oldServiceId: data.oldServiceId, - migrationStatus: data.migrationStatus, - }, - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Get migration records based on migration id.
Required role: admin or user
- * @param data The data for the request. - * @param data.migrationId Migration ID - * @returns ServiceMigrationDetails OK - * @throws ApiError - */ -export const getMigrationOrderDetailsById = ( - data: GetMigrationOrderDetailsByIdData -): CancelablePromise => { - return __request(OpenAPI, { - method: 'GET', - url: '/xpanse/services/migration/{migrationId}', - path: { - migrationId: data.migrationId, - }, - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - /** * List all deployed services by a user.
Required role: isv
* @param data The data for the request. diff --git a/src/xpanse-api/generated/types.gen.ts b/src/xpanse-api/generated/types.gen.ts index 7dd1147d..536b3aab 100644 --- a/src/xpanse-api/generated/types.gen.ts +++ b/src/xpanse-api/generated/types.gen.ts @@ -2002,69 +2002,6 @@ export type ServiceLockConfig = { destroyLocked?: boolean; }; -export type ServiceMigrationDetails = { - /** - * The ID of the service migration - */ - migrationId: string; - /** - * The ID of the old service - */ - oldServiceId: string; - /** - * The ID of the new service - */ - newServiceId: string; - /** - * The status of the service migration - */ - migrationStatus: - | 'MigrationStarted' - | 'MigrationCompleted' - | 'MigrationFailed' - | 'DataExportStarted' - | 'DataExportFailed' - | 'DataExportCompleted' - | 'DeployStarted' - | 'DeployFailed' - | 'DeployCompleted' - | 'DataImportStarted' - | 'DataImportFailed' - | 'DataImportCompleted' - | 'DestroyStarted' - | 'DestroyFailed' - | 'DestroyCompleted'; - /** - * Time of service migration. - */ - createTime: string; - /** - * Time of update service migration. - */ - lastModifiedTime: string; -}; - -/** - * The status of the service migration - */ -export enum migrationStatus { - MIGRATION_STARTED = 'MigrationStarted', - MIGRATION_COMPLETED = 'MigrationCompleted', - MIGRATION_FAILED = 'MigrationFailed', - DATA_EXPORT_STARTED = 'DataExportStarted', - DATA_EXPORT_FAILED = 'DataExportFailed', - DATA_EXPORT_COMPLETED = 'DataExportCompleted', - DEPLOY_STARTED = 'DeployStarted', - DEPLOY_FAILED = 'DeployFailed', - DEPLOY_COMPLETED = 'DeployCompleted', - DATA_IMPORT_STARTED = 'DataImportStarted', - DATA_IMPORT_FAILED = 'DataImportFailed', - DATA_IMPORT_COMPLETED = 'DataImportCompleted', - DESTROY_STARTED = 'DestroyStarted', - DESTROY_FAILED = 'DestroyFailed', - DESTROY_COMPLETED = 'DestroyCompleted', -} - export type ServiceOrder = { /** * The id of the service order. @@ -2094,6 +2031,8 @@ export type ServiceOrderDetails = { | 'rollback' | 'modify' | 'destroy' + | 'migrate' + | 'recreate' | 'lockChange' | 'configChange' | 'purge' @@ -2104,6 +2043,18 @@ export type ServiceOrderDetails = { * The task status of the service order. */ taskStatus: 'created' | 'in progress' | 'successful' | 'failed'; + /** + * The id of the original service. + */ + originalServiceId?: string; + /** + * The id of the parent service order. + */ + parentOrderId?: string; + /** + * The id of the workflow. + */ + workflowId?: string; /** * The error message if the service order task failed. */ @@ -2120,6 +2071,12 @@ export type ServiceOrderDetails = { * The completed time of the service order. */ completedTime?: string; + /** + * The request json of the service order. + */ + requestBody?: { + [key: string]: unknown; + }; previousDeployRequest?: DeployRequest; newDeployRequest?: DeployRequest; /** @@ -2149,6 +2106,8 @@ export enum taskType { ROLLBACK = 'rollback', MODIFY = 'modify', DESTROY = 'destroy', + MIGRATE = 'migrate', + RECREATE = 'recreate', LOCK_CHANGE = 'lockChange', CONFIG_CHANGE = 'configChange', PURGE = 'purge', @@ -2269,53 +2228,6 @@ export type ServiceProviderContactDetails = { websites?: Array; }; -export type ServiceRecreateDetails = { - /** - * The ID of the service recreate - */ - recreateId: string; - /** - * The ID of the old service - */ - serviceId: string; - /** - * The status of the service recreate - */ - recreateStatus: - | 'RecreateStarted' - | 'RecreateCompleted' - | 'RecreateFailed' - | 'DestroyStarted' - | 'DestroyFailed' - | 'DestroyCompleted' - | 'DeployStarted' - | 'DeployFailed' - | 'DeployCompleted'; - /** - * Time of service recreate. - */ - createTime: string; - /** - * Time of update service recreate. - */ - lastModifiedTime: string; -}; - -/** - * The status of the service recreate - */ -export enum recreateStatus { - RECREATE_STARTED = 'RecreateStarted', - RECREATE_COMPLETED = 'RecreateCompleted', - RECREATE_FAILED = 'RecreateFailed', - DESTROY_STARTED = 'DestroyStarted', - DESTROY_FAILED = 'DestroyFailed', - DESTROY_COMPLETED = 'DestroyCompleted', - DEPLOY_STARTED = 'DeployStarted', - DEPLOY_FAILED = 'DeployFailed', - DEPLOY_COMPLETED = 'DeployCompleted', -} - export type ServiceTemplateDetailVo = { /** * ID of the registered service. @@ -2888,7 +2800,7 @@ export type RecreateServiceData = { serviceId: string; }; -export type RecreateServiceResponse = string; +export type RecreateServiceResponse = ServiceOrder; export type ModifyData = { requestBody: ModifyRequest; @@ -2924,7 +2836,7 @@ export type ChangeServiceLockConfigData = { serviceId: string; }; -export type ChangeServiceLockConfigResponse = void; +export type ChangeServiceLockConfigResponse = ServiceOrder; export type DetailsData = { /** @@ -3178,7 +3090,7 @@ export type MigrateData = { requestBody: MigrateRequest; }; -export type MigrateResponse = string; +export type MigrateResponse = ServiceOrder; export type ListServiceTemplatesData = { /** @@ -3322,6 +3234,8 @@ export type GetAllOrdersByServiceIdData = { | 'rollback' | 'modify' | 'destroy' + | 'migrate' + | 'recreate' | 'lockChange' | 'configChange' | 'purge' @@ -3365,41 +3279,6 @@ export type GetLatestServiceDeploymentStatusData = { export type GetLatestServiceDeploymentStatusResponse = DeploymentStatusUpdate; -export type ListServiceRecreatesData = { - /** - * Id of the service recreate - */ - recreateId?: string; - /** - * Status of the service recreate - */ - recreateStatus?: - | 'RecreateStarted' - | 'RecreateCompleted' - | 'RecreateFailed' - | 'DestroyStarted' - | 'DestroyFailed' - | 'DestroyCompleted' - | 'DeployStarted' - | 'DeployFailed' - | 'DeployCompleted'; - /** - * Id of the old service - */ - serviceId?: string; -}; - -export type ListServiceRecreatesResponse = Array; - -export type GetRecreateOrderDetailsByIdData = { - /** - * Recreate ID - */ - recreateId: string; -}; - -export type GetRecreateOrderDetailsByIdResponse = ServiceRecreateDetails; - export type GetOrderDetailsByOrderIdData = { /** * Id of the service order @@ -3431,51 +3310,6 @@ export type GetLatestServiceOrderStatusData = { export type GetLatestServiceOrderStatusResponse = ServiceOrderStatusUpdate; -export type ListServiceMigrationsData = { - /** - * Id of the service migrate - */ - migrationId?: string; - /** - * Status of the service migrate - */ - migrationStatus?: - | 'MigrationStarted' - | 'MigrationCompleted' - | 'MigrationFailed' - | 'DataExportStarted' - | 'DataExportFailed' - | 'DataExportCompleted' - | 'DeployStarted' - | 'DeployFailed' - | 'DeployCompleted' - | 'DataImportStarted' - | 'DataImportFailed' - | 'DataImportCompleted' - | 'DestroyStarted' - | 'DestroyFailed' - | 'DestroyCompleted'; - /** - * Id of the new service - */ - newServiceId?: string; - /** - * Id of the old service - */ - oldServiceId?: string; -}; - -export type ListServiceMigrationsResponse = Array; - -export type GetMigrationOrderDetailsByIdData = { - /** - * Migration ID - */ - migrationId: string; -}; - -export type GetMigrationOrderDetailsByIdResponse = ServiceMigrationDetails; - export type ListDeployedServicesOfIsvData = { /** * category of the service