From 83a0cdc3b872d901917e3d02f69d734bb8db8f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Mon, 22 Nov 2021 09:32:17 +0100 Subject: [PATCH] Openapiclient (#3) * GeoNetwork openapi client. * GeoNetwork openapi client in lib folder. --- openapitools.json | 7 + package-lock.json | 10081 ++-- package.json | 6 +- src/App.tsx | 11 + src/libs/geonetwork-openapi/src/.gitignore | 4 + src/libs/geonetwork-openapi/src/.npmignore | 1 + .../src/.openapi-generator-ignore | 23 + .../src/.openapi-generator/FILES | 9 + .../src/.openapi-generator/VERSION | 1 + src/libs/geonetwork-openapi/src/api.ts | 42015 ++++++++++++++++ src/libs/geonetwork-openapi/src/base.ts | 81 + src/libs/geonetwork-openapi/src/common.ts | 181 + .../geonetwork-openapi/src/configuration.ts | 123 + src/libs/geonetwork-openapi/src/git_push.sh | 57 + src/libs/geonetwork-openapi/src/index.ts | 16 + src/libs/geonetwork-openapi/src/spec.yaml | 14286 ++++++ tools/generate-api.sh | 22 + tools/openapi-codegen-config.json | 8 + tsconfig.json | 12 +- 19 files changed, 62768 insertions(+), 4176 deletions(-) create mode 100644 openapitools.json create mode 100644 src/libs/geonetwork-openapi/src/.gitignore create mode 100644 src/libs/geonetwork-openapi/src/.npmignore create mode 100644 src/libs/geonetwork-openapi/src/.openapi-generator-ignore create mode 100644 src/libs/geonetwork-openapi/src/.openapi-generator/FILES create mode 100644 src/libs/geonetwork-openapi/src/.openapi-generator/VERSION create mode 100644 src/libs/geonetwork-openapi/src/api.ts create mode 100644 src/libs/geonetwork-openapi/src/base.ts create mode 100644 src/libs/geonetwork-openapi/src/common.ts create mode 100644 src/libs/geonetwork-openapi/src/configuration.ts create mode 100644 src/libs/geonetwork-openapi/src/git_push.sh create mode 100644 src/libs/geonetwork-openapi/src/index.ts create mode 100644 src/libs/geonetwork-openapi/src/spec.yaml create mode 100755 tools/generate-api.sh create mode 100644 tools/openapi-codegen-config.json diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..3b40e47 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "5.3.0" + } +} diff --git a/package-lock.json b/package-lock.json index 33572b9..ad61a37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "datahub", "version": "0.1.0", "dependencies": { "@appbaseio/reactivesearch": "^3.25.0", @@ -15,22 +16,25 @@ "@types/node": "^12.20.37", "@types/react": "^17.0.34", "@types/react-dom": "^17.0.11", + "axios": "^0.24.0", "react": "^16.14.0", "react-dom": "^16.14.0", "react-scripts": "4.0.3", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^2.0.4", "typescript": "^4.4.4", + "url": "^0.11.0", "web-vitals": "^1.1.2" }, "devDependencies": { + "@openapitools/openapi-generator-cli": "^2.4.16", "prettier": "2.4.1" } }, "node_modules/@appbaseio/reactivecore": { - "version": "9.12.6", - "resolved": "https://registry.npmjs.org/@appbaseio/reactivecore/-/reactivecore-9.12.6.tgz", - "integrity": "sha512-zqPt793G4gRKoQ20q/3uqTTcsHOR5XBQJxUBkuL5opB2t/335xSAX/K2C6O7IIVGYY/yNhntvILn28qyjVaqXA==", + "version": "9.12.7", + "resolved": "https://registry.npmjs.org/@appbaseio/reactivecore/-/reactivecore-9.12.7.tgz", + "integrity": "sha512-fGdmMhsIHhRv9a8Yt1NrlfRekB8MxjZRZutMRu2c1U48pQc+0zK1svM92CStsA10eM5SLB3GtT5SFwnZYmDRuw==", "dependencies": { "cross-fetch": "^3.0.4", "prop-types": "^15.6.0", @@ -43,11 +47,11 @@ } }, "node_modules/@appbaseio/reactivesearch": { - "version": "3.25.0", - "resolved": "https://registry.npmjs.org/@appbaseio/reactivesearch/-/reactivesearch-3.25.0.tgz", - "integrity": "sha512-yNrI1P+x6JO/bwW4OtAWw/eewkFB6cBS5nUcRFKLgo3jcWAMYkfIXLMu1kfcF5/AbpH/xLCaaOjAgUDupV26tg==", + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/@appbaseio/reactivesearch/-/reactivesearch-3.25.1.tgz", + "integrity": "sha512-eVP+49TGzWTX22q2EAM+98fdzsp0bcmopftRAa7abXLrQa+YTs6TzzsIqUB+oMu6/dCsaBADDaBtfMmeUuAzGw==", "dependencies": { - "@appbaseio/reactivecore": "9.12.6", + "@appbaseio/reactivecore": "9.12.7", "@emotion/core": "^10.0.28", "@emotion/styled": "^10.0.27", "appbase-js": "^4.4.1", @@ -81,9 +85,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.0.tgz", - "integrity": "sha512-DGjt2QZse5SGd9nfOSqO4WLJ8NN/oHkijbXbPrxuoJO3oIPJL3TciZs9FX+cOHNiY9E9l0opL8g7BmLe3T+9ew==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.4.tgz", + "integrity": "sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q==", "engines": { "node": ">=6.9.0" } @@ -162,13 +166,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.0.tgz", - "integrity": "sha512-S7iaOT1SYlqK0sQaCi21RX4+13hmdmnxIEAnQUB/eh7GeAnRjOUgTYpLkUOiRXzD+yog1JxP0qyAQZ7ZxVxLVg==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.3.tgz", + "integrity": "sha512-vKsoSQAyBmxS35JUOOt+07cLc6Nk/2ljLIHwmq2/NM6hdioUaqEXq/S+nXvbvXbZkNDlWOymPanJGOc4CBjSJA==", "dependencies": { "@babel/compat-data": "^7.16.0", "@babel/helper-validator-option": "^7.14.5", - "browserslist": "^4.16.6", + "browserslist": "^4.17.5", "semver": "^6.3.0" }, "engines": { @@ -221,9 +225,9 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz", - "integrity": "sha512-OrpPZ97s+aPi6h2n1OXzdhVis1SGSsMU2aMHgLcOKfsp4/v1NWpx3CWT3lBj5eeBq9cDkPkh+YCfdF7O12uNDQ==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.0.tgz", + "integrity": "sha512-7hfT8lUljl/tM3h+izTX/pO3W3frz2ok6Pk+gzys8iJqDfZrZy2pXjRTZAvG2YmfHun1X4q8/UZRLatMfqc5Tg==", "dependencies": { "@babel/helper-compilation-targets": "^7.13.0", "@babel/helper-module-imports": "^7.12.13", @@ -352,9 +356,9 @@ } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.0.tgz", - "integrity": "sha512-MLM1IOMe9aQBqMWxcRw8dcb9jlM86NIw7KA0Wri91Xkfied+dE0QuBFSBjMNvqzmS0OSIDsMNC24dBEkPUi7ew==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.4.tgz", + "integrity": "sha512-vGERmmhR+s7eH5Y/cp8PCVzj4XEjerq8jooMfxFdA5xVtAk9Sh4AQsrWgiErUEBjtGrBtOFKDUcWQFW4/dFwMA==", "dependencies": { "@babel/helper-annotate-as-pure": "^7.16.0", "@babel/helper-wrap-function": "^7.16.0", @@ -442,12 +446,12 @@ } }, "node_modules/@babel/helpers": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.0.tgz", - "integrity": "sha512-dVRM0StFMdKlkt7cVcGgwD8UMaBfWJHl3A83Yfs8GQ3MO0LHIIIMvK7Fa0RGOGUQ10qikLaX6D7o5htcQWgTMQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.3.tgz", + "integrity": "sha512-Xn8IhDlBPhvYTvgewPKawhADichOsbkZuzN7qz2BusOM0brChsyXMDJvldWaYMMUNiCQdQzNEioXTp3sC8Nt8w==", "dependencies": { "@babel/template": "^7.16.0", - "@babel/traverse": "^7.16.0", + "@babel/traverse": "^7.16.3", "@babel/types": "^7.16.0" }, "engines": { @@ -467,10 +471,66 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/parser": { - "version": "7.16.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.2.tgz", - "integrity": "sha512-RUVpT0G2h6rOZwqLDTrKk7ksNv7YpAilTnYe1/Q+eDjxEceRMKVWbCsX7t8h6C1qCFi/1Y8WZjcEPBAFG27GPw==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.4.tgz", + "integrity": "sha512-6V0qdPUaiVHH3RtZeLIsc+6pDhbYzHR8ogA8w+f+Wc77DuXto19g2QUwveINoS34Uw+W8/hQDGJCx+i4n7xcng==", "bin": { "parser": "bin/babel-parser.js" }, @@ -493,12 +553,12 @@ } }, "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.0.tgz", - "integrity": "sha512-nyYmIo7ZqKsY6P4lnVmBlxp9B3a96CscbLotlsNuktMHahkDwoPYEjXrZHU0Tj844Z9f1IthVxQln57mhkcExw==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.4.tgz", + "integrity": "sha512-/CUekqaAaZCQHleSK/9HajvcD/zdnJiKRiuUFq8ITE+0HsPzquf53cpFiqAwl/UfmJbR6n5uGPQSPdrmKOvHHg==", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-remap-async-to-generator": "^7.16.0", + "@babel/helper-remap-async-to-generator": "^7.16.4", "@babel/plugin-syntax-async-generators": "^7.8.4" }, "engines": { @@ -1308,9 +1368,9 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.0.tgz", - "integrity": "sha512-XgnQEm1CevKROPx+udOi/8f8TiGhrUWiHiaUCIp47tE0tpFDjzXNTZc9E5CmCwxNjXTWEVqvRfWZYOTFvMa/ZQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.3.tgz", + "integrity": "sha512-3MaDpJrOXT1MZ/WCmkOFo7EtmVVC8H4EUZVrHvFOsmwkk4lOjQj8rzv8JKUZV4YoQKeoIgk07GO+acPU9IMu/w==", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -1480,14 +1540,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/@babel/plugin-transform-shorthand-properties": { "version": "7.16.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.0.tgz", @@ -1605,17 +1657,17 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.0.tgz", - "integrity": "sha512-cdTu/W0IrviamtnZiTfixPfIncr2M1VqRrkjzZWlr1B4TVYimCFK5jkyOdP4qw2MrlKHi+b3ORj6x8GoCew8Dg==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.4.tgz", + "integrity": "sha512-v0QtNd81v/xKj4gNKeuAerQ/azeNn/G1B1qMLeXOcV8+4TWlD2j3NV1u8q29SDFBXx/NBq5kyEAO+0mpRgacjA==", "dependencies": { - "@babel/compat-data": "^7.16.0", - "@babel/helper-compilation-targets": "^7.16.0", + "@babel/compat-data": "^7.16.4", + "@babel/helper-compilation-targets": "^7.16.3", "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-validator-option": "^7.14.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.2", "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.16.0", - "@babel/plugin-proposal-async-generator-functions": "^7.16.0", + "@babel/plugin-proposal-async-generator-functions": "^7.16.4", "@babel/plugin-proposal-class-properties": "^7.16.0", "@babel/plugin-proposal-class-static-block": "^7.16.0", "@babel/plugin-proposal-dynamic-import": "^7.16.0", @@ -1665,7 +1717,7 @@ "@babel/plugin-transform-named-capturing-groups-regex": "^7.16.0", "@babel/plugin-transform-new-target": "^7.16.0", "@babel/plugin-transform-object-super": "^7.16.0", - "@babel/plugin-transform-parameters": "^7.16.0", + "@babel/plugin-transform-parameters": "^7.16.3", "@babel/plugin-transform-property-literals": "^7.16.0", "@babel/plugin-transform-regenerator": "^7.16.0", "@babel/plugin-transform-reserved-words": "^7.16.0", @@ -1678,10 +1730,10 @@ "@babel/plugin-transform-unicode-regex": "^7.16.0", "@babel/preset-modules": "^0.1.5", "@babel/types": "^7.16.0", - "babel-plugin-polyfill-corejs2": "^0.2.3", - "babel-plugin-polyfill-corejs3": "^0.3.0", - "babel-plugin-polyfill-regenerator": "^0.2.3", - "core-js-compat": "^3.19.0", + "babel-plugin-polyfill-corejs2": "^0.3.0", + "babel-plugin-polyfill-corejs3": "^0.4.0", + "babel-plugin-polyfill-regenerator": "^0.3.0", + "core-js-compat": "^3.19.1", "semver": "^6.3.0" }, "engines": { @@ -1762,17 +1814,20 @@ } }, "node_modules/@babel/runtime": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz", - "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz", + "integrity": "sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==", "dependencies": { "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/runtime-corejs3": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.0.tgz", - "integrity": "sha512-Oi2qwQ21X7/d9gn3WiwkDTJmq3TQtYNz89lRnoFy8VeZpWlsyXvzSwiRrRZ8cXluvSwqKxqHJ6dBd9Rv+p0ZGQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.3.tgz", + "integrity": "sha512-IAdDC7T0+wEB4y2gbIL0uOXEYpiZEeuFUTVbdGq+UwCcF35T/tS8KrmMomEwEc5wBbyfH3PJVpTSUqrhPDXFcQ==", "dependencies": { "core-js-pure": "^3.19.0", "regenerator-runtime": "^0.13.4" @@ -1795,16 +1850,16 @@ } }, "node_modules/@babel/traverse": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.0.tgz", - "integrity": "sha512-qQ84jIs1aRQxaGaxSysII9TuDaguZ5yVrEuC0BN2vcPlalwfLovVmCjbFDPECPXcYM/wLvNFfp8uDOliLxIoUQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.3.tgz", + "integrity": "sha512-eolumr1vVMjqevCpwVO99yN/LoGL0EyHiLO5I043aYQvwOJ9eR5UsZSClHVCzfhBduMAsSzgA/6AyqPjNayJag==", "dependencies": { "@babel/code-frame": "^7.16.0", "@babel/generator": "^7.16.0", "@babel/helper-function-name": "^7.16.0", "@babel/helper-hoist-variables": "^7.16.0", "@babel/helper-split-export-declaration": "^7.16.0", - "@babel/parser": "^7.16.0", + "@babel/parser": "^7.16.3", "@babel/types": "^7.16.0", "debug": "^4.1.0", "globals": "^11.1.0" @@ -1925,11 +1980,6 @@ "csstype": "^2.5.7" } }, - "node_modules/@emotion/serialize/node_modules/csstype": { - "version": "2.6.18", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.18.tgz", - "integrity": "sha512-RSU6Hyeg14am3Ah4VZEmeX8H7kLwEEirXe6aU2IPfKNvhXwTflK5HQRDNI0ypQXoqmm+QPyG2IaPuQE5zMwSIQ==" - }, "node_modules/@emotion/sheet": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-0.9.4.tgz", @@ -2060,11 +2110,6 @@ "react-dom": "^16.8.0 || ^17" } }, - "node_modules/@fluentui/react-component-ref/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, "node_modules/@gar/promisify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.2.tgz", @@ -2150,6 +2195,14 @@ "node": ">=6" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "engines": { + "node": ">=8" + } + }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", @@ -2174,68 +2227,27 @@ "node": ">= 10.14.2" } }, - "node_modules/@jest/console/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/console/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/console/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/console/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/@jest/console/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@jest/console/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/@jest/core": { @@ -2276,57 +2288,27 @@ "node": ">= 10.14.2" } }, - "node_modules/@jest/core/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@jest/core/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/@jest/core/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/core/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/core/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/core/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/@jest/core/node_modules/jest-resolve": { @@ -2347,17 +2329,6 @@ "node": ">= 10.14.2" } }, - "node_modules/@jest/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@jest/environment": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", @@ -2372,6 +2343,29 @@ "node": ">= 10.14.2" } }, + "node_modules/@jest/environment/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/environment/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/@jest/fake-timers": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", @@ -2388,6 +2382,29 @@ "node": ">= 10.14.2" } }, + "node_modules/@jest/fake-timers/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/fake-timers/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/@jest/globals": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", @@ -2401,6 +2418,29 @@ "node": ">= 10.14.2" } }, + "node_modules/@jest/globals/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/globals/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/@jest/reporters": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", @@ -2439,57 +2479,27 @@ "node-notifier": "^8.0.0" } }, - "node_modules/@jest/reporters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@jest/reporters/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/@jest/reporters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/reporters/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/reporters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/reporters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { @@ -2524,6 +2534,19 @@ "node": ">= 10.14.2" } }, + "node_modules/@jest/reporters/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, "node_modules/@jest/reporters/node_modules/semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -2540,17 +2563,6 @@ "node": ">=0.10.0" } }, - "node_modules/@jest/reporters/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@jest/source-map": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", @@ -2586,6 +2598,29 @@ "node": ">= 10.14.2" } }, + "node_modules/@jest/test-result/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-result/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/@jest/test-sequencer": { "version": "26.6.3", "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", @@ -2626,57 +2661,27 @@ "node": ">= 10.14.2" } }, - "node_modules/@jest/transform/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@jest/transform/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/@jest/transform/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/transform/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/transform/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/transform/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/@jest/transform/node_modules/source-map": { @@ -2687,96 +2692,107 @@ "node": ">=0.10.0" } }, - "node_modules/@jest/transform/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@jest/types": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", - "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "version": "27.2.5", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.2.5.tgz", + "integrity": "sha512-nmuM4VuDtCZcY+eTpw+0nvstwReMsjPoj7ZR80/BbixulhLaiX+fbv8oeLW8WZlJMcsGQsTmMKT/iTZu1Uy/lQ==", + "peer": true, "dependencies": { "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^15.0.0", + "@types/yargs": "^16.0.0", "chalk": "^4.0.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@jest/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@nestjs/common": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-8.2.1.tgz", + "integrity": "sha512-xtcvRm46hyLVacMEfGJq4byFVkkP/xo255Em1T6BISyqJe2Cf2eCHSVOwxElDCIlonpGwrJhWosGgyOUgWk1iw==", + "dev": true, "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" + "axios": "0.24.0", + "iterare": "1.2.1", + "tslib": "2.3.1", + "uuid": "8.3.2" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "type": "opencollective", + "url": "https://opencollective.com/nest" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" + "peerDependencies": { + "cache-manager": "*", + "class-transformer": "*", + "class-validator": "*", + "reflect-metadata": "^0.1.12", + "rxjs": "^7.1.0" }, - "engines": { - "node": ">=7.0.0" + "peerDependenciesMeta": { + "cache-manager": { + "optional": true + }, + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } } }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } + "node_modules/@nestjs/common/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true }, - "node_modules/@jest/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@nestjs/core": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-8.2.1.tgz", + "integrity": "sha512-5JyCBd+gDkl32Xa7ZRp2cvLR/elPSE/T4egtMFvSwQJDhek+djp9jaVq5PYvsBgaCr/HSHHrLIQ72nnDRLTisQ==", + "dev": true, + "hasInstallScript": true, "dependencies": { - "has-flag": "^4.0.0" + "@nuxtjs/opencollective": "0.3.2", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "object-hash": "2.2.0", + "path-to-regexp": "3.2.0", + "tslib": "2.3.1", + "uuid": "8.3.2" }, - "engines": { - "node": ">=8" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^8.0.0", + "@nestjs/microservices": "^8.0.0", + "@nestjs/platform-express": "^8.0.0", + "@nestjs/websockets": "^8.0.0", + "reflect-metadata": "^0.1.12", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + }, + "@nestjs/websockets": { + "optional": true + } } }, + "node_modules/@nestjs/core/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2855,58 +2871,56 @@ "node": ">=10" } }, - "node_modules/@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.3.tgz", - "integrity": "sha512-br5Qwvh8D2OQqSXpd1g/xqXKnK0r+Jz6qVKBbWmpUcrbGOxUrf39V5oZ1876084CGn18uMdR5uvPqBv9UqtBjQ==", + "node_modules/@nuxtjs/opencollective": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz", + "integrity": "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==", + "dev": true, "dependencies": { - "ansi-html": "^0.0.7", - "error-stack-parser": "^2.0.6", - "html-entities": "^1.2.1", - "native-url": "^0.2.6", - "schema-utils": "^2.6.5", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">= 10.x" + "chalk": "^4.1.0", + "consola": "^2.15.0", + "node-fetch": "^2.6.1" }, - "peerDependencies": { - "@types/webpack": "4.x", - "react-refresh": ">=0.8.3 <0.10.0", - "sockjs-client": "^1.4.0", - "type-fest": "^0.13.1", - "webpack": ">=4.43.0 <6.0.0", - "webpack-dev-server": "3.x", - "webpack-hot-middleware": "2.x", - "webpack-plugin-serve": "0.x || 1.x" + "bin": { + "opencollective": "bin/opencollective.js" }, - "peerDependenciesMeta": { - "@types/webpack": { - "optional": true - }, - "sockjs-client": { - "optional": true - }, - "type-fest": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - }, - "webpack-hot-middleware": { - "optional": true - }, - "webpack-plugin-serve": { - "optional": true - } + "engines": { + "node": ">=8.0.0", + "npm": ">=5.0.0" } }, - "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "node_modules/@openapitools/openapi-generator-cli": { + "version": "2.4.16", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.4.16.tgz", + "integrity": "sha512-XsB+aDNBDJKyKm77TZQIlavXfN1beAkRrf9aIojuP/4kWG+wtzw1l1WZWahkkJdJN1MlhEWUsXxRycC8g7nY1g==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@nestjs/common": "8.2.1", + "@nestjs/core": "8.2.1", + "@nuxtjs/opencollective": "0.3.2", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "3.6.0", + "concurrently": "6.4.0", + "console.table": "0.10.0", + "fs-extra": "10.0.0", + "glob": "7.1.6", + "inquirer": "8.2.0", + "lodash": "4.17.21", + "reflect-metadata": "0.1.13", + "rxjs": "7.4.0", + "tslib": "2.0.3" + }, + "bin": { + "openapi-generator-cli": "main.js" + }, "engines": { - "node": ">= 8" + "node": ">=10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/openapi_generator" } }, "node_modules/@popperjs/core": { @@ -3142,6 +3156,21 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@svgr/core/node_modules/cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@svgr/hast-util-to-babel-ast": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", @@ -3192,6 +3221,21 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@svgr/plugin-svgo/node_modules/cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@svgr/webpack": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", @@ -3215,9 +3259,9 @@ } }, "node_modules/@testing-library/dom": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.11.0.tgz", - "integrity": "sha512-8Ay4UDiMlB5YWy+ZvCeRyFFofs53ebxrWnOFvCoM1HpMAX4cHyuSrCuIM9l2lVuUWUt+Gr3loz/nCwdrnG6ShQ==", + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.11.1.tgz", + "integrity": "sha512-3KQDyx9r0RKYailW2MiYrSSKEfH0GTkI51UGEvJenvcoDoeRYs0PZpi2SXqtnMClQvCqdtTTpOfFETDTVADpAg==", "peer": true, "dependencies": { "@babel/code-frame": "^7.10.4", @@ -3233,149 +3277,6 @@ "node": ">=12" } }, - "node_modules/@testing-library/dom/node_modules/@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", - "peer": true, - "dependencies": { - "regenerator-runtime": "^0.13.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@testing-library/dom/node_modules/@jest/types": { - "version": "27.2.5", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.2.5.tgz", - "integrity": "sha512-nmuM4VuDtCZcY+eTpw+0nvstwReMsjPoj7ZR80/BbixulhLaiX+fbv8oeLW8WZlJMcsGQsTmMKT/iTZu1Uy/lQ==", - "peer": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@testing-library/dom/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "peer": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@testing-library/dom/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/aria-query": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.0.0.tgz", - "integrity": "sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==", - "peer": true, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/@testing-library/dom/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "peer": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@testing-library/dom/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "peer": true - }, - "node_modules/@testing-library/dom/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/dom/node_modules/pretty-format": { - "version": "27.3.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.3.1.tgz", - "integrity": "sha512-DR/c+pvFc52nLimLROYjnXPtolawm+uWDxr4FjuLDLUn+ktWnSN851KoHwHzzqq6rfCOjkzN8FLgDrSub6UDuA==", - "peer": true, - "dependencies": { - "@jest/types": "^27.2.5", - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@testing-library/dom/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@testing-library/jest-dom": { "version": "5.15.0", "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.15.0.tgz", @@ -3397,18 +3298,16 @@ "yarn": ">=1" } }, - "node_modules/@testing-library/jest-dom/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@testing-library/jest-dom/node_modules/aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "dependencies": { - "color-convert": "^2.0.1" + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=6.0" } }, "node_modules/@testing-library/jest-dom/node_modules/chalk": { @@ -3423,68 +3322,6 @@ "node": ">=8" } }, - "node_modules/@testing-library/jest-dom/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@testing-library/jest-dom/node_modules/css": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", - "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", - "dependencies": { - "inherits": "^2.0.4", - "source-map": "^0.6.1", - "source-map-resolve": "^0.6.0" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/source-map-resolve": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", - "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", - "dependencies": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@testing-library/react": { "version": "11.2.7", "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-11.2.7.tgz", @@ -3501,15 +3338,19 @@ "react-dom": "*" } }, - "node_modules/@testing-library/react/node_modules/@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", + "node_modules/@testing-library/react/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "regenerator-runtime": "^0.13.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=6.9.0" + "node": ">= 10.14.2" } }, "node_modules/@testing-library/react/node_modules/@testing-library/dom": { @@ -3530,69 +3371,44 @@ "node": ">=10" } }, - "node_modules/@testing-library/react/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@testing-library/react/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/@testing-library/react/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@testing-library/react/node_modules/aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=6.0" } }, - "node_modules/@testing-library/react/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@testing-library/react/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@testing-library/react/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@testing-library/react/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/@testing-library/react/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/@testing-library/react/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/@testing-library/user-event": { "version": "12.8.3", @@ -3609,17 +3425,6 @@ "@testing-library/dom": ">=7.21.4" } }, - "node_modules/@testing-library/user-event/node_modules/@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", - "dependencies": { - "regenerator-runtime": "^0.13.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -3671,9 +3476,9 @@ } }, "node_modules/@types/eslint": { - "version": "7.28.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.2.tgz", - "integrity": "sha512-KubbADPkfoU75KgKeKLsFHXnU4ipH7wYg0TRT33NK3N3yiu7jlFAAoygIWBV+KbuHx/G+AvuGX6DllnK35gfJA==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -3736,6 +3541,48 @@ "pretty-format": "^26.0.0" } }, + "node_modules/@types/jest/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@types/jest/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/jest/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@types/jest/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, "node_modules/@types/json-schema": { "version": "7.0.9", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", @@ -3767,9 +3614,9 @@ "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" }, "node_modules/@types/prettier": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.1.tgz", - "integrity": "sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw==" + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.2.tgz", + "integrity": "sha512-ekoj4qOQYp7CvjX8ZDBgN86w3MqQhLE1hczEJbEIjgFEumDy+na/4AJAbLXfgEWFNB2pKadM5rPFtuSGMWK7xA==" }, "node_modules/@types/prop-types": { "version": "15.7.4", @@ -3782,9 +3629,9 @@ "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" }, "node_modules/@types/react": { - "version": "17.0.34", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.34.tgz", - "integrity": "sha512-46FEGrMjc2+8XhHXILr+3+/sTe3OfzSPU9YGKILLrUYbQ1CLQC9Daqo1KzENGXAWwrFwiY0l4ZbF20gRvgpWTg==", + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.35.tgz", + "integrity": "sha512-r3C8/TJuri/SLZiiwwxQoLAoavaczARfT9up9b4Jr65+ErAUX3MIkU0oMOQnrpfgHme8zIqZLX7O5nnjm5Wayw==", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -3799,6 +3646,11 @@ "@types/react": "*" } }, + "node_modules/@types/react/node_modules/csstype": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", + "integrity": "sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==" + }, "node_modules/@types/resolve": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", @@ -3852,9 +3704,9 @@ } }, "node_modules/@types/webpack": { - "version": "4.41.31", - "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.31.tgz", - "integrity": "sha512-/i0J7sepXFIp1ZT7FjUGi1eXMCg8HCCzLJEQkKsOtbJFontsJLolBcDC+3qxn5pPwiCt1G0ZdRmYRzNBtvpuGQ==", + "version": "4.41.32", + "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.32.tgz", + "integrity": "sha512-cb+0ioil/7oz5//7tZUSwbrSAN/NWHrQylz5cW8G0dWTcF/g+/dSdMlKVZspBYuMAN1+WnwHrkxiRrLcwd0Heg==", "dependencies": { "@types/node": "*", "@types/tapable": "^1", @@ -3891,9 +3743,10 @@ } }, "node_modules/@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "peer": true, "dependencies": { "@types/yargs-parser": "*" } @@ -4422,14 +4275,17 @@ } }, "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { @@ -4463,6 +4319,14 @@ "whatwg-fetch": "2.0.4" } }, + "node_modules/appbase-js/node_modules/node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "engines": { + "node": "4.x || >=6.0.0" + } + }, "node_modules/appbase-js/node_modules/whatwg-fetch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", @@ -4482,13 +4346,10 @@ } }, "node_modules/aria-query": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", - "dependencies": { - "@babel/runtime": "^7.10.2", - "@babel/runtime-corejs3": "^7.10.2" - }, + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.0.0.tgz", + "integrity": "sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==", + "peer": true, "engines": { "node": ">=6.0" } @@ -4749,6 +4610,14 @@ "node": ">=4" } }, + "node_modules/axios": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz", + "integrity": "sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==", + "dependencies": { + "follow-redirects": "^1.14.4" + } + }, "node_modules/axobject-query": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", @@ -4814,68 +4683,27 @@ "@babel/core": "^7.0.0" } }, - "node_modules/babel-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/babel-jest/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/babel-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/babel-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/babel-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/babel-jest/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/babel-loader": { @@ -4985,21 +4813,6 @@ "resolve": "^1.12.0" } }, - "node_modules/babel-plugin-macros/node_modules/cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/babel-plugin-named-asset-import": { "version": "0.3.7", "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.7.tgz", @@ -5009,12 +4822,12 @@ } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz", - "integrity": "sha512-NDZ0auNRzmAfE1oDDPW2JhzIMXUk+FFe2ICejmt5T4ocKgiQx3e0VCRx9NCAidcMtL2RUZaWtXnmjTCkx0tcbA==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.0.tgz", + "integrity": "sha512-wMDoBJ6uG4u4PNFh72Ty6t3EgfA91puCuAwKIazbQlci+ENb/UU9A3xG5lutjUIiXCIn1CY5L15r9LimiJyrSA==", "dependencies": { "@babel/compat-data": "^7.13.11", - "@babel/helper-define-polyfill-provider": "^0.2.4", + "@babel/helper-define-polyfill-provider": "^0.3.0", "semver": "^6.1.1" }, "peerDependencies": { @@ -5030,11 +4843,11 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz", - "integrity": "sha512-JLwi9vloVdXLjzACL80j24bG6/T1gYxwowG44dg6HN/7aTPdyPbJJidf6ajoA3RPHHtW0j9KMrSOLpIZpAnPpg==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.4.0.tgz", + "integrity": "sha512-YxFreYwUfglYKdLUGvIF2nJEsGwj+RhWSX/ije3D2vQPOXuyMLMtg/cCGMDpOA7Nd+MwlNdnGODbd2EwUZPlsw==", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.2.4", + "@babel/helper-define-polyfill-provider": "^0.3.0", "core-js-compat": "^3.18.0" }, "peerDependencies": { @@ -5042,11 +4855,11 @@ } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz", - "integrity": "sha512-JVE78oRZPKFIeUqFGrSORNzQnrDwZR16oiWeGM8ZyjBn2XAT5OjP+wXx5ESuo33nUsFUEJYjtklnsKbxW5L+7g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.0.tgz", + "integrity": "sha512-dhAPTDLGoMW5/84wkgwiLRwMnio2i1fUe53EuvtKMv0pn2p3S8OCoV1xAzfJPl0KOX7IB89s2ib85vbYiea3jg==", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.2.4" + "@babel/helper-define-polyfill-provider": "^0.3.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" @@ -5318,12 +5131,12 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/babel-preset-react-app/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" + "node_modules/babel-preset-react-app/node_modules/@babel/runtime": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz", + "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==", + "dependencies": { + "regenerator-runtime": "^0.13.4" } }, "node_modules/babel-runtime": { @@ -5452,6 +5265,17 @@ "file-uri-to-path": "1.0.0" } }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -5610,19 +5434,6 @@ "safe-buffer": "^5.2.0" } }, - "node_modules/browserify-sign/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/browserify-sign/node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -5651,12 +5462,12 @@ } }, "node_modules/browserslist": { - "version": "4.17.6", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.6.tgz", - "integrity": "sha512-uPgz3vyRTlEiCv4ee9KlsKgo2V6qPk7Jsn0KAn2OBqbqKo3iNcPEC1Ti6J4dwnz+aIRfEEEuOzC9IBk8tXUomw==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.18.1.tgz", + "integrity": "sha512-8ScCzdpPwR2wQh8IT82CA2VgDwjHyqMovPBZSNH54+tm4Jk2pCuv90gmAdH6J84OCRWi0b4gMe6O6XPXuJnjgQ==", "dependencies": { - "caniuse-lite": "^1.0.30001274", - "electron-to-chromium": "^1.3.886", + "caniuse-lite": "^1.0.30001280", + "electron-to-chromium": "^1.3.896", "escalade": "^3.1.1", "node-releases": "^2.0.1", "picocolors": "^1.0.0" @@ -5681,13 +5492,27 @@ } }, "node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, "node_modules/buffer-from": { @@ -5847,9 +5672,9 @@ } }, "node_modules/camelcase": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", - "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.1.tgz", + "integrity": "sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA==", "engines": { "node": ">=10" }, @@ -5869,9 +5694,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001279", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001279.tgz", - "integrity": "sha512-VfEHpzHEXj6/CxggTwSFoZBBYGQfQv9Cf42KPlO79sWXCD1QNKWKsKzFeWL7QpZHJQYAvocqV6Rty1yJMkqWLQ==", + "version": "1.0.30001282", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001282.tgz", + "integrity": "sha512-YhF/hG6nqBEllymSIjLtR2iWDDnChvhnVJqp+vloyt2tEHFG1yBR+ac2B/rOw0qOK0m0lEXU2dv4E/sMk5P9Kg==", "funding": { "type": "opencollective", "url": "https://opencollective.com/browserslist" @@ -5897,16 +5722,18 @@ } }, "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/char-regex": { @@ -5917,6 +5744,12 @@ "node": ">=10" } }, + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true + }, "node_modules/check-types": { "version": "11.1.2", "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.1.2.tgz", @@ -6096,14 +5929,57 @@ "node": ">=6" } }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", + "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, "node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", + "dev": true, + "engines": { + "node": ">=0.8" } }, "node_modules/clsx": { @@ -6136,6 +6012,62 @@ "node": ">= 4.0" } }, + "node_modules/coa/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/coa/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "node_modules/coa/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, + "node_modules/coa/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/collect-v8-coverage": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", @@ -6163,17 +6095,20 @@ } }, "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/color-string": { "version": "1.6.0", @@ -6184,6 +6119,19 @@ "simple-swizzle": "^0.2.2" } }, + "node_modules/color/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -6196,17 +6144,18 @@ } }, "node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, "engines": { - "node": ">= 6" + "node": ">= 12" } }, "node_modules/common-tags": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", - "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "engines": { "node": ">=4.0.0" } @@ -6216,6 +6165,12 @@ "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" }, + "node_modules/compare-versions": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", + "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==", + "dev": true + }, "node_modules/component-emitter": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", @@ -6289,6 +6244,83 @@ "typedarray": "^0.0.6" } }, + "node_modules/concat-stream/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/concat-stream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/concurrently": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.4.0.tgz", + "integrity": "sha512-HZ3D0RTQMH3oS4gvtYj1P+NBc6PzE2McEra6yEFcQKrUQ9HvtTGU4Dbne083F034p+LRb7kWU0tPRNvSGs1UCQ==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "date-fns": "^2.16.1", + "lodash": "^4.17.21", + "rxjs": "^6.6.3", + "spawn-command": "^0.0.2-1", + "supports-color": "^8.1.0", + "tree-kill": "^1.2.2", + "yargs": "^16.2.0" + }, + "bin": { + "concurrently": "bin/concurrently.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/concurrently/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/concurrently/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, "node_modules/confusing-browser-globals": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", @@ -6302,11 +6334,29 @@ "node": ">=0.8" } }, + "node_modules/consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==", + "dev": true + }, "node_modules/console-browserify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==" }, + "node_modules/console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha1-CRcCVYiHW+/XDPLv9L7yxuLXXQQ=", + "dev": true, + "dependencies": { + "easy-table": "1.1.0" + }, + "engines": { + "node": "> 0.10" + } + }, "node_modules/constants-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", @@ -6431,18 +6481,18 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/cosmiconfig": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", - "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", "dependencies": { "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", + "import-fresh": "^3.1.0", "parse-json": "^5.0.0", "path-type": "^4.0.0", - "yaml": "^1.10.0" + "yaml": "^1.7.2" }, "engines": { - "node": ">=10" + "node": ">=8" } }, "node_modules/create-ecdh": { @@ -6499,67 +6549,6 @@ "node": ">=4.0" } }, - "node_modules/cross-env/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/cross-env/node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "engines": { - "node": ">=4" - } - }, - "node_modules/cross-env/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/cross-env/node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cross-env/node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cross-env/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, "node_modules/cross-fetch": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", @@ -6568,17 +6557,27 @@ "node-fetch": "2.6.1" } }, + "node_modules/cross-fetch/node_modules/node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "engines": { + "node": "4.x || >=6.0.0" + } + }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" }, "engines": { - "node": ">= 8" + "node": ">=4.8" } }, "node_modules/crypto-browserify": { @@ -6611,14 +6610,13 @@ } }, "node_modules/css": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", - "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", "dependencies": { - "inherits": "^2.0.3", + "inherits": "^2.0.4", "source-map": "^0.6.1", - "source-map-resolve": "^0.5.2", - "urix": "^0.1.0" + "source-map-resolve": "^0.6.0" } }, "node_modules/css-blank-pseudo": { @@ -6723,6 +6721,20 @@ "webpack": "^4.27.0 || ^5.0.0" } }, + "node_modules/css-loader/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/css-prefers-color-scheme": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz", @@ -7010,9 +7022,9 @@ "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" }, "node_modules/csstype": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.9.tgz", - "integrity": "sha512-rpw6JPxK6Rfg1zLOYCSwle2GFOOsnjmDYDaBwEcwoOg4qlsIVCN789VkBZDJAGi4T07gI4YSutR43t9Zz4Lzuw==" + "version": "2.6.19", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.19.tgz", + "integrity": "sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ==" }, "node_modules/cyclist": { "version": "1.0.1", @@ -7046,6 +7058,43 @@ "node": ">=10" } }, + "node_modules/data-urls/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/date-fns": { + "version": "2.25.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.25.0.tgz", + "integrity": "sha512-ovYRFnTrbGPD4nqaEqescPEv1mNwvt+UTqI3Ay9SzNtey9NZnYu6E2qCcBBgJ6/2VF1zGGygpyTDITqpQQ5e+w==", + "dev": true, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, "node_modules/debug": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", @@ -7129,21 +7178,6 @@ "node": ">=6" } }, - "node_modules/default-gateway/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, "node_modules/default-gateway/node_modules/execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", @@ -7191,50 +7225,13 @@ "node": ">=4" } }, - "node_modules/default-gateway/node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "engines": { - "node": ">=4" - } - }, - "node_modules/default-gateway/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/default-gateway/node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-gateway/node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-gateway/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "node_modules/defaults": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", + "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "dev": true, "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" + "clone": "^1.0.2" } }, "node_modules/define-properties": { @@ -7627,6 +7624,40 @@ "stream-shift": "^1.0.0" } }, + "node_modules/duplexify/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/duplexify/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha1-hvmrTBAvA3G3KXuSplHVgkvIy3M=", + "dev": true, + "dependencies": { + "wcwidth": ">=1.0.1" + }, + "optionalDependencies": { + "wcwidth": ">=1.0.1" + } + }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -7642,9 +7673,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.3.892", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.892.tgz", - "integrity": "sha512-YDW4yIjdfMnbRoBjRZ/aNQYmT6JgQFLwmTSDRJMQdrY4MByEzppdXp3rnJ0g4LBWcsYTUvwKKClYN1ofZ0COOQ==" + "version": "1.3.901", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.901.tgz", + "integrity": "sha512-ToJdV2vzwT2jeAsw8zIggTFllJ4Kxvwghk39AhJEHHlIxor10wsFI3wo69p8nFc0s/ATWBqugPv/k3nW4Y9Mww==" }, "node_modules/elliptic": { "version": "6.5.4", @@ -7744,6 +7775,28 @@ "node": ">=4.3.0 <5.0.0 || >=5.10" } }, + "node_modules/enhanced-resolve/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/enhanced-resolve/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/enquirer": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", @@ -8072,18 +8125,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-import-resolver-node/node_modules/resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "dependencies": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/eslint-module-utils": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz", @@ -8182,18 +8223,18 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.25.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", - "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", + "version": "2.25.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.3.tgz", + "integrity": "sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg==", "dependencies": { "array-includes": "^3.1.4", "array.prototype.flat": "^1.2.5", "debug": "^2.6.9", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.0", + "eslint-module-utils": "^2.7.1", "has": "^1.0.3", - "is-core-module": "^2.7.0", + "is-core-module": "^2.8.0", "is-glob": "^4.0.3", "minimatch": "^3.0.4", "object.values": "^1.1.5", @@ -8231,18 +8272,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, - "node_modules/eslint-plugin-import/node_modules/resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "dependencies": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/eslint-plugin-jest": { "version": "24.7.0", "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-24.7.0.tgz", @@ -8264,65 +8293,78 @@ } }, "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz", - "integrity": "sha512-0rGPJBbwHoGNPU73/QCLP/vveMlM1b1Z9PponxO87jfr6tuH5ligXbDT6nHSSzBC8ovX2Z+BQu7Bk5D/Xgq9zg==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz", + "integrity": "sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g==", "dependencies": { - "@babel/runtime": "^7.11.2", + "@babel/runtime": "^7.16.3", "aria-query": "^4.2.2", - "array-includes": "^3.1.1", + "array-includes": "^3.1.4", "ast-types-flow": "^0.0.7", - "axe-core": "^4.0.2", + "axe-core": "^4.3.5", "axobject-query": "^2.2.0", - "damerau-levenshtein": "^1.0.6", - "emoji-regex": "^9.0.0", + "damerau-levenshtein": "^1.0.7", + "emoji-regex": "^9.2.2", "has": "^1.0.3", - "jsx-ast-utils": "^3.1.0", - "language-tags": "^1.0.5" + "jsx-ast-utils": "^3.2.1", + "language-tags": "^1.0.5", + "minimatch": "^3.0.4" }, "engines": { "node": ">=4.0" }, "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7" + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "dependencies": { + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" + }, + "engines": { + "node": ">=6.0" } }, "node_modules/eslint-plugin-react": { - "version": "7.26.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.26.1.tgz", - "integrity": "sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.27.0.tgz", + "integrity": "sha512-0Ut+CkzpppgFtoIhdzi2LpdpxxBvgFf99eFqWxJnUrO7mMe0eOiNpou6rvNYeVVV6lWZvTah0BFne7k5xHjARg==", "dependencies": { - "array-includes": "^3.1.3", - "array.prototype.flatmap": "^1.2.4", + "array-includes": "^3.1.4", + "array.prototype.flatmap": "^1.2.5", "doctrine": "^2.1.0", - "estraverse": "^5.2.0", + "estraverse": "^5.3.0", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.0.4", - "object.entries": "^1.1.4", - "object.fromentries": "^2.0.4", - "object.hasown": "^1.0.0", - "object.values": "^1.1.4", + "object.entries": "^1.1.5", + "object.fromentries": "^2.0.5", + "object.hasown": "^1.1.0", + "object.values": "^1.1.5", "prop-types": "^15.7.2", "resolve": "^2.0.0-next.3", "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.5" + "string.prototype.matchall": "^4.0.6" }, "engines": { "node": ">=4" }, "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7" + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, "node_modules/eslint-plugin-react-hooks": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz", - "integrity": "sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz", + "integrity": "sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==", "engines": { "node": ">=10" }, "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" } }, "node_modules/eslint-plugin-react/node_modules/doctrine": { @@ -8469,6 +8511,20 @@ "node": ">=4" } }, + "node_modules/eslint-plugin-testing-library/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -8515,16 +8571,16 @@ } }, "node_modules/eslint-webpack-plugin": { - "version": "2.5.4", - "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-2.5.4.tgz", - "integrity": "sha512-7rYh0m76KyKSDE+B+2PUQrlNS4HJ51t3WKpkJg6vo2jFMbEPTG99cBV0Dm7LXSHucN4WGCG65wQcRiTFrj7iWw==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-2.6.0.tgz", + "integrity": "sha512-V+LPY/T3kur5QO3u+1s34VDTcRxjXWPUGM4hlmTb5DwVD0OQz631yGTxJZf4SpAqAjdbBVe978S8BJeHpAdOhQ==", "dependencies": { - "@types/eslint": "^7.2.6", + "@types/eslint": "^7.28.2", "arrify": "^2.0.1", - "jest-worker": "^26.6.2", - "micromatch": "^4.0.2", + "jest-worker": "^27.3.1", + "micromatch": "^4.0.4", "normalize-path": "^3.0.0", - "schema-utils": "^3.0.0" + "schema-utils": "^3.1.1" }, "engines": { "node": ">= 10.13.0" @@ -8534,7 +8590,7 @@ "url": "https://opencollective.com/webpack" }, "peerDependencies": { - "eslint": "^7.0.0", + "eslint": "^7.0.0 || ^8.0.0", "webpack": "^4.0.0 || ^5.0.0" } }, @@ -8563,51 +8619,19 @@ "@babel/highlight": "^7.10.4" } }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/eslint/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dependencies": { - "color-name": "~1.1.4" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=7.0.0" + "node": ">= 8" } }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -8655,14 +8679,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, "node_modules/eslint/node_modules/ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", @@ -8671,13 +8687,43 @@ "node": ">= 4" } }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/eslint/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dependencies": { - "has-flag": "^4.0.0" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "engines": { "node": ">=8" } @@ -8693,6 +8739,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/espree": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", @@ -8837,6 +8897,60 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/execa/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/execa/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/execa/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/execa/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/execa/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/exenv": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz", @@ -8991,36 +9105,29 @@ "node": ">= 10.14.2" } }, - "node_modules/expect/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/expect/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/expect/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/expect/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "@types/yargs-parser": "*" } }, - "node_modules/expect/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, "node_modules/express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", @@ -9079,6 +9186,11 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, + "node_modules/express/node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, "node_modules/ext": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", @@ -9104,6 +9216,20 @@ "node": ">=0.10.0" } }, + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "dev": true, + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", @@ -9182,6 +9308,12 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, "node_modules/fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", @@ -9214,6 +9346,21 @@ "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==" }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -9412,9 +9559,9 @@ } }, "node_modules/flatted": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", - "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==" + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.4.tgz", + "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==" }, "node_modules/flatten": { "version": "1.0.3", @@ -9431,6 +9578,28 @@ "readable-stream": "^2.3.6" } }, + "node_modules/flush-write-stream/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/flush-write-stream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/follow-redirects": { "version": "1.14.5", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.5.tgz", @@ -9476,6 +9645,17 @@ "yarn": ">=1.0.0" } }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/braces": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", @@ -9507,6 +9687,32 @@ "node": ">=0.10.0" } }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -9532,6 +9738,14 @@ "node": ">=0.10.0" } }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -9585,12 +9799,15 @@ "node": ">=0.10.0" } }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" + "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/to-regex-range": { @@ -9654,18 +9871,40 @@ "readable-stream": "^2.0.0" } }, + "node_modules/from2/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/from2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", + "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", + "dev": true, "dependencies": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/fs-minipass": { @@ -9690,6 +9929,28 @@ "readable-stream": "1 || 2" } }, + "node_modules/fs-write-stream-atomic/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/fs-write-stream-atomic/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -9798,9 +10059,9 @@ } }, "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -9851,17 +10112,6 @@ "node": ">=6" } }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -9942,11 +10192,11 @@ } }, "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/has-symbols": { @@ -10045,19 +10295,6 @@ "node": ">=4" } }, - "node_modules/hash-base/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/hash-base/node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -10117,11 +10354,6 @@ "react-is": "^16.7.0" } }, - "node_modules/hoist-non-react-statics/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, "node_modules/hoopy": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", @@ -10151,6 +10383,28 @@ "wbuf": "^1.1.0" } }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/hsl-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/hsl-regex/-/hsl-regex-1.0.0.tgz", @@ -10202,6 +10456,14 @@ "node": ">=6" } }, + "node_modules/html-minifier-terser/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "engines": { + "node": ">= 6" + } + }, "node_modules/html-webpack-plugin": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-4.5.0.tgz", @@ -10582,14 +10844,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "engines": { - "node": ">=4" - } - }, "node_modules/import-from": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz", @@ -10680,6 +10934,31 @@ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, + "node_modules/inquirer": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.0.tgz", + "integrity": "sha512-0crLweprevJ02tTuA6ThpoAERAGyVILC4sS74uib58Xf/zSr1/ZWtmm7D5CI+bSQEaA04f0K7idaHpQbSWgiVQ==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.2.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6" + }, + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/internal-ip": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-4.3.0.tgz", @@ -10968,6 +11247,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", @@ -11156,6 +11444,18 @@ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-weakref": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", @@ -11248,14 +11548,6 @@ "node": ">=8" } }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, "node_modules/istanbul-lib-report/node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -11278,17 +11570,6 @@ "semver": "bin/semver.js" } }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/istanbul-lib-source-maps": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", @@ -11322,6 +11603,15 @@ "node": ">=8" } }, + "node_modules/iterare": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", + "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/jest": { "version": "26.6.0", "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.0.tgz", @@ -11351,6 +11641,29 @@ "node": ">= 10.14.2" } }, + "node_modules/jest-changed-files/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-changed-files/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/jest-circus": { "version": "26.6.0", "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-26.6.0.tgz", @@ -11382,69 +11695,47 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-circus/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-circus/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-circus/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-circus/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-circus/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-circus/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-circus/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-circus/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/jest-circus/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/jest-circus/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/jest-cli": { "version": "26.6.3", @@ -11472,68 +11763,96 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-cli/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-cli/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-cli/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-cli/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=6" } }, - "node_modules/jest-cli/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-cli/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dependencies": { - "color-name": "~1.1.4" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jest-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "node_modules/jest-cli/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "node_modules/jest-cli/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" }, - "node_modules/jest-cli/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-cli/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, "engines": { "node": ">=8" } }, - "node_modules/jest-cli/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dependencies": { - "has-flag": "^4.0.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" }, "engines": { - "node": ">=8" + "node": ">=6" } }, "node_modules/jest-config": { @@ -11572,57 +11891,27 @@ } } }, - "node_modules/jest-config/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-config/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-config/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-config/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-config/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-config/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/jest-config/node_modules/jest-resolve": { @@ -11643,17 +11932,25 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-config/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-config/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "has-flag": "^4.0.0" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=8" + "node": ">= 10" } }, + "node_modules/jest-config/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, "node_modules/jest-diff": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", @@ -11668,69 +11965,47 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-diff/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-diff/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-diff/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-diff/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-diff/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-diff/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-diff/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-diff/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/jest-diff/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/jest-diff/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/jest-docblock": { "version": "26.0.0", @@ -11758,69 +12033,47 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-each/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-each/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-each/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-each/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-each/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-each/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-each/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/jest-each/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/jest-environment-jsdom": { "version": "26.6.2", @@ -11839,6 +12092,29 @@ "node": ">= 10.14.2" } }, + "node_modules/jest-environment-jsdom/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/jest-environment-node": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", @@ -11855,6 +12131,29 @@ "node": ">= 10.14.2" } }, + "node_modules/jest-environment-node/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-node/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/jest-get-type": { "version": "26.3.0", "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", @@ -11890,6 +12189,42 @@ "fsevents": "^2.1.2" } }, + "node_modules/jest-haste-map/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-haste-map/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-haste-map/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, "node_modules/jest-jasmine2": { "version": "26.6.3", "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", @@ -11918,82 +12253,102 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-jasmine2/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-jasmine2/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-jasmine2/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-jasmine2/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-jasmine2/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-jasmine2/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" + "node": ">= 10" } }, - "node_modules/jest-jasmine2/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "node_modules/jest-jasmine2/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, - "node_modules/jest-jasmine2/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dependencies": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/jest-jasmine2/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-leak-detector/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "has-flag": "^4.0.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/jest-leak-detector": { + "node_modules/jest-leak-detector/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-leak-detector/node_modules/pretty-format": { "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", - "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">= 10.14.2" + "node": ">= 10" } }, + "node_modules/jest-leak-detector/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, "node_modules/jest-matcher-utils": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", @@ -12008,69 +12363,47 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-matcher-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-matcher-utils/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-matcher-utils/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-matcher-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-matcher-utils/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-matcher-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/jest-matcher-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/jest-matcher-utils/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/jest-message-util": { "version": "26.6.2", @@ -12091,69 +12424,47 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-message-util/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-message-util/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-message-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-message-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-message-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/jest-message-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/jest-message-util/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/jest-mock": { "version": "26.6.2", @@ -12167,6 +12478,29 @@ "node": ">= 10.14.2" } }, + "node_modules/jest-mock/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-mock/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, "node_modules/jest-pnp-resolver": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", @@ -12222,68 +12556,50 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-resolve/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-resolve-dependencies/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-resolve-dependencies/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-resolve/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-resolve/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-resolve/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-resolve/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/jest-resolve/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-resolve/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/jest-runner": { @@ -12316,57 +12632,27 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-runner/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-runner/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-runner/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-runner/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runner/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-runner/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/jest-runner/node_modules/jest-resolve": { @@ -12387,15 +12673,17 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-runner/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-runner/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", "dependencies": { - "has-flag": "^4.0.0" + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" }, "engines": { - "node": ">=8" + "node": ">= 10.13.0" } }, "node_modules/jest-runtime": { @@ -12438,57 +12726,45 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-runtime/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-runtime/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-runtime/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-runtime/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, + "node_modules/jest-runtime/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "engines": { - "node": ">=7.0.0" + "node": ">=6" } }, - "node_modules/jest-runtime/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-runtime/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node_modules/jest-runtime/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" } }, "node_modules/jest-runtime/node_modules/jest-resolve": { @@ -12509,17 +12785,57 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-runtime/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-runtime/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dependencies": { - "has-flag": "^4.0.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "node_modules/jest-runtime/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" }, "engines": { "node": ">=8" } }, + "node_modules/jest-runtime/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/jest-serializer": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", @@ -12558,57 +12874,27 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-snapshot/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-snapshot/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-snapshot/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-snapshot/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/jest-snapshot/node_modules/jest-resolve": { @@ -12629,15 +12915,37 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-snapshot/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "has-flag": "^4.0.0" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=8" + "node": ">= 10" + } + }, + "node_modules/jest-snapshot/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/jest-util": { @@ -12656,68 +12964,27 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-util/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-util/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/jest-validate": { @@ -12736,69 +13003,47 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-validate/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 10.14.2" } }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-validate/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "@types/yargs-parser": "*" } }, - "node_modules/jest-validate/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-validate/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-validate/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/jest-validate/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/jest-validate/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/jest-watch-typeahead": { "version": "0.6.1", @@ -12820,70 +13065,6 @@ "jest": "^26.0.0" } }, - "node_modules/jest-watch-typeahead/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-watch-typeahead/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/jest-watcher": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", @@ -12901,100 +13082,54 @@ "node": ">= 10.14.2" } }, - "node_modules/jest-watcher/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-watcher/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "dependencies": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-watcher/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-watcher/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" + "node": ">= 10.14.2" } }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-watcher/node_modules/@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@types/yargs-parser": "*" } }, "node_modules/jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "version": "27.3.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.3.1.tgz", + "integrity": "sha512-ks3WCzsiZaOPJl/oMsDjaf0TRiSv7ctNgs0FqRr2nARsovz6AWWy4oLElwcquGSz692DzgZQrCLScPNs5YlC4g==", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" + "supports-color": "^8.0.0" }, "engines": { "node": ">= 10.13.0" } }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, "node_modules/jest-worker/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/jquery": { @@ -13065,9 +13200,9 @@ } }, "node_modules/jsdom/node_modules/acorn": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", - "integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==", + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", + "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", "bin": { "acorn": "bin/acorn" }, @@ -13075,6 +13210,30 @@ "node": ">=0.4.0" } }, + "node_modules/jsdom/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -13319,6 +13478,22 @@ "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=" }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/loglevel": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz", @@ -13389,14 +13564,6 @@ "node": ">=6" } }, - "node_modules/make-dir/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", @@ -13456,6 +13623,28 @@ "readable-stream": "^2.0.1" } }, + "node_modules/memory-fs/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/memory-fs/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", @@ -13791,6 +13980,12 @@ "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=" }, + "node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, "node_modules/nan": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", @@ -13875,9 +14070,13 @@ } }, "node_modules/node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, "engines": { "node": "4.x || >=6.0.0" } @@ -13925,11 +14124,43 @@ "vm-browserify": "^1.0.1" } }, + "node_modules/node-libs-browser/node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, "node_modules/node-libs-browser/node_modules/punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" }, + "node_modules/node-libs-browser/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/node-libs-browser/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/node-modules-regexp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", @@ -13952,6 +14183,36 @@ "which": "^2.0.2" } }, + "node_modules/node-notifier/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "optional": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/node-releases": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", @@ -13968,14 +14229,6 @@ "validate-npm-package-license": "^3.0.1" } }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -14017,6 +14270,14 @@ "node": ">=8" } }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, "node_modules/nth-check": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", @@ -14124,6 +14385,15 @@ "node": ">=0.10.0" } }, + "node_modules/object-hash": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz", + "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/object-inspect": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", @@ -14375,6 +14645,29 @@ "node": ">= 0.8.0" } }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/original": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", @@ -14388,6 +14681,15 @@ "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=" }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/p-each-series": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", @@ -14480,6 +14782,28 @@ "readable-stream": "^2.1.5" } }, + "node_modules/parallel-transform/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/parallel-transform/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", @@ -14591,11 +14915,11 @@ "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=" }, "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/path-parse": { @@ -14604,9 +14928,10 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.2.0.tgz", + "integrity": "sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA==", + "dev": true }, "node_modules/path-type": { "version": "4.0.0", @@ -16104,48 +16429,37 @@ } }, "node_modules/pretty-format": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", - "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "version": "27.3.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.3.1.tgz", + "integrity": "sha512-DR/c+pvFc52nLimLROYjnXPtolawm+uWDxr4FjuLDLUn+ktWnSN851KoHwHzzqq6rfCOjkzN8FLgDrSub6UDuA==", + "peer": true, "dependencies": { - "@jest/types": "^26.6.2", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", + "@jest/types": "^27.2.5", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", "react-is": "^17.0.1" }, "engines": { - "node": ">= 10" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "peer": true, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/pretty-format/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/pretty-format/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "node_modules/pretty-format/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "peer": true }, "node_modules/process": { "version": "0.11.10", @@ -16203,11 +16517,6 @@ "react-is": "^16.8.1" } }, - "node_modules/prop-types/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -16491,6 +16800,17 @@ "@babel/highlight": "^7.10.4" } }, + "node_modules/react-dev-utils/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/react-dev-utils/node_modules/browserslist": { "version": "4.14.2", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.14.2.tgz", @@ -16512,6 +16832,53 @@ "url": "https://tidelift.com/funding/github/npm/browserslist" } }, + "node_modules/react-dev-utils/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/react-dev-utils/node_modules/chalk/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/react-dev-utils/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/react-dev-utils/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "node_modules/react-dev-utils/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/react-dev-utils/node_modules/escape-string-regexp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", @@ -16539,6 +16906,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/react-dev-utils/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, "node_modules/react-dev-utils/node_modules/loader-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", @@ -16557,6 +16932,33 @@ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.77.tgz", "integrity": "sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==" }, + "node_modules/react-dev-utils/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, "node_modules/react-dev-utils/node_modules/strip-ansi": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", @@ -16568,6 +16970,31 @@ "node": ">=8" } }, + "node_modules/react-dev-utils/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/react-dev-utils/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/react-dom": { "version": "16.14.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", @@ -16593,9 +17020,9 @@ "integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==" }, "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/react-popper": { "version": "2.2.5", @@ -16627,11 +17054,6 @@ "redux": "^2.0.0 || ^3.0.0 || ^4.0.0-0" } }, - "node_modules/react-redux/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, "node_modules/react-refresh": { "version": "0.8.3", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz", @@ -16762,6 +17184,110 @@ "semver": "bin/semver" } }, + "node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.3.tgz", + "integrity": "sha512-br5Qwvh8D2OQqSXpd1g/xqXKnK0r+Jz6qVKBbWmpUcrbGOxUrf39V5oZ1876084CGn18uMdR5uvPqBv9UqtBjQ==", + "dependencies": { + "ansi-html": "^0.0.7", + "error-stack-parser": "^2.0.6", + "html-entities": "^1.2.1", + "native-url": "^0.2.6", + "schema-utils": "^2.6.5", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">= 10.x" + }, + "peerDependencies": { + "@types/webpack": "4.x", + "react-refresh": ">=0.8.3 <0.10.0", + "sockjs-client": "^1.4.0", + "type-fest": "^0.13.1", + "webpack": ">=4.43.0 <6.0.0", + "webpack-dev-server": "3.x", + "webpack-hot-middleware": "2.x", + "webpack-plugin-serve": "0.x || 1.x" + }, + "peerDependenciesMeta": { + "@types/webpack": { + "optional": true + }, + "sockjs-client": { + "optional": true + }, + "type-fest": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + }, + "webpack-hot-middleware": { + "optional": true + }, + "webpack-plugin-serve": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/react-scripts/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/resolve": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz", + "integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==", + "dependencies": { + "is-core-module": "^2.0.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/react-scripts/node_modules/semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "optional": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", @@ -16809,25 +17335,16 @@ } }, "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/readable-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dependencies": { - "safe-buffer": "~5.1.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, "node_modules/readdirp": { @@ -16881,6 +17398,12 @@ "redux": "^4" } }, + "node_modules/reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", + "dev": true + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -17080,11 +17603,11 @@ "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" }, "node_modules/resolve": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz", - "integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", + "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", "dependencies": { - "is-core-module": "^2.0.0", + "is-core-module": "^2.2.0", "path-parse": "^1.0.6" }, "funding": { @@ -17102,7 +17625,7 @@ "node": ">=8" } }, - "node_modules/resolve-from": { + "node_modules/resolve-cwd/node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", @@ -17110,6 +17633,14 @@ "node": ">=8" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, "node_modules/resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", @@ -17136,6 +17667,17 @@ "node": ">=6.0.0" } }, + "node_modules/resolve-url-loader/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/resolve-url-loader/node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", @@ -17144,6 +17686,43 @@ "node": ">=6" } }, + "node_modules/resolve-url-loader/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-url-loader/node_modules/chalk/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-url-loader/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/resolve-url-loader/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "node_modules/resolve-url-loader/node_modules/convert-source-map": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", @@ -17160,6 +17739,14 @@ "node": ">= 0.10" } }, + "node_modules/resolve-url-loader/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, "node_modules/resolve-url-loader/node_modules/json5": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", @@ -17220,6 +17807,19 @@ "node": ">=6" } }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", @@ -17264,6 +17864,37 @@ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz", "integrity": "sha1-8dgClQr33SYxof6+BZZVDIarMZA=" }, + "node_modules/rework/node_modules/css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "dependencies": { + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + } + }, + "node_modules/rework/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rework/node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, "node_modules/rgb-regex": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz", @@ -17351,6 +17982,14 @@ "rollup": ">=0.66.0 <3" } }, + "node_modules/rollup-plugin-terser/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, "node_modules/rollup-plugin-terser/node_modules/jest-worker": { "version": "24.9.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", @@ -17403,6 +18042,15 @@ "node": "6.* || >= 7.*" } }, + "node_modules/run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -17433,6 +18081,21 @@ "aproba": "^1.1.1" } }, + "node_modules/rxjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.4.0.tgz", + "integrity": "sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==", + "dev": true, + "dependencies": { + "tslib": "~2.1.0" + } + }, + "node_modules/rxjs/node_modules/tslib": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==", + "dev": true + }, "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -17514,21 +18177,6 @@ "node": ">=0.10.0" } }, - "node_modules/sane/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, "node_modules/sane/node_modules/execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", @@ -17665,41 +18313,6 @@ "node": ">=4" } }, - "node_modules/sane/node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "engines": { - "node": ">=4" - } - }, - "node_modules/sane/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/sane/node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/sane/node_modules/to-regex-range": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", @@ -17712,17 +18325,6 @@ "node": ">=0.10.0" } }, - "node_modules/sane/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, "node_modules/sanitize.css": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-10.0.0.tgz", @@ -17781,6 +18383,20 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/sass-loader/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", @@ -17869,14 +18485,11 @@ } }, "node_modules/semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" + "semver": "bin/semver" } }, "node_modules/send": { @@ -18062,22 +18675,22 @@ "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" }, "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dependencies": { - "shebang-regex": "^3.0.0" + "shebang-regex": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/shell-quote": { @@ -18151,36 +18764,6 @@ "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, "node_modules/snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", @@ -18353,6 +18936,18 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, + "node_modules/snapdragon/node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, "node_modules/sockjs": { "version": "0.3.21", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", @@ -18426,15 +19021,12 @@ } }, "node_modules/source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", "dependencies": { "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" + "decode-uri-component": "^0.2.0" } }, "node_modules/source-map-support": { @@ -18464,6 +19056,12 @@ "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" }, + "node_modules/spawn-command": { + "version": "0.0.2-1", + "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz", + "integrity": "sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=", + "dev": true + }, "node_modules/spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -18488,9 +19086,9 @@ } }, "node_modules/spdx-license-ids": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.10.tgz", - "integrity": "sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==" + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz", + "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==" }, "node_modules/spdy": { "version": "4.0.2", @@ -18520,19 +19118,6 @@ "wbuf": "^1.7.3" } }, - "node_modules/spdy-transport/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", @@ -18694,6 +19279,28 @@ "readable-stream": "^2.0.2" } }, + "node_modules/stream-browserify/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/stream-browserify/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/stream-each": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", @@ -18715,6 +19322,28 @@ "xtend": "^4.0.0" } }, + "node_modules/stream-http/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/stream-http/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/stream-shift": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", @@ -18960,14 +19589,14 @@ } }, "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/supports-hyperlinks": { @@ -18982,25 +19611,6 @@ "node": ">=8" } }, - "node_modules/supports-hyperlinks/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/svg-parser": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", @@ -19033,6 +19643,43 @@ "node": ">=4.0.0" } }, + "node_modules/svgo/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/svgo/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/svgo/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/svgo/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "node_modules/svgo/node_modules/css-select": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", @@ -19078,6 +19725,14 @@ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" }, + "node_modules/svgo/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, "node_modules/svgo/node_modules/nth-check": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", @@ -19086,6 +19741,17 @@ "boolbase": "~1.0.0" } }, + "node_modules/svgo/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -19107,9 +19773,9 @@ } }, "node_modules/table/node_modules/ajv": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.7.1.tgz", - "integrity": "sha512-gPpOObTO1QjbnN1sVMjJcp1TF9nggMfO4MBR5uQl6ZVTOaEPq5i4oq/6R9q2alMMPB3eg53wFv1RuJBLuxf3Hw==", + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.8.1.tgz", + "integrity": "sha512-6CiMNDrzv0ZR916u2T+iRunnD60uWmNn8SkdB44/6stVORUg0aAkWO7PkOhpCmjmW8f2I/G/xnowD66fxGyQJg==", "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -19247,6 +19913,19 @@ "webpack": "^4.0.0 || ^5.0.0" } }, + "node_modules/terser-webpack-plugin/node_modules/acorn": { + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", + "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", + "optional": true, + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/terser-webpack-plugin/node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -19268,6 +19947,19 @@ "url": "https://github.com/avajs/find-cache-dir?sponsor=1" } }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, "node_modules/terser-webpack-plugin/node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -19341,9 +20033,9 @@ } }, "node_modules/terser-webpack-plugin/node_modules/terser": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.9.0.tgz", - "integrity": "sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", + "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", "dependencies": { "commander": "^2.20.0", "source-map": "~0.7.2", @@ -19354,6 +20046,14 @@ }, "engines": { "node": ">=10" + }, + "peerDependencies": { + "acorn": "^8.5.0" + }, + "peerDependenciesMeta": { + "acorn": { + "optional": true + } } }, "node_modules/terser-webpack-plugin/node_modules/terser/node_modules/source-map": { @@ -19400,6 +20100,12 @@ "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==" }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, "node_modules/through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", @@ -19409,6 +20115,28 @@ "xtend": "~4.0.1" } }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -19430,6 +20158,18 @@ "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" }, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -19525,14 +20265,18 @@ } }, "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "bin": { + "tree-kill": "cli.js" } }, "node_modules/tryer": { @@ -19584,9 +20328,9 @@ } }, "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", + "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -19673,9 +20417,9 @@ } }, "node_modules/typescript": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", - "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", + "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -20018,7 +20762,7 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "optional": true, + "devOptional": true, "bin": { "uuid": "dist/bin/uuid" } @@ -20363,6 +21107,21 @@ "node": ">=0.10.0" } }, + "node_modules/watchpack-chokidar2/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "optional": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, "node_modules/watchpack-chokidar2/node_modules/readdirp": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", @@ -20377,6 +21136,15 @@ "node": ">=0.10" } }, + "node_modules/watchpack-chokidar2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "optional": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/watchpack-chokidar2/node_modules/to-regex-range": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", @@ -20398,6 +21166,15 @@ "minimalistic-assert": "^1.0.0" } }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", + "dev": true, + "dependencies": { + "defaults": "^1.0.3" + } + }, "node_modules/web-vitals": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.2.tgz", @@ -20550,6 +21327,17 @@ "node": ">=0.10.0" } }, + "node_modules/webpack-dev-server/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/webpack-dev-server/node_modules/anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", @@ -20669,6 +21457,19 @@ "node": ">=6" } }, + "node_modules/webpack-dev-server/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/webpack-dev-server/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "node_modules/webpack-dev-server/node_modules/emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", @@ -20748,6 +21549,14 @@ "node": ">=0.10.0" } }, + "node_modules/webpack-dev-server/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, "node_modules/webpack-dev-server/node_modules/import-local": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", @@ -20885,6 +21694,20 @@ "node": ">=6" } }, + "node_modules/webpack-dev-server/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, "node_modules/webpack-dev-server/node_modules/readdirp": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", @@ -20938,6 +21761,14 @@ "semver": "bin/semver.js" } }, + "node_modules/webpack-dev-server/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/webpack-dev-server/node_modules/string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -21044,6 +21875,11 @@ "async-limiter": "~1.0.0" } }, + "node_modules/webpack-dev-server/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, "node_modules/webpack-dev-server/node_modules/yargs": { "version": "13.3.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", @@ -21454,6 +22290,11 @@ "node": ">=0.10.0" } }, + "node_modules/webpack/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, "node_modules/webpack/node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -21499,30 +22340,30 @@ "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" }, "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dev": true, "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, + "node_modules/whatwg-url/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true + }, "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dependencies": { "isexe": "^2.0.0" }, "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" + "which": "bin/which" } }, "node_modules/which-boxed-primitive": { @@ -21786,48 +22627,22 @@ } }, "node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -21888,9 +22703,13 @@ } }, "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } }, "node_modules/yallist": { "version": "4.0.0", @@ -21906,44 +22725,30 @@ } }, "node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs-parser/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, "engines": { - "node": ">=6" + "node": ">=10" } }, "node_modules/yocto-queue": { @@ -21960,9 +22765,9 @@ }, "dependencies": { "@appbaseio/reactivecore": { - "version": "9.12.6", - "resolved": "https://registry.npmjs.org/@appbaseio/reactivecore/-/reactivecore-9.12.6.tgz", - "integrity": "sha512-zqPt793G4gRKoQ20q/3uqTTcsHOR5XBQJxUBkuL5opB2t/335xSAX/K2C6O7IIVGYY/yNhntvILn28qyjVaqXA==", + "version": "9.12.7", + "resolved": "https://registry.npmjs.org/@appbaseio/reactivecore/-/reactivecore-9.12.7.tgz", + "integrity": "sha512-fGdmMhsIHhRv9a8Yt1NrlfRekB8MxjZRZutMRu2c1U48pQc+0zK1svM92CStsA10eM5SLB3GtT5SFwnZYmDRuw==", "requires": { "cross-fetch": "^3.0.4", "prop-types": "^15.6.0", @@ -21972,11 +22777,11 @@ } }, "@appbaseio/reactivesearch": { - "version": "3.25.0", - "resolved": "https://registry.npmjs.org/@appbaseio/reactivesearch/-/reactivesearch-3.25.0.tgz", - "integrity": "sha512-yNrI1P+x6JO/bwW4OtAWw/eewkFB6cBS5nUcRFKLgo3jcWAMYkfIXLMu1kfcF5/AbpH/xLCaaOjAgUDupV26tg==", + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/@appbaseio/reactivesearch/-/reactivesearch-3.25.1.tgz", + "integrity": "sha512-eVP+49TGzWTX22q2EAM+98fdzsp0bcmopftRAa7abXLrQa+YTs6TzzsIqUB+oMu6/dCsaBADDaBtfMmeUuAzGw==", "requires": { - "@appbaseio/reactivecore": "9.12.6", + "@appbaseio/reactivecore": "9.12.7", "@emotion/core": "^10.0.28", "@emotion/styled": "^10.0.27", "appbase-js": "^4.4.1", @@ -22003,9 +22808,9 @@ } }, "@babel/compat-data": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.0.tgz", - "integrity": "sha512-DGjt2QZse5SGd9nfOSqO4WLJ8NN/oHkijbXbPrxuoJO3oIPJL3TciZs9FX+cOHNiY9E9l0opL8g7BmLe3T+9ew==" + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.4.tgz", + "integrity": "sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q==" }, "@babel/core": { "version": "7.16.0", @@ -22064,13 +22869,13 @@ } }, "@babel/helper-compilation-targets": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.0.tgz", - "integrity": "sha512-S7iaOT1SYlqK0sQaCi21RX4+13hmdmnxIEAnQUB/eh7GeAnRjOUgTYpLkUOiRXzD+yog1JxP0qyAQZ7ZxVxLVg==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.3.tgz", + "integrity": "sha512-vKsoSQAyBmxS35JUOOt+07cLc6Nk/2ljLIHwmq2/NM6hdioUaqEXq/S+nXvbvXbZkNDlWOymPanJGOc4CBjSJA==", "requires": { "@babel/compat-data": "^7.16.0", "@babel/helper-validator-option": "^7.14.5", - "browserslist": "^4.16.6", + "browserslist": "^4.17.5", "semver": "^6.3.0" }, "dependencies": { @@ -22104,9 +22909,9 @@ } }, "@babel/helper-define-polyfill-provider": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz", - "integrity": "sha512-OrpPZ97s+aPi6h2n1OXzdhVis1SGSsMU2aMHgLcOKfsp4/v1NWpx3CWT3lBj5eeBq9cDkPkh+YCfdF7O12uNDQ==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.0.tgz", + "integrity": "sha512-7hfT8lUljl/tM3h+izTX/pO3W3frz2ok6Pk+gzys8iJqDfZrZy2pXjRTZAvG2YmfHun1X4q8/UZRLatMfqc5Tg==", "requires": { "@babel/helper-compilation-targets": "^7.13.0", "@babel/helper-module-imports": "^7.12.13", @@ -22204,9 +23009,9 @@ "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==" }, "@babel/helper-remap-async-to-generator": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.0.tgz", - "integrity": "sha512-MLM1IOMe9aQBqMWxcRw8dcb9jlM86NIw7KA0Wri91Xkfied+dE0QuBFSBjMNvqzmS0OSIDsMNC24dBEkPUi7ew==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.4.tgz", + "integrity": "sha512-vGERmmhR+s7eH5Y/cp8PCVzj4XEjerq8jooMfxFdA5xVtAk9Sh4AQsrWgiErUEBjtGrBtOFKDUcWQFW4/dFwMA==", "requires": { "@babel/helper-annotate-as-pure": "^7.16.0", "@babel/helper-wrap-function": "^7.16.0", @@ -22270,12 +23075,12 @@ } }, "@babel/helpers": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.0.tgz", - "integrity": "sha512-dVRM0StFMdKlkt7cVcGgwD8UMaBfWJHl3A83Yfs8GQ3MO0LHIIIMvK7Fa0RGOGUQ10qikLaX6D7o5htcQWgTMQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.3.tgz", + "integrity": "sha512-Xn8IhDlBPhvYTvgewPKawhADichOsbkZuzN7qz2BusOM0brChsyXMDJvldWaYMMUNiCQdQzNEioXTp3sC8Nt8w==", "requires": { "@babel/template": "^7.16.0", - "@babel/traverse": "^7.16.0", + "@babel/traverse": "^7.16.3", "@babel/types": "^7.16.0" } }, @@ -22287,12 +23092,58 @@ "@babel/helper-validator-identifier": "^7.15.7", "chalk": "^2.0.0", "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + } } }, "@babel/parser": { - "version": "7.16.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.2.tgz", - "integrity": "sha512-RUVpT0G2h6rOZwqLDTrKk7ksNv7YpAilTnYe1/Q+eDjxEceRMKVWbCsX7t8h6C1qCFi/1Y8WZjcEPBAFG27GPw==" + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.4.tgz", + "integrity": "sha512-6V0qdPUaiVHH3RtZeLIsc+6pDhbYzHR8ogA8w+f+Wc77DuXto19g2QUwveINoS34Uw+W8/hQDGJCx+i4n7xcng==" }, "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { "version": "7.16.2", @@ -22303,12 +23154,12 @@ } }, "@babel/plugin-proposal-async-generator-functions": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.0.tgz", - "integrity": "sha512-nyYmIo7ZqKsY6P4lnVmBlxp9B3a96CscbLotlsNuktMHahkDwoPYEjXrZHU0Tj844Z9f1IthVxQln57mhkcExw==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.4.tgz", + "integrity": "sha512-/CUekqaAaZCQHleSK/9HajvcD/zdnJiKRiuUFq8ITE+0HsPzquf53cpFiqAwl/UfmJbR6n5uGPQSPdrmKOvHHg==", "requires": { "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-remap-async-to-generator": "^7.16.0", + "@babel/helper-remap-async-to-generator": "^7.16.4", "@babel/plugin-syntax-async-generators": "^7.8.4" } }, @@ -22815,9 +23666,9 @@ } }, "@babel/plugin-transform-parameters": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.0.tgz", - "integrity": "sha512-XgnQEm1CevKROPx+udOi/8f8TiGhrUWiHiaUCIp47tE0tpFDjzXNTZc9E5CmCwxNjXTWEVqvRfWZYOTFvMa/ZQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.3.tgz", + "integrity": "sha512-3MaDpJrOXT1MZ/WCmkOFo7EtmVVC8H4EUZVrHvFOsmwkk4lOjQj8rzv8JKUZV4YoQKeoIgk07GO+acPU9IMu/w==", "requires": { "@babel/helper-plugin-utils": "^7.14.5" } @@ -22916,13 +23767,6 @@ "@babel/helper-plugin-utils": "^7.10.4", "resolve": "^1.8.1", "semver": "^5.5.1" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - } } }, "@babel/plugin-transform-shorthand-properties": { @@ -22994,17 +23838,17 @@ } }, "@babel/preset-env": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.0.tgz", - "integrity": "sha512-cdTu/W0IrviamtnZiTfixPfIncr2M1VqRrkjzZWlr1B4TVYimCFK5jkyOdP4qw2MrlKHi+b3ORj6x8GoCew8Dg==", + "version": "7.16.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.4.tgz", + "integrity": "sha512-v0QtNd81v/xKj4gNKeuAerQ/azeNn/G1B1qMLeXOcV8+4TWlD2j3NV1u8q29SDFBXx/NBq5kyEAO+0mpRgacjA==", "requires": { - "@babel/compat-data": "^7.16.0", - "@babel/helper-compilation-targets": "^7.16.0", + "@babel/compat-data": "^7.16.4", + "@babel/helper-compilation-targets": "^7.16.3", "@babel/helper-plugin-utils": "^7.14.5", "@babel/helper-validator-option": "^7.14.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.2", "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.16.0", - "@babel/plugin-proposal-async-generator-functions": "^7.16.0", + "@babel/plugin-proposal-async-generator-functions": "^7.16.4", "@babel/plugin-proposal-class-properties": "^7.16.0", "@babel/plugin-proposal-class-static-block": "^7.16.0", "@babel/plugin-proposal-dynamic-import": "^7.16.0", @@ -23054,7 +23898,7 @@ "@babel/plugin-transform-named-capturing-groups-regex": "^7.16.0", "@babel/plugin-transform-new-target": "^7.16.0", "@babel/plugin-transform-object-super": "^7.16.0", - "@babel/plugin-transform-parameters": "^7.16.0", + "@babel/plugin-transform-parameters": "^7.16.3", "@babel/plugin-transform-property-literals": "^7.16.0", "@babel/plugin-transform-regenerator": "^7.16.0", "@babel/plugin-transform-reserved-words": "^7.16.0", @@ -23067,10 +23911,10 @@ "@babel/plugin-transform-unicode-regex": "^7.16.0", "@babel/preset-modules": "^0.1.5", "@babel/types": "^7.16.0", - "babel-plugin-polyfill-corejs2": "^0.2.3", - "babel-plugin-polyfill-corejs3": "^0.3.0", - "babel-plugin-polyfill-regenerator": "^0.2.3", - "core-js-compat": "^3.19.0", + "babel-plugin-polyfill-corejs2": "^0.3.0", + "babel-plugin-polyfill-corejs3": "^0.4.0", + "babel-plugin-polyfill-regenerator": "^0.3.0", + "core-js-compat": "^3.19.1", "semver": "^6.3.0" }, "dependencies": { @@ -23126,17 +23970,17 @@ } }, "@babel/runtime": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz", - "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz", + "integrity": "sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==", "requires": { "regenerator-runtime": "^0.13.4" } }, "@babel/runtime-corejs3": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.0.tgz", - "integrity": "sha512-Oi2qwQ21X7/d9gn3WiwkDTJmq3TQtYNz89lRnoFy8VeZpWlsyXvzSwiRrRZ8cXluvSwqKxqHJ6dBd9Rv+p0ZGQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.3.tgz", + "integrity": "sha512-IAdDC7T0+wEB4y2gbIL0uOXEYpiZEeuFUTVbdGq+UwCcF35T/tS8KrmMomEwEc5wBbyfH3PJVpTSUqrhPDXFcQ==", "requires": { "core-js-pure": "^3.19.0", "regenerator-runtime": "^0.13.4" @@ -23153,16 +23997,16 @@ } }, "@babel/traverse": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.0.tgz", - "integrity": "sha512-qQ84jIs1aRQxaGaxSysII9TuDaguZ5yVrEuC0BN2vcPlalwfLovVmCjbFDPECPXcYM/wLvNFfp8uDOliLxIoUQ==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.3.tgz", + "integrity": "sha512-eolumr1vVMjqevCpwVO99yN/LoGL0EyHiLO5I043aYQvwOJ9eR5UsZSClHVCzfhBduMAsSzgA/6AyqPjNayJag==", "requires": { "@babel/code-frame": "^7.16.0", "@babel/generator": "^7.16.0", "@babel/helper-function-name": "^7.16.0", "@babel/helper-hoist-variables": "^7.16.0", "@babel/helper-split-export-declaration": "^7.16.0", - "@babel/parser": "^7.16.0", + "@babel/parser": "^7.16.3", "@babel/types": "^7.16.0", "debug": "^4.1.0", "globals": "^11.1.0" @@ -23263,13 +24107,6 @@ "@emotion/unitless": "0.7.5", "@emotion/utils": "0.11.3", "csstype": "^2.5.7" - }, - "dependencies": { - "csstype": { - "version": "2.6.18", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.18.tgz", - "integrity": "sha512-RSU6Hyeg14am3Ah4VZEmeX8H7kLwEEirXe6aU2IPfKNvhXwTflK5HQRDNI0ypQXoqmm+QPyG2IaPuQE5zMwSIQ==" - } } }, "@emotion/sheet": { @@ -23368,13 +24205,6 @@ "requires": { "@babel/runtime": "^7.10.4", "react-is": "^16.6.3" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - } } }, "@gar/promisify": { @@ -23447,6 +24277,11 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" } } }, @@ -23468,47 +24303,24 @@ "slash": "^3.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "has-flag": "^4.0.0" + "@types/yargs-parser": "*" } } } @@ -23548,41 +24360,26 @@ "strip-ansi": "^6.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "jest-resolve": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", @@ -23597,14 +24394,6 @@ "resolve": "^1.18.1", "slash": "^3.0.0" } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } } } }, @@ -23617,6 +24406,28 @@ "@jest/types": "^26.6.2", "@types/node": "*", "jest-mock": "^26.6.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "@jest/fake-timers": { @@ -23630,6 +24441,28 @@ "jest-message-util": "^26.6.2", "jest-mock": "^26.6.2", "jest-util": "^26.6.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "@jest/globals": { @@ -23640,6 +24473,28 @@ "@jest/environment": "^26.6.2", "@jest/types": "^26.6.2", "expect": "^26.6.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "@jest/reporters": { @@ -23674,41 +24529,26 @@ "v8-to-istanbul": "^7.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "istanbul-lib-instrument": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", @@ -23735,6 +24575,16 @@ "slash": "^3.0.0" } }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -23744,14 +24594,6 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } } } }, @@ -23781,6 +24623,28 @@ "@jest/types": "^26.6.2", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "@jest/test-sequencer": { @@ -23817,110 +24681,86 @@ "write-file-atomic": "^3.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } } } }, "@jest/types": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", - "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "version": "27.2.5", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.2.5.tgz", + "integrity": "sha512-nmuM4VuDtCZcY+eTpw+0nvstwReMsjPoj7ZR80/BbixulhLaiX+fbv8oeLW8WZlJMcsGQsTmMKT/iTZu1Uy/lQ==", + "peer": true, "requires": { "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^15.0.0", + "@types/yargs": "^16.0.0", "chalk": "^4.0.0" + } + }, + "@nestjs/common": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-8.2.1.tgz", + "integrity": "sha512-xtcvRm46hyLVacMEfGJq4byFVkkP/xo255Em1T6BISyqJe2Cf2eCHSVOwxElDCIlonpGwrJhWosGgyOUgWk1iw==", + "dev": true, + "requires": { + "axios": "0.24.0", + "iterare": "1.2.1", + "tslib": "2.3.1", + "uuid": "8.3.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + } + } + }, + "@nestjs/core": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-8.2.1.tgz", + "integrity": "sha512-5JyCBd+gDkl32Xa7ZRp2cvLR/elPSE/T4egtMFvSwQJDhek+djp9jaVq5PYvsBgaCr/HSHHrLIQ72nnDRLTisQ==", + "dev": true, + "requires": { + "@nuxtjs/opencollective": "0.3.2", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "object-hash": "2.2.0", + "path-to-regexp": "3.2.0", + "tslib": "2.3.1", + "uuid": "8.3.2" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true } } }, @@ -23982,24 +24822,38 @@ } } }, - "@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.3.tgz", - "integrity": "sha512-br5Qwvh8D2OQqSXpd1g/xqXKnK0r+Jz6qVKBbWmpUcrbGOxUrf39V5oZ1876084CGn18uMdR5uvPqBv9UqtBjQ==", + "@nuxtjs/opencollective": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz", + "integrity": "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==", + "dev": true, "requires": { - "ansi-html": "^0.0.7", - "error-stack-parser": "^2.0.6", - "html-entities": "^1.2.1", - "native-url": "^0.2.6", - "schema-utils": "^2.6.5", - "source-map": "^0.7.3" - }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" - } + "chalk": "^4.1.0", + "consola": "^2.15.0", + "node-fetch": "^2.6.1" + } + }, + "@openapitools/openapi-generator-cli": { + "version": "2.4.16", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.4.16.tgz", + "integrity": "sha512-XsB+aDNBDJKyKm77TZQIlavXfN1beAkRrf9aIojuP/4kWG+wtzw1l1WZWahkkJdJN1MlhEWUsXxRycC8g7nY1g==", + "dev": true, + "requires": { + "@nestjs/common": "8.2.1", + "@nestjs/core": "8.2.1", + "@nuxtjs/opencollective": "0.3.2", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "3.6.0", + "concurrently": "6.4.0", + "console.table": "0.10.0", + "fs-extra": "10.0.0", + "glob": "7.1.6", + "inquirer": "8.2.0", + "lodash": "4.17.21", + "reflect-metadata": "0.1.13", + "rxjs": "7.4.0", + "tslib": "2.0.3" } }, "@popperjs/core": { @@ -24142,6 +24996,20 @@ "@svgr/plugin-jsx": "^5.5.0", "camelcase": "^6.2.0", "cosmiconfig": "^7.0.0" + }, + "dependencies": { + "cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + } } }, "@svgr/hast-util-to-babel-ast": { @@ -24171,6 +25039,20 @@ "cosmiconfig": "^7.0.0", "deepmerge": "^4.2.2", "svgo": "^1.2.2" + }, + "dependencies": { + "cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + } } }, "@svgr/webpack": { @@ -24189,9 +25071,9 @@ } }, "@testing-library/dom": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.11.0.tgz", - "integrity": "sha512-8Ay4UDiMlB5YWy+ZvCeRyFFofs53ebxrWnOFvCoM1HpMAX4cHyuSrCuIM9l2lVuUWUt+Gr3loz/nCwdrnG6ShQ==", + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.11.1.tgz", + "integrity": "sha512-3KQDyx9r0RKYailW2MiYrSSKEfH0GTkI51UGEvJenvcoDoeRYs0PZpi2SXqtnMClQvCqdtTTpOfFETDTVADpAg==", "peer": true, "requires": { "@babel/code-frame": "^7.10.4", @@ -24202,114 +25084,6 @@ "dom-accessibility-api": "^0.5.9", "lz-string": "^1.4.4", "pretty-format": "^27.0.2" - }, - "dependencies": { - "@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", - "peer": true, - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@jest/types": { - "version": "27.2.5", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.2.5.tgz", - "integrity": "sha512-nmuM4VuDtCZcY+eTpw+0nvstwReMsjPoj7ZR80/BbixulhLaiX+fbv8oeLW8WZlJMcsGQsTmMKT/iTZu1Uy/lQ==", - "peer": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "peer": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "peer": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "aria-query": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.0.0.tgz", - "integrity": "sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==", - "peer": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "peer": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "peer": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "peer": true - }, - "pretty-format": { - "version": "27.3.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.3.1.tgz", - "integrity": "sha512-DR/c+pvFc52nLimLROYjnXPtolawm+uWDxr4FjuLDLUn+ktWnSN851KoHwHzzqq6rfCOjkzN8FLgDrSub6UDuA==", - "peer": true, - "requires": { - "@jest/types": "^27.2.5", - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "peer": true - } - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, - "requires": { - "has-flag": "^4.0.0" - } - } } }, "@testing-library/jest-dom": { @@ -24328,12 +25102,13 @@ "redent": "^3.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "requires": { - "color-convert": "^2.0.1" + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" } }, "chalk": { @@ -24344,56 +25119,6 @@ "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "css": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", - "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", - "requires": { - "inherits": "^2.0.4", - "source-map": "^0.6.1", - "source-map-resolve": "^0.6.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-resolve": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", - "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } } } }, @@ -24406,12 +25131,16 @@ "@testing-library/dom": "^7.28.1" }, "dependencies": { - "@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "regenerator-runtime": "^0.13.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, "@testing-library/dom": { @@ -24429,48 +25158,38 @@ "pretty-format": "^26.6.2" } }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-convert": "^2.0.1" + "@types/yargs-parser": "*" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -24480,16 +25199,6 @@ "integrity": "sha512-IR0iWbFkgd56Bu5ZI/ej8yQwrkCv8Qydx6RzwbKz9faXazR/+5tvYKsZQgyXJiwgpcva127YO6JcWy7YlCfofQ==", "requires": { "@babel/runtime": "^7.12.5" - }, - "dependencies": { - "@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - } } }, "@tootallnate/once": { @@ -24540,9 +25249,9 @@ } }, "@types/eslint": { - "version": "7.28.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.2.tgz", - "integrity": "sha512-KubbADPkfoU75KgKeKLsFHXnU4ipH7wYg0TRT33NK3N3yiu7jlFAAoygIWBV+KbuHx/G+AvuGX6DllnK35gfJA==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", "requires": { "@types/estree": "*", "@types/json-schema": "*" @@ -24603,6 +25312,44 @@ "requires": { "jest-diff": "^26.0.0", "pretty-format": "^26.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "requires": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + } + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + } } }, "@types/json-schema": { @@ -24636,9 +25383,9 @@ "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" }, "@types/prettier": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.1.tgz", - "integrity": "sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw==" + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.2.tgz", + "integrity": "sha512-ekoj4qOQYp7CvjX8ZDBgN86w3MqQhLE1hczEJbEIjgFEumDy+na/4AJAbLXfgEWFNB2pKadM5rPFtuSGMWK7xA==" }, "@types/prop-types": { "version": "15.7.4", @@ -24651,13 +25398,20 @@ "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" }, "@types/react": { - "version": "17.0.34", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.34.tgz", - "integrity": "sha512-46FEGrMjc2+8XhHXILr+3+/sTe3OfzSPU9YGKILLrUYbQ1CLQC9Daqo1KzENGXAWwrFwiY0l4ZbF20gRvgpWTg==", + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.35.tgz", + "integrity": "sha512-r3C8/TJuri/SLZiiwwxQoLAoavaczARfT9up9b4Jr65+ErAUX3MIkU0oMOQnrpfgHme8zIqZLX7O5nnjm5Wayw==", "requires": { "@types/prop-types": "*", "@types/scheduler": "*", "csstype": "^3.0.2" + }, + "dependencies": { + "csstype": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz", + "integrity": "sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==" + } } }, "@types/react-dom": { @@ -24720,9 +25474,9 @@ } }, "@types/webpack": { - "version": "4.41.31", - "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.31.tgz", - "integrity": "sha512-/i0J7sepXFIp1ZT7FjUGi1eXMCg8HCCzLJEQkKsOtbJFontsJLolBcDC+3qxn5pPwiCt1G0ZdRmYRzNBtvpuGQ==", + "version": "4.41.32", + "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.32.tgz", + "integrity": "sha512-cb+0ioil/7oz5//7tZUSwbrSAN/NWHrQylz5cW8G0dWTcF/g+/dSdMlKVZspBYuMAN1+WnwHrkxiRrLcwd0Heg==", "requires": { "@types/node": "*", "@types/tapable": "^1", @@ -24757,9 +25511,10 @@ } }, "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "peer": true, "requires": { "@types/yargs-parser": "*" } @@ -25154,11 +25909,11 @@ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" }, "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "requires": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" } }, "anymatch": { @@ -25189,6 +25944,11 @@ "whatwg-fetch": "2.0.4" } }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, "whatwg-fetch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", @@ -25210,13 +25970,10 @@ } }, "aria-query": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", - "requires": { - "@babel/runtime": "^7.10.2", - "@babel/runtime-corejs3": "^7.10.2" - } + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.0.0.tgz", + "integrity": "sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==", + "peer": true }, "arity-n": { "version": "1.0.4", @@ -25416,6 +26173,14 @@ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.5.tgz", "integrity": "sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA==" }, + "axios": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz", + "integrity": "sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==", + "requires": { + "follow-redirects": "^1.14.4" + } + }, "axobject-query": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", @@ -25464,47 +26229,24 @@ "slash": "^3.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "has-flag": "^4.0.0" + "@types/yargs-parser": "*" } } } @@ -25597,20 +26339,6 @@ "@babel/runtime": "^7.7.2", "cosmiconfig": "^6.0.0", "resolve": "^1.12.0" - }, - "dependencies": { - "cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - } - } } }, "babel-plugin-named-asset-import": { @@ -25620,12 +26348,12 @@ "requires": {} }, "babel-plugin-polyfill-corejs2": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz", - "integrity": "sha512-NDZ0auNRzmAfE1oDDPW2JhzIMXUk+FFe2ICejmt5T4ocKgiQx3e0VCRx9NCAidcMtL2RUZaWtXnmjTCkx0tcbA==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.0.tgz", + "integrity": "sha512-wMDoBJ6uG4u4PNFh72Ty6t3EgfA91puCuAwKIazbQlci+ENb/UU9A3xG5lutjUIiXCIn1CY5L15r9LimiJyrSA==", "requires": { "@babel/compat-data": "^7.13.11", - "@babel/helper-define-polyfill-provider": "^0.2.4", + "@babel/helper-define-polyfill-provider": "^0.3.0", "semver": "^6.1.1" }, "dependencies": { @@ -25637,20 +26365,20 @@ } }, "babel-plugin-polyfill-corejs3": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz", - "integrity": "sha512-JLwi9vloVdXLjzACL80j24bG6/T1gYxwowG44dg6HN/7aTPdyPbJJidf6ajoA3RPHHtW0j9KMrSOLpIZpAnPpg==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.4.0.tgz", + "integrity": "sha512-YxFreYwUfglYKdLUGvIF2nJEsGwj+RhWSX/ije3D2vQPOXuyMLMtg/cCGMDpOA7Nd+MwlNdnGODbd2EwUZPlsw==", "requires": { - "@babel/helper-define-polyfill-provider": "^0.2.4", + "@babel/helper-define-polyfill-provider": "^0.3.0", "core-js-compat": "^3.18.0" } }, "babel-plugin-polyfill-regenerator": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz", - "integrity": "sha512-JVE78oRZPKFIeUqFGrSORNzQnrDwZR16oiWeGM8ZyjBn2XAT5OjP+wXx5ESuo33nUsFUEJYjtklnsKbxW5L+7g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.0.tgz", + "integrity": "sha512-dhAPTDLGoMW5/84wkgwiLRwMnio2i1fUe53EuvtKMv0pn2p3S8OCoV1xAzfJPl0KOX7IB89s2ib85vbYiea3jg==", "requires": { - "@babel/helper-define-polyfill-provider": "^0.2.4" + "@babel/helper-define-polyfill-provider": "^0.3.0" } }, "babel-plugin-syntax-jsx": { @@ -25882,10 +26610,13 @@ "@babel/plugin-transform-react-pure-annotations": "^7.12.1" } }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "@babel/runtime": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz", + "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==", + "requires": { + "regenerator-runtime": "^0.13.4" + } } } }, @@ -25985,6 +26716,17 @@ "file-uri-to-path": "1.0.0" } }, + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -26136,16 +26878,6 @@ "safe-buffer": "^5.2.0" }, "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -26162,12 +26894,12 @@ } }, "browserslist": { - "version": "4.17.6", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.6.tgz", - "integrity": "sha512-uPgz3vyRTlEiCv4ee9KlsKgo2V6qPk7Jsn0KAn2OBqbqKo3iNcPEC1Ti6J4dwnz+aIRfEEEuOzC9IBk8tXUomw==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.18.1.tgz", + "integrity": "sha512-8ScCzdpPwR2wQh8IT82CA2VgDwjHyqMovPBZSNH54+tm4Jk2pCuv90gmAdH6J84OCRWi0b4gMe6O6XPXuJnjgQ==", "requires": { - "caniuse-lite": "^1.0.30001274", - "electron-to-chromium": "^1.3.886", + "caniuse-lite": "^1.0.30001280", + "electron-to-chromium": "^1.3.896", "escalade": "^3.1.1", "node-releases": "^2.0.1", "picocolors": "^1.0.0" @@ -26182,13 +26914,13 @@ } }, "buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, "buffer-from": { @@ -26316,9 +27048,9 @@ } }, "camelcase": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", - "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==" + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.1.tgz", + "integrity": "sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA==" }, "caniuse-api": { "version": "3.0.0", @@ -26332,9 +27064,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001279", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001279.tgz", - "integrity": "sha512-VfEHpzHEXj6/CxggTwSFoZBBYGQfQv9Cf42KPlO79sWXCD1QNKWKsKzFeWL7QpZHJQYAvocqV6Rty1yJMkqWLQ==" + "version": "1.0.30001282", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001282.tgz", + "integrity": "sha512-YhF/hG6nqBEllymSIjLtR2iWDDnChvhnVJqp+vloyt2tEHFG1yBR+ac2B/rOw0qOK0m0lEXU2dv4E/sMk5P9Kg==" }, "capture-exit": { "version": "2.0.0", @@ -26350,13 +27082,12 @@ "integrity": "sha512-/4YgnZS8y1UXXmC02xD5rRrBEu6T5ub+mQHLNRj0fzTRbgdBYhsNo2V5EqwgqrExjxsjtF/OpAKAMkKsxbD5XQ==" }, "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, "char-regex": { @@ -26364,6 +27095,12 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==" }, + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true + }, "check-types": { "version": "11.1.2", "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.1.2.tgz", @@ -26506,16 +27243,44 @@ "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" }, + "cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "requires": { + "restore-cursor": "^3.1.0" + } + }, + "cli-spinners": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", + "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", + "dev": true + }, + "cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "dev": true + }, "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, "requires": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "wrap-ansi": "^7.0.0" } }, + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", + "dev": true + }, "clsx": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", @@ -26534,6 +27299,52 @@ "@types/q": "^1.5.1", "chalk": "^2.4.1", "q": "^1.1.2" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + } } }, "collect-v8-coverage": { @@ -26557,20 +27368,35 @@ "requires": { "color-convert": "^1.9.3", "color-string": "^1.6.0" + }, + "dependencies": { + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + } } }, "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "requires": { - "color-name": "1.1.3" + "color-name": "~1.1.4" } }, "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "color-string": { "version": "1.6.0", @@ -26590,20 +27416,27 @@ } }, "commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true }, "common-tags": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", - "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==" + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==" }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=" }, + "compare-versions": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", + "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==", + "dev": true + }, "component-emitter": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", @@ -26668,6 +27501,72 @@ "inherits": "^2.0.3", "readable-stream": "^2.2.2", "typedarray": "^0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "concurrently": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.4.0.tgz", + "integrity": "sha512-HZ3D0RTQMH3oS4gvtYj1P+NBc6PzE2McEra6yEFcQKrUQ9HvtTGU4Dbne083F034p+LRb7kWU0tPRNvSGs1UCQ==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "date-fns": "^2.16.1", + "lodash": "^4.17.21", + "rxjs": "^6.6.3", + "spawn-command": "^0.0.2-1", + "supports-color": "^8.1.0", + "tree-kill": "^1.2.2", + "yargs": "^16.2.0" + }, + "dependencies": { + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, "confusing-browser-globals": { @@ -26680,11 +27579,26 @@ "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==" }, + "consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==", + "dev": true + }, "console-browserify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==" }, + "console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha1-CRcCVYiHW+/XDPLv9L7yxuLXXQQ=", + "dev": true, + "requires": { + "easy-table": "1.1.0" + } + }, "constants-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", @@ -26781,15 +27695,15 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "cosmiconfig": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", - "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", "requires": { "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", + "import-fresh": "^3.1.0", "parse-json": "^5.0.0", "path-type": "^4.0.0", - "yaml": "^1.10.0" + "yaml": "^1.7.2" } }, "create-ecdh": { @@ -26839,51 +27753,6 @@ "integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==", "requires": { "cross-spawn": "^6.0.5" - }, - "dependencies": { - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - } } }, "cross-fetch": { @@ -26892,16 +27761,25 @@ "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", "requires": { "node-fetch": "2.6.1" + }, + "dependencies": { + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + } } }, "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" } }, "crypto-browserify": { @@ -26928,14 +27806,13 @@ "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=" }, "css": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", - "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", "requires": { - "inherits": "^2.0.3", + "inherits": "^2.0.4", "source-map": "^0.6.1", - "source-map-resolve": "^0.5.2", - "urix": "^0.1.0" + "source-map-resolve": "^0.6.0" }, "dependencies": { "source-map": { @@ -27010,6 +27887,16 @@ "postcss-value-parser": "^4.1.0", "schema-utils": "^2.7.1", "semver": "^7.3.2" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "requires": { + "lru-cache": "^6.0.0" + } + } } }, "css-prefers-color-scheme": { @@ -27230,9 +28117,9 @@ } }, "csstype": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.9.tgz", - "integrity": "sha512-rpw6JPxK6Rfg1zLOYCSwle2GFOOsnjmDYDaBwEcwoOg4qlsIVCN789VkBZDJAGi4T07gI4YSutR43t9Zz4Lzuw==" + "version": "2.6.19", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.19.tgz", + "integrity": "sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ==" }, "cyclist": { "version": "1.0.1", @@ -27261,8 +28148,34 @@ "abab": "^2.0.3", "whatwg-mimetype": "^2.3.0", "whatwg-url": "^8.0.0" + }, + "dependencies": { + "tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "requires": { + "punycode": "^2.1.1" + } + }, + "whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + } } }, + "date-fns": { + "version": "2.25.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.25.0.tgz", + "integrity": "sha512-ovYRFnTrbGPD4nqaEqescPEv1mNwvt+UTqI3Ay9SzNtey9NZnYu6E2qCcBBgJ6/2VF1zGGygpyTDITqpQQ5e+w==", + "dev": true + }, "debug": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", @@ -27323,18 +28236,6 @@ "ip-regex": "^2.1.0" }, "dependencies": { - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", @@ -27369,40 +28270,18 @@ "requires": { "path-key": "^2.0.0" } - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } } } }, + "defaults": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", + "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "dev": true, + "requires": { + "clone": "^1.0.2" + } + }, "define-properties": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", @@ -27714,6 +28593,39 @@ "inherits": "^2.0.1", "readable-stream": "^2.0.0", "stream-shift": "^1.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha1-hvmrTBAvA3G3KXuSplHVgkvIy3M=", + "dev": true, + "requires": { + "wcwidth": ">=1.0.1" } }, "ee-first": { @@ -27727,9 +28639,9 @@ "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==" }, "electron-to-chromium": { - "version": "1.3.892", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.892.tgz", - "integrity": "sha512-YDW4yIjdfMnbRoBjRZ/aNQYmT6JgQFLwmTSDRJMQdrY4MByEzppdXp3rnJ0g4LBWcsYTUvwKKClYN1ofZ0COOQ==" + "version": "1.3.901", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.901.tgz", + "integrity": "sha512-ToJdV2vzwT2jeAsw8zIggTFllJ4Kxvwghk39AhJEHHlIxor10wsFI3wo69p8nFc0s/ATWBqugPv/k3nW4Y9Mww==" }, "elliptic": { "version": "6.5.4", @@ -27808,6 +28720,28 @@ "errno": "^0.1.3", "readable-stream": "^2.0.1" } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } } } }, @@ -28039,36 +28973,16 @@ "@babel/highlight": "^7.10.4" } }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "requires": { - "color-name": "~1.1.4" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -28097,28 +29011,49 @@ "type-fest": "^0.20.2" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==" }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "requires": { - "has-flag": "^4.0.0" + "lru-cache": "^6.0.0" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" } }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, "type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } } } }, @@ -28146,15 +29081,6 @@ "requires": { "ms": "^2.1.1" } - }, - "resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } } } }, @@ -28231,18 +29157,18 @@ } }, "eslint-plugin-import": { - "version": "2.25.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", - "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", + "version": "2.25.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.3.tgz", + "integrity": "sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg==", "requires": { "array-includes": "^3.1.4", "array.prototype.flat": "^1.2.5", "debug": "^2.6.9", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.0", + "eslint-module-utils": "^2.7.1", "has": "^1.0.3", - "is-core-module": "^2.7.0", + "is-core-module": "^2.8.0", "is-glob": "^4.0.3", "minimatch": "^3.0.4", "object.values": "^1.1.5", @@ -28270,15 +29196,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } } } }, @@ -28291,42 +29208,54 @@ } }, "eslint-plugin-jsx-a11y": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz", - "integrity": "sha512-0rGPJBbwHoGNPU73/QCLP/vveMlM1b1Z9PponxO87jfr6tuH5ligXbDT6nHSSzBC8ovX2Z+BQu7Bk5D/Xgq9zg==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz", + "integrity": "sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g==", "requires": { - "@babel/runtime": "^7.11.2", + "@babel/runtime": "^7.16.3", "aria-query": "^4.2.2", - "array-includes": "^3.1.1", + "array-includes": "^3.1.4", "ast-types-flow": "^0.0.7", - "axe-core": "^4.0.2", + "axe-core": "^4.3.5", "axobject-query": "^2.2.0", - "damerau-levenshtein": "^1.0.6", - "emoji-regex": "^9.0.0", + "damerau-levenshtein": "^1.0.7", + "emoji-regex": "^9.2.2", "has": "^1.0.3", - "jsx-ast-utils": "^3.1.0", - "language-tags": "^1.0.5" + "jsx-ast-utils": "^3.2.1", + "language-tags": "^1.0.5", + "minimatch": "^3.0.4" + }, + "dependencies": { + "aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "requires": { + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" + } + } } }, "eslint-plugin-react": { - "version": "7.26.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.26.1.tgz", - "integrity": "sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.27.0.tgz", + "integrity": "sha512-0Ut+CkzpppgFtoIhdzi2LpdpxxBvgFf99eFqWxJnUrO7mMe0eOiNpou6rvNYeVVV6lWZvTah0BFne7k5xHjARg==", "requires": { - "array-includes": "^3.1.3", - "array.prototype.flatmap": "^1.2.4", + "array-includes": "^3.1.4", + "array.prototype.flatmap": "^1.2.5", "doctrine": "^2.1.0", - "estraverse": "^5.2.0", + "estraverse": "^5.3.0", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.0.4", - "object.entries": "^1.1.4", - "object.fromentries": "^2.0.4", - "object.hasown": "^1.0.0", - "object.values": "^1.1.4", + "object.entries": "^1.1.5", + "object.fromentries": "^2.0.5", + "object.hasown": "^1.1.0", + "object.values": "^1.1.5", "prop-types": "^15.7.2", "resolve": "^2.0.0-next.3", "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.5" + "string.prototype.matchall": "^4.0.6" }, "dependencies": { "doctrine": { @@ -28354,9 +29283,9 @@ } }, "eslint-plugin-react-hooks": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz", - "integrity": "sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz", + "integrity": "sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==", "requires": {} }, "eslint-plugin-testing-library": { @@ -28419,6 +29348,14 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==" + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "requires": { + "lru-cache": "^6.0.0" + } } } }, @@ -28452,16 +29389,16 @@ "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==" }, "eslint-webpack-plugin": { - "version": "2.5.4", - "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-2.5.4.tgz", - "integrity": "sha512-7rYh0m76KyKSDE+B+2PUQrlNS4HJ51t3WKpkJg6vo2jFMbEPTG99cBV0Dm7LXSHucN4WGCG65wQcRiTFrj7iWw==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-2.6.0.tgz", + "integrity": "sha512-V+LPY/T3kur5QO3u+1s34VDTcRxjXWPUGM4hlmTb5DwVD0OQz631yGTxJZf4SpAqAjdbBVe978S8BJeHpAdOhQ==", "requires": { - "@types/eslint": "^7.2.6", + "@types/eslint": "^7.28.2", "arrify": "^2.0.1", - "jest-worker": "^26.6.2", - "micromatch": "^4.0.2", + "jest-worker": "^27.3.1", + "micromatch": "^4.0.4", "normalize-path": "^3.0.0", - "schema-utils": "^3.0.0" + "schema-utils": "^3.1.1" }, "dependencies": { "schema-utils": { @@ -28580,6 +29517,44 @@ "onetime": "^5.1.0", "signal-exit": "^3.0.2", "strip-final-newline": "^2.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } + } } }, "exenv": { @@ -28706,26 +29681,25 @@ "jest-regex-util": "^26.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" } } }, @@ -28783,6 +29757,11 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" } } }, @@ -28810,6 +29789,17 @@ "is-extendable": "^1.0.1" } }, + "external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "dev": true, + "requires": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + } + }, "extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", @@ -28875,6 +29865,12 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, + "fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, "fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", @@ -28904,6 +29900,15 @@ "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==" }, + "figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -29055,9 +30060,9 @@ } }, "flatted": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", - "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==" + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.4.tgz", + "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==" }, "flatten": { "version": "1.0.3", @@ -29071,6 +30076,30 @@ "requires": { "inherits": "^2.0.3", "readable-stream": "^2.3.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "follow-redirects": { @@ -29097,6 +30126,14 @@ "worker-rpc": "^0.1.0" }, "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, "braces": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", @@ -29124,6 +30161,29 @@ } } }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -29145,6 +30205,11 @@ } } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -29188,10 +30253,13 @@ "to-regex": "^3.0.2" } }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } }, "to-regex-range": { "version": "2.1.1", @@ -29239,14 +30307,38 @@ "requires": { "inherits": "^2.0.1", "readable-stream": "^2.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", + "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", + "dev": true, "requires": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" @@ -29269,6 +30361,30 @@ "iferr": "^0.1.5", "imurmurhash": "^0.1.4", "readable-stream": "1 || 2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "fs.realpath": { @@ -29345,9 +30461,9 @@ "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" }, "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -29381,16 +30497,6 @@ "ini": "^1.3.5", "kind-of": "^6.0.2", "which": "^1.3.1" - }, - "dependencies": { - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - } } }, "globals": { @@ -29455,9 +30561,9 @@ "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==" }, "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, "has-symbols": { "version": "1.0.2", @@ -29529,16 +30635,6 @@ "safe-buffer": "^5.2.0" }, "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -29581,13 +30677,6 @@ "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", "requires": { "react-is": "^16.7.0" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - } } }, "hoopy": { @@ -29614,6 +30703,30 @@ "obuf": "^1.0.0", "readable-stream": "^2.0.1", "wbuf": "^1.1.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "hsl-regex": { @@ -29656,6 +30769,13 @@ "param-case": "^3.0.3", "relateurl": "^0.2.7", "terser": "^4.6.3" + }, + "dependencies": { + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + } } }, "html-webpack-plugin": { @@ -29945,13 +31065,6 @@ "requires": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" - } } }, "import-from": { @@ -30027,6 +31140,28 @@ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, + "inquirer": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.0.tgz", + "integrity": "sha512-0crLweprevJ02tTuA6ThpoAERAGyVILC4sS74uib58Xf/zSr1/ZWtmm7D5CI+bSQEaA04f0K7idaHpQbSWgiVQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.2.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6" + } + }, "internal-ip": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-4.3.0.tgz", @@ -30228,6 +31363,12 @@ "is-extglob": "^2.1.1" } }, + "is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true + }, "is-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", @@ -30350,6 +31491,12 @@ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, + "is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true + }, "is-weakref": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", @@ -30420,11 +31567,6 @@ "supports-color": "^7.1.0" }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -30437,14 +31579,6 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } } } }, @@ -30474,6 +31608,12 @@ "istanbul-lib-report": "^3.0.0" } }, + "iterare": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", + "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==", + "dev": true + }, "jest": { "version": "26.6.0", "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.0.tgz", @@ -30492,6 +31632,28 @@ "@jest/types": "^26.6.2", "execa": "^4.0.0", "throat": "^5.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "jest-circus": { @@ -30522,48 +31684,41 @@ "throat": "^5.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -30587,47 +31742,81 @@ "yargs": "^15.4.1" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "requires": { - "color-name": "~1.1.4" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "requires": { - "has-flag": "^4.0.0" + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } @@ -30657,41 +31846,26 @@ "pretty-format": "^26.6.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "jest-resolve": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", @@ -30707,13 +31881,21 @@ "slash": "^3.0.0" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "has-flag": "^4.0.0" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -30728,48 +31910,41 @@ "pretty-format": "^26.6.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -30793,48 +31968,41 @@ "pretty-format": "^26.6.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -30850,6 +32018,28 @@ "jest-mock": "^26.6.2", "jest-util": "^26.6.2", "jsdom": "^16.4.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "jest-environment-node": { @@ -30863,6 +32053,28 @@ "@types/node": "*", "jest-mock": "^26.6.2", "jest-util": "^26.6.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "jest-get-type": { @@ -30889,6 +32101,38 @@ "micromatch": "^4.0.2", "sane": "^4.0.3", "walker": "^1.0.7" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + } } }, "jest-jasmine2": { @@ -30916,48 +32160,41 @@ "throat": "^5.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -30968,6 +32205,44 @@ "requires": { "jest-get-type": "^26.3.0", "pretty-format": "^26.6.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "requires": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + } + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + } } }, "jest-matcher-utils": { @@ -30981,48 +32256,41 @@ "pretty-format": "^26.6.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -31042,48 +32310,41 @@ "stack-utils": "^2.0.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -31094,6 +32355,28 @@ "requires": { "@jest/types": "^26.6.2", "@types/node": "*" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "jest-pnp-resolver": { @@ -31122,47 +32405,24 @@ "slash": "^3.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "has-flag": "^4.0.0" + "@types/yargs-parser": "*" } } } @@ -31175,6 +32435,28 @@ "@jest/types": "^26.6.2", "jest-regex-util": "^26.0.0", "jest-snapshot": "^26.6.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "requires": { + "@types/yargs-parser": "*" + } + } } }, "jest-runner": { @@ -31204,41 +32486,26 @@ "throat": "^5.0.0" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "jest-resolve": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", @@ -31254,12 +32521,14 @@ "slash": "^3.0.0" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", "requires": { - "has-flag": "^4.0.0" + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" } } } @@ -31298,41 +32567,41 @@ "yargs": "^15.4.1" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "requires": { - "color-name": "~1.1.4" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "jest-resolve": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", @@ -31348,12 +32617,46 @@ "slash": "^3.0.0" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "requires": { - "has-flag": "^4.0.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } @@ -31390,41 +32693,26 @@ "semver": "^7.3.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "color-name": "~1.1.4" + "@types/yargs-parser": "*" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "jest-resolve": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", @@ -31440,12 +32728,28 @@ "slash": "^3.0.0" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "has-flag": "^4.0.0" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + } + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "requires": { + "lru-cache": "^6.0.0" } } } @@ -31463,47 +32767,24 @@ "micromatch": "^4.0.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "has-flag": "^4.0.0" + "@types/yargs-parser": "*" } } } @@ -31521,48 +32802,41 @@ "pretty-format": "^26.6.2" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-convert": "^2.0.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/yargs-parser": "*" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "requires": { - "color-name": "~1.1.4" + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" } } }, @@ -31578,51 +32852,6 @@ "slash": "^3.0.0", "string-length": "^4.0.1", "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } } }, "jest-watcher": { @@ -31639,70 +32868,42 @@ "string-length": "^4.0.1" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", "requires": { - "color-name": "~1.1.4" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "@types/yargs": { + "version": "15.0.14", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", + "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", "requires": { - "has-flag": "^4.0.0" + "@types/yargs-parser": "*" } } } }, "jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "version": "27.3.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.3.1.tgz", + "integrity": "sha512-ks3WCzsiZaOPJl/oMsDjaf0TRiSv7ctNgs0FqRr2nARsovz6AWWy4oLElwcquGSz692DzgZQrCLScPNs5YlC4g==", "requires": { "@types/node": "*", "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" + "supports-color": "^8.0.0" }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "requires": { "has-flag": "^4.0.0" } @@ -31763,9 +32964,27 @@ }, "dependencies": { "acorn": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", - "integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==" + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", + "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==" + }, + "tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "requires": { + "punycode": "^2.1.1" + } + }, + "whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } } } }, @@ -31971,6 +33190,16 @@ "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=" }, + "log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + } + }, "loglevel": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz", @@ -32020,13 +33249,6 @@ "requires": { "pify": "^4.0.1", "semver": "^5.6.0" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - } } }, "makeerror": { @@ -32077,6 +33299,30 @@ "requires": { "errno": "^0.1.3", "readable-stream": "^2.0.1" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "merge-descriptors": { @@ -32338,6 +33584,12 @@ "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=" }, + "mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, "nan": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", @@ -32410,9 +33662,13 @@ } }, "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } }, "node-forge": { "version": "0.10.0", @@ -32454,10 +33710,42 @@ "vm-browserify": "^1.0.1" }, "dependencies": { + "buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } } } }, @@ -32478,6 +33766,26 @@ "shellwords": "^0.1.1", "uuid": "^8.3.0", "which": "^2.0.2" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "optional": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "optional": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, "node-releases": { @@ -32494,13 +33802,6 @@ "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - } } }, "normalize-path": { @@ -32530,6 +33831,13 @@ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "requires": { "path-key": "^3.0.0" + }, + "dependencies": { + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + } } }, "nth-check": { @@ -32616,6 +33924,12 @@ } } }, + "object-hash": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz", + "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==", + "dev": true + }, "object-inspect": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", @@ -32791,6 +34105,23 @@ "word-wrap": "^1.2.3" } }, + "ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "requires": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + } + }, "original": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", @@ -32804,6 +34135,12 @@ "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=" }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, "p-each-series": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", @@ -32864,6 +34201,30 @@ "cyclist": "^1.0.1", "inherits": "^2.0.3", "readable-stream": "^2.1.5" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "param-case": { @@ -32956,9 +34317,9 @@ "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=" }, "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" }, "path-parse": { "version": "1.0.7", @@ -32966,9 +34327,10 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.2.0.tgz", + "integrity": "sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA==", + "dev": true }, "path-type": { "version": "4.0.0", @@ -34174,36 +35536,28 @@ } }, "pretty-format": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", - "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "version": "27.3.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.3.1.tgz", + "integrity": "sha512-DR/c+pvFc52nLimLROYjnXPtolawm+uWDxr4FjuLDLUn+ktWnSN851KoHwHzzqq6rfCOjkzN8FLgDrSub6UDuA==", + "peer": true, "requires": { - "@jest/types": "^26.6.2", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", + "@jest/types": "^27.2.5", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", "react-is": "^17.0.1" }, "dependencies": { "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "peer": true }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "peer": true } } }, @@ -34252,13 +35606,6 @@ "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.8.1" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - } } }, "proxy-addr": { @@ -34492,6 +35839,14 @@ "@babel/highlight": "^7.10.4" } }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, "browserslist": { "version": "4.14.2", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.14.2.tgz", @@ -34503,6 +35858,46 @@ "node-releases": "^1.1.61" } }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + } + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, "escape-string-regexp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", @@ -34521,6 +35916,11 @@ "slash": "^3.0.0" } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, "loader-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", @@ -34536,6 +35936,24 @@ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.77.tgz", "integrity": "sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==" }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, "strip-ansi": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", @@ -34543,6 +35961,22 @@ "requires": { "ansi-regex": "^5.0.0" } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } } } }, @@ -34568,9 +36002,9 @@ "integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==" }, "react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "react-popper": { "version": "2.2.5", @@ -34592,13 +36026,6 @@ "loose-envify": "^1.4.0", "prop-types": "^15.7.2", "react-is": "^16.8.2" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - } } }, "react-refresh": { @@ -34701,6 +36128,58 @@ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" } } + }, + "@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.3.tgz", + "integrity": "sha512-br5Qwvh8D2OQqSXpd1g/xqXKnK0r+Jz6qVKBbWmpUcrbGOxUrf39V5oZ1876084CGn18uMdR5uvPqBv9UqtBjQ==", + "requires": { + "ansi-html": "^0.0.7", + "error-stack-parser": "^2.0.6", + "html-entities": "^1.2.1", + "native-url": "^0.2.6", + "schema-utils": "^2.6.5", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" + } + } + }, + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "resolve": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz", + "integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==", + "requires": { + "is-core-module": "^2.0.0", + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" + }, + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "optional": true, + "peer": true } } }, @@ -34740,27 +36219,13 @@ } }, "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dependencies": { - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } }, "readdirp": { @@ -34803,6 +36268,12 @@ "integrity": "sha512-/y6ZKQNU/0u8Bm7ROLq9Pt/7lU93cT0IucYMrubo89ENjxPa7i8pqLKu6V4X7/TvYovQ6x01unTeyeZ9lgXiTA==", "requires": {} }, + "reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", + "dev": true + }, "regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -34958,11 +36429,11 @@ "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" }, "resolve": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz", - "integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", + "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", "requires": { - "is-core-module": "^2.0.0", + "is-core-module": "^2.2.0", "path-parse": "^1.0.6" } }, @@ -34972,12 +36443,19 @@ "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "requires": { "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" + } } }, "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" }, "resolve-url": { "version": "0.2.1", @@ -35001,11 +36479,52 @@ "source-map": "0.6.1" }, "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "convert-source-map": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", @@ -35019,6 +36538,11 @@ "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=" }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, "json5": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", @@ -35062,6 +36586,16 @@ } } }, + "restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "requires": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + } + }, "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", @@ -35090,6 +36624,34 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz", "integrity": "sha1-8dgClQr33SYxof6+BZZVDIarMZA=" + }, + "css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "requires": { + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } } } }, @@ -35165,6 +36727,11 @@ "terser": "^4.6.2" }, "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, "jest-worker": { "version": "24.9.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", @@ -35212,6 +36779,12 @@ "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==" }, + "run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "dev": true + }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -35228,6 +36801,23 @@ "aproba": "^1.1.1" } }, + "rxjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.4.0.tgz", + "integrity": "sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==", + "dev": true, + "requires": { + "tslib": "~2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==", + "dev": true + } + } + }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -35298,18 +36888,6 @@ } } }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", @@ -35417,29 +36995,6 @@ "path-key": "^2.0.0" } }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, "to-regex-range": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", @@ -35448,14 +37003,6 @@ "is-number": "^3.0.0", "repeat-string": "^1.6.1" } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } } } }, @@ -35485,6 +37032,14 @@ "ajv": "^6.12.5", "ajv-keywords": "^3.5.2" } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "requires": { + "lru-cache": "^6.0.0" + } } } }, @@ -35562,9 +37117,9 @@ } }, "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "send": { "version": "0.17.1", @@ -35733,17 +37288,17 @@ "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" }, "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "requires": { - "shebang-regex": "^3.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" }, "shell-quote": { "version": "1.7.2", @@ -35804,29 +37359,6 @@ "ansi-styles": "^4.0.0", "astral-regex": "^2.0.0", "is-fullwidth-code-point": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } } }, "snapdragon": { @@ -35928,6 +37460,18 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } } } }, @@ -36033,15 +37577,12 @@ "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==" }, "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", "requires": { "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" + "decode-uri-component": "^0.2.0" } }, "source-map-support": { @@ -36070,6 +37611,12 @@ "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" }, + "spawn-command": { + "version": "0.0.2-1", + "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz", + "integrity": "sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=", + "dev": true + }, "spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -36094,9 +37641,9 @@ } }, "spdx-license-ids": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.10.tgz", - "integrity": "sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==" + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz", + "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==" }, "spdy": { "version": "4.0.2", @@ -36121,18 +37668,6 @@ "obuf": "^1.1.2", "readable-stream": "^3.0.6", "wbuf": "^1.7.3" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } } }, "split-string": { @@ -36263,6 +37798,30 @@ "requires": { "inherits": "~2.0.1", "readable-stream": "^2.0.2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "stream-each": { @@ -36284,6 +37843,30 @@ "readable-stream": "^2.3.6", "to-arraybuffer": "^1.0.0", "xtend": "^4.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "stream-shift": { @@ -36462,11 +38045,11 @@ } }, "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" } }, "supports-hyperlinks": { @@ -36476,21 +38059,6 @@ "requires": { "has-flag": "^4.0.0", "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } } }, "svg-parser": { @@ -36518,6 +38086,37 @@ "util.promisify": "~1.0.0" }, "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "css-select": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", @@ -36559,6 +38158,11 @@ } } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, "nth-check": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", @@ -36566,6 +38170,14 @@ "requires": { "boolbase": "~1.0.0" } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } } } }, @@ -36587,9 +38199,9 @@ }, "dependencies": { "ajv": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.7.1.tgz", - "integrity": "sha512-gPpOObTO1QjbnN1sVMjJcp1TF9nggMfO4MBR5uQl6ZVTOaEPq5i4oq/6R9q2alMMPB3eg53wFv1RuJBLuxf3Hw==", + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.8.1.tgz", + "integrity": "sha512-6CiMNDrzv0ZR916u2T+iRunnD60uWmNn8SkdB44/6stVORUg0aAkWO7PkOhpCmjmW8f2I/G/xnowD66fxGyQJg==", "requires": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -36698,6 +38310,13 @@ "webpack-sources": "^1.4.3" }, "dependencies": { + "acorn": { + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", + "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", + "optional": true, + "peer": true + }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -36713,6 +38332,16 @@ "pkg-dir": "^4.1.0" } }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -36758,9 +38387,9 @@ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, "terser": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.9.0.tgz", - "integrity": "sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", + "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", "requires": { "commander": "^2.20.0", "source-map": "~0.7.2", @@ -36796,6 +38425,12 @@ "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==" }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, "through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", @@ -36803,6 +38438,30 @@ "requires": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, "thunky": { @@ -36823,6 +38482,15 @@ "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "~1.0.2" + } + }, "tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -36898,12 +38566,16 @@ } }, "tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "requires": { - "punycode": "^2.1.1" - } + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true + }, + "tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true }, "tryer": { "version": "1.0.1", @@ -36942,9 +38614,9 @@ } }, "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", + "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" }, "tsutils": { "version": "3.21.0", @@ -37012,9 +38684,9 @@ } }, "typescript": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", - "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==" + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", + "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==" }, "unbox-primitive": { "version": "1.0.1", @@ -37282,7 +38954,7 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "optional": true + "devOptional": true }, "v8-compile-cache": { "version": "2.3.0", @@ -37568,6 +39240,21 @@ "to-regex": "^3.0.2" } }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, "readdirp": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", @@ -37579,6 +39266,15 @@ "readable-stream": "^2.0.2" } }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, "to-regex-range": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", @@ -37599,6 +39295,15 @@ "minimalistic-assert": "^1.0.0" } }, + "wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", + "dev": true, + "requires": { + "defaults": "^1.0.3" + } + }, "web-vitals": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.2.tgz", @@ -37871,6 +39576,11 @@ "repeat-string": "^1.6.1" } }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, "yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -37942,6 +39652,14 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, "anymatch": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", @@ -38042,6 +39760,19 @@ } } }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", @@ -38105,6 +39836,11 @@ } } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, "import-local": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", @@ -38205,6 +39941,20 @@ "find-up": "^3.0.0" } }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, "readdirp": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", @@ -38243,6 +39993,14 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -38326,6 +40084,11 @@ "async-limiter": "~1.0.0" } }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, "yargs": { "version": "13.3.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", @@ -38461,19 +40224,27 @@ "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" }, "whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dev": true, "requires": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + }, + "dependencies": { + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true + } } }, "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "requires": { "isexe": "^2.0.0" } @@ -38714,36 +40485,14 @@ } }, "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "requires": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } } }, "wrappy": { @@ -38789,9 +40538,10 @@ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" }, "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true }, "yallist": { "version": "4.0.0", @@ -38804,38 +40554,25 @@ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" }, "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" } }, "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - } - } + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true }, "yocto-queue": { "version": "0.1.0", diff --git a/package.json b/package.json index e47fc23..e7dc7b5 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,14 @@ "@types/node": "^12.20.37", "@types/react": "^17.0.34", "@types/react-dom": "^17.0.11", + "axios": "^0.24.0", "react": "^16.14.0", "react-dom": "^16.14.0", "react-scripts": "4.0.3", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^2.0.4", "typescript": "^4.4.4", + "url": "^0.11.0", "web-vitals": "^1.1.2" }, "scripts": { @@ -24,7 +26,8 @@ "start-es": "set REACT_APP_ENV=ES && react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "generate-api:geonetwork": "tools/generate-api.sh geonetwork-openapi" }, "eslintConfig": { "extends": [ @@ -45,6 +48,7 @@ ] }, "devDependencies": { + "@openapitools/openapi-generator-cli": "^2.4.16", "prettier": "2.4.1" } } diff --git a/src/App.tsx b/src/App.tsx index aa36642..1a4b993 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,8 +15,19 @@ import AggCardComponent from "./components/organisms/AggCardComponent"; import { DefaultQuery } from "./models/DefaultQuery"; import { DefaultSource } from "./models/DefaultSource"; import AggListItemComponent from "./components/organisms/AggListItemComponent"; +import axios from "axios"; +import {GroupsApi} from "./libs/geonetwork-openapi/src"; + +export const axiosInstance = axios.create(); +const commonParams = [undefined, undefined, axiosInstance]; + + function App() { + new GroupsApi().getGroups(true).then((r) => { + console.log(r.data); + }) + return ( } + * @memberof Associated + */ + item?: Array; +} +/** + * + * @export + * @interface AssociatedSiblingMetadataItem + */ +export interface AssociatedSiblingMetadataItem { + /** + * + * @type {string} + * @memberof AssociatedSiblingMetadataItem + */ + id?: string; + /** + * + * @type {MultilingualValue} + * @memberof AssociatedSiblingMetadataItem + */ + url?: MultilingualValue; + /** + * + * @type {string} + * @memberof AssociatedSiblingMetadataItem + */ + type?: string; + /** + * + * @type {MultilingualValue} + * @memberof AssociatedSiblingMetadataItem + */ + title: MultilingualValue; + /** + * + * @type {Description} + * @memberof AssociatedSiblingMetadataItem + */ + description: Description; + /** + * + * @type {Array} + * @memberof AssociatedSiblingMetadataItem + */ + mdType: Array; + /** + * + * @type {string} + * @memberof AssociatedSiblingMetadataItem + */ + origin?: string; + /** + * + * @type {Array} + * @memberof AssociatedSiblingMetadataItem + */ + agg_isTemporalStatOf?: Array; + /** + * + * @type {Array} + * @memberof AssociatedSiblingMetadataItem + */ + agg_largerWorkCitation?: Array; + /** + * + * @type {Array} + * @memberof AssociatedSiblingMetadataItem + */ + agg_isDescriptionOf?: Array; +} +/** + * + * @export + * @interface AttributeTable + */ +export interface AttributeTable { + /** + * + * @type {Array} + * @memberof AttributeTable + */ + element?: Array; +} +/** + * + * @export + * @interface BatchEditParameter + */ +export interface BatchEditParameter { + /** + * + * @type {string} + * @memberof BatchEditParameter + */ + xpath: string; + /** + * + * @type {string} + * @memberof BatchEditParameter + */ + value: string; + /** + * + * @type {string} + * @memberof BatchEditParameter + */ + condition?: string; +} +/** + * + * @export + * @interface BatchEditing + */ +export interface BatchEditing { + /** + * + * @type {Array
} + * @memberof BatchEditing + */ + section: Array
; +} +/** + * + * @export + * @interface Category + */ +export interface Category { + /** + * + * @type {string} + * @memberof Category + */ + id?: string; + /** + * + * @type {string} + * @memberof Category + */ + label?: string; +} +/** + * + * @export + * @interface CategoryResponse + */ +export interface CategoryResponse { + /** + * + * @type {{ [key: string]: string; }} + * @memberof CategoryResponse + */ + label?: { [key: string]: string }; +} +/** + * + * @export + * @interface Children + */ +export interface Children { + /** + * + * @type {Array} + * @memberof Children + */ + item?: Array; +} +/** + * + * @export + * @interface Codelist + */ +export interface Codelist { + /** + * + * @type {Array} + * @memberof Codelist + */ + entry?: Array; + /** + * + * @type {string} + * @memberof Codelist + */ + name?: string; + /** + * + * @type {string} + * @memberof Codelist + */ + alias?: string; +} +/** + * + * @export + * @interface Crs + */ +export interface Crs { + /** + * + * @type {string} + * @memberof Crs + */ + code?: string; + /** + * + * @type {string} + * @memberof Crs + */ + authority?: string; + /** + * + * @type {string} + * @memberof Crs + */ + version?: string; + /** + * + * @type {string} + * @memberof Crs + */ + codeSpace?: string; + /** + * + * @type {string} + * @memberof Crs + */ + description?: string; +} +/** + * + * @export + * @interface Dataset + */ +export interface Dataset { + /** + * + * @type {Array} + * @memberof Dataset + */ + item?: Array; +} +/** + * + * @export + * @interface Description + */ +export interface Description { + /** + * + * @type {Array} + * @memberof Description + */ + value?: Array; +} +/** + * + * @export + * @interface Element + */ +export interface Element { + /** + * + * @type {string} + * @memberof Element + */ + name?: string; + /** + * + * @type {string} + * @memberof Element + */ + definition?: string; + /** + * + * @type {string} + * @memberof Element + */ + code?: string; + /** + * + * @type {string} + * @memberof Element + */ + link?: string; + /** + * + * @type {string} + * @memberof Element + */ + type?: string; + /** + * + * @type {Array} + * @memberof Element + */ + values?: Array; +} +/** + * + * @export + * @interface Entry + */ +export interface Entry { + /** + * + * @type {string} + * @memberof Entry + */ + code: string; + /** + * + * @type {string} + * @memberof Entry + */ + label: string; + /** + * + * @type {string} + * @memberof Entry + */ + description: string; + /** + * + * @type {string} + * @memberof Entry + */ + hideInEditMode?: string; +} +/** + * + * @export + * @interface ExtentDto + */ +export interface ExtentDto { + /** + * + * @type {string} + * @memberof ExtentDto + */ + href?: string; + /** + * + * @type {string} + * @memberof ExtentDto + */ + type?: string; + /** + * + * @type {string} + * @memberof ExtentDto + */ + xpath?: string; + /** + * + * @type {string} + * @memberof ExtentDto + */ + description?: string; +} +/** + * + * @export + * @interface FCRelatedMetadataItem + */ +export interface FCRelatedMetadataItem { + /** + * + * @type {string} + * @memberof FCRelatedMetadataItem + */ + id?: string; + /** + * + * @type {MultilingualValue} + * @memberof FCRelatedMetadataItem + */ + url?: MultilingualValue; + /** + * + * @type {string} + * @memberof FCRelatedMetadataItem + */ + type?: string; + /** + * + * @type {MultilingualValue} + * @memberof FCRelatedMetadataItem + */ + title: MultilingualValue; + /** + * + * @type {Description} + * @memberof FCRelatedMetadataItem + */ + description: Description; + /** + * + * @type {Array} + * @memberof FCRelatedMetadataItem + */ + mdType: Array; + /** + * + * @type {string} + * @memberof FCRelatedMetadataItem + */ + origin?: string; + /** + * + * @type {FeatureType} + * @memberof FCRelatedMetadataItem + */ + featureType: FeatureType; +} +/** + * + * @export + * @interface Fcat + */ +export interface Fcat { + /** + * + * @type {Array} + * @memberof Fcat + */ + item?: Array; +} +/** + * + * @export + * @interface FeatureResponse + */ +export interface FeatureResponse { + /** + * + * @type {{ [key: string]: Array; }} + * @memberof FeatureResponse + */ + decodeMap?: { [key: string]: Array }; +} +/** + * + * @export + * @interface FeatureType + */ +export interface FeatureType { + /** + * + * @type {AttributeTable} + * @memberof FeatureType + */ + attributeTable?: AttributeTable; +} +/** + * + * @export + * @interface Field + */ +export interface Field { + /** + * + * @type {string} + * @memberof Field + */ + template?: string; + /** + * + * @type {string} + * @memberof Field + */ + name?: string; + /** + * + * @type {string} + * @memberof Field + */ + xpath?: string; + /** + * + * @type {string} + * @memberof Field + */ + indexField?: string; + /** + * + * @type {string} + * @memberof Field + */ + use?: string; + /** + * + * @type {boolean} + * @memberof Field + */ + removable?: boolean; + /** + * + * @type {string} + * @memberof Field + */ + insertMode?: string; + /** + * + * @type {string} + * @memberof Field + */ + codelist?: string; +} +/** + * + * @export + * @interface FormatterData + */ +export interface FormatterData { + /** + * + * @type {string} + * @memberof FormatterData + */ + schema?: string; + /** + * + * @type {string} + * @memberof FormatterData + */ + id?: string; +} +/** + * + * @export + * @interface FormatterDataResponse + */ +export interface FormatterDataResponse { + /** + * + * @type {Array} + * @memberof FormatterDataResponse + */ + formatters?: Array; +} +/** + * + * @export + * @interface GrantedAuthority + */ +export interface GrantedAuthority { + /** + * + * @type {string} + * @memberof GrantedAuthority + */ + authority?: string; +} +/** + * Group details + * @export + * @interface Group + */ +export interface Group { + /** + * + * @type {string} + * @memberof Group + */ + logo?: string; + /** + * + * @type {string} + * @memberof Group + */ + website?: string; + /** + * + * @type {MetadataCategory} + * @memberof Group + */ + defaultCategory?: MetadataCategory; + /** + * + * @type {Array} + * @memberof Group + */ + allowedCategories?: Array; + /** + * + * @type {boolean} + * @memberof Group + */ + enableAllowedCategories?: boolean; + /** + * + * @type {number} + * @memberof Group + */ + referrer?: number; + /** + * + * @type {string} + * @memberof Group + */ + description?: string; + /** + * + * @type {number} + * @memberof Group + */ + id?: number; + /** + * + * @type {string} + * @memberof Group + */ + email?: string; + /** + * + * @type {boolean} + * @memberof Group + */ + reserved?: boolean; + /** + * + * @type {string} + * @memberof Group + */ + name?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof Group + */ + label?: { [key: string]: string }; +} +/** + * + * @export + * @interface GroupOperations + */ +export interface GroupOperations { + /** + * + * @type {{ [key: string]: boolean; }} + * @memberof GroupOperations + */ + operations?: { [key: string]: boolean }; + /** + * + * @type {number} + * @memberof GroupOperations + */ + group?: number; +} +/** + * + * @export + * @interface GroupPrivilege + */ +export interface GroupPrivilege { + /** + * + * @type {{ [key: string]: boolean; }} + * @memberof GroupPrivilege + */ + operations?: { [key: string]: boolean }; + /** + * + * @type {number} + * @memberof GroupPrivilege + */ + group?: number; + /** + * + * @type {Array} + * @memberof GroupPrivilege + */ + userProfiles?: Array; + /** + * + * @type {boolean} + * @memberof GroupPrivilege + */ + userGroup?: boolean; + /** + * + * @type {boolean} + * @memberof GroupPrivilege + */ + reserved?: boolean; + /** + * + * @type {Array} + * @memberof GroupPrivilege + */ + userProfile?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum GroupPrivilegeUserProfilesEnum { + Administrator = "Administrator", + UserAdmin = "UserAdmin", + Reviewer = "Reviewer", + Editor = "Editor", + RegisteredUser = "RegisteredUser", + Guest = "Guest", + Monitor = "Monitor", +} +/** + * @export + * @enum {string} + */ +export enum GroupPrivilegeUserProfileEnum { + Administrator = "Administrator", + UserAdmin = "UserAdmin", + Reviewer = "Reviewer", + Editor = "Editor", + RegisteredUser = "RegisteredUser", + Guest = "Guest", + Monitor = "Monitor", +} + +/** + * + * @export + * @interface Hasfeaturecats + */ +export interface Hasfeaturecats { + /** + * + * @type {Array} + * @memberof Hasfeaturecats + */ + item?: Array; +} +/** + * + * @export + * @interface Hassource + */ +export interface Hassource { + /** + * + * @type {Array} + * @memberof Hassource + */ + item?: Array; +} +/** + * + * @export + * @interface IProcessingReport + */ +export interface IProcessingReport { + /** + * + * @type {string} + * @memberof IProcessingReport + */ + startIsoDateTime?: string; + /** + * + * @type {string} + * @memberof IProcessingReport + */ + endIsoDateTime?: string; + /** + * + * @type {number} + * @memberof IProcessingReport + */ + ellapsedTimeInSeconds?: number; + /** + * + * @type {number} + * @memberof IProcessingReport + */ + totalTimeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof IProcessingReport + */ + running?: boolean; + /** + * + * @type {string} + * @memberof IProcessingReport + */ + uuid?: string; + /** + * + * @type {string} + * @memberof IProcessingReport + */ + type?: string; +} +/** + * + * @export + * @interface ISODate + */ +export interface ISODate { + /** + * + * @type {string} + * @memberof ISODate + */ + internalDateTime?: string; + /** + * + * @type {string} + * @memberof ISODate + */ + dateAndTime?: string; + /** + * + * @type {number} + * @memberof ISODate + */ + months?: number; + /** + * + * @type {number} + * @memberof ISODate + */ + hours?: number; + /** + * + * @type {number} + * @memberof ISODate + */ + minutes?: number; + /** + * + * @type {number} + * @memberof ISODate + */ + seconds?: number; + /** + * + * @type {number} + * @memberof ISODate + */ + days?: number; + /** + * + * @type {number} + * @memberof ISODate + */ + years?: number; + /** + * + * @type {string} + * @memberof ISODate + */ + dateAsString?: string; + /** + * + * @type {number} + * @memberof ISODate + */ + timeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof ISODate + */ + dateOnly?: boolean; + /** + * + * @type {boolean} + * @memberof ISODate + */ + dateYearOnly?: boolean; + /** + * + * @type {boolean} + * @memberof ISODate + */ + dateYearMonthOnly?: boolean; + /** + * + * @type {string} + * @memberof ISODate + */ + timeAsString?: string; + /** + * + * @type {string} + * @memberof ISODate + */ + dateAndTimeUtc?: string; +} +/** + * + * @export + * @interface InfoReport + */ +export interface InfoReport { + /** + * + * @type {string} + * @memberof InfoReport + */ + message?: string; + /** + * + * @type {string} + * @memberof InfoReport + */ + uuid?: string; + /** + * + * @type {boolean} + * @memberof InfoReport + */ + draft?: boolean; + /** + * + * @type {boolean} + * @memberof InfoReport + */ + approved?: boolean; + /** + * + * @type {string} + * @memberof InfoReport + */ + date?: string; +} +/** + * + * @export + * @interface InlineObject + */ +export interface InlineObject { + /** + * + * @type {any} + * @memberof InlineObject + */ + data?: any; +} +/** + * + * @export + * @interface InlineObject1 + */ +export interface InlineObject1 { + /** + * + * @type {any} + * @memberof InlineObject1 + */ + data?: any; +} +/** + * + * @export + * @interface InlineObject2 + */ +export interface InlineObject2 { + /** + * The file to upload + * @type {any} + * @memberof InlineObject2 + */ + file: any; +} +/** + * + * @export + * @interface InlineObject4 + */ +export interface InlineObject4 { + /** + * If set, do a file upload. + * @type {any} + * @memberof InlineObject4 + */ + file?: any; +} +/** + * + * @export + * @interface InlineObject5 + */ +export interface InlineObject5 { + /** + * If set, do a file upload. + * @type {any} + * @memberof InlineObject5 + */ + file?: any; +} +/** + * + * @export + * @interface IsoLanguage + */ +export interface IsoLanguage { + /** + * + * @type {number} + * @memberof IsoLanguage + */ + id?: number; + /** + * + * @type {string} + * @memberof IsoLanguage + */ + code?: string; + /** + * + * @type {string} + * @memberof IsoLanguage + */ + shortCode?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof IsoLanguage + */ + label?: { [key: string]: string }; +} +/** + * + * @export + * @interface Language + */ +export interface Language { + /** + * + * @type {string} + * @memberof Language + */ + inspire_JPAWorkaround?: string; + /** + * + * @type {boolean} + * @memberof Language + */ + inspire?: boolean; + /** + * + * @type {string} + * @memberof Language + */ + id?: string; + /** + * + * @type {string} + * @memberof Language + */ + defaultLanguage_JPAWorkaround?: string; + /** + * + * @type {boolean} + * @memberof Language + */ + defaultLanguage?: boolean; + /** + * + * @type {string} + * @memberof Language + */ + name?: string; +} +/** + * + * @export + * @interface Link + */ +export interface Link { + /** + * + * @type {Set} + * @memberof Link + */ + records?: Set; + /** + * + * @type {Set} + * @memberof Link + */ + linkStatus?: Set; + /** + * + * @type {number} + * @memberof Link + */ + lastState?: number; + /** + * + * @type {ISODate} + * @memberof Link + */ + lastCheck?: ISODate; + /** + * + * @type {string} + * @memberof Link + */ + linkType?: LinkLinkTypeEnum; + /** + * + * @type {number} + * @memberof Link + */ + id?: number; + /** + * + * @type {string} + * @memberof Link + */ + url?: string; + /** + * + * @type {string} + * @memberof Link + */ + protocol?: string; +} + +/** + * @export + * @enum {string} + */ +export enum LinkLinkTypeEnum { + Http = "HTTP", + Metadata = "METADATA", +} + +/** + * + * @export + * @interface LinkStatus + */ +export interface LinkStatus { + /** + * + * @type {number} + * @memberof LinkStatus + */ + id?: number; + /** + * + * @type {ISODate} + * @memberof LinkStatus + */ + checkDate?: ISODate; + /** + * + * @type {string} + * @memberof LinkStatus + */ + statusValue?: string; + /** + * + * @type {string} + * @memberof LinkStatus + */ + statusInfo?: string; + /** + * + * @type {string} + * @memberof LinkStatus + */ + batchKey?: string; + /** + * + * @type {boolean} + * @memberof LinkStatus + */ + failing?: boolean; +} +/** + * + * @export + * @interface ListRegionsResponse + */ +export interface ListRegionsResponse { + /** + * + * @type {Array} + * @memberof ListRegionsResponse + */ + region?: Array; + /** + * + * @type {{ [key: string]: CategoryResponse; }} + * @memberof ListRegionsResponse + */ + categories?: { [key: string]: CategoryResponse }; + /** + * + * @type {Array} + * @memberof ListRegionsResponse + */ + regions?: Array; + /** + * + * @type {number} + * @memberof ListRegionsResponse + */ + count?: number; +} +/** + * + * @export + * @interface LocalizedString + */ +export interface LocalizedString { + /** + * + * @type {string} + * @memberof LocalizedString + */ + value?: string; + /** + * + * @type {string} + * @memberof LocalizedString + */ + lang?: string; + /** + * + * @type {string} + * @memberof LocalizedString + */ + href?: string; +} +/** + * + * @export + * @interface LogFileResponse + */ +export interface LogFileResponse { + /** + * + * @type {string} + * @memberof LogFileResponse + */ + file?: string; + /** + * + * @type {string} + * @memberof LogFileResponse + */ + name?: string; +} +/** + * Mapserver details + * @export + * @interface MapServer + */ +export interface MapServer { + /** + * + * @type {string} + * @memberof MapServer + */ + namespace?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + description?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + namespacePrefix?: string; + /** + * + * @type {number} + * @memberof MapServer + */ + id?: number; + /** + * + * @type {string} + * @memberof MapServer + */ + password?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + username?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + configurl?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + wmsurl?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + wfsurl?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + wcsurl?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + stylerurl?: string; + /** + * + * @type {string} + * @memberof MapServer + */ + pushStyleInWorkspace_JpaWorkaround?: string; + /** + * + * @type {MapServer} + * @memberof MapServer + */ + pushStyleInWorkspace?: MapServer; + /** + * + * @type {string} + * @memberof MapServer + */ + name?: string; +} +/** + * + * @export + * @interface MeResponse + */ +export interface MeResponse { + /** + * + * @type {string} + * @memberof MeResponse + */ + id?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + profile?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + username?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + name?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + surname?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + email?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + hash?: string; + /** + * + * @type {string} + * @memberof MeResponse + */ + organisation?: string; + /** + * + * @type {boolean} + * @memberof MeResponse + */ + admin?: boolean; + /** + * + * @type {Array} + * @memberof MeResponse + */ + groupsWithRegisteredUser?: Array; + /** + * + * @type {Array} + * @memberof MeResponse + */ + groupsWithEditor?: Array; + /** + * + * @type {Array} + * @memberof MeResponse + */ + groupsWithReviewer?: Array; + /** + * + * @type {Array} + * @memberof MeResponse + */ + groupsWithUserAdmin?: Array; +} +/** + * + * @export + * @interface MetadataCategory + */ +export interface MetadataCategory { + /** + * + * @type {number} + * @memberof MetadataCategory + */ + id?: number; + /** + * + * @type {string} + * @memberof MetadataCategory + */ + name?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof MetadataCategory + */ + label?: { [key: string]: string }; +} +/** + * Identifier template details + * @export + * @interface MetadataIdentifierTemplate + */ +export interface MetadataIdentifierTemplate { + /** + * + * @type {number} + * @memberof MetadataIdentifierTemplate + */ + id?: number; + /** + * + * @type {string} + * @memberof MetadataIdentifierTemplate + */ + template?: string; + /** + * + * @type {boolean} + * @memberof MetadataIdentifierTemplate + */ + systemDefault?: boolean; + /** + * + * @type {string} + * @memberof MetadataIdentifierTemplate + */ + systemProvided_JPAWorkaround?: string; + /** + * + * @type {boolean} + * @memberof MetadataIdentifierTemplate + */ + systemProvided?: boolean; + /** + * + * @type {string} + * @memberof MetadataIdentifierTemplate + */ + name?: string; +} +/** + * + * @export + * @interface MetadataLink + */ +export interface MetadataLink { + /** + * + * @type {number} + * @memberof MetadataLink + */ + metadataId?: number; + /** + * + * @type {string} + * @memberof MetadataLink + */ + metadataUuid?: string; +} +/** + * + * @export + * @interface MetadataProcessingReport + */ +export interface MetadataProcessingReport { + /** + * + * @type {Array} + * @memberof MetadataProcessingReport + */ + errors?: Array; + /** + * + * @type {Array} + * @memberof MetadataProcessingReport + */ + infos?: Array; + /** + * + * @type {string} + * @memberof MetadataProcessingReport + */ + uuid?: string; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + totalRecords?: number; + /** + * + * @type {Set} + * @memberof MetadataProcessingReport + */ + metadata?: Set; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof MetadataProcessingReport + */ + metadataErrors?: { [key: string]: Array }; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof MetadataProcessingReport + */ + metadataInfos?: { [key: string]: Array }; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + numberOfRecords?: number; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + numberOfRecordNotFound?: number; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + numberOfRecordsNotEditable?: number; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + numberOfNullRecords?: number; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + numberOfRecordsProcessed?: number; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + numberOfRecordsWithErrors?: number; + /** + * + * @type {string} + * @memberof MetadataProcessingReport + */ + startIsoDateTime?: string; + /** + * + * @type {string} + * @memberof MetadataProcessingReport + */ + endIsoDateTime?: string; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + ellapsedTimeInSeconds?: number; + /** + * + * @type {number} + * @memberof MetadataProcessingReport + */ + totalTimeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof MetadataProcessingReport + */ + running?: boolean; + /** + * + * @type {string} + * @memberof MetadataProcessingReport + */ + type?: string; +} +/** + * + * @export + * @interface MetadataReplacementProcessingReport + */ +export interface MetadataReplacementProcessingReport { + /** + * + * @type {Array} + * @memberof MetadataReplacementProcessingReport + */ + errors?: Array; + /** + * + * @type {Array} + * @memberof MetadataReplacementProcessingReport + */ + infos?: Array; + /** + * + * @type {string} + * @memberof MetadataReplacementProcessingReport + */ + uuid?: string; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + totalRecords?: number; + /** + * + * @type {Set} + * @memberof MetadataReplacementProcessingReport + */ + metadata?: Set; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof MetadataReplacementProcessingReport + */ + metadataErrors?: { [key: string]: Array }; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof MetadataReplacementProcessingReport + */ + metadataInfos?: { [key: string]: Array }; + /** + * + * @type {string} + * @memberof MetadataReplacementProcessingReport + */ + processId?: string; + /** + * + * @type {{ [key: string]: ReplaceReport; }} + * @memberof MetadataReplacementProcessingReport + */ + metadataChanges?: { [key: string]: ReplaceReport }; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecordsChanged?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecordsNotChanged?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + noProcessFoundCount?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecords?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecordNotFound?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecordsNotEditable?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfNullRecords?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecordsProcessed?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + numberOfRecordsWithErrors?: number; + /** + * + * @type {string} + * @memberof MetadataReplacementProcessingReport + */ + startIsoDateTime?: string; + /** + * + * @type {string} + * @memberof MetadataReplacementProcessingReport + */ + endIsoDateTime?: string; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + ellapsedTimeInSeconds?: number; + /** + * + * @type {number} + * @memberof MetadataReplacementProcessingReport + */ + totalTimeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof MetadataReplacementProcessingReport + */ + running?: boolean; + /** + * + * @type {string} + * @memberof MetadataReplacementProcessingReport + */ + type?: string; +} +/** + * + * @export + * @interface MetadataResource + */ +export interface MetadataResource { + /** + * + * @type {number} + * @memberof MetadataResource + */ + metadataId?: number; + /** + * + * @type {boolean} + * @memberof MetadataResource + */ + approved?: boolean; + /** + * + * @type {string} + * @memberof MetadataResource + */ + visibility?: MetadataResourceVisibilityEnum; + /** + * + * @type {MetadataResourceExternalManagementProperties} + * @memberof MetadataResource + */ + metadataResourceExternalManagementProperties?: MetadataResourceExternalManagementProperties; + /** + * + * @type {string} + * @memberof MetadataResource + */ + lastModification?: string; + /** + * + * @type {string} + * @memberof MetadataResource + */ + version?: string; + /** + * + * @type {string} + * @memberof MetadataResource + */ + url?: string; + /** + * + * @type {string} + * @memberof MetadataResource + */ + metadataUuid?: string; + /** + * + * @type {string} + * @memberof MetadataResource + */ + filename?: string; + /** + * + * @type {string} + * @memberof MetadataResource + */ + id?: string; + /** + * + * @type {number} + * @memberof MetadataResource + */ + size?: number; +} + +/** + * @export + * @enum {string} + */ +export enum MetadataResourceVisibilityEnum { + Public = "public", + Private = "private", +} + +/** + * + * @export + * @interface MetadataResourceExternalManagementProperties + */ +export interface MetadataResourceExternalManagementProperties { + /** + * + * @type {string} + * @memberof MetadataResourceExternalManagementProperties + */ + id?: string; + /** + * + * @type {string} + * @memberof MetadataResourceExternalManagementProperties + */ + url?: string; +} +/** + * Metadata status + * @export + * @interface MetadataStatusParameter + */ +export interface MetadataStatusParameter { + /** + * + * @type {string} + * @memberof MetadataStatusParameter + */ + type?: MetadataStatusParameterTypeEnum; + /** + * + * @type {number} + * @memberof MetadataStatusParameter + */ + status?: number; + /** + * + * @type {string} + * @memberof MetadataStatusParameter + */ + changeMessage?: string; + /** + * + * @type {string} + * @memberof MetadataStatusParameter + */ + dueDate?: string; + /** + * + * @type {string} + * @memberof MetadataStatusParameter + */ + closeDate?: string; + /** + * + * @type {number} + * @memberof MetadataStatusParameter + */ + owner?: number; +} + +/** + * @export + * @enum {string} + */ +export enum MetadataStatusParameterTypeEnum { + Workflow = "workflow", + Task = "task", + Event = "event", +} + +/** + * + * @export + * @interface MultilingualValue + */ +export interface MultilingualValue { + /** + * + * @type {Array} + * @memberof MultilingualValue + */ + value?: Array; +} +/** + * + * @export + * @interface Online + */ +export interface Online { + /** + * + * @type {Array} + * @memberof Online + */ + item?: Array; +} +/** + * + * @export + * @interface Operation + */ +export interface Operation { + /** + * + * @type {number} + * @memberof Operation + */ + id?: number; + /** + * + * @type {boolean} + * @memberof Operation + */ + reserved?: boolean; + /** + * + * @type {string} + * @memberof Operation + */ + reservedOperation?: OperationReservedOperationEnum; + /** + * + * @type {string} + * @memberof Operation + */ + name?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof Operation + */ + label?: { [key: string]: string }; +} + +/** + * @export + * @enum {string} + */ +export enum OperationReservedOperationEnum { + View = "view", + Download = "download", + Editing = "editing", + Notify = "notify", + Dynamic = "dynamic", + Featured = "featured", +} + +/** + * + * @export + * @interface OwnerResponse + */ +export interface OwnerResponse { + /** + * + * @type {number} + * @memberof OwnerResponse + */ + id?: number; + /** + * + * @type {string} + * @memberof OwnerResponse + */ + name?: string; + /** + * + * @type {number} + * @memberof OwnerResponse + */ + records?: number; +} +/** + * + * @export + * @interface PageJSONWrapper + */ +export interface PageJSONWrapper { + /** + * + * @type {string} + * @memberof PageJSONWrapper + */ + format?: PageJSONWrapperFormatEnum; + /** + * + * @type {string} + * @memberof PageJSONWrapper + */ + status?: PageJSONWrapperStatusEnum; + /** + * + * @type {Array} + * @memberof PageJSONWrapper + */ + sections?: Array; + /** + * + * @type {string} + * @memberof PageJSONWrapper + */ + linkText?: string; + /** + * + * @type {string} + * @memberof PageJSONWrapper + */ + link?: string; + /** + * + * @type {string} + * @memberof PageJSONWrapper + */ + language?: string; +} + +/** + * @export + * @enum {string} + */ +export enum PageJSONWrapperFormatEnum { + Link = "LINK", + Html = "HTML", + Text = "TEXT", + Markdown = "MARKDOWN", + Wiki = "WIKI", +} +/** + * @export + * @enum {string} + */ +export enum PageJSONWrapperStatusEnum { + Public = "PUBLIC", + PublicOnly = "PUBLIC_ONLY", + Private = "PRIVATE", + Hidden = "HIDDEN", +} +/** + * @export + * @enum {string} + */ +export enum PageJSONWrapperSectionsEnum { + All = "ALL", + Top = "TOP", + Footer = "FOOTER", + Menu = "MENU", + Submenu = "SUBMENU", + CustomMenu1 = "CUSTOM_MENU1", + CustomMenu2 = "CUSTOM_MENU2", + CustomMenu3 = "CUSTOM_MENU3", + Draft = "DRAFT", +} + +/** + * + * @export + * @interface PageLink + */ +export interface PageLink { + /** + * + * @type {number} + * @memberof PageLink + */ + totalPages?: number; + /** + * + * @type {number} + * @memberof PageLink + */ + totalElements?: number; + /** + * + * @type {number} + * @memberof PageLink + */ + numberOfElements?: number; + /** + * + * @type {Pageable} + * @memberof PageLink + */ + pageable?: Pageable; + /** + * + * @type {Sort} + * @memberof PageLink + */ + sort?: Sort; + /** + * + * @type {boolean} + * @memberof PageLink + */ + last?: boolean; + /** + * + * @type {boolean} + * @memberof PageLink + */ + first?: boolean; + /** + * + * @type {number} + * @memberof PageLink + */ + size?: number; + /** + * + * @type {Array} + * @memberof PageLink + */ + content?: Array; + /** + * + * @type {number} + * @memberof PageLink + */ + number?: number; + /** + * + * @type {boolean} + * @memberof PageLink + */ + empty?: boolean; +} +/** + * + * @export + * @interface Pageable + */ +export interface Pageable { + /** + * + * @type {boolean} + * @memberof Pageable + */ + unpaged?: boolean; + /** + * + * @type {boolean} + * @memberof Pageable + */ + paged?: boolean; + /** + * + * @type {number} + * @memberof Pageable + */ + pageNumber?: number; + /** + * + * @type {number} + * @memberof Pageable + */ + pageSize?: number; + /** + * + * @type {Sort} + * @memberof Pageable + */ + sort?: Sort; + /** + * + * @type {number} + * @memberof Pageable + */ + offset?: number; +} +/** + * + * @export + * @interface PaginatedUserSearchResponse + */ +export interface PaginatedUserSearchResponse { + /** + * + * @type {number} + * @memberof PaginatedUserSearchResponse + */ + total?: number; + /** + * + * @type {Array} + * @memberof PaginatedUserSearchResponse + */ + rows?: Array; +} +/** + * + * @export + * @interface Parent + */ +export interface Parent { + /** + * + * @type {Array} + * @memberof Parent + */ + item?: Array; +} +/** + * + * @export + * @interface PasswordResetDto + */ +export interface PasswordResetDto { + /** + * + * @type {string} + * @memberof PasswordResetDto + */ + passwordOld?: string; + /** + * + * @type {string} + * @memberof PasswordResetDto + */ + password?: string; + /** + * + * @type {string} + * @memberof PasswordResetDto + */ + password2?: string; +} +/** + * The new password and a valid change key + * @export + * @interface PasswordUpdateParameter + */ +export interface PasswordUpdateParameter { + /** + * + * @type {string} + * @memberof PasswordUpdateParameter + */ + password?: string; + /** + * + * @type {string} + * @memberof PasswordUpdateParameter + */ + changeKey?: string; +} +/** + * + * @export + * @interface ProcessingReport + */ +export interface ProcessingReport { + /** + * + * @type {Array} + * @memberof ProcessingReport + */ + errors?: Array; + /** + * + * @type {Array} + * @memberof ProcessingReport + */ + infos?: Array; + /** + * + * @type {string} + * @memberof ProcessingReport + */ + uuid?: string; + /** + * + * @type {string} + * @memberof ProcessingReport + */ + startIsoDateTime?: string; + /** + * + * @type {string} + * @memberof ProcessingReport + */ + endIsoDateTime?: string; + /** + * + * @type {number} + * @memberof ProcessingReport + */ + ellapsedTimeInSeconds?: number; + /** + * + * @type {number} + * @memberof ProcessingReport + */ + totalTimeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof ProcessingReport + */ + running?: boolean; + /** + * + * @type {string} + * @memberof ProcessingReport + */ + type?: string; +} +/** + * + * @export + * @interface RatingAverage + */ +export interface RatingAverage { + /** + * + * @type {number} + * @memberof RatingAverage + */ + ratingCount?: number; + /** + * + * @type {{ [key: string]: number; }} + * @memberof RatingAverage + */ + ratingAverages?: { [key: string]: number }; + /** + * + * @type {number} + * @memberof RatingAverage + */ + userfeedbackCount?: number; + /** + * + * @type {string} + * @memberof RatingAverage + */ + lastComment?: string; +} +/** + * + * @export + * @interface RatingCriteria + */ +export interface RatingCriteria { + /** + * + * @type {number} + * @memberof RatingCriteria + */ + id?: number; + /** + * + * @type {boolean} + * @memberof RatingCriteria + */ + internal?: boolean; + /** + * + * @type {string} + * @memberof RatingCriteria + */ + name?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof RatingCriteria + */ + label?: { [key: string]: string }; +} +/** + * + * @export + * @interface RegionResponse + */ +export interface RegionResponse { + /** + * + * @type {number} + * @memberof RegionResponse + */ + north?: number; + /** + * + * @type {number} + * @memberof RegionResponse + */ + east?: number; + /** + * + * @type {number} + * @memberof RegionResponse + */ + south?: number; + /** + * + * @type {number} + * @memberof RegionResponse + */ + west?: number; + /** + * + * @type {{ [key: string]: string; }} + * @memberof RegionResponse + */ + label?: { [key: string]: string }; + /** + * + * @type {boolean} + * @memberof RegionResponse + */ + hasGeom?: boolean; + /** + * + * @type {string} + * @memberof RegionResponse + */ + categoryId?: string; + /** + * + * @type {string} + * @memberof RegionResponse + */ + id?: string; +} +/** + * + * @export + * @interface Related + */ +export interface Related { + /** + * + * @type {Array} + * @memberof Related + */ + item?: Array; +} +/** + * + * @export + * @interface RelatedLinkItem + */ +export interface RelatedLinkItem { + /** + * + * @type {string} + * @memberof RelatedLinkItem + */ + id?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedLinkItem + */ + url?: MultilingualValue; + /** + * + * @type {string} + * @memberof RelatedLinkItem + */ + type?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedLinkItem + */ + title: MultilingualValue; + /** + * + * @type {string} + * @memberof RelatedLinkItem + */ + protocol?: string; + /** + * + * @type {Description} + * @memberof RelatedLinkItem + */ + description: Description; + /** + * + * @type {string} + * @memberof RelatedLinkItem + */ + function?: string; + /** + * + * @type {string} + * @memberof RelatedLinkItem + */ + applicationProfile?: string; +} +/** + * + * @export + * @interface RelatedMetadataItem + */ +export interface RelatedMetadataItem { + /** + * + * @type {string} + * @memberof RelatedMetadataItem + */ + id?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedMetadataItem + */ + url?: MultilingualValue; + /** + * + * @type {string} + * @memberof RelatedMetadataItem + */ + type?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedMetadataItem + */ + title: MultilingualValue; + /** + * + * @type {Description} + * @memberof RelatedMetadataItem + */ + description: Description; + /** + * + * @type {Array} + * @memberof RelatedMetadataItem + */ + mdType: Array; + /** + * + * @type {string} + * @memberof RelatedMetadataItem + */ + origin?: string; +} +/** + * + * @export + * @interface RelatedResponse + */ +export interface RelatedResponse { + /** + * + * @type {Children} + * @memberof RelatedResponse + */ + children?: Children; + /** + * + * @type {Parent} + * @memberof RelatedResponse + */ + parent?: Parent; + /** + * + * @type {Siblings} + * @memberof RelatedResponse + */ + siblings?: Siblings; + /** + * + * @type {Associated} + * @memberof RelatedResponse + */ + associated?: Associated; + /** + * + * @type {Service} + * @memberof RelatedResponse + */ + services?: Service; + /** + * + * @type {Dataset} + * @memberof RelatedResponse + */ + datasets?: Dataset; + /** + * + * @type {Fcat} + * @memberof RelatedResponse + */ + fcats?: Fcat; + /** + * + * @type {Hasfeaturecats} + * @memberof RelatedResponse + */ + hasfeaturecats?: Hasfeaturecats; + /** + * + * @type {Source} + * @memberof RelatedResponse + */ + sources?: Source; + /** + * + * @type {Hassource} + * @memberof RelatedResponse + */ + hassources?: Hassource; + /** + * + * @type {Related} + * @memberof RelatedResponse + */ + related?: Related; + /** + * + * @type {Online} + * @memberof RelatedResponse + */ + onlines?: Online; + /** + * + * @type {Thumbnail} + * @memberof RelatedResponse + */ + thumbnails?: Thumbnail; +} +/** + * + * @export + * @interface RelatedSiblingMetadataItem + */ +export interface RelatedSiblingMetadataItem { + /** + * + * @type {string} + * @memberof RelatedSiblingMetadataItem + */ + id?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedSiblingMetadataItem + */ + url?: MultilingualValue; + /** + * + * @type {string} + * @memberof RelatedSiblingMetadataItem + */ + type?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedSiblingMetadataItem + */ + title: MultilingualValue; + /** + * + * @type {Description} + * @memberof RelatedSiblingMetadataItem + */ + description: Description; + /** + * + * @type {Array} + * @memberof RelatedSiblingMetadataItem + */ + mdType: Array; + /** + * + * @type {string} + * @memberof RelatedSiblingMetadataItem + */ + origin?: string; + /** + * + * @type {string} + * @memberof RelatedSiblingMetadataItem + */ + associationType: string; + /** + * + * @type {string} + * @memberof RelatedSiblingMetadataItem + */ + initiativeType: string; +} +/** + * + * @export + * @interface RelatedThumbnailItem + */ +export interface RelatedThumbnailItem { + /** + * + * @type {string} + * @memberof RelatedThumbnailItem + */ + id?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedThumbnailItem + */ + url?: MultilingualValue; + /** + * + * @type {string} + * @memberof RelatedThumbnailItem + */ + type?: string; + /** + * + * @type {MultilingualValue} + * @memberof RelatedThumbnailItem + */ + title: MultilingualValue; +} +/** + * + * @export + * @interface ReplaceEntryChange + */ +export interface ReplaceEntryChange { + /** + * + * @type {string} + * @memberof ReplaceEntryChange + */ + originalVal?: string; + /** + * + * @type {string} + * @memberof ReplaceEntryChange + */ + changedVal?: string; + /** + * + * @type {string} + * @memberof ReplaceEntryChange + */ + fieldId?: string; +} +/** + * + * @export + * @interface ReplaceReport + */ +export interface ReplaceReport { + /** + * + * @type {string} + * @memberof ReplaceReport + */ + message?: string; + /** + * + * @type {string} + * @memberof ReplaceReport + */ + uuid?: string; + /** + * + * @type {boolean} + * @memberof ReplaceReport + */ + draft?: boolean; + /** + * + * @type {boolean} + * @memberof ReplaceReport + */ + approved?: boolean; + /** + * + * @type {string} + * @memberof ReplaceReport + */ + date?: string; + /** + * + * @type {Array} + * @memberof ReplaceReport + */ + elementChanges?: Array; +} +/** + * + * @export + * @interface Report + */ +export interface Report { + /** + * + * @type {string} + * @memberof Report + */ + message?: string; + /** + * + * @type {string} + * @memberof Report + */ + uuid?: string; + /** + * + * @type {boolean} + * @memberof Report + */ + draft?: boolean; + /** + * + * @type {boolean} + * @memberof Report + */ + approved?: boolean; + /** + * + * @type {string} + * @memberof Report + */ + date?: string; +} +/** + * + * @export + * @interface Reports + */ +export interface Reports { + /** + * + * @type {Array} + * @memberof Reports + */ + report?: Array; +} +/** + * + * @export + * @interface SavedQuery + */ +export interface SavedQuery { + /** + * + * @type {string} + * @memberof SavedQuery + */ + id?: string; + /** + * + * @type {string} + * @memberof SavedQuery + */ + xpath?: string; + /** + * + * @type {string} + * @memberof SavedQuery + */ + label?: string; + /** + * + * @type {string} + * @memberof SavedQuery + */ + cleanValues?: string; + /** + * + * @type {Array} + * @memberof SavedQuery + */ + parameters?: Array; +} +/** + * + * @export + * @interface Section + */ +export interface Section { + /** + * + * @type {Array} + * @memberof Section + */ + field: Array; + /** + * + * @type {string} + * @memberof Section + */ + name?: string; +} +/** + * + * @export + * @interface Selection + */ +export interface Selection { + /** + * + * @type {number} + * @memberof Selection + */ + id?: number; + /** + * + * @type {string} + * @memberof Selection + */ + name?: string; + /** + * + * @type {boolean} + * @memberof Selection + */ + watchable?: boolean; + /** + * + * @type {{ [key: string]: string; }} + * @memberof Selection + */ + label?: { [key: string]: string }; +} +/** + * + * @export + * @interface Service + */ +export interface Service { + /** + * + * @type {Array} + * @memberof Service + */ + item?: Array; +} +/** + * + * @export + * @interface Setting + */ +export interface Setting { + /** + * + * @type {string} + * @memberof Setting + */ + name?: string; + /** + * + * @type {string} + * @memberof Setting + */ + storedValue?: string; + /** + * + * @type {string} + * @memberof Setting + */ + value?: string; + /** + * + * @type {string} + * @memberof Setting + */ + dataType?: SettingDataTypeEnum; + /** + * + * @type {number} + * @memberof Setting + */ + position?: number; + /** + * + * @type {boolean} + * @memberof Setting + */ + internal?: boolean; + /** + * + * @type {boolean} + * @memberof Setting + */ + encrypted?: boolean; + /** + * + * @type {string} + * @memberof Setting + */ + encrypted_JpaWorkaround?: string; + /** + * + * @type {string} + * @memberof Setting + */ + internal_JpaWorkaround?: string; +} + +/** + * @export + * @enum {string} + */ +export enum SettingDataTypeEnum { + String = "STRING", + Int = "INT", + Boolean = "BOOLEAN", + Json = "JSON", +} + +/** + * + * @export + * @interface SettingsListResponse + */ +export interface SettingsListResponse { + /** + * + * @type {Array} + * @memberof SettingsListResponse + */ + settings?: Array; +} +/** + * Privileges + * @export + * @interface SharingParameter + */ +export interface SharingParameter { + /** + * + * @type {Array} + * @memberof SharingParameter + */ + privileges?: Array; + /** + * + * @type {boolean} + * @memberof SharingParameter + */ + clear?: boolean; +} +/** + * + * @export + * @interface SharingResponse + */ +export interface SharingResponse { + /** + * + * @type {Array} + * @memberof SharingResponse + */ + privileges?: Array; + /** + * + * @type {string} + * @memberof SharingResponse + */ + owner?: string; + /** + * + * @type {string} + * @memberof SharingResponse + */ + groupOwner?: string; +} +/** + * + * @export + * @interface Siblings + */ +export interface Siblings { + /** + * + * @type {Array} + * @memberof Siblings + */ + item?: Array; +} +/** + * + * @export + * @interface SimpleMetadataProcessingReport + */ +export interface SimpleMetadataProcessingReport { + /** + * + * @type {Array} + * @memberof SimpleMetadataProcessingReport + */ + errors?: Array; + /** + * + * @type {Array} + * @memberof SimpleMetadataProcessingReport + */ + infos?: Array; + /** + * + * @type {string} + * @memberof SimpleMetadataProcessingReport + */ + uuid?: string; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + totalRecords?: number; + /** + * + * @type {Set} + * @memberof SimpleMetadataProcessingReport + */ + metadata?: Set; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof SimpleMetadataProcessingReport + */ + metadataErrors?: { [key: string]: Array }; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof SimpleMetadataProcessingReport + */ + metadataInfos?: { [key: string]: Array }; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + numberOfRecords?: number; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + numberOfRecordNotFound?: number; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + numberOfRecordsNotEditable?: number; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + numberOfNullRecords?: number; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + numberOfRecordsProcessed?: number; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + numberOfRecordsWithErrors?: number; + /** + * + * @type {string} + * @memberof SimpleMetadataProcessingReport + */ + startIsoDateTime?: string; + /** + * + * @type {string} + * @memberof SimpleMetadataProcessingReport + */ + endIsoDateTime?: string; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + ellapsedTimeInSeconds?: number; + /** + * + * @type {number} + * @memberof SimpleMetadataProcessingReport + */ + totalTimeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof SimpleMetadataProcessingReport + */ + running?: boolean; + /** + * + * @type {string} + * @memberof SimpleMetadataProcessingReport + */ + type?: string; +} +/** + * + * @export + * @interface SiteInformation + */ +export interface SiteInformation { + /** + * + * @type {{ [key: string]: string; }} + * @memberof SiteInformation + */ + catalogue?: { [key: string]: string }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof SiteInformation + */ + index?: { [key: string]: string }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof SiteInformation + */ + main?: { [key: string]: string }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof SiteInformation + */ + database?: { [key: string]: string }; + /** + * + * @type {{ [key: string]: string; }} + * @memberof SiteInformation + */ + version?: { [key: string]: string }; +} +/** + * + * @export + * @interface Sort + */ +export interface Sort { + /** + * + * @type {boolean} + * @memberof Sort + */ + sorted?: boolean; + /** + * + * @type {boolean} + * @memberof Sort + */ + unsorted?: boolean; + /** + * + * @type {boolean} + * @memberof Sort + */ + empty?: boolean; +} +/** + * + * @export + * @interface Source + */ +export interface Source { + /** + * + * @type {Array} + * @memberof Source + */ + item?: Array; +} +/** + * + * @export + * @interface Status + */ +export interface Status { + /** + * + * @type {string} + * @memberof Status + */ + id?: string; + /** + * + * @type {string} + * @memberof Status + */ + state?: StatusStateEnum; + /** + * + * @type {string} + * @memberof Status + */ + date?: string; + /** + * + * @type {string} + * @memberof Status + */ + message?: string; +} + +/** + * @export + * @enum {string} + */ +export enum StatusStateEnum { + Red = "RED", + Uninitialized = "UNINITIALIZED", + Yellow = "YELLOW", + Green = "GREEN", + Disabled = "DISABLED", +} + +/** + * + * @export + * @interface StatusValue + */ +export interface StatusValue { + /** + * + * @type {string} + * @memberof StatusValue + */ + type?: StatusValueTypeEnum; + /** + * + * @type {string} + * @memberof StatusValue + */ + notificationLevel?: StatusValueNotificationLevelEnum; + /** + * + * @type {number} + * @memberof StatusValue + */ + displayOrder?: number; + /** + * + * @type {number} + * @memberof StatusValue + */ + id?: number; + /** + * + * @type {boolean} + * @memberof StatusValue + */ + reserved?: boolean; + /** + * + * @type {string} + * @memberof StatusValue + */ + reserved_JpaWorkaround?: string; + /** + * + * @type {string} + * @memberof StatusValue + */ + name?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof StatusValue + */ + label?: { [key: string]: string }; +} + +/** + * @export + * @enum {string} + */ +export enum StatusValueTypeEnum { + Workflow = "workflow", + Task = "task", + Event = "event", +} +/** + * @export + * @enum {string} + */ +export enum StatusValueNotificationLevelEnum { + StatusUserOwner = "statusUserOwner", + CatalogueAdministrator = "catalogueAdministrator", + CatalogueProfileAdministrator = "catalogueProfileAdministrator", + CatalogueProfileUserAdmin = "catalogueProfileUserAdmin", + CatalogueProfileReviewer = "catalogueProfileReviewer", + CatalogueProfileEditor = "catalogueProfileEditor", + CatalogueProfileRegisteredUser = "catalogueProfileRegisteredUser", + CatalogueProfileGuest = "catalogueProfileGuest", + RecordProfileReviewer = "recordProfileReviewer", + RecordUserAuthor = "recordUserAuthor", +} + +/** + * + * @export + * @interface SuggestionType + */ +export interface SuggestionType { + /** + * + * @type {string} + * @memberof SuggestionType + */ + name: string; + /** + * + * @type {string} + * @memberof SuggestionType + */ + operational: string; + /** + * + * @type {string} + * @memberof SuggestionType + */ + params?: string; + /** + * + * @type {string} + * @memberof SuggestionType + */ + process?: string; + /** + * + * @type {string} + * @memberof SuggestionType + */ + id?: string; + /** + * + * @type {string} + * @memberof SuggestionType + */ + category?: string; + /** + * + * @type {string} + * @memberof SuggestionType + */ + target?: string; +} +/** + * + * @export + * @interface SystemInfo + */ +export interface SystemInfo { + /** + * + * @type {string} + * @memberof SystemInfo + */ + stagingProfile?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + buildDate?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + version?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + subVersion?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + buildOsInfo?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + buildJavaVersion?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + buildJavaVendor?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + scmUrl?: string; + /** + * + * @type {string} + * @memberof SystemInfo + */ + scmRevision?: string; + /** + * + * @type {boolean} + * @memberof SystemInfo + */ + devMode?: boolean; +} +/** + * + * @export + * @interface Thumbnail + */ +export interface Thumbnail { + /** + * + * @type {Array} + * @memberof Thumbnail + */ + item?: Array; +} +/** + * + * @export + * @interface TransferRequest + */ +export interface TransferRequest { + /** + * + * @type {number} + * @memberof TransferRequest + */ + sourceUser?: number; + /** + * + * @type {number} + * @memberof TransferRequest + */ + sourceGroup?: number; + /** + * + * @type {number} + * @memberof TransferRequest + */ + targetUser?: number; + /** + * + * @type {number} + * @memberof TransferRequest + */ + targetGroup?: number; +} +/** + * + * @export + * @interface Translations + */ +export interface Translations { + /** + * + * @type {string} + * @memberof Translations + */ + fieldName?: string; + /** + * + * @type {number} + * @memberof Translations + */ + id?: number; + /** + * + * @type {string} + * @memberof Translations + */ + langId?: string; + /** + * + * @type {string} + * @memberof Translations + */ + value?: string; +} +/** + * + * @export + * @interface UiSetting + */ +export interface UiSetting { + /** + * + * @type {string} + * @memberof UiSetting + */ + id?: string; + /** + * + * @type {string} + * @memberof UiSetting + */ + configuration?: string; +} +/** + * + * @export + * @interface User + */ +export interface User { + /** + * + * @type {string} + * @memberof User + */ + profile?: UserProfileEnum; + /** + * + * @type {string} + * @memberof User + */ + surname?: string; + /** + * + * @type {boolean} + * @memberof User + */ + enabled?: boolean; + /** + * + * @type {number} + * @memberof User + */ + id?: number; + /** + * + * @type {string} + * @memberof User + */ + username?: string; + /** + * + * @type {string} + * @memberof User + */ + email?: string; + /** + * + * @type {string} + * @memberof User + */ + kind?: string; + /** + * + * @type {Set} + * @memberof User + */ + emailAddresses?: Set; + /** + * + * @type {Set
} + * @memberof User + */ + addresses?: Set
; + /** + * + * @type {Address} + * @memberof User + */ + primaryAddress?: Address; + /** + * + * @type {string} + * @memberof User + */ + organisation?: string; + /** + * + * @type {UserSecurity} + * @memberof User + */ + security?: UserSecurity; + /** + * + * @type {string} + * @memberof User + */ + lastLoginDate?: string; + /** + * + * @type {Array} + * @memberof User + */ + authorities?: Array; + /** + * + * @type {boolean} + * @memberof User + */ + accountNonExpired?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + accountNonLocked?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + credentialsNonExpired?: boolean; + /** + * + * @type {string} + * @memberof User + */ + name?: string; +} + +/** + * @export + * @enum {string} + */ +export enum UserProfileEnum { + Administrator = "Administrator", + UserAdmin = "UserAdmin", + Reviewer = "Reviewer", + Editor = "Editor", + RegisteredUser = "RegisteredUser", + Guest = "Guest", + Monitor = "Monitor", +} + +/** + * + * @export + * @interface UserDto + */ +export interface UserDto { + /** + * + * @type {string} + * @memberof UserDto + */ + id?: string; + /** + * + * @type {string} + * @memberof UserDto + */ + profile?: string; + /** + * + * @type {string} + * @memberof UserDto + */ + username?: string; + /** + * + * @type {string} + * @memberof UserDto + */ + name?: string; + /** + * + * @type {string} + * @memberof UserDto + */ + surname?: string; + /** + * + * @type {Array} + * @memberof UserDto + */ + emailAddresses?: Array; + /** + * + * @type {string} + * @memberof UserDto + */ + organisation?: string; + /** + * + * @type {Array
} + * @memberof UserDto + */ + addresses?: Array
; + /** + * + * @type {string} + * @memberof UserDto + */ + kind?: string; + /** + * + * @type {string} + * @memberof UserDto + */ + password?: string; + /** + * + * @type {Array} + * @memberof UserDto + */ + groupsRegisteredUser?: Array; + /** + * + * @type {Array} + * @memberof UserDto + */ + groupsEditor?: Array; + /** + * + * @type {Array} + * @memberof UserDto + */ + groupsReviewer?: Array; + /** + * + * @type {Array} + * @memberof UserDto + */ + groupsUserAdmin?: Array; + /** + * + * @type {boolean} + * @memberof UserDto + */ + enabled?: boolean; + /** + * + * @type {UserDto} + * @memberof UserDto + */ + email?: UserDto; +} +/** + * + * @export + * @interface UserFeedbackDTO + */ +export interface UserFeedbackDTO { + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + uuid?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + comment?: string; + /** + * + * @type {{ [key: string]: number; }} + * @memberof UserFeedbackDTO + */ + rating?: { [key: string]: number }; + /** + * + * @type {number} + * @memberof UserFeedbackDTO + */ + ratingAVG?: number; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + metadataUUID?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + metadataTitle?: string; + /** + * + * @type {number} + * @memberof UserFeedbackDTO + */ + authorUserId?: number; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + authorName?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + authorEmail?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + authorOrganization?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + approverName?: string; + /** + * + * @type {boolean} + * @memberof UserFeedbackDTO + */ + optionPrivacy?: boolean; + /** + * + * @type {boolean} + * @memberof UserFeedbackDTO + */ + published?: boolean; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + parentUuid?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + captcha?: string; + /** + * + * @type {string} + * @memberof UserFeedbackDTO + */ + date?: string; + /** + * + * @type {boolean} + * @memberof UserFeedbackDTO + */ + showApproveButton?: boolean; + /** + * + * @type {Array} + * @memberof UserFeedbackDTO + */ + keywords?: Array; +} +/** + * + * @export + * @interface UserGroup + */ +export interface UserGroup { + /** + * + * @type {Group} + * @memberof UserGroup + */ + group?: Group; + /** + * + * @type {string} + * @memberof UserGroup + */ + profile?: UserGroupProfileEnum; + /** + * + * @type {UserGroupId} + * @memberof UserGroup + */ + id?: UserGroupId; + /** + * + * @type {User} + * @memberof UserGroup + */ + user?: User; +} + +/** + * @export + * @enum {string} + */ +export enum UserGroupProfileEnum { + Administrator = "Administrator", + UserAdmin = "UserAdmin", + Reviewer = "Reviewer", + Editor = "Editor", + RegisteredUser = "RegisteredUser", + Guest = "Guest", + Monitor = "Monitor", +} + +/** + * + * @export + * @interface UserGroupId + */ +export interface UserGroupId { + /** + * + * @type {string} + * @memberof UserGroupId + */ + profile?: UserGroupIdProfileEnum; + /** + * + * @type {number} + * @memberof UserGroupId + */ + groupId?: number; + /** + * + * @type {number} + * @memberof UserGroupId + */ + userId?: number; +} + +/** + * @export + * @enum {string} + */ +export enum UserGroupIdProfileEnum { + Administrator = "Administrator", + UserAdmin = "UserAdmin", + Reviewer = "Reviewer", + Editor = "Editor", + RegisteredUser = "RegisteredUser", + Guest = "Guest", + Monitor = "Monitor", +} + +/** + * + * @export + * @interface UserGroupsResponse + */ +export interface UserGroupsResponse { + /** + * + * @type {number} + * @memberof UserGroupsResponse + */ + userId?: number; + /** + * + * @type {string} + * @memberof UserGroupsResponse + */ + userName?: string; + /** + * + * @type {number} + * @memberof UserGroupsResponse + */ + groupId?: number; + /** + * + * @type {string} + * @memberof UserGroupsResponse + */ + groupName?: string; + /** + * + * @type {string} + * @memberof UserGroupsResponse + */ + userProfile?: string; +} +/** + * User details + * @export + * @interface UserRegisterDto + */ +export interface UserRegisterDto { + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + profile?: string; + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + username?: string; + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + email?: string; + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + name?: string; + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + surname?: string; + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + organisation?: string; + /** + * + * @type {Address} + * @memberof UserRegisterDto + */ + address?: Address; + /** + * + * @type {string} + * @memberof UserRegisterDto + */ + captcha?: string; +} +/** + * User search details + * @export + * @interface UserSearchDto + */ +export interface UserSearchDto { + /** + * + * @type {number} + * @memberof UserSearchDto + */ + id?: number; + /** + * + * @type {string} + * @memberof UserSearchDto + */ + url?: string; + /** + * + * @type {string} + * @memberof UserSearchDto + */ + featuredType?: string; + /** + * + * @type {string} + * @memberof UserSearchDto + */ + creationDate?: string; + /** + * + * @type {number} + * @memberof UserSearchDto + */ + creatorId?: number; + /** + * + * @type {string} + * @memberof UserSearchDto + */ + creator?: string; + /** + * + * @type {string} + * @memberof UserSearchDto + */ + logo?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof UserSearchDto + */ + names?: { [key: string]: string }; + /** + * + * @type {Array} + * @memberof UserSearchDto + */ + groups?: Array; +} +/** + * + * @export + * @interface UserSecurity + */ +export interface UserSecurity { + /** + * + * @type {string} + * @memberof UserSecurity + */ + nodeId?: string; + /** + * + * @type {Set} + * @memberof UserSecurity + */ + securityNotifications?: Set; + /** + * + * @type {string} + * @memberof UserSecurity + */ + authType?: string; + /** + * + * @type {UserSecurity} + * @memberof UserSecurity + */ + securityNotificationsString?: UserSecurity; +} + +/** + * @export + * @enum {string} + */ +export enum UserSecuritySecurityNotificationsEnum { + UpdateHashRequired = "UPDATE_HASH_REQUIRED", + Unknown = "UNKNOWN", +} + +/** + * + * @export + * @interface Values + */ +export interface Values { + /** + * + * @type {string} + * @memberof Values + */ + label?: string; + /** + * + * @type {string} + * @memberof Values + */ + code?: string; + /** + * + * @type {string} + * @memberof Values + */ + definition?: string; +} +/** + * + * @export + * @interface XsltMetadataProcessingReport + */ +export interface XsltMetadataProcessingReport { + /** + * + * @type {Array} + * @memberof XsltMetadataProcessingReport + */ + errors?: Array; + /** + * + * @type {Array} + * @memberof XsltMetadataProcessingReport + */ + infos?: Array; + /** + * + * @type {string} + * @memberof XsltMetadataProcessingReport + */ + uuid?: string; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + totalRecords?: number; + /** + * + * @type {Set} + * @memberof XsltMetadataProcessingReport + */ + metadata?: Set; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof XsltMetadataProcessingReport + */ + metadataErrors?: { [key: string]: Array }; + /** + * + * @type {{ [key: string]: Array; }} + * @memberof XsltMetadataProcessingReport + */ + metadataInfos?: { [key: string]: Array }; + /** + * + * @type {string} + * @memberof XsltMetadataProcessingReport + */ + processId?: string; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + noProcessFoundCount?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + numberOfRecords?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + numberOfRecordNotFound?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + numberOfRecordsNotEditable?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + numberOfNullRecords?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + numberOfRecordsProcessed?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + numberOfRecordsWithErrors?: number; + /** + * + * @type {string} + * @memberof XsltMetadataProcessingReport + */ + startIsoDateTime?: string; + /** + * + * @type {string} + * @memberof XsltMetadataProcessingReport + */ + endIsoDateTime?: string; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + ellapsedTimeInSeconds?: number; + /** + * + * @type {number} + * @memberof XsltMetadataProcessingReport + */ + totalTimeInSeconds?: number; + /** + * + * @type {boolean} + * @memberof XsltMetadataProcessingReport + */ + running?: boolean; + /** + * + * @type {string} + * @memberof XsltMetadataProcessingReport + */ + type?: string; +} + +/** + * CustomstyleApi - axios parameter creator + * @export + */ +export const CustomstyleApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * This returns a map with all Less variables. + * @summary Get CssStyleSettings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCssStyle: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/customstyle`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Saves custom style variables. + * @summary Saves custom style variables. + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveCssStyle: async ( + body: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists("saveCssStyle", "body", body); + const localVarPath = `/customstyle`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + body, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * CustomstyleApi - functional programming interface + * @export + */ +export const CustomstyleApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + CustomstyleApiAxiosParamCreator(configuration); + return { + /** + * This returns a map with all Less variables. + * @summary Get CssStyleSettings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCssStyle( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCssStyle( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Saves custom style variables. + * @summary Saves custom style variables. + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveCssStyle( + body: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveCssStyle( + body, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * CustomstyleApi - factory interface + * @export + */ +export const CustomstyleApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = CustomstyleApiFp(configuration); + return { + /** + * This returns a map with all Less variables. + * @summary Get CssStyleSettings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCssStyle(options?: any): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .getCssStyle(options) + .then((request) => request(axios, basePath)); + }, + /** + * Saves custom style variables. + * @summary Saves custom style variables. + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveCssStyle(body: string, options?: any): AxiosPromise { + return localVarFp + .saveCssStyle(body, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * CustomstyleApi - object-oriented interface + * @export + * @class CustomstyleApi + * @extends {BaseAPI} + */ +export class CustomstyleApi extends BaseAPI { + /** + * This returns a map with all Less variables. + * @summary Get CssStyleSettings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CustomstyleApi + */ + public getCssStyle(options?: AxiosRequestConfig) { + return CustomstyleApiFp(this.configuration) + .getCssStyle(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Saves custom style variables. + * @summary Saves custom style variables. + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CustomstyleApi + */ + public saveCssStyle(body: string, options?: AxiosRequestConfig) { + return CustomstyleApiFp(this.configuration) + .saveCssStyle(body, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * FormattersApi - axios parameter creator + * @export + */ +export const FormattersApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Import a XSLT formatter (usually a zip named \'schema-formatter.zip\') + * @param {Array} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addFormatter: async ( + file: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists("addFormatter", "file", file); + const localVarPath = `/formatters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (file) { + localVarQueryParameter["file"] = file; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Formatters are used to render records in various format (HTML, PDF, ...). When a record is rendered a cache is populated for better performance. By default the cache is an H2 database with files on the filesystems (See /resources/htmlcache/formatter-cache folder). + * @summary Clear formatter cache + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clearFormatterCache: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/formatters/cache`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a formatter + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFormatter: async ( + formatter: string, + schema: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'formatter' is not null or undefined + assertParamExists("deleteFormatter", "formatter", formatter); + // verify required parameter 'schema' is not null or undefined + assertParamExists("deleteFormatter", "schema", schema); + const localVarPath = `/formatters/{schema}/{formatter}` + .replace(`{${"formatter"}}`, encodeURIComponent(String(formatter))) + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Download a formatter as ZIP + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadFormatter: async ( + formatter: string, + schema: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'formatter' is not null or undefined + assertParamExists("downloadFormatter", "formatter", formatter); + // verify required parameter 'schema' is not null or undefined + assertParamExists("downloadFormatter", "schema", schema); + const localVarPath = `/formatters/{schema}/{formatter}` + .replace(`{${"formatter"}}`, encodeURIComponent(String(formatter))) + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get formatter file content + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFormatterFileContent: async ( + formatter: string, + schema: string, + file: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'formatter' is not null or undefined + assertParamExists("getFormatterFileContent", "formatter", formatter); + // verify required parameter 'schema' is not null or undefined + assertParamExists("getFormatterFileContent", "schema", schema); + // verify required parameter 'file' is not null or undefined + assertParamExists("getFormatterFileContent", "file", file); + const localVarPath = `/formatters/{schema}/{formatter}/files/{file}` + .replace(`{${"formatter"}}`, encodeURIComponent(String(formatter))) + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))) + .replace(`{${"file"}}`, encodeURIComponent(String(file))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get formatter files + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFormatterFiles: async ( + formatter: string, + schema: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'formatter' is not null or undefined + assertParamExists("getFormatterFiles", "formatter", formatter); + // verify required parameter 'schema' is not null or undefined + assertParamExists("getFormatterFiles", "schema", schema); + const localVarPath = `/formatters/{schema}/{formatter}/files` + .replace(`{${"formatter"}}`, encodeURIComponent(String(formatter))) + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get formatters + * @param {string} [id] + * @param {string} [uuid] + * @param {string} [schema] + * @param {boolean} [pluginOnly] + * @param {boolean} [publishedOnly] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFormatters: async ( + id?: string, + uuid?: string, + schema?: string, + pluginOnly?: boolean, + publishedOnly?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/formatters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter["id"] = id; + } + + if (uuid !== undefined) { + localVarQueryParameter["uuid"] = uuid; + } + + if (schema !== undefined) { + localVarQueryParameter["schema"] = schema; + } + + if (pluginOnly !== undefined) { + localVarQueryParameter["pluginOnly"] = pluginOnly; + } + + if (publishedOnly !== undefined) { + localVarQueryParameter["publishedOnly"] = publishedOnly; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update formatter file + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {string} data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateFormatterFile: async ( + formatter: string, + schema: string, + file: string, + data: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'formatter' is not null or undefined + assertParamExists("updateFormatterFile", "formatter", formatter); + // verify required parameter 'schema' is not null or undefined + assertParamExists("updateFormatterFile", "schema", schema); + // verify required parameter 'file' is not null or undefined + assertParamExists("updateFormatterFile", "file", file); + // verify required parameter 'data' is not null or undefined + assertParamExists("updateFormatterFile", "data", data); + const localVarPath = `/formatters/{schema}/{formatter}/files/{file}` + .replace(`{${"formatter"}}`, encodeURIComponent(String(formatter))) + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))) + .replace(`{${"file"}}`, encodeURIComponent(String(file))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (data !== undefined) { + localVarQueryParameter["data"] = data; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * FormattersApi - functional programming interface + * @export + */ +export const FormattersApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + FormattersApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Import a XSLT formatter (usually a zip named \'schema-formatter.zip\') + * @param {Array} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addFormatter( + file: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addFormatter( + file, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Formatters are used to render records in various format (HTML, PDF, ...). When a record is rendered a cache is populated for better performance. By default the cache is an H2 database with files on the filesystems (See /resources/htmlcache/formatter-cache folder). + * @summary Clear formatter cache + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async clearFormatterCache( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.clearFormatterCache(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete a formatter + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteFormatter( + formatter: string, + schema: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFormatter( + formatter, + schema, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Download a formatter as ZIP + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async downloadFormatter( + formatter: string, + schema: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.downloadFormatter( + formatter, + schema, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get formatter file content + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getFormatterFileContent( + formatter: string, + schema: string, + file: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getFormatterFileContent( + formatter, + schema, + file, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get formatter files + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getFormatterFiles( + formatter: string, + schema: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getFormatterFiles( + formatter, + schema, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get formatters + * @param {string} [id] + * @param {string} [uuid] + * @param {string} [schema] + * @param {boolean} [pluginOnly] + * @param {boolean} [publishedOnly] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listFormatters( + id?: string, + uuid?: string, + schema?: string, + pluginOnly?: boolean, + publishedOnly?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.listFormatters( + id, + uuid, + schema, + pluginOnly, + publishedOnly, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update formatter file + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {string} data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateFormatterFile( + formatter: string, + schema: string, + file: string, + data: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateFormatterFile( + formatter, + schema, + file, + data, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * FormattersApi - factory interface + * @export + */ +export const FormattersApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = FormattersApiFp(configuration); + return { + /** + * + * @summary Import a XSLT formatter (usually a zip named \'schema-formatter.zip\') + * @param {Array} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addFormatter(file: Array, options?: any): AxiosPromise { + return localVarFp + .addFormatter(file, options) + .then((request) => request(axios, basePath)); + }, + /** + * Formatters are used to render records in various format (HTML, PDF, ...). When a record is rendered a cache is populated for better performance. By default the cache is an H2 database with files on the filesystems (See /resources/htmlcache/formatter-cache folder). + * @summary Clear formatter cache + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clearFormatterCache(options?: any): AxiosPromise { + return localVarFp + .clearFormatterCache(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete a formatter + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFormatter( + formatter: string, + schema: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteFormatter(formatter, schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Download a formatter as ZIP + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadFormatter( + formatter: string, + schema: string, + options?: any + ): AxiosPromise { + return localVarFp + .downloadFormatter(formatter, schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get formatter file content + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFormatterFileContent( + formatter: string, + schema: string, + file: string, + options?: any + ): AxiosPromise { + return localVarFp + .getFormatterFileContent(formatter, schema, file, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get formatter files + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFormatterFiles( + formatter: string, + schema: string, + options?: any + ): AxiosPromise { + return localVarFp + .getFormatterFiles(formatter, schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get formatters + * @param {string} [id] + * @param {string} [uuid] + * @param {string} [schema] + * @param {boolean} [pluginOnly] + * @param {boolean} [publishedOnly] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listFormatters( + id?: string, + uuid?: string, + schema?: string, + pluginOnly?: boolean, + publishedOnly?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .listFormatters(id, uuid, schema, pluginOnly, publishedOnly, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update formatter file + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {string} data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateFormatterFile( + formatter: string, + schema: string, + file: string, + data: string, + options?: any + ): AxiosPromise { + return localVarFp + .updateFormatterFile(formatter, schema, file, data, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * FormattersApi - object-oriented interface + * @export + * @class FormattersApi + * @extends {BaseAPI} + */ +export class FormattersApi extends BaseAPI { + /** + * + * @summary Import a XSLT formatter (usually a zip named \'schema-formatter.zip\') + * @param {Array} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public addFormatter(file: Array, options?: AxiosRequestConfig) { + return FormattersApiFp(this.configuration) + .addFormatter(file, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Formatters are used to render records in various format (HTML, PDF, ...). When a record is rendered a cache is populated for better performance. By default the cache is an H2 database with files on the filesystems (See /resources/htmlcache/formatter-cache folder). + * @summary Clear formatter cache + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public clearFormatterCache(options?: AxiosRequestConfig) { + return FormattersApiFp(this.configuration) + .clearFormatterCache(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete a formatter + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public deleteFormatter( + formatter: string, + schema: string, + options?: AxiosRequestConfig + ) { + return FormattersApiFp(this.configuration) + .deleteFormatter(formatter, schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Download a formatter as ZIP + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public downloadFormatter( + formatter: string, + schema: string, + options?: AxiosRequestConfig + ) { + return FormattersApiFp(this.configuration) + .downloadFormatter(formatter, schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get formatter file content + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public getFormatterFileContent( + formatter: string, + schema: string, + file: string, + options?: AxiosRequestConfig + ) { + return FormattersApiFp(this.configuration) + .getFormatterFileContent(formatter, schema, file, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get formatter files + * @param {string} formatter + * @param {string} schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public getFormatterFiles( + formatter: string, + schema: string, + options?: AxiosRequestConfig + ) { + return FormattersApiFp(this.configuration) + .getFormatterFiles(formatter, schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get formatters + * @param {string} [id] + * @param {string} [uuid] + * @param {string} [schema] + * @param {boolean} [pluginOnly] + * @param {boolean} [publishedOnly] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public listFormatters( + id?: string, + uuid?: string, + schema?: string, + pluginOnly?: boolean, + publishedOnly?: boolean, + options?: AxiosRequestConfig + ) { + return FormattersApiFp(this.configuration) + .listFormatters(id, uuid, schema, pluginOnly, publishedOnly, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update formatter file + * @param {string} formatter + * @param {string} schema + * @param {string} file + * @param {string} data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FormattersApi + */ + public updateFormatterFile( + formatter: string, + schema: string, + file: string, + data: string, + options?: AxiosRequestConfig + ) { + return FormattersApiFp(this.configuration) + .updateFormatterFile(formatter, schema, file, data, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * GroupsApi - axios parameter creator + * @export + */ +export const GroupsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Return the identifier of the group created. + * @summary Add a group + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addGroup: async ( + group: Group, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'group' is not null or undefined + assertParamExists("addGroup", "group", group); + const localVarPath = `/groups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + group, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Remove a group by first removing sharing settings, link to users and finally reindex all affected records. + * @summary Remove a group + * @param {number} groupIdentifier Group identifier. + * @param {boolean} [force] Force removal even if records are assigned to that group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteGroup: async ( + groupIdentifier: number, + force?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'groupIdentifier' is not null or undefined + assertParamExists("deleteGroup", "groupIdentifier", groupIdentifier); + const localVarPath = `/groups/{groupIdentifier}`.replace( + `{${"groupIdentifier"}}`, + encodeURIComponent(String(groupIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (force !== undefined) { + localVarQueryParameter["force"] = force; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return the requested group details. + * @summary Get group + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroup: async ( + groupIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'groupIdentifier' is not null or undefined + assertParamExists("getGroup", "groupIdentifier", groupIdentifier); + const localVarPath = `/groups/{groupIdentifier}`.replace( + `{${"groupIdentifier"}}`, + encodeURIComponent(String(groupIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * If last-modified header is present it is used to check if the logo has been modified since the header date. If it hasn\'t been modified returns an empty 304 Not Modified response. If modified returns the image. If the group has no logo then returns a transparent 1x1 px PNG image. + * @summary Get the group logo image. + * @param {number} groupId Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroupLogo: async ( + groupId: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'groupId' is not null or undefined + assertParamExists("getGroupLogo", "groupId", groupId); + const localVarPath = `/groups/{groupId}/logo`.replace( + `{${"groupId"}}`, + encodeURIComponent(String(groupId)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get group users + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroupUsers: async ( + groupIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'groupIdentifier' is not null or undefined + assertParamExists("getGroupUsers", "groupIdentifier", groupIdentifier); + const localVarPath = `/groups/{groupIdentifier}/users`.replace( + `{${"groupIdentifier"}}`, + encodeURIComponent(String(groupIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The catalog contains one or more groups. By default, there is 3 reserved groups (Internet, Intranet, Guest) and a sample group.
This service returns all catalog groups when not authenticated or when current is user is an administrator. The list can contains or not reserved groups depending on the parameters.
When authenticated, return user groups optionally filtered on a specific user profile. + * @summary Get groups + * @param {boolean} [withReservedGroup] Including Internet, Intranet, Guest groups or not + * @param {string} [profile] For a specific profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroups: async ( + withReservedGroup?: boolean, + profile?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/groups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (withReservedGroup !== undefined) { + localVarQueryParameter["withReservedGroup"] = withReservedGroup; + } + + if (profile !== undefined) { + localVarQueryParameter["profile"] = profile; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a group + * @param {number} groupIdentifier Group identifier + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateGroup: async ( + groupIdentifier: number, + group: Group, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'groupIdentifier' is not null or undefined + assertParamExists("updateGroup", "groupIdentifier", groupIdentifier); + // verify required parameter 'group' is not null or undefined + assertParamExists("updateGroup", "group", group); + const localVarPath = `/groups/{groupIdentifier}`.replace( + `{${"groupIdentifier"}}`, + encodeURIComponent(String(groupIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + group, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * GroupsApi - functional programming interface + * @export + */ +export const GroupsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = GroupsApiAxiosParamCreator(configuration); + return { + /** + * Return the identifier of the group created. + * @summary Add a group + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addGroup( + group: Group, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addGroup( + group, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Remove a group by first removing sharing settings, link to users and finally reindex all affected records. + * @summary Remove a group + * @param {number} groupIdentifier Group identifier. + * @param {boolean} [force] Force removal even if records are assigned to that group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteGroup( + groupIdentifier: number, + force?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroup( + groupIdentifier, + force, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Return the requested group details. + * @summary Get group + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGroup( + groupIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGroup( + groupIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * If last-modified header is present it is used to check if the logo has been modified since the header date. If it hasn\'t been modified returns an empty 304 Not Modified response. If modified returns the image. If the group has no logo then returns a transparent 1x1 px PNG image. + * @summary Get the group logo image. + * @param {number} groupId Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGroupLogo( + groupId: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupLogo( + groupId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get group users + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGroupUsers( + groupIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupUsers( + groupIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * The catalog contains one or more groups. By default, there is 3 reserved groups (Internet, Intranet, Guest) and a sample group.
This service returns all catalog groups when not authenticated or when current is user is an administrator. The list can contains or not reserved groups depending on the parameters.
When authenticated, return user groups optionally filtered on a specific user profile. + * @summary Get groups + * @param {boolean} [withReservedGroup] Including Internet, Intranet, Guest groups or not + * @param {string} [profile] For a specific profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGroups( + withReservedGroup?: boolean, + profile?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGroups( + withReservedGroup, + profile, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a group + * @param {number} groupIdentifier Group identifier + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateGroup( + groupIdentifier: number, + group: Group, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateGroup( + groupIdentifier, + group, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * GroupsApi - factory interface + * @export + */ +export const GroupsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = GroupsApiFp(configuration); + return { + /** + * Return the identifier of the group created. + * @summary Add a group + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addGroup(group: Group, options?: any): AxiosPromise { + return localVarFp + .addGroup(group, options) + .then((request) => request(axios, basePath)); + }, + /** + * Remove a group by first removing sharing settings, link to users and finally reindex all affected records. + * @summary Remove a group + * @param {number} groupIdentifier Group identifier. + * @param {boolean} [force] Force removal even if records are assigned to that group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteGroup( + groupIdentifier: number, + force?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .deleteGroup(groupIdentifier, force, options) + .then((request) => request(axios, basePath)); + }, + /** + * Return the requested group details. + * @summary Get group + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroup(groupIdentifier: number, options?: any): AxiosPromise { + return localVarFp + .getGroup(groupIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * If last-modified header is present it is used to check if the logo has been modified since the header date. If it hasn\'t been modified returns an empty 304 Not Modified response. If modified returns the image. If the group has no logo then returns a transparent 1x1 px PNG image. + * @summary Get the group logo image. + * @param {number} groupId Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroupLogo(groupId: number, options?: any): AxiosPromise { + return localVarFp + .getGroupLogo(groupId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get group users + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroupUsers( + groupIdentifier: number, + options?: any + ): AxiosPromise> { + return localVarFp + .getGroupUsers(groupIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * The catalog contains one or more groups. By default, there is 3 reserved groups (Internet, Intranet, Guest) and a sample group.
This service returns all catalog groups when not authenticated or when current is user is an administrator. The list can contains or not reserved groups depending on the parameters.
When authenticated, return user groups optionally filtered on a specific user profile. + * @summary Get groups + * @param {boolean} [withReservedGroup] Including Internet, Intranet, Guest groups or not + * @param {string} [profile] For a specific profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroups( + withReservedGroup?: boolean, + profile?: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getGroups(withReservedGroup, profile, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a group + * @param {number} groupIdentifier Group identifier + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateGroup( + groupIdentifier: number, + group: Group, + options?: any + ): AxiosPromise { + return localVarFp + .updateGroup(groupIdentifier, group, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GroupsApi - object-oriented interface + * @export + * @class GroupsApi + * @extends {BaseAPI} + */ +export class GroupsApi extends BaseAPI { + /** + * Return the identifier of the group created. + * @summary Add a group + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public addGroup(group: Group, options?: AxiosRequestConfig) { + return GroupsApiFp(this.configuration) + .addGroup(group, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Remove a group by first removing sharing settings, link to users and finally reindex all affected records. + * @summary Remove a group + * @param {number} groupIdentifier Group identifier. + * @param {boolean} [force] Force removal even if records are assigned to that group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public deleteGroup( + groupIdentifier: number, + force?: boolean, + options?: AxiosRequestConfig + ) { + return GroupsApiFp(this.configuration) + .deleteGroup(groupIdentifier, force, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Return the requested group details. + * @summary Get group + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public getGroup(groupIdentifier: number, options?: AxiosRequestConfig) { + return GroupsApiFp(this.configuration) + .getGroup(groupIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * If last-modified header is present it is used to check if the logo has been modified since the header date. If it hasn\'t been modified returns an empty 304 Not Modified response. If modified returns the image. If the group has no logo then returns a transparent 1x1 px PNG image. + * @summary Get the group logo image. + * @param {number} groupId Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public getGroupLogo(groupId: number, options?: AxiosRequestConfig) { + return GroupsApiFp(this.configuration) + .getGroupLogo(groupId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get group users + * @param {number} groupIdentifier Group identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public getGroupUsers(groupIdentifier: number, options?: AxiosRequestConfig) { + return GroupsApiFp(this.configuration) + .getGroupUsers(groupIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The catalog contains one or more groups. By default, there is 3 reserved groups (Internet, Intranet, Guest) and a sample group.
This service returns all catalog groups when not authenticated or when current is user is an administrator. The list can contains or not reserved groups depending on the parameters.
When authenticated, return user groups optionally filtered on a specific user profile. + * @summary Get groups + * @param {boolean} [withReservedGroup] Including Internet, Intranet, Guest groups or not + * @param {string} [profile] For a specific profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public getGroups( + withReservedGroup?: boolean, + profile?: string, + options?: AxiosRequestConfig + ) { + return GroupsApiFp(this.configuration) + .getGroups(withReservedGroup, profile, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a group + * @param {number} groupIdentifier Group identifier + * @param {Group} group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public updateGroup( + groupIdentifier: number, + group: Group, + options?: AxiosRequestConfig + ) { + return GroupsApiFp(this.configuration) + .updateGroup(groupIdentifier, group, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * HarvestersApi - axios parameter creator + * @export + */ +export const HarvestersApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Assign harvester records to a new source + * @param {string} harvesterUuid The harvester UUID + * @param {string} source The target source UUID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + assignHarvestedRecordToSource: async ( + harvesterUuid: string, + source: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'harvesterUuid' is not null or undefined + assertParamExists( + "assignHarvestedRecordToSource", + "harvesterUuid", + harvesterUuid + ); + // verify required parameter 'source' is not null or undefined + assertParamExists("assignHarvestedRecordToSource", "source", source); + const localVarPath = `/harvesters/{harvesterUuid}/assign`.replace( + `{${"harvesterUuid"}}`, + encodeURIComponent(String(harvesterUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (source !== undefined) { + localVarQueryParameter["source"] = source; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Check if a harvester name or host already exist + * @param {string} property The harvester property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkHarvesterPropertyExist: async ( + property: string, + exist: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'property' is not null or undefined + assertParamExists("checkHarvesterPropertyExist", "property", property); + // verify required parameter 'exist' is not null or undefined + assertParamExists("checkHarvesterPropertyExist", "exist", exist); + const localVarPath = `/harvesters/properties/{property}`.replace( + `{${"property"}}`, + encodeURIComponent(String(property)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (exist !== undefined) { + localVarQueryParameter["exist"] = exist; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * HarvestersApi - functional programming interface + * @export + */ +export const HarvestersApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + HarvestersApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Assign harvester records to a new source + * @param {string} harvesterUuid The harvester UUID + * @param {string} source The target source UUID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async assignHarvestedRecordToSource( + harvesterUuid: string, + source: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.assignHarvestedRecordToSource( + harvesterUuid, + source, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Check if a harvester name or host already exist + * @param {string} property The harvester property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async checkHarvesterPropertyExist( + property: string, + exist: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.checkHarvesterPropertyExist( + property, + exist, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * HarvestersApi - factory interface + * @export + */ +export const HarvestersApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = HarvestersApiFp(configuration); + return { + /** + * + * @summary Assign harvester records to a new source + * @param {string} harvesterUuid The harvester UUID + * @param {string} source The target source UUID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + assignHarvestedRecordToSource( + harvesterUuid: string, + source: string, + options?: any + ): AxiosPromise { + return localVarFp + .assignHarvestedRecordToSource(harvesterUuid, source, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Check if a harvester name or host already exist + * @param {string} property The harvester property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkHarvesterPropertyExist( + property: string, + exist: string, + options?: any + ): AxiosPromise { + return localVarFp + .checkHarvesterPropertyExist(property, exist, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * HarvestersApi - object-oriented interface + * @export + * @class HarvestersApi + * @extends {BaseAPI} + */ +export class HarvestersApi extends BaseAPI { + /** + * + * @summary Assign harvester records to a new source + * @param {string} harvesterUuid The harvester UUID + * @param {string} source The target source UUID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HarvestersApi + */ + public assignHarvestedRecordToSource( + harvesterUuid: string, + source: string, + options?: AxiosRequestConfig + ) { + return HarvestersApiFp(this.configuration) + .assignHarvestedRecordToSource(harvesterUuid, source, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Check if a harvester name or host already exist + * @param {string} property The harvester property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HarvestersApi + */ + public checkHarvesterPropertyExist( + property: string, + exist: string, + options?: AxiosRequestConfig + ) { + return HarvestersApiFp(this.configuration) + .checkHarvesterPropertyExist(property, exist, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * IdentifiersApi - axios parameter creator + * @export + */ +export const IdentifiersApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Add an identifier template + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addIdentifier: async ( + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataIdentifierTemplate' is not null or undefined + assertParamExists( + "addIdentifier", + "metadataIdentifierTemplate", + metadataIdentifierTemplate + ); + const localVarPath = `/identifiers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + metadataIdentifierTemplate, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove an identifier template + * @param {number} identifier Identifier template identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteIdentifier: async ( + identifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'identifier' is not null or undefined + assertParamExists("deleteIdentifier", "identifier", identifier); + const localVarPath = `/identifiers/{identifier}`.replace( + `{${"identifier"}}`, + encodeURIComponent(String(identifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Identifier templates are used to create record UUIDs havind a particular structure. The template will be used when user creates a new record. The template identifier to use is defined in the administration > settings. + * @summary Get identifier templates + * @param {boolean} [userDefinedOnly] Only user defined ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIdentifiers: async ( + userDefinedOnly?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/identifiers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (userDefinedOnly !== undefined) { + localVarQueryParameter["userDefinedOnly"] = userDefinedOnly; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update an identifier template + * @param {number} identifier Identifier template identifier + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateIdentifier: async ( + identifier: number, + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'identifier' is not null or undefined + assertParamExists("updateIdentifier", "identifier", identifier); + // verify required parameter 'metadataIdentifierTemplate' is not null or undefined + assertParamExists( + "updateIdentifier", + "metadataIdentifierTemplate", + metadataIdentifierTemplate + ); + const localVarPath = `/identifiers/{identifier}`.replace( + `{${"identifier"}}`, + encodeURIComponent(String(identifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + metadataIdentifierTemplate, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * IdentifiersApi - functional programming interface + * @export + */ +export const IdentifiersApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + IdentifiersApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Add an identifier template + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addIdentifier( + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addIdentifier( + metadataIdentifierTemplate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove an identifier template + * @param {number} identifier Identifier template identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteIdentifier( + identifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteIdentifier(identifier, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Identifier templates are used to create record UUIDs havind a particular structure. The template will be used when user creates a new record. The template identifier to use is defined in the administration > settings. + * @summary Get identifier templates + * @param {boolean} [userDefinedOnly] Only user defined ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getIdentifiers( + userDefinedOnly?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getIdentifiers( + userDefinedOnly, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update an identifier template + * @param {number} identifier Identifier template identifier + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateIdentifier( + identifier: number, + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateIdentifier( + identifier, + metadataIdentifierTemplate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * IdentifiersApi - factory interface + * @export + */ +export const IdentifiersApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = IdentifiersApiFp(configuration); + return { + /** + * + * @summary Add an identifier template + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addIdentifier( + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options?: any + ): AxiosPromise { + return localVarFp + .addIdentifier(metadataIdentifierTemplate, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove an identifier template + * @param {number} identifier Identifier template identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteIdentifier(identifier: number, options?: any): AxiosPromise { + return localVarFp + .deleteIdentifier(identifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * Identifier templates are used to create record UUIDs havind a particular structure. The template will be used when user creates a new record. The template identifier to use is defined in the administration > settings. + * @summary Get identifier templates + * @param {boolean} [userDefinedOnly] Only user defined ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIdentifiers( + userDefinedOnly?: boolean, + options?: any + ): AxiosPromise> { + return localVarFp + .getIdentifiers(userDefinedOnly, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update an identifier template + * @param {number} identifier Identifier template identifier + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateIdentifier( + identifier: number, + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options?: any + ): AxiosPromise { + return localVarFp + .updateIdentifier(identifier, metadataIdentifierTemplate, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * IdentifiersApi - object-oriented interface + * @export + * @class IdentifiersApi + * @extends {BaseAPI} + */ +export class IdentifiersApi extends BaseAPI { + /** + * + * @summary Add an identifier template + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IdentifiersApi + */ + public addIdentifier( + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options?: AxiosRequestConfig + ) { + return IdentifiersApiFp(this.configuration) + .addIdentifier(metadataIdentifierTemplate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove an identifier template + * @param {number} identifier Identifier template identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IdentifiersApi + */ + public deleteIdentifier(identifier: number, options?: AxiosRequestConfig) { + return IdentifiersApiFp(this.configuration) + .deleteIdentifier(identifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Identifier templates are used to create record UUIDs havind a particular structure. The template will be used when user creates a new record. The template identifier to use is defined in the administration > settings. + * @summary Get identifier templates + * @param {boolean} [userDefinedOnly] Only user defined ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IdentifiersApi + */ + public getIdentifiers( + userDefinedOnly?: boolean, + options?: AxiosRequestConfig + ) { + return IdentifiersApiFp(this.configuration) + .getIdentifiers(userDefinedOnly, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update an identifier template + * @param {number} identifier Identifier template identifier + * @param {MetadataIdentifierTemplate} metadataIdentifierTemplate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IdentifiersApi + */ + public updateIdentifier( + identifier: number, + metadataIdentifierTemplate: MetadataIdentifierTemplate, + options?: AxiosRequestConfig + ) { + return IdentifiersApiFp(this.configuration) + .updateIdentifier(identifier, metadataIdentifierTemplate, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * LanguagesApi - axios parameter creator + * @export + */ +export const LanguagesApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Add all default translations from all *Desc tables in the database. This operation will only add translations for a default catalog installation. Defaults can be customized in SQL scripts located in WEB-INF/classes/setup/sql/data/_*. + * @summary Add a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addLanguages: async ( + langCode: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'langCode' is not null or undefined + assertParamExists("addLanguages", "langCode", langCode); + const localVarPath = `/languages/{langCode}`.replace( + `{${"langCode"}}`, + encodeURIComponent(String(langCode)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete all translations from all *Desc tables in the database. Warning: This will also remove all translations you may have done to those objects (eg. custom groups). + * @summary Remove a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteLanguage: async ( + langCode: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'langCode' is not null or undefined + assertParamExists("deleteLanguage", "langCode", langCode); + const localVarPath = `/languages/{langCode}`.replace( + `{${"langCode"}}`, + encodeURIComponent(String(langCode)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Languages available in this version of the application. Those that you can add using PUT operation and which have SQL script to initialize the language. + * @summary Get languages available in the application + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getApplicationLanguages: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/languages/application`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * ISO languages provides a list of all languages (eg. used for autocompletion in metadata editor). + * @summary Get ISO languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIsoLanguages: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/isolanguages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Languages for the application having translations in the database. All tables with \'Desc\' suffix contains translation for some domain objects like groups, tags, ... + * @summary Get languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLanguages: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/languages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * LanguagesApi - functional programming interface + * @export + */ +export const LanguagesApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + LanguagesApiAxiosParamCreator(configuration); + return { + /** + * Add all default translations from all *Desc tables in the database. This operation will only add translations for a default catalog installation. Defaults can be customized in SQL scripts located in WEB-INF/classes/setup/sql/data/_*. + * @summary Add a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addLanguages( + langCode: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addLanguages( + langCode, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Delete all translations from all *Desc tables in the database. Warning: This will also remove all translations you may have done to those objects (eg. custom groups). + * @summary Remove a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteLanguage( + langCode: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLanguage( + langCode, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Languages available in this version of the application. Those that you can add using PUT operation and which have SQL script to initialize the language. + * @summary Get languages available in the application + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getApplicationLanguages( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getApplicationLanguages(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * ISO languages provides a list of all languages (eg. used for autocompletion in metadata editor). + * @summary Get ISO languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getIsoLanguages( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getIsoLanguages( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Languages for the application having translations in the database. All tables with \'Desc\' suffix contains translation for some domain objects like groups, tags, ... + * @summary Get languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLanguages( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLanguages( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * LanguagesApi - factory interface + * @export + */ +export const LanguagesApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = LanguagesApiFp(configuration); + return { + /** + * Add all default translations from all *Desc tables in the database. This operation will only add translations for a default catalog installation. Defaults can be customized in SQL scripts located in WEB-INF/classes/setup/sql/data/_*. + * @summary Add a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addLanguages(langCode: string, options?: any): AxiosPromise { + return localVarFp + .addLanguages(langCode, options) + .then((request) => request(axios, basePath)); + }, + /** + * Delete all translations from all *Desc tables in the database. Warning: This will also remove all translations you may have done to those objects (eg. custom groups). + * @summary Remove a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteLanguage(langCode: string, options?: any): AxiosPromise { + return localVarFp + .deleteLanguage(langCode, options) + .then((request) => request(axios, basePath)); + }, + /** + * Languages available in this version of the application. Those that you can add using PUT operation and which have SQL script to initialize the language. + * @summary Get languages available in the application + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getApplicationLanguages(options?: any): AxiosPromise> { + return localVarFp + .getApplicationLanguages(options) + .then((request) => request(axios, basePath)); + }, + /** + * ISO languages provides a list of all languages (eg. used for autocompletion in metadata editor). + * @summary Get ISO languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIsoLanguages(options?: any): AxiosPromise> { + return localVarFp + .getIsoLanguages(options) + .then((request) => request(axios, basePath)); + }, + /** + * Languages for the application having translations in the database. All tables with \'Desc\' suffix contains translation for some domain objects like groups, tags, ... + * @summary Get languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLanguages(options?: any): AxiosPromise> { + return localVarFp + .getLanguages(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LanguagesApi - object-oriented interface + * @export + * @class LanguagesApi + * @extends {BaseAPI} + */ +export class LanguagesApi extends BaseAPI { + /** + * Add all default translations from all *Desc tables in the database. This operation will only add translations for a default catalog installation. Defaults can be customized in SQL scripts located in WEB-INF/classes/setup/sql/data/_*. + * @summary Add a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LanguagesApi + */ + public addLanguages(langCode: string, options?: AxiosRequestConfig) { + return LanguagesApiFp(this.configuration) + .addLanguages(langCode, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Delete all translations from all *Desc tables in the database. Warning: This will also remove all translations you may have done to those objects (eg. custom groups). + * @summary Remove a language + * @param {string} langCode ISO 3 letter code + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LanguagesApi + */ + public deleteLanguage(langCode: string, options?: AxiosRequestConfig) { + return LanguagesApiFp(this.configuration) + .deleteLanguage(langCode, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Languages available in this version of the application. Those that you can add using PUT operation and which have SQL script to initialize the language. + * @summary Get languages available in the application + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LanguagesApi + */ + public getApplicationLanguages(options?: AxiosRequestConfig) { + return LanguagesApiFp(this.configuration) + .getApplicationLanguages(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * ISO languages provides a list of all languages (eg. used for autocompletion in metadata editor). + * @summary Get ISO languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LanguagesApi + */ + public getIsoLanguages(options?: AxiosRequestConfig) { + return LanguagesApiFp(this.configuration) + .getIsoLanguages(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Languages for the application having translations in the database. All tables with \'Desc\' suffix contains translation for some domain objects like groups, tags, ... + * @summary Get languages + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LanguagesApi + */ + public getLanguages(options?: AxiosRequestConfig) { + return LanguagesApiFp(this.configuration) + .getLanguages(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * LinksApi - axios parameter creator + * @export + */ +export const LinksApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * One of uuids or bucket parameter is required if not an Administrator. Only records that you can edit will be validated. + * @summary Analyze records links + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [removeFirst] Only allowed if Administrator. + * @param {boolean} [analyze] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + analyzeRecordLinks: async ( + uuids?: Array, + bucket?: string, + removeFirst?: boolean, + analyze?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/links`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (removeFirst !== undefined) { + localVarQueryParameter["removeFirst"] = removeFirst; + } + + if (analyze !== undefined) { + localVarQueryParameter["analyze"] = analyze; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get record links + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordLinks: async ( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/links`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (filter !== undefined) { + localVarQueryParameter["filter"] = filter; + } + + if (groupIdFilter) { + localVarQueryParameter["groupIdFilter"] = groupIdFilter; + } + + if (groupOwnerIdFilter) { + localVarQueryParameter["groupOwnerIdFilter"] = groupOwnerIdFilter; + } + + if (page !== undefined) { + localVarQueryParameter["page"] = page; + } + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + if (sort !== undefined) { + localVarQueryParameter["sort"] = sort; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get record links as CSV + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordLinksAsCsv: async ( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/links/csv`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (filter !== undefined) { + localVarQueryParameter["filter"] = filter; + } + + if (groupIdFilter) { + localVarQueryParameter["groupIdFilter"] = groupIdFilter; + } + + if (groupOwnerIdFilter) { + localVarQueryParameter["groupOwnerIdFilter"] = groupOwnerIdFilter; + } + + if (page !== undefined) { + localVarQueryParameter["page"] = page; + } + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + if (sort !== undefined) { + localVarQueryParameter["sort"] = sort; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove all links and status history + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + purgeAll: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/links`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * LinksApi - functional programming interface + * @export + */ +export const LinksApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = LinksApiAxiosParamCreator(configuration); + return { + /** + * One of uuids or bucket parameter is required if not an Administrator. Only records that you can edit will be validated. + * @summary Analyze records links + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [removeFirst] Only allowed if Administrator. + * @param {boolean} [analyze] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async analyzeRecordLinks( + uuids?: Array, + bucket?: string, + removeFirst?: boolean, + analyze?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.analyzeRecordLinks( + uuids, + bucket, + removeFirst, + analyze, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get record links + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordLinks( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordLinks( + filter, + groupIdFilter, + groupOwnerIdFilter, + page, + size, + sort, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Get record links as CSV + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordLinksAsCsv( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getRecordLinksAsCsv( + filter, + groupIdFilter, + groupOwnerIdFilter, + page, + size, + sort, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove all links and status history + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async purgeAll( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.purgeAll( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * LinksApi - factory interface + * @export + */ +export const LinksApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = LinksApiFp(configuration); + return { + /** + * One of uuids or bucket parameter is required if not an Administrator. Only records that you can edit will be validated. + * @summary Analyze records links + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [removeFirst] Only allowed if Administrator. + * @param {boolean} [analyze] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + analyzeRecordLinks( + uuids?: Array, + bucket?: string, + removeFirst?: boolean, + analyze?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .analyzeRecordLinks(uuids, bucket, removeFirst, analyze, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get record links + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordLinks( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordLinks( + filter, + groupIdFilter, + groupOwnerIdFilter, + page, + size, + sort, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Get record links as CSV + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordLinksAsCsv( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordLinksAsCsv( + filter, + groupIdFilter, + groupOwnerIdFilter, + page, + size, + sort, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove all links and status history + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + purgeAll(options?: any): AxiosPromise { + return localVarFp + .purgeAll(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LinksApi - object-oriented interface + * @export + * @class LinksApi + * @extends {BaseAPI} + */ +export class LinksApi extends BaseAPI { + /** + * One of uuids or bucket parameter is required if not an Administrator. Only records that you can edit will be validated. + * @summary Analyze records links + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [removeFirst] Only allowed if Administrator. + * @param {boolean} [analyze] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LinksApi + */ + public analyzeRecordLinks( + uuids?: Array, + bucket?: string, + removeFirst?: boolean, + analyze?: boolean, + options?: AxiosRequestConfig + ) { + return LinksApiFp(this.configuration) + .analyzeRecordLinks(uuids, bucket, removeFirst, analyze, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get record links + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LinksApi + */ + public getRecordLinks( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options?: AxiosRequestConfig + ) { + return LinksApiFp(this.configuration) + .getRecordLinks( + filter, + groupIdFilter, + groupOwnerIdFilter, + page, + size, + sort, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get record links as CSV + * @param {object} [filter] Filter, e.g. \"{url: \'png\', lastState: \'ko\', records: \'e421\', groupId: 12}\", lastState being \'ok\'/\'ko\'/\'unknown\' + * @param {Array} [groupIdFilter] Optional, filter links to records published in that group. + * @param {Array} [groupOwnerIdFilter] Optional, filter links to records created in that group. + * @param {number} [page] Results page you want to retrieve (0..N) + * @param {number} [size] Number of records per page. + * @param {string} [sort] Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LinksApi + */ + public getRecordLinksAsCsv( + filter?: object, + groupIdFilter?: Array, + groupOwnerIdFilter?: Array, + page?: number, + size?: number, + sort?: string, + options?: AxiosRequestConfig + ) { + return LinksApiFp(this.configuration) + .getRecordLinksAsCsv( + filter, + groupIdFilter, + groupOwnerIdFilter, + page, + size, + sort, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove all links and status history + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LinksApi + */ + public purgeAll(options?: AxiosRequestConfig) { + return LinksApiFp(this.configuration) + .purgeAll(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * LogosApi - axios parameter creator + * @export + */ +export const LogosApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Add a logo + * @param {Array} file The logo image to upload + * @param {boolean} [overwrite] Overwrite if exists + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addLogo: async ( + file: Array, + overwrite?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists("addLogo", "file", file); + const localVarPath = `/logos`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (file) { + localVarQueryParameter["file"] = file; + } + + if (overwrite !== undefined) { + localVarQueryParameter["overwrite"] = overwrite; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove a logo + * @param {string} file The logo filename to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteLogo: async ( + file: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists("deleteLogo", "file", file); + const localVarPath = `/logos/{file}`.replace( + `{${"file"}}`, + encodeURIComponent(String(file)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Logos are used for the catalog, the groups logos, and harvester icons. Logos are stored in the data directory in /resources/images/harvesting.
Records are attached to a source. A source can be the local catalog or a harvester node. When a source is created, its logo is located in the images/logos folder with the source UUID as filename. For some sources the logo can be automatically retrieved (eg. when harvesting GeoNetwork catalogs). For others, the logo is usually manually defined when configuring the harvester. + * @summary Get all logos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogos: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/logos`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * LogosApi - functional programming interface + * @export + */ +export const LogosApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = LogosApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Add a logo + * @param {Array} file The logo image to upload + * @param {boolean} [overwrite] Overwrite if exists + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addLogo( + file: Array, + overwrite?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addLogo( + file, + overwrite, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove a logo + * @param {string} file The logo filename to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteLogo( + file: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLogo( + file, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Logos are used for the catalog, the groups logos, and harvester icons. Logos are stored in the data directory in /resources/images/harvesting.
Records are attached to a source. A source can be the local catalog or a harvester node. When a source is created, its logo is located in the images/logos folder with the source UUID as filename. For some sources the logo can be automatically retrieved (eg. when harvesting GeoNetwork catalogs). For others, the logo is usually manually defined when configuring the harvester. + * @summary Get all logos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLogos( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLogos( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * LogosApi - factory interface + * @export + */ +export const LogosApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = LogosApiFp(configuration); + return { + /** + * + * @summary Add a logo + * @param {Array} file The logo image to upload + * @param {boolean} [overwrite] Overwrite if exists + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addLogo( + file: Array, + overwrite?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .addLogo(file, overwrite, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove a logo + * @param {string} file The logo filename to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteLogo(file: string, options?: any): AxiosPromise { + return localVarFp + .deleteLogo(file, options) + .then((request) => request(axios, basePath)); + }, + /** + * Logos are used for the catalog, the groups logos, and harvester icons. Logos are stored in the data directory in /resources/images/harvesting.
Records are attached to a source. A source can be the local catalog or a harvester node. When a source is created, its logo is located in the images/logos folder with the source UUID as filename. For some sources the logo can be automatically retrieved (eg. when harvesting GeoNetwork catalogs). For others, the logo is usually manually defined when configuring the harvester. + * @summary Get all logos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogos(options?: any): AxiosPromise> { + return localVarFp + .getLogos(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LogosApi - object-oriented interface + * @export + * @class LogosApi + * @extends {BaseAPI} + */ +export class LogosApi extends BaseAPI { + /** + * + * @summary Add a logo + * @param {Array} file The logo image to upload + * @param {boolean} [overwrite] Overwrite if exists + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogosApi + */ + public addLogo( + file: Array, + overwrite?: boolean, + options?: AxiosRequestConfig + ) { + return LogosApiFp(this.configuration) + .addLogo(file, overwrite, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove a logo + * @param {string} file The logo filename to delete + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogosApi + */ + public deleteLogo(file: string, options?: AxiosRequestConfig) { + return LogosApiFp(this.configuration) + .deleteLogo(file, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Logos are used for the catalog, the groups logos, and harvester icons. Logos are stored in the data directory in /resources/images/harvesting.
Records are attached to a source. A source can be the local catalog or a harvester node. When a source is created, its logo is located in the images/logos folder with the source UUID as filename. For some sources the logo can be automatically retrieved (eg. when harvesting GeoNetwork catalogs). For others, the logo is usually manually defined when configuring the harvester. + * @summary Get all logos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogosApi + */ + public getLogos(options?: AxiosRequestConfig) { + return LogosApiFp(this.configuration) + .getLogos(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * MapserversApi - axios parameter creator + * @export + */ +export const MapserversApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Return the id of the newly created mapserver. + * @summary Add a mapserver + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addMapserver: async ( + mapServer: MapServer, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapServer' is not null or undefined + assertParamExists("addMapserver", "mapServer", mapServer); + const localVarPath = `/mapservers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mapServer, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteMapserver: async ( + mapserverId: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("deleteMapserver", "mapserverId", mapserverId); + const localVarPath = `/mapservers/{mapserverId}`.replace( + `{${"mapserverId"}}`, + encodeURIComponent(String(mapserverId)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove a metadata mapserver resource + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteMapserverResource: async ( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("deleteMapserverResource", "mapserverId", mapserverId); + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "deleteMapserverResource", + "metadataUuid", + metadataUuid + ); + // verify required parameter 'resource' is not null or undefined + assertParamExists("deleteMapserverResource", "resource", resource); + const localVarPath = `/mapservers/{mapserverId}/records/{metadataUuid}` + .replace(`{${"mapserverId"}}`, encodeURIComponent(String(mapserverId))) + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (resource !== undefined) { + localVarQueryParameter["resource"] = resource; + } + + if (metadataTitle !== undefined) { + localVarQueryParameter["metadataTitle"] = metadataTitle; + } + + if (metadataAbstract !== undefined) { + localVarQueryParameter["metadataAbstract"] = metadataAbstract; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMapserver: async ( + mapserverId: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("getMapserver", "mapserverId", mapserverId); + const localVarPath = `/mapservers/{mapserverId}`.replace( + `{${"mapserverId"}}`, + encodeURIComponent(String(mapserverId)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Check metadata mapserver resource is published + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMapserverResource: async ( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("getMapserverResource", "mapserverId", mapserverId); + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getMapserverResource", "metadataUuid", metadataUuid); + // verify required parameter 'resource' is not null or undefined + assertParamExists("getMapserverResource", "resource", resource); + const localVarPath = `/mapservers/{mapserverId}/records/{metadataUuid}` + .replace(`{${"mapserverId"}}`, encodeURIComponent(String(mapserverId))) + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (resource !== undefined) { + localVarQueryParameter["resource"] = resource; + } + + if (metadataTitle !== undefined) { + localVarQueryParameter["metadataTitle"] = metadataTitle; + } + + if (metadataAbstract !== undefined) { + localVarQueryParameter["metadataAbstract"] = metadataAbstract; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Mapservers are used by the catalog to publish record attachments (eg. ZIP file with shape) or record associated resources (eg. database table, file on the local network) in a remote mapserver like GeoServer or MapServer. The catalog communicate with the mapserver using GeoServer REST API. + * @summary Get mapservers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMapservers: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/mapservers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Publish a metadata resource in a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishMapserverResource: async ( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("publishMapserverResource", "mapserverId", mapserverId); + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "publishMapserverResource", + "metadataUuid", + metadataUuid + ); + // verify required parameter 'resource' is not null or undefined + assertParamExists("publishMapserverResource", "resource", resource); + const localVarPath = `/mapservers/{mapserverId}/records/{metadataUuid}` + .replace(`{${"mapserverId"}}`, encodeURIComponent(String(mapserverId))) + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (resource !== undefined) { + localVarQueryParameter["resource"] = resource; + } + + if (metadataTitle !== undefined) { + localVarQueryParameter["metadataTitle"] = metadataTitle; + } + + if (metadataAbstract !== undefined) { + localVarQueryParameter["metadataAbstract"] = metadataAbstract; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The remote mapserver REST API may require basic authentication. This operation set the username and password. + * @summary Update a mapserver authentication + * @param {number} mapserverId Mapserver identifier + * @param {string} username User name + * @param {string} password Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMapserver: async ( + mapserverId: number, + username: string, + password: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("updateMapserver", "mapserverId", mapserverId); + // verify required parameter 'username' is not null or undefined + assertParamExists("updateMapserver", "username", username); + // verify required parameter 'password' is not null or undefined + assertParamExists("updateMapserver", "password", password); + const localVarPath = `/mapservers/{mapserverId}/auth`.replace( + `{${"mapserverId"}}`, + encodeURIComponent(String(mapserverId)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (username !== undefined) { + localVarQueryParameter["username"] = username; + } + + if (password !== undefined) { + localVarQueryParameter["password"] = password; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMapserver1: async ( + mapserverId: number, + mapServer: MapServer, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'mapserverId' is not null or undefined + assertParamExists("updateMapserver1", "mapserverId", mapserverId); + // verify required parameter 'mapServer' is not null or undefined + assertParamExists("updateMapserver1", "mapServer", mapServer); + const localVarPath = `/mapservers/{mapserverId}`.replace( + `{${"mapserverId"}}`, + encodeURIComponent(String(mapserverId)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mapServer, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * MapserversApi - functional programming interface + * @export + */ +export const MapserversApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + MapserversApiAxiosParamCreator(configuration); + return { + /** + * Return the id of the newly created mapserver. + * @summary Add a mapserver + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addMapserver( + mapServer: MapServer, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addMapserver( + mapServer, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteMapserver( + mapserverId: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMapserver( + mapserverId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove a metadata mapserver resource + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMapserver( + mapserverId: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMapserver( + mapserverId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Check metadata mapserver resource is published + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Mapservers are used by the catalog to publish record attachments (eg. ZIP file with shape) or record associated resources (eg. database table, file on the local network) in a remote mapserver like GeoServer or MapServer. The catalog communicate with the mapserver using GeoServer REST API. + * @summary Get mapservers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMapservers( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMapservers( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Publish a metadata resource in a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publishMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.publishMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * The remote mapserver REST API may require basic authentication. This operation set the username and password. + * @summary Update a mapserver authentication + * @param {number} mapserverId Mapserver identifier + * @param {string} username User name + * @param {string} password Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateMapserver( + mapserverId: number, + username: string, + password: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateMapserver( + mapserverId, + username, + password, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateMapserver1( + mapserverId: number, + mapServer: MapServer, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateMapserver1( + mapserverId, + mapServer, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * MapserversApi - factory interface + * @export + */ +export const MapserversApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = MapserversApiFp(configuration); + return { + /** + * Return the id of the newly created mapserver. + * @summary Add a mapserver + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addMapserver(mapServer: MapServer, options?: any): AxiosPromise { + return localVarFp + .addMapserver(mapServer, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteMapserver(mapserverId: number, options?: any): AxiosPromise { + return localVarFp + .deleteMapserver(mapserverId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove a metadata mapserver resource + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMapserver(mapserverId: string, options?: any): AxiosPromise { + return localVarFp + .getMapserver(mapserverId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Check metadata mapserver resource is published + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Mapservers are used by the catalog to publish record attachments (eg. ZIP file with shape) or record associated resources (eg. database table, file on the local network) in a remote mapserver like GeoServer or MapServer. The catalog communicate with the mapserver using GeoServer REST API. + * @summary Get mapservers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMapservers(options?: any): AxiosPromise { + return localVarFp + .getMapservers(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Publish a metadata resource in a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: any + ): AxiosPromise { + return localVarFp + .publishMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * The remote mapserver REST API may require basic authentication. This operation set the username and password. + * @summary Update a mapserver authentication + * @param {number} mapserverId Mapserver identifier + * @param {string} username User name + * @param {string} password Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMapserver( + mapserverId: number, + username: string, + password: string, + options?: any + ): AxiosPromise { + return localVarFp + .updateMapserver(mapserverId, username, password, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMapserver1( + mapserverId: number, + mapServer: MapServer, + options?: any + ): AxiosPromise { + return localVarFp + .updateMapserver1(mapserverId, mapServer, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * MapserversApi - object-oriented interface + * @export + * @class MapserversApi + * @extends {BaseAPI} + */ +export class MapserversApi extends BaseAPI { + /** + * Return the id of the newly created mapserver. + * @summary Add a mapserver + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public addMapserver(mapServer: MapServer, options?: AxiosRequestConfig) { + return MapserversApiFp(this.configuration) + .addMapserver(mapServer, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public deleteMapserver(mapserverId: number, options?: AxiosRequestConfig) { + return MapserversApiFp(this.configuration) + .deleteMapserver(mapserverId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove a metadata mapserver resource + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public deleteMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: AxiosRequestConfig + ) { + return MapserversApiFp(this.configuration) + .deleteMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public getMapserver(mapserverId: string, options?: AxiosRequestConfig) { + return MapserversApiFp(this.configuration) + .getMapserver(mapserverId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Check metadata mapserver resource is published + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public getMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: AxiosRequestConfig + ) { + return MapserversApiFp(this.configuration) + .getMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Mapservers are used by the catalog to publish record attachments (eg. ZIP file with shape) or record associated resources (eg. database table, file on the local network) in a remote mapserver like GeoServer or MapServer. The catalog communicate with the mapserver using GeoServer REST API. + * @summary Get mapservers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public getMapservers(options?: AxiosRequestConfig) { + return MapserversApiFp(this.configuration) + .getMapservers(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Publish a metadata resource in a mapserver + * @param {string} mapserverId Mapserver identifier + * @param {string} metadataUuid Record UUID. + * @param {string} resource Resource name (could be a file or a db connection) + * @param {string} [metadataTitle] Metadata title + * @param {string} [metadataAbstract] Metadata abstract + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public publishMapserverResource( + mapserverId: string, + metadataUuid: string, + resource: string, + metadataTitle?: string, + metadataAbstract?: string, + options?: AxiosRequestConfig + ) { + return MapserversApiFp(this.configuration) + .publishMapserverResource( + mapserverId, + metadataUuid, + resource, + metadataTitle, + metadataAbstract, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The remote mapserver REST API may require basic authentication. This operation set the username and password. + * @summary Update a mapserver authentication + * @param {number} mapserverId Mapserver identifier + * @param {string} username User name + * @param {string} password Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public updateMapserver( + mapserverId: number, + username: string, + password: string, + options?: AxiosRequestConfig + ) { + return MapserversApiFp(this.configuration) + .updateMapserver(mapserverId, username, password, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a mapserver + * @param {number} mapserverId Mapserver identifier + * @param {MapServer} mapServer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MapserversApi + */ + public updateMapserver1( + mapserverId: number, + mapServer: MapServer, + options?: AxiosRequestConfig + ) { + return MapserversApiFp(this.configuration) + .updateMapserver1(mapserverId, mapServer, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * MeApi - axios parameter creator + * @export + */ +export const MeApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * If not authenticated, return status 204 (NO_CONTENT), else return basic user information. This operation is usually used to know if current user is authenticated or not.It returns also info about groups and profiles. + * @summary Get information about me + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMe: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/me`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * MeApi - functional programming interface + * @export + */ +export const MeApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = MeApiAxiosParamCreator(configuration); + return { + /** + * If not authenticated, return status 204 (NO_CONTENT), else return basic user information. This operation is usually used to know if current user is authenticated or not.It returns also info about groups and profiles. + * @summary Get information about me + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMe( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMe(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * MeApi - factory interface + * @export + */ +export const MeApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = MeApiFp(configuration); + return { + /** + * If not authenticated, return status 204 (NO_CONTENT), else return basic user information. This operation is usually used to know if current user is authenticated or not.It returns also info about groups and profiles. + * @summary Get information about me + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMe(options?: any): AxiosPromise { + return localVarFp + .getMe(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * MeApi - object-oriented interface + * @export + * @class MeApi + * @extends {BaseAPI} + */ +export class MeApi extends BaseAPI { + /** + * If not authenticated, return status 204 (NO_CONTENT), else return basic user information. This operation is usually used to know if current user is authenticated or not.It returns also info about groups and profiles. + * @summary Get information about me + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MeApi + */ + public getMe(options?: AxiosRequestConfig) { + return MeApiFp(this.configuration) + .getMe(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * OperationsApi - axios parameter creator + * @export + */ +export const OperationsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Return the list of operations. Operations are used to define authorization per group. Extending the list of default operations (ie. view, dynamic, download, editing, notify, featured) might be feasible but is experimental.
Featured is not really used anymore (was used in past version for home page highlights). + * @summary Get operations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOperations: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/operations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * OperationsApi - functional programming interface + * @export + */ +export const OperationsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + OperationsApiAxiosParamCreator(configuration); + return { + /** + * Return the list of operations. Operations are used to define authorization per group. Extending the list of default operations (ie. view, dynamic, download, editing, notify, featured) might be feasible but is experimental.
Featured is not really used anymore (was used in past version for home page highlights). + * @summary Get operations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getOperations( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOperations( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * OperationsApi - factory interface + * @export + */ +export const OperationsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = OperationsApiFp(configuration); + return { + /** + * Return the list of operations. Operations are used to define authorization per group. Extending the list of default operations (ie. view, dynamic, download, editing, notify, featured) might be feasible but is experimental.
Featured is not really used anymore (was used in past version for home page highlights). + * @summary Get operations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOperations(options?: any): AxiosPromise> { + return localVarFp + .getOperations(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * OperationsApi - object-oriented interface + * @export + * @class OperationsApi + * @extends {BaseAPI} + */ +export class OperationsApi extends BaseAPI { + /** + * Return the list of operations. Operations are used to define authorization per group. Extending the list of default operations (ie. view, dynamic, download, editing, notify, featured) might be feasible but is experimental.
Featured is not really used anymore (was used in past version for home page highlights). + * @summary Get operations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OperationsApi + */ + public getOperations(options?: AxiosRequestConfig) { + return OperationsApiFp(this.configuration) + .getOperations(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * PagesApi - axios parameter creator + * @export + */ +export const PagesApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + *

Is not possible to load a link and a file at the same time.

More info + * @summary Add a new Page object in DRAFT section in status HIDDEN + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject} [inlineObject] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addPage: async ( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject?: InlineObject, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("addPage", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("addPage", "pageId", pageId); + // verify required parameter 'format' is not null or undefined + assertParamExists("addPage", "format", format); + const localVarPath = `/pages/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (language !== undefined) { + localVarQueryParameter["language"] = language; + } + + if (pageId !== undefined) { + localVarQueryParameter["pageId"] = pageId; + } + + if (link !== undefined) { + localVarQueryParameter["link"] = link; + } + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + inlineObject, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Adds the page to a section. This means that the link to the page will be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addPageToSection: async ( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("addPageToSection", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("addPageToSection", "pageId", pageId); + // verify required parameter 'section' is not null or undefined + assertParamExists("addPageToSection", "section", section); + const localVarPath = `/pages/{language}/{pageId}/{section}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))) + .replace(`{${"section"}}`, encodeURIComponent(String(section))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Changes the status of a page. + * @param {string} language + * @param {string} pageId + * @param {'PUBLIC' | 'PUBLIC_ONLY' | 'PRIVATE' | 'HIDDEN'} status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePageStatus: async ( + language: string, + pageId: string, + status: "PUBLIC" | "PUBLIC_ONLY" | "PRIVATE" | "HIDDEN", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("changePageStatus", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("changePageStatus", "pageId", pageId); + // verify required parameter 'status' is not null or undefined + assertParamExists("changePageStatus", "status", status); + const localVarPath = `/pages/{language}/{pageId}/{status}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))) + .replace(`{${"status"}}`, encodeURIComponent(String(status))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Delete a Page object + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletePage: async ( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("deletePage", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("deletePage", "pageId", pageId); + // verify required parameter 'format' is not null or undefined + assertParamExists("deletePage", "format", format); + const localVarPath = `/pages/{language}/{pageId}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Edit a Page content and format + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject1} [inlineObject1] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + editPage: async ( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject1?: InlineObject1, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("editPage", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("editPage", "pageId", pageId); + // verify required parameter 'format' is not null or undefined + assertParamExists("editPage", "format", format); + const localVarPath = `/pages/{language}/{pageId}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (link !== undefined) { + localVarQueryParameter["link"] = link; + } + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + inlineObject1, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Edit a Page name and language + * @param {string} language + * @param {string} pageId + * @param {string} [newLanguage] + * @param {string} [newPageId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + editPageName: async ( + language: string, + pageId: string, + newLanguage?: string, + newPageId?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("editPageName", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("editPageName", "pageId", pageId); + const localVarPath = `/pages/{language}/{pageId}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (newLanguage !== undefined) { + localVarQueryParameter["newLanguage"] = newLanguage; + } + + if (newPageId !== undefined) { + localVarQueryParameter["newPageId"] = newPageId; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Return the page object details except the content + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPage: async ( + language: string, + pageId: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("getPage", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("getPage", "pageId", pageId); + const localVarPath = `/pages/{language}/{pageId}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Return the static html content identified by pageId + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPageContent: async ( + language: string, + pageId: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("getPageContent", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("getPageContent", "pageId", pageId); + const localVarPath = `/pages/{language}/{pageId}/content` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary List all pages according to the filters + * @param {string} [language] + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} [section] + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} [format] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPages: async ( + language?: string, + section?: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + format?: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/pages/list`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (language !== undefined) { + localVarQueryParameter["language"] = language; + } + + if (section !== undefined) { + localVarQueryParameter["section"] = section; + } + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Removes the page from a section. This means that the link to the page will not be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removePageFromSection: async ( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'language' is not null or undefined + assertParamExists("removePageFromSection", "language", language); + // verify required parameter 'pageId' is not null or undefined + assertParamExists("removePageFromSection", "pageId", pageId); + // verify required parameter 'section' is not null or undefined + assertParamExists("removePageFromSection", "section", section); + const localVarPath = `/pages/{language}/{pageId}/{section}` + .replace(`{${"language"}}`, encodeURIComponent(String(language))) + .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId))) + .replace(`{${"section"}}`, encodeURIComponent(String(section))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * PagesApi - functional programming interface + * @export + */ +export const PagesApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration); + return { + /** + *

Is not possible to load a link and a file at the same time.

More info + * @summary Add a new Page object in DRAFT section in status HIDDEN + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject} [inlineObject] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addPage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject?: InlineObject, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPage( + language, + pageId, + format, + link, + inlineObject, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Adds the page to a section. This means that the link to the page will be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addPageToSection( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.addPageToSection( + language, + pageId, + section, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Changes the status of a page. + * @param {string} language + * @param {string} pageId + * @param {'PUBLIC' | 'PUBLIC_ONLY' | 'PRIVATE' | 'HIDDEN'} status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async changePageStatus( + language: string, + pageId: string, + status: "PUBLIC" | "PUBLIC_ONLY" | "PRIVATE" | "HIDDEN", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.changePageStatus( + language, + pageId, + status, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Delete a Page object + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deletePage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePage( + language, + pageId, + format, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Edit a Page content and format + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject1} [inlineObject1] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async editPage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject1?: InlineObject1, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.editPage( + language, + pageId, + format, + link, + inlineObject1, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Edit a Page name and language + * @param {string} language + * @param {string} pageId + * @param {string} [newLanguage] + * @param {string} [newPageId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async editPageName( + language: string, + pageId: string, + newLanguage?: string, + newPageId?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.editPageName( + language, + pageId, + newLanguage, + newPageId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Return the page object details except the content + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPage( + language: string, + pageId: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPage( + language, + pageId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Return the static html content identified by pageId + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPageContent( + language: string, + pageId: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPageContent( + language, + pageId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary List all pages according to the filters + * @param {string} [language] + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} [section] + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} [format] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listPages( + language?: string, + section?: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + format?: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.listPages( + language, + section, + format, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Removes the page from a section. This means that the link to the page will not be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async removePageFromSection( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.removePageFromSection( + language, + pageId, + section, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * PagesApi - factory interface + * @export + */ +export const PagesApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = PagesApiFp(configuration); + return { + /** + *

Is not possible to load a link and a file at the same time.

More info + * @summary Add a new Page object in DRAFT section in status HIDDEN + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject} [inlineObject] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addPage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject?: InlineObject, + options?: any + ): AxiosPromise { + return localVarFp + .addPage(language, pageId, format, link, inlineObject, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Adds the page to a section. This means that the link to the page will be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addPageToSection( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options?: any + ): AxiosPromise { + return localVarFp + .addPageToSection(language, pageId, section, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Changes the status of a page. + * @param {string} language + * @param {string} pageId + * @param {'PUBLIC' | 'PUBLIC_ONLY' | 'PRIVATE' | 'HIDDEN'} status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePageStatus( + language: string, + pageId: string, + status: "PUBLIC" | "PUBLIC_ONLY" | "PRIVATE" | "HIDDEN", + options?: any + ): AxiosPromise { + return localVarFp + .changePageStatus(language, pageId, status, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Delete a Page object + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deletePage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options?: any + ): AxiosPromise { + return localVarFp + .deletePage(language, pageId, format, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Edit a Page content and format + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject1} [inlineObject1] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + editPage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject1?: InlineObject1, + options?: any + ): AxiosPromise { + return localVarFp + .editPage(language, pageId, format, link, inlineObject1, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Edit a Page name and language + * @param {string} language + * @param {string} pageId + * @param {string} [newLanguage] + * @param {string} [newPageId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + editPageName( + language: string, + pageId: string, + newLanguage?: string, + newPageId?: string, + options?: any + ): AxiosPromise { + return localVarFp + .editPageName(language, pageId, newLanguage, newPageId, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Return the page object details except the content + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPage( + language: string, + pageId: string, + options?: any + ): AxiosPromise { + return localVarFp + .getPage(language, pageId, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Return the static html content identified by pageId + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPageContent( + language: string, + pageId: string, + options?: any + ): AxiosPromise { + return localVarFp + .getPageContent(language, pageId, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary List all pages according to the filters + * @param {string} [language] + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} [section] + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} [format] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPages( + language?: string, + section?: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + format?: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options?: any + ): AxiosPromise { + return localVarFp + .listPages(language, section, format, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Removes the page from a section. This means that the link to the page will not be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removePageFromSection( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options?: any + ): AxiosPromise { + return localVarFp + .removePageFromSection(language, pageId, section, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PagesApi - object-oriented interface + * @export + * @class PagesApi + * @extends {BaseAPI} + */ +export class PagesApi extends BaseAPI { + /** + *

Is not possible to load a link and a file at the same time.

More info + * @summary Add a new Page object in DRAFT section in status HIDDEN + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject} [inlineObject] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public addPage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject?: InlineObject, + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .addPage(language, pageId, format, link, inlineObject, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Adds the page to a section. This means that the link to the page will be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public addPageToSection( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .addPageToSection(language, pageId, section, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Changes the status of a page. + * @param {string} language + * @param {string} pageId + * @param {'PUBLIC' | 'PUBLIC_ONLY' | 'PRIVATE' | 'HIDDEN'} status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public changePageStatus( + language: string, + pageId: string, + status: "PUBLIC" | "PUBLIC_ONLY" | "PRIVATE" | "HIDDEN", + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .changePageStatus(language, pageId, status, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Delete a Page object + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public deletePage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .deletePage(language, pageId, format, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Edit a Page content and format + * @param {string} language + * @param {string} pageId + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} format + * @param {string} [link] + * @param {InlineObject1} [inlineObject1] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public editPage( + language: string, + pageId: string, + format: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + link?: string, + inlineObject1?: InlineObject1, + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .editPage(language, pageId, format, link, inlineObject1, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Edit a Page name and language + * @param {string} language + * @param {string} pageId + * @param {string} [newLanguage] + * @param {string} [newPageId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public editPageName( + language: string, + pageId: string, + newLanguage?: string, + newPageId?: string, + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .editPageName(language, pageId, newLanguage, newPageId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Return the page object details except the content + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public getPage( + language: string, + pageId: string, + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .getPage(language, pageId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Return the static html content identified by pageId + * @param {string} language + * @param {string} pageId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public getPageContent( + language: string, + pageId: string, + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .getPageContent(language, pageId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary List all pages according to the filters + * @param {string} [language] + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} [section] + * @param {'LINK' | 'HTML' | 'TEXT' | 'MARKDOWN' | 'WIKI'} [format] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public listPages( + language?: string, + section?: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + format?: "LINK" | "HTML" | "TEXT" | "MARKDOWN" | "WIKI", + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .listPages(language, section, format, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Removes the page from a section. This means that the link to the page will not be shown in the list associated to that section. + * @param {string} language + * @param {string} pageId + * @param {'ALL' | 'TOP' | 'FOOTER' | 'MENU' | 'SUBMENU' | 'CUSTOM_MENU1' | 'CUSTOM_MENU2' | 'CUSTOM_MENU3' | 'DRAFT'} section + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PagesApi + */ + public removePageFromSection( + language: string, + pageId: string, + section: + | "ALL" + | "TOP" + | "FOOTER" + | "MENU" + | "SUBMENU" + | "CUSTOM_MENU1" + | "CUSTOM_MENU2" + | "CUSTOM_MENU3" + | "DRAFT", + options?: AxiosRequestConfig + ) { + return PagesApiFp(this.configuration) + .removePageFromSection(language, pageId, section, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * ProcessesApi - axios parameter creator + * @export + */ +export const ProcessesApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Clear process reports list + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + _delete: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/processes/reports`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * When processing, the report is stored in memory and allows to retrieve progress repport during processing. Usually, process reports are returned by the synchronous processing operation. + * @summary Get current process reports + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProcessReport: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/processes/reports`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Preview result of a process applied to metadata records with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. Append mode has 2 limitations. First, it only support a set of records in the same schema. Secondly, it does not propagate URL parameters. This mode is mainly used to create custom reports based on metadata records content.If process name ends with \'.csv\', the XSL process output a text document which is returned. When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview process result applied to one or more records + * @param {string} process Process identifier + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [appendFirst] Append documents before processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewProcessRecords: async ( + process: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + appendFirst?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'process' is not null or undefined + assertParamExists("previewProcessRecords", "process", process); + const localVarPath = `/processes/{process}`.replace( + `{${"process"}}`, + encodeURIComponent(String(process)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (diffType !== undefined) { + localVarQueryParameter["diffType"] = diffType; + } + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (appendFirst !== undefined) { + localVarQueryParameter["appendFirst"] = appendFirst; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview of search and replace text. + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewProcessSearchAndReplace: async ( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'search' is not null or undefined + assertParamExists("previewProcessSearchAndReplace", "search", search); + const localVarPath = `/processes/db/search-and-replace`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (useRegexp !== undefined) { + localVarQueryParameter["useRegexp"] = useRegexp; + } + + if (search !== undefined) { + localVarQueryParameter["search"] = search; + } + + if (replace !== undefined) { + localVarQueryParameter["replace"] = replace; + } + + if (regexpFlags !== undefined) { + localVarQueryParameter["regexpFlags"] = regexpFlags; + } + + if (diffType !== undefined) { + localVarQueryParameter["diffType"] = diffType; + } + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process to one or more records + * @param {string} process Process identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processRecords: async ( + process: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'process' is not null or undefined + assertParamExists("processRecords", "process", process); + const localVarPath = `/processes/{process}`.replace( + `{${"process"}}`, + encodeURIComponent(String(process)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (updateDateStamp !== undefined) { + localVarQueryParameter["updateDateStamp"] = updateDateStamp; + } + + if (index !== undefined) { + localVarQueryParameter["index"] = index; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a database search and replace to one or more records + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processSearchAndReplace: async ( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'search' is not null or undefined + assertParamExists("processSearchAndReplace", "search", search); + const localVarPath = `/processes/db/search-and-replace`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (useRegexp !== undefined) { + localVarQueryParameter["useRegexp"] = useRegexp; + } + + if (search !== undefined) { + localVarQueryParameter["search"] = search; + } + + if (replace !== undefined) { + localVarQueryParameter["replace"] = replace; + } + + if (regexpFlags !== undefined) { + localVarQueryParameter["regexpFlags"] = regexpFlags; + } + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (updateDateStamp !== undefined) { + localVarQueryParameter["updateDateStamp"] = updateDateStamp; + } + + if (index !== undefined) { + localVarQueryParameter["index"] = index; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Service to apply replacements to one or more records. To define a replacement, send the following parameters: * mdsection-139815551372=metadata * mdfield-1398155513728=id.contact.individualName * replaceValue-1398155513728=Juan * searchValue-1398155513728=Jose TODO: Would be good to provide a simple object to define list of changes instead of group of parameters.
Batch editing can also be used for similar works. + * @summary Search and replace values in one or more records + * @param {string} [process] + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [isTesting] Test only (ie. metadata are not saved). Return the report only. + * @param {boolean} [isCaseInsensitive] Case insensitive search. + * @param {string} [vacuumMode] \'record\' to apply vacuum.xsl, \'element\' to remove empty elements. Empty to not affect empty elements. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchAndReplace: async ( + process?: string, + uuids?: Array, + bucket?: string, + isTesting?: boolean, + isCaseInsensitive?: boolean, + vacuumMode?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/processes/search-and-replace`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (process !== undefined) { + localVarQueryParameter["process"] = process; + } + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (isTesting !== undefined) { + localVarQueryParameter["isTesting"] = isTesting; + } + + if (isCaseInsensitive !== undefined) { + localVarQueryParameter["isCaseInsensitive"] = isCaseInsensitive; + } + + if (vacuumMode !== undefined) { + localVarQueryParameter["vacuumMode"] = vacuumMode; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * ProcessesApi - functional programming interface + * @export + */ +export const ProcessesApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + ProcessesApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Clear process reports list + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async _delete( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator._delete( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * When processing, the report is stored in memory and allows to retrieve progress repport during processing. Usually, process reports are returned by the synchronous processing operation. + * @summary Get current process reports + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getProcessReport( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getProcessReport(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Preview result of a process applied to metadata records with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. Append mode has 2 limitations. First, it only support a set of records in the same schema. Secondly, it does not propagate URL parameters. This mode is mainly used to create custom reports based on metadata records content.If process name ends with \'.csv\', the XSL process output a text document which is returned. When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview process result applied to one or more records + * @param {string} process Process identifier + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [appendFirst] Append documents before processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async previewProcessRecords( + process: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + appendFirst?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.previewProcessRecords( + process, + diffType, + uuids, + bucket, + appendFirst, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview of search and replace text. + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async previewProcessSearchAndReplace( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.previewProcessSearchAndReplace( + search, + useRegexp, + replace, + regexpFlags, + diffType, + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process to one or more records + * @param {string} process Process identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async processRecords( + process: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.processRecords( + process, + uuids, + bucket, + updateDateStamp, + index, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a database search and replace to one or more records + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async processSearchAndReplace( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.processSearchAndReplace( + search, + useRegexp, + replace, + regexpFlags, + uuids, + bucket, + updateDateStamp, + index, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Service to apply replacements to one or more records. To define a replacement, send the following parameters: * mdsection-139815551372=metadata * mdfield-1398155513728=id.contact.individualName * replaceValue-1398155513728=Juan * searchValue-1398155513728=Jose TODO: Would be good to provide a simple object to define list of changes instead of group of parameters.
Batch editing can also be used for similar works. + * @summary Search and replace values in one or more records + * @param {string} [process] + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [isTesting] Test only (ie. metadata are not saved). Return the report only. + * @param {boolean} [isCaseInsensitive] Case insensitive search. + * @param {string} [vacuumMode] \'record\' to apply vacuum.xsl, \'element\' to remove empty elements. Empty to not affect empty elements. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async searchAndReplace( + process?: string, + uuids?: Array, + bucket?: string, + isTesting?: boolean, + isCaseInsensitive?: boolean, + vacuumMode?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.searchAndReplace( + process, + uuids, + bucket, + isTesting, + isCaseInsensitive, + vacuumMode, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * ProcessesApi - factory interface + * @export + */ +export const ProcessesApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = ProcessesApiFp(configuration); + return { + /** + * + * @summary Clear process reports list + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + _delete(options?: any): AxiosPromise { + return localVarFp + ._delete(options) + .then((request) => request(axios, basePath)); + }, + /** + * When processing, the report is stored in memory and allows to retrieve progress repport during processing. Usually, process reports are returned by the synchronous processing operation. + * @summary Get current process reports + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProcessReport(options?: any): AxiosPromise> { + return localVarFp + .getProcessReport(options) + .then((request) => request(axios, basePath)); + }, + /** + * Preview result of a process applied to metadata records with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. Append mode has 2 limitations. First, it only support a set of records in the same schema. Secondly, it does not propagate URL parameters. This mode is mainly used to create custom reports based on metadata records content.If process name ends with \'.csv\', the XSL process output a text document which is returned. When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview process result applied to one or more records + * @param {string} process Process identifier + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [appendFirst] Append documents before processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewProcessRecords( + process: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + appendFirst?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .previewProcessRecords( + process, + diffType, + uuids, + bucket, + appendFirst, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview of search and replace text. + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewProcessSearchAndReplace( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .previewProcessSearchAndReplace( + search, + useRegexp, + replace, + regexpFlags, + diffType, + uuids, + bucket, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process to one or more records + * @param {string} process Process identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processRecords( + process: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .processRecords(process, uuids, bucket, updateDateStamp, index, options) + .then((request) => request(axios, basePath)); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a database search and replace to one or more records + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processSearchAndReplace( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .processSearchAndReplace( + search, + useRegexp, + replace, + regexpFlags, + uuids, + bucket, + updateDateStamp, + index, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Service to apply replacements to one or more records. To define a replacement, send the following parameters: * mdsection-139815551372=metadata * mdfield-1398155513728=id.contact.individualName * replaceValue-1398155513728=Juan * searchValue-1398155513728=Jose TODO: Would be good to provide a simple object to define list of changes instead of group of parameters.
Batch editing can also be used for similar works. + * @summary Search and replace values in one or more records + * @param {string} [process] + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [isTesting] Test only (ie. metadata are not saved). Return the report only. + * @param {boolean} [isCaseInsensitive] Case insensitive search. + * @param {string} [vacuumMode] \'record\' to apply vacuum.xsl, \'element\' to remove empty elements. Empty to not affect empty elements. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchAndReplace( + process?: string, + uuids?: Array, + bucket?: string, + isTesting?: boolean, + isCaseInsensitive?: boolean, + vacuumMode?: string, + options?: any + ): AxiosPromise { + return localVarFp + .searchAndReplace( + process, + uuids, + bucket, + isTesting, + isCaseInsensitive, + vacuumMode, + options + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ProcessesApi - object-oriented interface + * @export + * @class ProcessesApi + * @extends {BaseAPI} + */ +export class ProcessesApi extends BaseAPI { + /** + * + * @summary Clear process reports list + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public _delete(options?: AxiosRequestConfig) { + return ProcessesApiFp(this.configuration) + ._delete(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * When processing, the report is stored in memory and allows to retrieve progress repport during processing. Usually, process reports are returned by the synchronous processing operation. + * @summary Get current process reports + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public getProcessReport(options?: AxiosRequestConfig) { + return ProcessesApiFp(this.configuration) + .getProcessReport(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Preview result of a process applied to metadata records with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. Append mode has 2 limitations. First, it only support a set of records in the same schema. Secondly, it does not propagate URL parameters. This mode is mainly used to create custom reports based on metadata records content.If process name ends with \'.csv\', the XSL process output a text document which is returned. When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview process result applied to one or more records + * @param {string} process Process identifier + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [appendFirst] Append documents before processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public previewProcessRecords( + process: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + appendFirst?: boolean, + options?: AxiosRequestConfig + ) { + return ProcessesApiFp(this.configuration) + .previewProcessRecords( + process, + diffType, + uuids, + bucket, + appendFirst, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * When errors occur during processing, the processing report is returned in JSON format. + * @summary Preview of search and replace text. + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public previewProcessSearchAndReplace( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + diffType?: "patch" | "diff" | "diffhtml", + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return ProcessesApiFp(this.configuration) + .previewProcessSearchAndReplace( + search, + useRegexp, + replace, + regexpFlags, + diffType, + uuids, + bucket, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process to one or more records + * @param {string} process Process identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public processRecords( + process: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options?: AxiosRequestConfig + ) { + return ProcessesApiFp(this.configuration) + .processRecords(process, uuids, bucket, updateDateStamp, index, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a database search and replace to one or more records + * @param {string} search Value to search for + * @param {boolean} [useRegexp] Use regular expression (may not be supported by all databases - tested with H2 and PostgreSQL) + * @param {string} [replace] Replacement + * @param {string} [regexpFlags] regexpFlags + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {boolean} [index] Index after processing + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public processSearchAndReplace( + search: string, + useRegexp?: boolean, + replace?: string, + regexpFlags?: string, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + index?: boolean, + options?: AxiosRequestConfig + ) { + return ProcessesApiFp(this.configuration) + .processSearchAndReplace( + search, + useRegexp, + replace, + regexpFlags, + uuids, + bucket, + updateDateStamp, + index, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Service to apply replacements to one or more records. To define a replacement, send the following parameters: * mdsection-139815551372=metadata * mdfield-1398155513728=id.contact.individualName * replaceValue-1398155513728=Juan * searchValue-1398155513728=Jose TODO: Would be good to provide a simple object to define list of changes instead of group of parameters.
Batch editing can also be used for similar works. + * @summary Search and replace values in one or more records + * @param {string} [process] + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [isTesting] Test only (ie. metadata are not saved). Return the report only. + * @param {boolean} [isCaseInsensitive] Case insensitive search. + * @param {string} [vacuumMode] \'record\' to apply vacuum.xsl, \'element\' to remove empty elements. Empty to not affect empty elements. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProcessesApi + */ + public searchAndReplace( + process?: string, + uuids?: Array, + bucket?: string, + isTesting?: boolean, + isCaseInsensitive?: boolean, + vacuumMode?: string, + options?: AxiosRequestConfig + ) { + return ProcessesApiFp(this.configuration) + .searchAndReplace( + process, + uuids, + bucket, + isTesting, + isCaseInsensitive, + vacuumMode, + options + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * RecordsApi - axios parameter creator + * @export + */ +export const RecordsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Reorder element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the element to move. + * @param {'up' | 'down'} direction Direction + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addElement: async ( + metadataUuid: string, + ref: string, + direction: "up" | "down", + displayAttributes?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("addElement", "metadataUuid", metadataUuid); + // verify required parameter 'ref' is not null or undefined + assertParamExists("addElement", "ref", ref); + // verify required parameter 'direction' is not null or undefined + assertParamExists("addElement", "direction", direction); + const localVarPath = `/records/{metadataUuid}/editor/elements/{direction}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"direction"}}`, encodeURIComponent(String(direction))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (ref !== undefined) { + localVarQueryParameter["ref"] = ref; + } + + if (displayAttributes !== undefined) { + localVarQueryParameter["displayAttributes"] = displayAttributes; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Add element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the insertion point. + * @param {string} name Name of the element to add (with prefix) + * @param {string} [child] Use geonet:attribute for attributes or child name. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addElement1: async ( + metadataUuid: string, + ref: string, + name: string, + child?: string, + displayAttributes?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("addElement1", "metadataUuid", metadataUuid); + // verify required parameter 'ref' is not null or undefined + assertParamExists("addElement1", "ref", ref); + // verify required parameter 'name' is not null or undefined + assertParamExists("addElement1", "name", name); + const localVarPath = `/records/{metadataUuid}/editor/elements`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (ref !== undefined) { + localVarQueryParameter["ref"] = ref; + } + + if (name !== undefined) { + localVarQueryParameter["name"] = name; + } + + if (child !== undefined) { + localVarQueryParameter["child"] = child; + } + + if (displayAttributes !== undefined) { + localVarQueryParameter["displayAttributes"] = displayAttributes; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Add sample records for one or more schemas. Samples are defined for each standard in the samples folder as MEF files. + * @summary Add samples + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addSamples: async ( + schema: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("addSamples", "schema", schema); + const localVarPath = `/records/samples`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (schema) { + localVarQueryParameter["schema"] = schema; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Add template records for one or more schemas. Templates are defined for each standard in the template folder as XML files. Template may also contains subtemplates. + * @summary Add templates + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addTemplates: async ( + schema: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("addTemplates", "schema", schema); + const localVarPath = `/records/templates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (schema) { + localVarQueryParameter["schema"] = schema; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * All parameters will be substituted to the XPath query. eg. {{protocol}} in the XPath expression will be replaced by the protocol parameter provided in the request body. + * @summary Apply a saved query for this metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} savedQuery The saved query to apply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applyQuery: async ( + metadataUuid: string, + savedQuery: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("applyQuery", "metadataUuid", metadataUuid); + // verify required parameter 'savedQuery' is not null or undefined + assertParamExists("applyQuery", "savedQuery", savedQuery); + const localVarPath = `/records/{metadataUuid}/query/{savedQuery}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"savedQuery"}}`, encodeURIComponent(String(savedQuery))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Edit a set of records by XPath expressions. This operations applies the update-fixed-info.xsl transformation for the metadata schema and updates the change date if the parameter updateDateStamp is set to true. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + batchEdit: async ( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'batchEditParameter' is not null or undefined + assertParamExists("batchEdit", "batchEditParameter", batchEditParameter); + const localVarPath = `/records/batchediting`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (updateDateStamp !== undefined) { + localVarQueryParameter["updateDateStamp"] = updateDateStamp; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + batchEditParameter, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Cancel current editing session. + * @summary Cancel edits + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelEdits: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("cancelEdits", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/editor`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Check that a record can be submitted to DataCite for DOI creation. DataCite requires some fields to be populated. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkDoiStatus: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("checkDoiStatus", "metadataUuid", metadataUuid); + const localVarPath = + `/records/{metadataUuid}/doi/checkPreConditions`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. If the process is complete an object with status is returned. + * @summary Check the status of validation with the INSPIRE service. + * @param {string} testId Test identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkValidation: async ( + testId: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'testId' is not null or undefined + assertParamExists("checkValidation", "testId", testId); + const localVarPath = `/records/{testId}/validate/inspire`.replace( + `{${"testId"}}`, + encodeURIComponent(String(testId)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Clear validation status of one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cleanValidationStatus: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/validate`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Close a record task + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {string} closeDate Close date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + closeTask: async ( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + closeDate: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("closeTask", "metadataUuid", metadataUuid); + // verify required parameter 'statusId' is not null or undefined + assertParamExists("closeTask", "statusId", statusId); + // verify required parameter 'userId' is not null or undefined + assertParamExists("closeTask", "userId", userId); + // verify required parameter 'changeDate' is not null or undefined + assertParamExists("closeTask", "changeDate", changeDate); + // verify required parameter 'closeDate' is not null or undefined + assertParamExists("closeTask", "closeDate", closeDate); + const localVarPath = + `/records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/close` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"statusId"}}`, encodeURIComponent(String(statusId))) + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))) + .replace(`{${"changeDate"}}`, encodeURIComponent(String(changeDate))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (closeDate !== undefined) { + localVarQueryParameter["closeDate"] = closeDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create a record from a template or by copying an existing record.Return the UUID of the newly created record. Existing links in the source record are preserved, this means that the new record may contains link to the source attachments. They need to be manually updated after creation. + * @summary Create a new record + * @param {string} sourceUuid UUID of the source record to copy. + * @param {string} group The group the record is attached to. + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {string} [targetUuid] Assign a custom UUID. If this UUID already exist an error is returned. This is enabled only if metadata create / generate UUID settings is activated. + * @param {boolean} [isVisibleByAllGroupMembers] Is published to all user group members? If not, only the author and administrator can edit the record. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [hasCategoryOfSource] Copy categories from source? + * @param {boolean} [isChildOfSource] Is child of the record to copy? + * @param {boolean} [hasAttachmentsOfSource] Copy attachments from source? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + create: async ( + sourceUuid: string, + group: string, + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + targetUuid?: string, + isVisibleByAllGroupMembers?: boolean, + category?: Array, + hasCategoryOfSource?: boolean, + isChildOfSource?: boolean, + hasAttachmentsOfSource?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'sourceUuid' is not null or undefined + assertParamExists("create", "sourceUuid", sourceUuid); + // verify required parameter 'group' is not null or undefined + assertParamExists("create", "group", group); + const localVarPath = `/records/duplicate`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (metadataType !== undefined) { + localVarQueryParameter["metadataType"] = metadataType; + } + + if (sourceUuid !== undefined) { + localVarQueryParameter["sourceUuid"] = sourceUuid; + } + + if (targetUuid !== undefined) { + localVarQueryParameter["targetUuid"] = targetUuid; + } + + if (group !== undefined) { + localVarQueryParameter["group"] = group; + } + + if (isVisibleByAllGroupMembers !== undefined) { + localVarQueryParameter["isVisibleByAllGroupMembers"] = + isVisibleByAllGroupMembers; + } + + if (category) { + localVarQueryParameter["category"] = category; + } + + if (hasCategoryOfSource !== undefined) { + localVarQueryParameter["hasCategoryOfSource"] = hasCategoryOfSource; + } + + if (isChildOfSource !== undefined) { + localVarQueryParameter["isChildOfSource"] = isChildOfSource; + } + + if (hasAttachmentsOfSource !== undefined) { + localVarQueryParameter["hasAttachmentsOfSource"] = + hasAttachmentsOfSource; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Submit a record to the Datacite metadata store in order to create a DOI. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createDoi: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("createDoi", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/doi`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + delResource: async ( + metadataUuid: string, + resourceId: string, + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("delResource", "metadataUuid", metadataUuid); + // verify required parameter 'resourceId' is not null or undefined + assertParamExists("delResource", "resourceId", resourceId); + const localVarPath = `/records/{metadataUuid}/attachments/{resourceId}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete all uploaded metadata resources + * @param {string} metadataUuid The metadata UUID + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + delResources: async ( + metadataUuid: string, + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("delResources", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/attachments`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete all record status + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteAllRecordStatus: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("deleteAllRecordStatus", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/status`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete attribute + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the attribute to remove. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteAttribute: async ( + metadataUuid: string, + ref: string, + displayAttributes?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("deleteAttribute", "metadataUuid", metadataUuid); + // verify required parameter 'ref' is not null or undefined + assertParamExists("deleteAttribute", "ref", ref); + const localVarPath = `/records/{metadataUuid}/editor/attributes`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (ref !== undefined) { + localVarQueryParameter["ref"] = ref; + } + + if (displayAttributes !== undefined) { + localVarQueryParameter["displayAttributes"] = displayAttributes; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete element + * @param {string} metadataUuid Record UUID. + * @param {Array} ref Reference of the element to remove. + * @param {string} parent Name of the parent. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteElement: async ( + metadataUuid: string, + ref: Array, + parent: string, + displayAttributes?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("deleteElement", "metadataUuid", metadataUuid); + // verify required parameter 'ref' is not null or undefined + assertParamExists("deleteElement", "ref", ref); + // verify required parameter 'parent' is not null or undefined + assertParamExists("deleteElement", "parent", parent); + const localVarPath = `/records/{metadataUuid}/editor/elements`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (ref) { + localVarQueryParameter["ref"] = ref; + } + + if (parent !== undefined) { + localVarQueryParameter["parent"] = parent; + } + + if (displayAttributes !== undefined) { + localVarQueryParameter["displayAttributes"] = displayAttributes; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User MUST be able to edit the record to delete it. By default, a backup is made in ZIP format. After that, the record attachments are removed, the document removed from the index and then from the database. + * @summary Delete a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteRecord: async ( + metadataUuid: string, + withBackup?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("deleteRecord", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (withBackup !== undefined) { + localVarQueryParameter["withBackup"] = withBackup; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a record status + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteRecordStatus: async ( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("deleteRecordStatus", "metadataUuid", metadataUuid); + // verify required parameter 'statusId' is not null or undefined + assertParamExists("deleteRecordStatus", "statusId", statusId); + // verify required parameter 'userId' is not null or undefined + assertParamExists("deleteRecordStatus", "userId", userId); + // verify required parameter 'changeDate' is not null or undefined + assertParamExists("deleteRecordStatus", "changeDate", changeDate); + const localVarPath = + `/records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"statusId"}}`, encodeURIComponent(String(statusId))) + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))) + .replace(`{${"changeDate"}}`, encodeURIComponent(String(changeDate))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User MUST be able to edit the record to delete it. + * @summary Delete one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteRecords: async ( + uuids?: Array, + bucket?: string, + withBackup?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (withBackup !== undefined) { + localVarQueryParameter["withBackup"] = withBackup; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete tags to one or more records + * @param {Array} id Tag identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTagForRecords: async ( + id: Array, + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("deleteTagForRecords", "id", id); + const localVarPath = `/records/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (id) { + localVarQueryParameter["id"] = id; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete tags of a record + * @param {string} metadataUuid Record UUID. + * @param {Array} [id] Tag identifier. If none, all tags are removed. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTags: async ( + metadataUuid: string, + id?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("deleteTags", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/tags`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id) { + localVarQueryParameter["id"] = id; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The backup contains all metadata not harvested including templates. + * @summary Download MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadBackup: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/backups/latest`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary (Experimental) Enable version control + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableVersionControl: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("enableVersionControl", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/versions`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary (Experimental) Enable version control for one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableVersionControlForRecords: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/versions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The CSV is a short summary of each records. + * @summary Get a set of metadata records as CSV + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exportAsCsv: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/csv`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a set of metadata records as ZIP + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exportAsMef: async ( + uuids?: Array, + bucket?: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/zip`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + if (withRelated !== undefined) { + localVarQueryParameter["withRelated"] = withRelated; + } + + if (withXLinksResolved !== undefined) { + localVarQueryParameter["withXLinksResolved"] = withXLinksResolved; + } + + if (withXLinkAttribute !== undefined) { + localVarQueryParameter["withXLinkAttribute"] = withXLinkAttribute; + } + + if (addSchemaLocation !== undefined) { + localVarQueryParameter["addSchemaLocation"] = addSchemaLocation; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The PDF is a short summary of each records with links to the complete metadata record in different format (ie. landing page on the portal, XML) + * @summary Get a set of metadata records as PDF + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exportAsPdf: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/pdf`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get the list of users \"active\" during a time period. + * @param {string} dateFrom From date of users login date + * @param {string} dateTo To date of users login date + * @param {Array} [groups] Group(s) for the users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getActiveUsers: async ( + dateFrom: string, + dateTo: string, + groups?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'dateFrom' is not null or undefined + assertParamExists("getActiveUsers", "dateFrom", dateFrom); + // verify required parameter 'dateTo' is not null or undefined + assertParamExists("getActiveUsers", "dateTo", dateTo); + const localVarPath = `/reports/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (dateFrom !== undefined) { + localVarQueryParameter["dateFrom"] = dateFrom; + } + + if (dateTo !== undefined) { + localVarQueryParameter["dateTo"] = dateTo; + } + + if (groups) { + localVarQueryParameter["groups"] = groups; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get record extents as image + * @param {string} metadataUuid Record UUID. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRecordExtentAsImage: async ( + metadataUuid: string, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "getAllRecordExtentAsImage", + "metadataUuid", + metadataUuid + ); + const localVarPath = `/records/{metadataUuid}/extents.png`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (mapsrs !== undefined) { + localVarQueryParameter["mapsrs"] = mapsrs; + } + + if (width !== undefined) { + localVarQueryParameter["width"] = width; + } + + if (height !== undefined) { + localVarQueryParameter["height"] = height; + } + + if (background !== undefined) { + localVarQueryParameter["background"] = background; + } + + if (fillColor !== undefined) { + localVarQueryParameter["fillColor"] = fillColor; + } + + if (strokeColor !== undefined) { + localVarQueryParameter["strokeColor"] = strokeColor; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get list of record extents + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRecordExtentAsJson: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "getAllRecordExtentAsJson", + "metadataUuid", + metadataUuid + ); + const localVarPath = `/records/{metadataUuid}/extents.json`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary List all metadata attachments + * @param {string} metadataUuid The metadata UUID + * @param {'type' | 'name'} [sort] Sort by + * @param {boolean} [approved] Use approved version or not + * @param {string} [filter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllResources: async ( + metadataUuid: string, + sort?: "type" | "name", + approved?: boolean, + filter?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getAllResources", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/attachments`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (sort !== undefined) { + localVarQueryParameter["sort"] = sort; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (filter !== undefined) { + localVarQueryParameter["filter"] = filter; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * . + * @summary Get catalog content as RDF. This endpoint supports the same Lucene query parameters as for the GUI search. + * @param {number} [from] Indicates the start position in a sorted list of matches that the client wants to use as the beginning of a page result. + * @param {number} [hitsPerPage] Indicates the number of hits per page. + * @param {string} [any] Search key + * @param {string} [title] A search key for the title. + * @param {string} [facetQ] A search facet in the Lucene index. Use the GeoNetwork GUI search to generate the suitable filter values. Example: standard/dcat-ap&createDateYear/2018&sourceCatalog/6d93613e-2b76-4e26-94af-4b4c420a1758 (filter by creation year and source catalog). + * @param {string} [sortBy] Lucene sortBy criteria. Relevant values: relevance, title, changeDate. + * @param {string} [sortOrder] Sort order. Possible values: reverse. + * @param {number} [similarity] Use the Lucene FuzzyQuery. Values range from 0.0 to 1.0 and defaults to 0.8. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAsRdf: async ( + from?: number, + hitsPerPage?: number, + any?: string, + title?: string, + facetQ?: string, + sortBy?: string, + sortOrder?: string, + similarity?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (from !== undefined) { + localVarQueryParameter["from"] = from; + } + + if (hitsPerPage !== undefined) { + localVarQueryParameter["hitsPerPage"] = hitsPerPage; + } + + if (any !== undefined) { + localVarQueryParameter["any"] = any; + } + + if (title !== undefined) { + localVarQueryParameter["title"] = title; + } + + if (facetQ !== undefined) { + localVarQueryParameter["facet.q"] = facetQ; + } + + if (sortBy !== undefined) { + localVarQueryParameter["sortBy"] = sortBy; + } + + if (sortOrder !== undefined) { + localVarQueryParameter["sortOrder"] = sortOrder; + } + + if (similarity !== undefined) { + localVarQueryParameter["similarity"] = similarity; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Get record related resources + * @param {string} metadataUuid Record UUID. + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {number} [start] Start offset for paging. Default 1. Only applies to related metadata records (ie. not for thumbnails). + * @param {number} [rows] Number of rows returned. Default 100. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAssociatedResources: async ( + metadataUuid: string, + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + start?: number, + rows?: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getAssociatedResources", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/related`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type) { + localVarQueryParameter["type"] = type; + } + + if (start !== undefined) { + localVarQueryParameter["start"] = start; + } + + if (rows !== undefined) { + localVarQueryParameter["rows"] = rows; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Returns a map to decode attributes in a dataset (from the associated feature catalog) + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFeatureCatalog: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getFeatureCatalog", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/featureCatalog`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get one record extent as image + * @param {string} metadataUuid Record UUID. + * @param {number} geometryIndex Index of the geometry or bounding box to display. Starts at 1. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOneRecordExtentAsImage: async ( + metadataUuid: string, + geometryIndex: number, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "getOneRecordExtentAsImage", + "metadataUuid", + metadataUuid + ); + // verify required parameter 'geometryIndex' is not null or undefined + assertParamExists( + "getOneRecordExtentAsImage", + "geometryIndex", + geometryIndex + ); + const localVarPath = `/records/{metadataUuid}/extents/{geometryIndex}.png` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace( + `{${"geometryIndex"}}`, + encodeURIComponent(String(geometryIndex)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (mapsrs !== undefined) { + localVarQueryParameter["mapsrs"] = mapsrs; + } + + if (width !== undefined) { + localVarQueryParameter["width"] = width; + } + + if (height !== undefined) { + localVarQueryParameter["height"] = height; + } + + if (background !== undefined) { + localVarQueryParameter["background"] = background; + } + + if (fillColor !== undefined) { + localVarQueryParameter["fillColor"] = fillColor; + } + + if (strokeColor !== undefined) { + localVarQueryParameter["strokeColor"] = strokeColor; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Used when a view is based on the search results content and does not really access the record. Record is then added to the indexing queue and popularity will be updated soon. + * @summary Increase record popularity + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecord: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecord", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/popularity`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Depending on the accept header the appropriate formatter is used. When requesting a ZIP, a MEF version 2 file is returned. When requesting HTML, the default formatter is used. + * @summary Get a metadata record + * @param {string} metadataUuid Record UUID. + * @param {string} accept Accept header should indicate which is the appropriate format to return. It could be text/html, application/xml, application/zip, ...If no appropriate Accept header found, the XML format is returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecord1: async ( + metadataUuid: string, + accept: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecord1", "metadataUuid", metadataUuid); + // verify required parameter 'accept' is not null or undefined + assertParamExists("getRecord1", "accept", accept); + const localVarPath = `/records/{metadataUuid}`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordAs: async ( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecordAs", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/formatters/xml`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addSchemaLocation !== undefined) { + localVarQueryParameter["addSchemaLocation"] = addSchemaLocation; + } + + if (increasePopularity !== undefined) { + localVarQueryParameter["increasePopularity"] = increasePopularity; + } + + if (withInfo !== undefined) { + localVarQueryParameter["withInfo"] = withInfo; + } + + if (attachment !== undefined) { + localVarQueryParameter["attachment"] = attachment; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordAs1: async ( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecordAs1", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/formatters/json`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addSchemaLocation !== undefined) { + localVarQueryParameter["addSchemaLocation"] = addSchemaLocation; + } + + if (increasePopularity !== undefined) { + localVarQueryParameter["increasePopularity"] = increasePopularity; + } + + if (withInfo !== undefined) { + localVarQueryParameter["withInfo"] = withInfo; + } + + if (attachment !== undefined) { + localVarQueryParameter["attachment"] = attachment; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a metadata record as ZIP + * @param {string} metadataUuid Record UUID. + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordAsZip: async ( + metadataUuid: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecordAsZip", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/formatters/zip`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + if (withRelated !== undefined) { + localVarQueryParameter["withRelated"] = withRelated; + } + + if (withXLinksResolved !== undefined) { + localVarQueryParameter["withXLinksResolved"] = withXLinksResolved; + } + + if (withXLinkAttribute !== undefined) { + localVarQueryParameter["withXLinkAttribute"] = withXLinkAttribute; + } + + if (addSchemaLocation !== undefined) { + localVarQueryParameter["addSchemaLocation"] = addSchemaLocation; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a formatted metadata record + * @param {string} formatterId + * @param {string} metadataUuid Record UUID. + * @param {string} [accept] Formatter type to use. + * @param {'_25' | '_50' | '_75' | '_100'} [width] + * @param {string} [mdpath] + * @param {string} [language] Optional language ISO 3 letters code to override HTTP Accept-language header. + * @param {'txt' | 'html' | 'xml' | 'json' | 'jsonld' | 'pdf' | 'testpdf'} [output] + * @param {boolean} [approved] Download the approved version + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordFormattedBy: async ( + formatterId: string, + metadataUuid: string, + accept?: string, + width?: "_25" | "_50" | "_75" | "_100", + mdpath?: string, + language?: string, + output?: "txt" | "html" | "xml" | "json" | "jsonld" | "pdf" | "testpdf", + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'formatterId' is not null or undefined + assertParamExists("getRecordFormattedBy", "formatterId", formatterId); + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecordFormattedBy", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/formatters/{formatterId}` + .replace(`{${"formatterId"}}`, encodeURIComponent(String(formatterId))) + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (width !== undefined) { + localVarQueryParameter["width"] = width; + } + + if (mdpath !== undefined) { + localVarQueryParameter["mdpath"] = mdpath; + } + + if (language !== undefined) { + localVarQueryParameter["language"] = language; + } + + if (output !== undefined) { + localVarQueryParameter["output"] = output; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return current sharing options for a record. + * @summary Get record sharing settings + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordSharingSettings: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "getRecordSharingSettings", + "metadataUuid", + metadataUuid + ); + const localVarPath = `/records/{metadataUuid}/sharing`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get record status history + * @param {string} metadataUuid Record UUID. + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordStatusHistory: async ( + metadataUuid: string, + details?: boolean, + sortOrder?: "ASC" | "DESC", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecordStatusHistory", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/status`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (details !== undefined) { + localVarQueryParameter["details"] = details; + } + + if (sortOrder !== undefined) { + localVarQueryParameter["sortOrder"] = sortOrder; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get record status history by type + * @param {string} metadataUuid Record UUID. + * @param {'workflow' | 'task' | 'event'} type Type + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordStatusHistoryByType: async ( + metadataUuid: string, + type: "workflow" | "task" | "event", + details?: boolean, + sortOrder?: "ASC" | "DESC", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "getRecordStatusHistoryByType", + "metadataUuid", + metadataUuid + ); + // verify required parameter 'type' is not null or undefined + assertParamExists("getRecordStatusHistoryByType", "type", type); + const localVarPath = `/records/{metadataUuid}/status/{type}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"type"}}`, encodeURIComponent(String(type))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (details !== undefined) { + localVarQueryParameter["details"] = details; + } + + if (sortOrder !== undefined) { + localVarQueryParameter["sortOrder"] = sortOrder; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Tags are used to classify information.
More info + * @summary Get record tags + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordTags: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getRecordTags", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/tags`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of metadata file downloads + * @param {string} dateFrom From date of the metadata downloads + * @param {string} dateTo To date of the metadata downloads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportDataDownloads: async ( + dateFrom: string, + dateTo: string, + groups?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'dateFrom' is not null or undefined + assertParamExists("getReportDataDownloads", "dateFrom", dateFrom); + // verify required parameter 'dateTo' is not null or undefined + assertParamExists("getReportDataDownloads", "dateTo", dateTo); + const localVarPath = `/reports/datadownloads`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (dateFrom !== undefined) { + localVarQueryParameter["dateFrom"] = dateFrom; + } + + if (dateTo !== undefined) { + localVarQueryParameter["dateTo"] = dateTo; + } + + if (groups) { + localVarQueryParameter["groups"] = groups; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get uploaded files to metadata records during a period. + * @param {string} dateFrom From date of the metadata uploads + * @param {string} dateTo To date of the metadata uploads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportDataUploads: async ( + dateFrom: string, + dateTo: string, + groups?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'dateFrom' is not null or undefined + assertParamExists("getReportDataUploads", "dateFrom", dateFrom); + // verify required parameter 'dateTo' is not null or undefined + assertParamExists("getReportDataUploads", "dateTo", dateTo); + const localVarPath = `/reports/datauploads`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (dateFrom !== undefined) { + localVarQueryParameter["dateFrom"] = dateFrom; + } + + if (dateTo !== undefined) { + localVarQueryParameter["dateTo"] = dateTo; + } + + if (groups) { + localVarQueryParameter["groups"] = groups; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get the metadata not published during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportInternalMetadata: async ( + dateFrom: string, + dateTo: string, + groups?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'dateFrom' is not null or undefined + assertParamExists("getReportInternalMetadata", "dateFrom", dateFrom); + // verify required parameter 'dateTo' is not null or undefined + assertParamExists("getReportInternalMetadata", "dateTo", dateTo); + const localVarPath = `/reports/metadatainternal`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (dateFrom !== undefined) { + localVarQueryParameter["dateFrom"] = dateFrom; + } + + if (dateTo !== undefined) { + localVarQueryParameter["dateTo"] = dateTo; + } + + if (groups) { + localVarQueryParameter["groups"] = groups; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get the updated metadata during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportUpdatedMetadata: async ( + dateFrom: string, + dateTo: string, + groups?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'dateFrom' is not null or undefined + assertParamExists("getReportUpdatedMetadata", "dateFrom", dateFrom); + // verify required parameter 'dateTo' is not null or undefined + assertParamExists("getReportUpdatedMetadata", "dateTo", dateTo); + const localVarPath = `/reports/metadataupdated`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (dateFrom !== undefined) { + localVarQueryParameter["dateFrom"] = dateFrom; + } + + if (dateTo !== undefined) { + localVarQueryParameter["dateTo"] = dateTo; + } + + if (groups) { + localVarQueryParameter["groups"] = groups; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {number} [size] Size (only applies to images). From 1px to 2048px. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getResource: async ( + metadataUuid: string, + resourceId: string, + approved?: boolean, + size?: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getResource", "metadataUuid", metadataUuid); + // verify required parameter 'resourceId' is not null or undefined + assertParamExists("getResource", "resourceId", resourceId); + const localVarPath = `/records/{metadataUuid}/attachments/{resourceId}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary List saved queries for this metadata + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSavedQueries: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getSavedQueries", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/query`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get record sharing settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSharingSettings: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/sharing`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get last workflow status for a record + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStatus: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getStatus", "metadataUuid", metadataUuid); + const localVarPath = + `/records/{metadataUuid}/status/workflow/last`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Analyze the record an suggest processes to improve the quality of the record.
More info + * @summary Get suggestions + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSuggestions: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getSuggestions", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/processes`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * TG13, TG2, ... + * @summary Get test suites available. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTestSuites: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getTestSuites", "metadataUuid", metadataUuid); + const localVarPath = + `/records/{metadataUuid}/validate/inspire/testsuites`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Search status + * @param {Array<'workflow' | 'task' | 'event'>} [type] One or more types to retrieve (ie. worflow, event, task). Default is all. + * @param {boolean} [details] All event details including XML changes. Responses are bigger. Default is false + * @param {'ASC' | 'DESC'} [sortOrder] Sort Order (ie. DESC or ASC). Default is none. + * @param {Array} [author] One or more event author. Default is all. + * @param {Array} [owner] One or more event owners. Default is all. + * @param {Array} [id] One or more record identifier. Default is all. + * @param {Array} [record] One or more metadata record identifier. Default is all. + * @param {Array} [uuid] One or more metadata uuid. Default is all. + * @param {Array} [statusIds] One or more status id. Default is all. + * @param {string} [dateFrom] Start date + * @param {string} [dateTo] End date + * @param {number} [from] From page + * @param {number} [size] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWorkflowStatusByType: async ( + type?: Array<"workflow" | "task" | "event">, + details?: boolean, + sortOrder?: "ASC" | "DESC", + author?: Array, + owner?: Array, + id?: Array, + record?: Array, + uuid?: Array, + statusIds?: Array, + dateFrom?: string, + dateTo?: string, + from?: number, + size?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/status/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type) { + localVarQueryParameter["type"] = type; + } + + if (details !== undefined) { + localVarQueryParameter["details"] = details; + } + + if (sortOrder !== undefined) { + localVarQueryParameter["sortOrder"] = sortOrder; + } + + if (author) { + localVarQueryParameter["author"] = author; + } + + if (owner) { + localVarQueryParameter["owner"] = owner; + } + + if (id) { + localVarQueryParameter["id"] = id; + } + + if (record) { + localVarQueryParameter["record"] = record; + } + + if (uuid) { + localVarQueryParameter["uuid"] = uuid; + } + + if (statusIds) { + localVarQueryParameter["statusIds"] = statusIds; + } + + if (dateFrom !== undefined) { + localVarQueryParameter["dateFrom"] = dateFrom; + } + + if (dateTo !== undefined) { + localVarQueryParameter["dateTo"] = dateTo; + } + + if (from !== undefined) { + localVarQueryParameter["from"] = from; + } + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Index a set of records provided either by a bucket or a list of uuids + * @summary Index a set of records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + index: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/index`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Add one or more record from an XML fragment, URL or file in a folder on the catalog server. When loadingfrom the catalog server folder, it might be faster to use a local filesystem harvester. + * @summary Add a record + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [url] URL of a file to download and insert. + * @param {string} [serverFolder] Server folder where to look for files. + * @param {boolean} [recursiveSearch] (Server folder import only) Recursive search in folder. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {string} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + insert: async ( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + url?: Array, + serverFolder?: string, + recursiveSearch?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + body?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (metadataType !== undefined) { + localVarQueryParameter["metadataType"] = metadataType; + } + + if (url) { + localVarQueryParameter["url"] = url; + } + + if (serverFolder !== undefined) { + localVarQueryParameter["serverFolder"] = serverFolder; + } + + if (recursiveSearch !== undefined) { + localVarQueryParameter["recursiveSearch"] = recursiveSearch; + } + + if (publishToAll !== undefined) { + localVarQueryParameter["publishToAll"] = publishToAll; + } + + if (assignToCatalog !== undefined) { + localVarQueryParameter["assignToCatalog"] = assignToCatalog; + } + + if (uuidProcessing !== undefined) { + localVarQueryParameter["uuidProcessing"] = uuidProcessing; + } + + if (group !== undefined) { + localVarQueryParameter["group"] = group; + } + + if (category) { + localVarQueryParameter["category"] = category; + } + + if (rejectIfInvalid !== undefined) { + localVarQueryParameter["rejectIfInvalid"] = rejectIfInvalid; + } + + if (transformWith !== undefined) { + localVarQueryParameter["transformWith"] = transformWith; + } + + if (schema !== undefined) { + localVarQueryParameter["schema"] = schema; + } + + if (extra !== undefined) { + localVarQueryParameter["extra"] = extra; + } + + localVarHeaderParameter["Content-Type"] = "application/xml"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + body, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Add record in the catalog by uploading files. + * @summary Add a record from XML or MEF/ZIP file + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [file] XML or MEF file to upload + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + insertFile: async ( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + file?: Array, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (metadataType !== undefined) { + localVarQueryParameter["metadataType"] = metadataType; + } + + if (file) { + localVarQueryParameter["file"] = file; + } + + if (uuidProcessing !== undefined) { + localVarQueryParameter["uuidProcessing"] = uuidProcessing; + } + + if (group !== undefined) { + localVarQueryParameter["group"] = group; + } + + if (category) { + localVarQueryParameter["category"] = category; + } + + if (rejectIfInvalid !== undefined) { + localVarQueryParameter["rejectIfInvalid"] = rejectIfInvalid; + } + + if (publishToAll !== undefined) { + localVarQueryParameter["publishToAll"] = publishToAll; + } + + if (assignToCatalog !== undefined) { + localVarQueryParameter["assignToCatalog"] = assignToCatalog; + } + + if (transformWith !== undefined) { + localVarQueryParameter["transformWith"] = transformWith; + } + + if (schema !== undefined) { + localVarQueryParameter["schema"] = schema; + } + + if (extra !== undefined) { + localVarQueryParameter["extra"] = extra; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Add record in the catalog by uploading a map context. + * @summary Add a map metadata record from OGC OWS context + * @param {string} title A map title + * @param {string} [recordAbstract] A map abstract + * @param {string} [xml] OGC OWS context as string + * @param {string} [filename] OGC OWS context file name + * @param {string} [url] OGC OWS context URL + * @param {string} [viewerUrl] A map viewer URL to visualize the map + * @param {string} [overview] Map overview as PNG (base64 encoded) + * @param {string} [overviewFilename] Map overview filename + * @param {string} [topic] Topic category + * @param {boolean} [publishToAll] Publish record. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + insertOgcMapContextFile: async ( + title: string, + recordAbstract?: string, + xml?: string, + filename?: string, + url?: string, + viewerUrl?: string, + overview?: string, + overviewFilename?: string, + topic?: string, + publishToAll?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'title' is not null or undefined + assertParamExists("insertOgcMapContextFile", "title", title); + const localVarPath = `/records/importfrommap`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (title !== undefined) { + localVarQueryParameter["title"] = title; + } + + if (recordAbstract !== undefined) { + localVarQueryParameter["recordAbstract"] = recordAbstract; + } + + if (xml !== undefined) { + localVarQueryParameter["xml"] = xml; + } + + if (filename !== undefined) { + localVarQueryParameter["filename"] = filename; + } + + if (url !== undefined) { + localVarQueryParameter["url"] = url; + } + + if (viewerUrl !== undefined) { + localVarQueryParameter["viewerUrl"] = viewerUrl; + } + + if (overview !== undefined) { + localVarQueryParameter["overview"] = overview; + } + + if (overviewFilename !== undefined) { + localVarQueryParameter["overviewFilename"] = overviewFilename; + } + + if (topic !== undefined) { + localVarQueryParameter["topic"] = topic; + } + + if (publishToAll !== undefined) { + localVarQueryParameter["publishToAll"] = publishToAll; + } + + if (uuidProcessing !== undefined) { + localVarQueryParameter["uuidProcessing"] = uuidProcessing; + } + + if (group !== undefined) { + localVarQueryParameter["group"] = group; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update the metadata resource visibility + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {'public' | 'private'} visibility The visibility + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + patchResource: async ( + metadataUuid: string, + resourceId: string, + visibility: "public" | "private", + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("patchResource", "metadataUuid", metadataUuid); + // verify required parameter 'resourceId' is not null or undefined + assertParamExists("patchResource", "resourceId", resourceId); + // verify required parameter 'visibility' is not null or undefined + assertParamExists("patchResource", "visibility", visibility); + const localVarPath = `/records/{metadataUuid}/attachments/{resourceId}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PATCH", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (visibility !== undefined) { + localVarQueryParameter["visibility"] = visibility; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Preview edits made by XPath expressions. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewBatchEdit: async ( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + diffType?: "patch" | "diff" | "diffhtml", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'batchEditParameter' is not null or undefined + assertParamExists( + "previewBatchEdit", + "batchEditParameter", + batchEditParameter + ); + const localVarPath = `/records/batchediting/preview`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (diffType !== undefined) { + localVarQueryParameter["diffType"] = diffType; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + batchEditParameter, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processRecord: async ( + metadataUuid: string, + process: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("processRecord", "metadataUuid", metadataUuid); + // verify required parameter 'process' is not null or undefined + assertParamExists("processRecord", "process", process); + const localVarPath = `/records/{metadataUuid}/processes/{process}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"process"}}`, encodeURIComponent(String(process))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Preview process result + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processRecordPreview: async ( + metadataUuid: string, + process: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("processRecordPreview", "metadataUuid", metadataUuid); + // verify required parameter 'process' is not null or undefined + assertParamExists("processRecordPreview", "process", process); + const localVarPath = `/records/{metadataUuid}/processes/{process}` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"process"}}`, encodeURIComponent(String(process))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Set privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publish: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("publish", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/publish`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * See record sharing for more details. + * @summary Publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publish1: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/publish`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new resource for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {InlineObject2} [inlineObject2] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putResource: async ( + metadataUuid: string, + visibility?: "public" | "private", + approved?: boolean, + inlineObject2?: InlineObject2, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("putResource", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/attachments`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (visibility !== undefined) { + localVarQueryParameter["visibility"] = visibility; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + inlineObject2, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new resource from a URL for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} url The URL to load in the store + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putResourceFromURL: async ( + metadataUuid: string, + url: string, + visibility?: "public" | "private", + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("putResourceFromURL", "metadataUuid", metadataUuid); + // verify required parameter 'url' is not null or undefined + assertParamExists("putResourceFromURL", "url", url); + const localVarPath = `/records/{metadataUuid}/attachments`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (visibility !== undefined) { + localVarQueryParameter["visibility"] = visibility; + } + + if (url !== undefined) { + localVarQueryParameter["url"] = url; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User rating of metadata. If the metadata was harvested using the \'GeoNetwork\' protocol and the system setting localrating/enable is false (the default), the user\'s rating is shared between GN nodes in this harvesting network. If the metadata was not harvested or if localrating/enable is true then \'local rating\' is applied, counting only rating from users of this node.
When a remote rating is applied, the local rating is not updated. It will be updated on the next harvest run (FIXME ?). + * @summary Rate a record + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + rateRecord: async ( + metadataUuid: string, + body: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("rateRecord", "metadataUuid", metadataUuid); + // verify required parameter 'body' is not null or undefined + assertParamExists("rateRecord", "body", body); + const localVarPath = `/records/{metadataUuid}/rate`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + body, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Restore saved content from a status record + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + restoreAtStatusSave: async ( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("restoreAtStatusSave", "metadataUuid", metadataUuid); + // verify required parameter 'statusId' is not null or undefined + assertParamExists("restoreAtStatusSave", "statusId", statusId); + // verify required parameter 'userId' is not null or undefined + assertParamExists("restoreAtStatusSave", "userId", userId); + // verify required parameter 'changeDate' is not null or undefined + assertParamExists("restoreAtStatusSave", "changeDate", changeDate); + const localVarPath = + `/records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/restore` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"statusId"}}`, encodeURIComponent(String(statusId))) + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))) + .replace(`{${"changeDate"}}`, encodeURIComponent(String(changeDate))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Save the HTML form content. + * @summary Save edits + * @param {string} metadataUuid Record UUID. + * @param {string} [tab] Tab + * @param {boolean} [withAttributes] + * @param {boolean} [withValidationErrors] + * @param {boolean} [minor] + * @param {string} [status] Submit for review directly after save. + * @param {boolean} [commit] Save current edits. + * @param {boolean} [terminate] Save and terminate session. + * @param {string} [data] Record as XML. TODO: rename xml + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveEdits: async ( + metadataUuid: string, + tab?: string, + withAttributes?: boolean, + withValidationErrors?: boolean, + minor?: boolean, + status?: string, + commit?: boolean, + terminate?: boolean, + data?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("saveEdits", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/editor`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (tab !== undefined) { + localVarQueryParameter["tab"] = tab; + } + + if (withAttributes !== undefined) { + localVarQueryParameter["withAttributes"] = withAttributes; + } + + if (withValidationErrors !== undefined) { + localVarQueryParameter["withValidationErrors"] = withValidationErrors; + } + + if (minor !== undefined) { + localVarQueryParameter["minor"] = minor; + } + + if (status !== undefined) { + localVarQueryParameter["status"] = status; + } + + if (commit !== undefined) { + localVarQueryParameter["commit"] = commit; + } + + if (terminate !== undefined) { + localVarQueryParameter["terminate"] = terminate; + } + + if (data !== undefined) { + localVarQueryParameter["data"] = data; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * More info + * @summary Create an overview using the map print module + * @param {string} metadataUuid Record UUID. + * @param {string} jsonConfig The mapprint module JSON configuration + * @param {number} [rotationAngle] The rotation angle of the map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveThumbnail: async ( + metadataUuid: string, + jsonConfig: string, + rotationAngle?: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("saveThumbnail", "metadataUuid", metadataUuid); + // verify required parameter 'jsonConfig' is not null or undefined + assertParamExists("saveThumbnail", "jsonConfig", jsonConfig); + const localVarPath = + `/records/{metadataUuid}/attachments/print-thumbnail`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (jsonConfig !== undefined) { + localVarQueryParameter["jsonConfig"] = jsonConfig; + } + + if (rotationAngle !== undefined) { + localVarQueryParameter["rotationAngle"] = rotationAngle; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Set group and owner for one or more records + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setGroupAndOwner: async ( + groupIdentifier: number, + userIdentifier: number, + uuids?: Array, + bucket?: string, + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'groupIdentifier' is not null or undefined + assertParamExists("setGroupAndOwner", "groupIdentifier", groupIdentifier); + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("setGroupAndOwner", "userIdentifier", userIdentifier); + const localVarPath = `/records/ownership`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (groupIdentifier !== undefined) { + localVarQueryParameter["groupIdentifier"] = groupIdentifier; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (userIdentifier !== undefined) { + localVarQueryParameter["userIdentifier"] = userIdentifier; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * A record is related to one group. + * @summary Set record group + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setRecordGroup: async ( + metadataUuid: string, + body: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("setRecordGroup", "metadataUuid", metadataUuid); + // verify required parameter 'body' is not null or undefined + assertParamExists("setRecordGroup", "body", body); + const localVarPath = `/records/{metadataUuid}/group`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + body, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Set record group and owner + * @param {string} metadataUuid Record UUID. + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setRecordOwnership: async ( + metadataUuid: string, + groupIdentifier: number, + userIdentifier: number, + approved?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("setRecordOwnership", "metadataUuid", metadataUuid); + // verify required parameter 'groupIdentifier' is not null or undefined + assertParamExists( + "setRecordOwnership", + "groupIdentifier", + groupIdentifier + ); + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("setRecordOwnership", "userIdentifier", userIdentifier); + const localVarPath = `/records/{metadataUuid}/ownership`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (groupIdentifier !== undefined) { + localVarQueryParameter["groupIdentifier"] = groupIdentifier; + } + + if (userIdentifier !== undefined) { + localVarQueryParameter["userIdentifier"] = userIdentifier; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Set the record status + * @param {string} metadataUuid Record UUID. + * @param {MetadataStatusParameter} metadataStatusParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setStatus: async ( + metadataUuid: string, + metadataStatusParameter: MetadataStatusParameter, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("setStatus", "metadataUuid", metadataUuid); + // verify required parameter 'metadataStatusParameter' is not null or undefined + assertParamExists( + "setStatus", + "metadataStatusParameter", + metadataStatusParameter + ); + const localVarPath = `/records/{metadataUuid}/status`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + metadataStatusParameter, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * See record sharing for more details. + * @summary Set sharing settings for one or more records + * @param {SharingParameter} sharingParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + share: async ( + sharingParameter: SharingParameter, + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'sharingParameter' is not null or undefined + assertParamExists("share", "sharingParameter", sharingParameter); + const localVarPath = `/records/sharing`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + sharingParameter, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Privileges are assigned by group. User needs to be able to edit a record to set sharing settings. For reserved group (ie. Internet, Intranet & Guest), user MUST be reviewer of one group. For other group, if Only set privileges to user\'s groups is set in catalog configuration user MUST be a member of the group.
Clear first allows to unset all operations first before setting the new ones.Clear option does not remove reserved groups operation if user is not an administrator, a reviewer or the owner of the record.
More info + * @summary Set record sharing + * @param {string} metadataUuid Record UUID. + * @param {SharingParameter} sharingParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + share1: async ( + metadataUuid: string, + sharingParameter: SharingParameter, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("share1", "metadataUuid", metadataUuid); + // verify required parameter 'sharingParameter' is not null or undefined + assertParamExists("share1", "sharingParameter", sharingParameter); + const localVarPath = `/records/{metadataUuid}/sharing`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + sharingParameter, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get saved content from the status record after changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + showStatusAfter: async ( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("showStatusAfter", "metadataUuid", metadataUuid); + // verify required parameter 'statusId' is not null or undefined + assertParamExists("showStatusAfter", "statusId", statusId); + // verify required parameter 'userId' is not null or undefined + assertParamExists("showStatusAfter", "userId", userId); + // verify required parameter 'changeDate' is not null or undefined + assertParamExists("showStatusAfter", "changeDate", changeDate); + const localVarPath = + `/records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/after` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"statusId"}}`, encodeURIComponent(String(statusId))) + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))) + .replace(`{${"changeDate"}}`, encodeURIComponent(String(changeDate))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get saved content from the status record before changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + showStatusBefore: async ( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("showStatusBefore", "metadataUuid", metadataUuid); + // verify required parameter 'statusId' is not null or undefined + assertParamExists("showStatusBefore", "statusId", statusId); + // verify required parameter 'userId' is not null or undefined + assertParamExists("showStatusBefore", "userId", userId); + // verify required parameter 'changeDate' is not null or undefined + assertParamExists("showStatusBefore", "changeDate", changeDate); + const localVarPath = + `/records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/before` + .replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ) + .replace(`{${"statusId"}}`, encodeURIComponent(String(statusId))) + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))) + .replace(`{${"changeDate"}}`, encodeURIComponent(String(changeDate))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return HTML form for editing. + * @summary Edit a record + * @param {string} metadataUuid Record UUID. + * @param {string} [currTab] Tab + * @param {boolean} [withAttributes] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + startEditing: async ( + metadataUuid: string, + currTab?: string, + withAttributes?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("startEditing", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/editor`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (currTab !== undefined) { + localVarQueryParameter["currTab"] = currTab; + } + + if (withAttributes !== undefined) { + localVarQueryParameter["withAttributes"] = withAttributes; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Add tags to a record + * @param {string} metadataUuid Record UUID. + * @param {Array} id Tag identifier + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + tagRecord: async ( + metadataUuid: string, + id: Array, + clear?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("tagRecord", "metadataUuid", metadataUuid); + // verify required parameter 'id' is not null or undefined + assertParamExists("tagRecord", "id", id); + const localVarPath = `/records/{metadataUuid}/tags`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id) { + localVarQueryParameter["id"] = id; + } + + if (clear !== undefined) { + localVarQueryParameter["clear"] = clear; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Add or remove tags to one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {Array} [id] Tag identifier + * @param {Array} [removeId] Tag identifier to remove. + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + tagRecords: async ( + uuids?: Array, + bucket?: string, + id?: Array, + removeId?: Array, + clear?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (id) { + localVarQueryParameter["id"] = id; + } + + if (removeId) { + localVarQueryParameter["removeId"] = removeId; + } + + if (clear !== undefined) { + localVarQueryParameter["clear"] = clear; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The backup contains all metadata not harvested including templates. + * @summary Trigger MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + trigger: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/records/backups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * See record sharing for more details. + * @summary Un-publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublish: async ( + uuids?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/unpublish`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Unsets privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublish1: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("unpublish1", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/unpublish`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove a DOI (this is not recommended, DOI are supposed to be persistent once created. This is mainly here for testing). + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unregisterDoi: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("unregisterDoi", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/doi`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User MUST be able to edit the record to validate it. FIXME : id MUST be the id of the current metadata record in session ? + * @summary Validate a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [isvalid] Validation status. Should be provided only in case of SUBTEMPLATE validation. If provided for another type, throw a BadParameter Exception + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecord: async ( + metadataUuid: string, + isvalid?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("validateRecord", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/validate/internal`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (isvalid !== undefined) { + localVarQueryParameter["isvalid"] = isvalid; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. This activates an asyncronous process, this method does not return any report. This method returns an id to be used to get the report. + * @summary Submit a record to the INSPIRE service for validation. + * @param {string} metadataUuid Record UUID. + * @param {string} testsuite Test suite to run + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecordForInspire: async ( + metadataUuid: string, + testsuite: string, + mode?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "validateRecordForInspire", + "metadataUuid", + metadataUuid + ); + // verify required parameter 'testsuite' is not null or undefined + assertParamExists("validateRecordForInspire", "testsuite", testsuite); + const localVarPath = `/records/{metadataUuid}/validate/inspire`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (testsuite !== undefined) { + localVarQueryParameter["testsuite"] = testsuite; + } + + if (mode !== undefined) { + localVarQueryParameter["mode"] = mode; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update validation status for all records. + * @summary Validate one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {boolean} [approved] Use approved version or not + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecords: async ( + uuids?: Array, + approved?: boolean, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/validate`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (approved !== undefined) { + localVarQueryParameter["approved"] = approved; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update validation status for all records. + * @summary Validate one or more records in INSPIRE validator + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecordsInspire: async ( + uuids?: Array, + bucket?: string, + mode?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/records/validate/inspire`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (mode !== undefined) { + localVarQueryParameter["mode"] = mode; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * RecordsApi - functional programming interface + * @export + */ +export const RecordsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = RecordsApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Reorder element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the element to move. + * @param {'up' | 'down'} direction Direction + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addElement( + metadataUuid: string, + ref: string, + direction: "up" | "down", + displayAttributes?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addElement( + metadataUuid, + ref, + direction, + displayAttributes, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Add element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the insertion point. + * @param {string} name Name of the element to add (with prefix) + * @param {string} [child] Use geonet:attribute for attributes or child name. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addElement1( + metadataUuid: string, + ref: string, + name: string, + child?: string, + displayAttributes?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addElement1( + metadataUuid, + ref, + name, + child, + displayAttributes, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Add sample records for one or more schemas. Samples are defined for each standard in the samples folder as MEF files. + * @summary Add samples + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addSamples( + schema: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addSamples( + schema, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Add template records for one or more schemas. Templates are defined for each standard in the template folder as XML files. Template may also contains subtemplates. + * @summary Add templates + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addTemplates( + schema: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addTemplates( + schema, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * All parameters will be substituted to the XPath query. eg. {{protocol}} in the XPath expression will be replaced by the protocol parameter provided in the request body. + * @summary Apply a saved query for this metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} savedQuery The saved query to apply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async applyQuery( + metadataUuid: string, + savedQuery: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.applyQuery( + metadataUuid, + savedQuery, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Edit a set of records by XPath expressions. This operations applies the update-fixed-info.xsl transformation for the metadata schema and updates the change date if the parameter updateDateStamp is set to true. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async batchEdit( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.batchEdit( + batchEditParameter, + uuids, + bucket, + updateDateStamp, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Cancel current editing session. + * @summary Cancel edits + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cancelEdits( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.cancelEdits( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Check that a record can be submitted to DataCite for DOI creation. DataCite requires some fields to be populated. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async checkDoiStatus( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: boolean }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.checkDoiStatus( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. If the process is complete an object with status is returned. + * @summary Check the status of validation with the INSPIRE service. + * @param {string} testId Test identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async checkValidation( + testId: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.checkValidation( + testId, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Clear validation status of one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cleanValidationStatus( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.cleanValidationStatus( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Close a record task + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {string} closeDate Close date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async closeTask( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + closeDate: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.closeTask( + metadataUuid, + statusId, + userId, + changeDate, + closeDate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Create a record from a template or by copying an existing record.Return the UUID of the newly created record. Existing links in the source record are preserved, this means that the new record may contains link to the source attachments. They need to be manually updated after creation. + * @summary Create a new record + * @param {string} sourceUuid UUID of the source record to copy. + * @param {string} group The group the record is attached to. + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {string} [targetUuid] Assign a custom UUID. If this UUID already exist an error is returned. This is enabled only if metadata create / generate UUID settings is activated. + * @param {boolean} [isVisibleByAllGroupMembers] Is published to all user group members? If not, only the author and administrator can edit the record. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [hasCategoryOfSource] Copy categories from source? + * @param {boolean} [isChildOfSource] Is child of the record to copy? + * @param {boolean} [hasAttachmentsOfSource] Copy attachments from source? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async create( + sourceUuid: string, + group: string, + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + targetUuid?: string, + isVisibleByAllGroupMembers?: boolean, + category?: Array, + hasCategoryOfSource?: boolean, + isChildOfSource?: boolean, + hasAttachmentsOfSource?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.create( + sourceUuid, + group, + metadataType, + targetUuid, + isVisibleByAllGroupMembers, + category, + hasCategoryOfSource, + isChildOfSource, + hasAttachmentsOfSource, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Submit a record to the Datacite metadata store in order to create a DOI. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createDoi( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.createDoi( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async delResource( + metadataUuid: string, + resourceId: string, + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.delResource( + metadataUuid, + resourceId, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete all uploaded metadata resources + * @param {string} metadataUuid The metadata UUID + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async delResources( + metadataUuid: string, + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.delResources( + metadataUuid, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete all record status + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteAllRecordStatus( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteAllRecordStatus( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete attribute + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the attribute to remove. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteAttribute( + metadataUuid: string, + ref: string, + displayAttributes?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAttribute( + metadataUuid, + ref, + displayAttributes, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete element + * @param {string} metadataUuid Record UUID. + * @param {Array} ref Reference of the element to remove. + * @param {string} parent Name of the parent. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteElement( + metadataUuid: string, + ref: Array, + parent: string, + displayAttributes?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElement( + metadataUuid, + ref, + parent, + displayAttributes, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User MUST be able to edit the record to delete it. By default, a backup is made in ZIP format. After that, the record attachments are removed, the document removed from the index and then from the database. + * @summary Delete a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteRecord( + metadataUuid: string, + withBackup?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecord( + metadataUuid, + withBackup, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete a record status + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteRecordStatus( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteRecordStatus( + metadataUuid, + statusId, + userId, + changeDate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User MUST be able to edit the record to delete it. + * @summary Delete one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteRecords( + uuids?: Array, + bucket?: string, + withBackup?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRecords( + uuids, + bucket, + withBackup, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete tags to one or more records + * @param {Array} id Tag identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteTagForRecords( + id: Array, + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteTagForRecords( + id, + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Delete tags of a record + * @param {string} metadataUuid Record UUID. + * @param {Array} [id] Tag identifier. If none, all tags are removed. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteTags( + metadataUuid: string, + id?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTags( + metadataUuid, + id, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * The backup contains all metadata not harvested including templates. + * @summary Download MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async downloadBackup( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.downloadBackup( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary (Experimental) Enable version control + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async enableVersionControl( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.enableVersionControl( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary (Experimental) Enable version control for one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async enableVersionControlForRecords( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.enableVersionControlForRecords( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * The CSV is a short summary of each records. + * @summary Get a set of metadata records as CSV + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async exportAsCsv( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.exportAsCsv( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a set of metadata records as ZIP + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async exportAsMef( + uuids?: Array, + bucket?: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.exportAsMef( + uuids, + bucket, + format, + withRelated, + withXLinksResolved, + withXLinkAttribute, + addSchemaLocation, + approved, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * The PDF is a short summary of each records with links to the complete metadata record in different format (ie. landing page on the portal, XML) + * @summary Get a set of metadata records as PDF + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async exportAsPdf( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.exportAsPdf( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get the list of users \"active\" during a time period. + * @param {string} dateFrom From date of users login date + * @param {string} dateTo To date of users login date + * @param {Array} [groups] Group(s) for the users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getActiveUsers( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActiveUsers( + dateFrom, + dateTo, + groups, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get record extents as image + * @param {string} metadataUuid Record UUID. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllRecordExtentAsImage( + metadataUuid: string, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getAllRecordExtentAsImage( + metadataUuid, + mapsrs, + width, + height, + background, + fillColor, + strokeColor, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get list of record extents + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllRecordExtentAsJson( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getAllRecordExtentAsJson( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary List all metadata attachments + * @param {string} metadataUuid The metadata UUID + * @param {'type' | 'name'} [sort] Sort by + * @param {boolean} [approved] Use approved version or not + * @param {string} [filter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllResources( + metadataUuid: string, + sort?: "type" | "name", + approved?: boolean, + filter?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllResources( + metadataUuid, + sort, + approved, + filter, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * . + * @summary Get catalog content as RDF. This endpoint supports the same Lucene query parameters as for the GUI search. + * @param {number} [from] Indicates the start position in a sorted list of matches that the client wants to use as the beginning of a page result. + * @param {number} [hitsPerPage] Indicates the number of hits per page. + * @param {string} [any] Search key + * @param {string} [title] A search key for the title. + * @param {string} [facetQ] A search facet in the Lucene index. Use the GeoNetwork GUI search to generate the suitable filter values. Example: standard/dcat-ap&createDateYear/2018&sourceCatalog/6d93613e-2b76-4e26-94af-4b4c420a1758 (filter by creation year and source catalog). + * @param {string} [sortBy] Lucene sortBy criteria. Relevant values: relevance, title, changeDate. + * @param {string} [sortOrder] Sort order. Possible values: reverse. + * @param {number} [similarity] Use the Lucene FuzzyQuery. Values range from 0.0 to 1.0 and defaults to 0.8. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAsRdf( + from?: number, + hitsPerPage?: number, + any?: string, + title?: string, + facetQ?: string, + sortBy?: string, + sortOrder?: string, + similarity?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAsRdf( + from, + hitsPerPage, + any, + title, + facetQ, + sortBy, + sortOrder, + similarity, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Get record related resources + * @param {string} metadataUuid Record UUID. + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {number} [start] Start offset for paging. Default 1. Only applies to related metadata records (ie. not for thumbnails). + * @param {number} [rows] Number of rows returned. Default 100. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAssociatedResources( + metadataUuid: string, + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + start?: number, + rows?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getAssociatedResources( + metadataUuid, + type, + start, + rows, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Returns a map to decode attributes in a dataset (from the associated feature catalog) + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getFeatureCatalog( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getFeatureCatalog( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get one record extent as image + * @param {string} metadataUuid Record UUID. + * @param {number} geometryIndex Index of the geometry or bounding box to display. Starts at 1. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getOneRecordExtentAsImage( + metadataUuid: string, + geometryIndex: number, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getOneRecordExtentAsImage( + metadataUuid, + geometryIndex, + mapsrs, + width, + height, + background, + fillColor, + strokeColor, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Used when a view is based on the search results content and does not really access the record. Record is then added to the indexing queue and popularity will be updated soon. + * @summary Increase record popularity + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecord( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecord( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Depending on the accept header the appropriate formatter is used. When requesting a ZIP, a MEF version 2 file is returned. When requesting HTML, the default formatter is used. + * @summary Get a metadata record + * @param {string} metadataUuid Record UUID. + * @param {string} accept Accept header should indicate which is the appropriate format to return. It could be text/html, application/xml, application/zip, ...If no appropriate Accept header found, the XML format is returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecord1( + metadataUuid: string, + accept: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecord1( + metadataUuid, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordAs( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordAs( + metadataUuid, + addSchemaLocation, + increasePopularity, + withInfo, + attachment, + approved, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordAs1( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordAs1( + metadataUuid, + addSchemaLocation, + increasePopularity, + withInfo, + attachment, + approved, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a metadata record as ZIP + * @param {string} metadataUuid Record UUID. + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordAsZip( + metadataUuid: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordAsZip( + metadataUuid, + format, + withRelated, + withXLinksResolved, + withXLinkAttribute, + addSchemaLocation, + approved, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a formatted metadata record + * @param {string} formatterId + * @param {string} metadataUuid Record UUID. + * @param {string} [accept] Formatter type to use. + * @param {'_25' | '_50' | '_75' | '_100'} [width] + * @param {string} [mdpath] + * @param {string} [language] Optional language ISO 3 letters code to override HTTP Accept-language header. + * @param {'txt' | 'html' | 'xml' | 'json' | 'jsonld' | 'pdf' | 'testpdf'} [output] + * @param {boolean} [approved] Download the approved version + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordFormattedBy( + formatterId: string, + metadataUuid: string, + accept?: string, + width?: "_25" | "_50" | "_75" | "_100", + mdpath?: string, + language?: string, + output?: "txt" | "html" | "xml" | "json" | "jsonld" | "pdf" | "testpdf", + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getRecordFormattedBy( + formatterId, + metadataUuid, + accept, + width, + mdpath, + language, + output, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Return current sharing options for a record. + * @summary Get record sharing settings + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordSharingSettings( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getRecordSharingSettings( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get record status history + * @param {string} metadataUuid Record UUID. + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordStatusHistory( + metadataUuid: string, + details?: boolean, + sortOrder?: "ASC" | "DESC", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getRecordStatusHistory( + metadataUuid, + details, + sortOrder, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get record status history by type + * @param {string} metadataUuid Record UUID. + * @param {'workflow' | 'task' | 'event'} type Type + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordStatusHistoryByType( + metadataUuid: string, + type: "workflow" | "task" | "event", + details?: boolean, + sortOrder?: "ASC" | "DESC", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getRecordStatusHistoryByType( + metadataUuid, + type, + details, + sortOrder, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Tags are used to classify information.
More info + * @summary Get record tags + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordTags( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordTags( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of metadata file downloads + * @param {string} dateFrom From date of the metadata downloads + * @param {string} dateTo To date of the metadata downloads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getReportDataDownloads( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getReportDataDownloads( + dateFrom, + dateTo, + groups, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get uploaded files to metadata records during a period. + * @param {string} dateFrom From date of the metadata uploads + * @param {string} dateTo To date of the metadata uploads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getReportDataUploads( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getReportDataUploads( + dateFrom, + dateTo, + groups, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get the metadata not published during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getReportInternalMetadata( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getReportInternalMetadata( + dateFrom, + dateTo, + groups, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get the updated metadata during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getReportUpdatedMetadata( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getReportUpdatedMetadata( + dateFrom, + dateTo, + groups, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {number} [size] Size (only applies to images). From 1px to 2048px. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getResource( + metadataUuid: string, + resourceId: string, + approved?: boolean, + size?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getResource( + metadataUuid, + resourceId, + approved, + size, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary List saved queries for this metadata + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSavedQueries( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSavedQueries( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get record sharing settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSharingSettings( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSharingSettings(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get last workflow status for a record + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getStatus( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Analyze the record an suggest processes to improve the quality of the record.
More info + * @summary Get suggestions + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSuggestions( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSuggestions( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * TG13, TG2, ... + * @summary Get test suites available. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTestSuites( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: Array }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTestSuites( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Search status + * @param {Array<'workflow' | 'task' | 'event'>} [type] One or more types to retrieve (ie. worflow, event, task). Default is all. + * @param {boolean} [details] All event details including XML changes. Responses are bigger. Default is false + * @param {'ASC' | 'DESC'} [sortOrder] Sort Order (ie. DESC or ASC). Default is none. + * @param {Array} [author] One or more event author. Default is all. + * @param {Array} [owner] One or more event owners. Default is all. + * @param {Array} [id] One or more record identifier. Default is all. + * @param {Array} [record] One or more metadata record identifier. Default is all. + * @param {Array} [uuid] One or more metadata uuid. Default is all. + * @param {Array} [statusIds] One or more status id. Default is all. + * @param {string} [dateFrom] Start date + * @param {string} [dateTo] End date + * @param {number} [from] From page + * @param {number} [size] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getWorkflowStatusByType( + type?: Array<"workflow" | "task" | "event">, + details?: boolean, + sortOrder?: "ASC" | "DESC", + author?: Array, + owner?: Array, + id?: Array, + record?: Array, + uuid?: Array, + statusIds?: Array, + dateFrom?: string, + dateTo?: string, + from?: number, + size?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getWorkflowStatusByType( + type, + details, + sortOrder, + author, + owner, + id, + record, + uuid, + statusIds, + dateFrom, + dateTo, + from, + size, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Index a set of records provided either by a bucket or a list of uuids + * @summary Index a set of records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async index( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: object }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.index( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Add one or more record from an XML fragment, URL or file in a folder on the catalog server. When loadingfrom the catalog server folder, it might be faster to use a local filesystem harvester. + * @summary Add a record + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [url] URL of a file to download and insert. + * @param {string} [serverFolder] Server folder where to look for files. + * @param {boolean} [recursiveSearch] (Server folder import only) Recursive search in folder. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {string} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async insert( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + url?: Array, + serverFolder?: string, + recursiveSearch?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + body?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.insert( + metadataType, + url, + serverFolder, + recursiveSearch, + publishToAll, + assignToCatalog, + uuidProcessing, + group, + category, + rejectIfInvalid, + transformWith, + schema, + extra, + body, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Add record in the catalog by uploading files. + * @summary Add a record from XML or MEF/ZIP file + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [file] XML or MEF file to upload + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async insertFile( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + file?: Array, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.insertFile( + metadataType, + file, + uuidProcessing, + group, + category, + rejectIfInvalid, + publishToAll, + assignToCatalog, + transformWith, + schema, + extra, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Add record in the catalog by uploading a map context. + * @summary Add a map metadata record from OGC OWS context + * @param {string} title A map title + * @param {string} [recordAbstract] A map abstract + * @param {string} [xml] OGC OWS context as string + * @param {string} [filename] OGC OWS context file name + * @param {string} [url] OGC OWS context URL + * @param {string} [viewerUrl] A map viewer URL to visualize the map + * @param {string} [overview] Map overview as PNG (base64 encoded) + * @param {string} [overviewFilename] Map overview filename + * @param {string} [topic] Topic category + * @param {boolean} [publishToAll] Publish record. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async insertOgcMapContextFile( + title: string, + recordAbstract?: string, + xml?: string, + filename?: string, + url?: string, + viewerUrl?: string, + overview?: string, + overviewFilename?: string, + topic?: string, + publishToAll?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.insertOgcMapContextFile( + title, + recordAbstract, + xml, + filename, + url, + viewerUrl, + overview, + overviewFilename, + topic, + publishToAll, + uuidProcessing, + group, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update the metadata resource visibility + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {'public' | 'private'} visibility The visibility + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async patchResource( + metadataUuid: string, + resourceId: string, + visibility: "public" | "private", + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.patchResource( + metadataUuid, + resourceId, + visibility, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Preview edits made by XPath expressions. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async previewBatchEdit( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + diffType?: "patch" | "diff" | "diffhtml", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.previewBatchEdit( + batchEditParameter, + uuids, + bucket, + diffType, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async processRecord( + metadataUuid: string, + process: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.processRecord( + metadataUuid, + process, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Preview process result + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async processRecordPreview( + metadataUuid: string, + process: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.processRecordPreview( + metadataUuid, + process, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Set privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publish( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.publish( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * See record sharing for more details. + * @summary Publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publish1( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.publish1( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Create a new resource for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {InlineObject2} [inlineObject2] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async putResource( + metadataUuid: string, + visibility?: "public" | "private", + approved?: boolean, + inlineObject2?: InlineObject2, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.putResource( + metadataUuid, + visibility, + approved, + inlineObject2, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Create a new resource from a URL for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} url The URL to load in the store + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async putResourceFromURL( + metadataUuid: string, + url: string, + visibility?: "public" | "private", + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.putResourceFromURL( + metadataUuid, + url, + visibility, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User rating of metadata. If the metadata was harvested using the \'GeoNetwork\' protocol and the system setting localrating/enable is false (the default), the user\'s rating is shared between GN nodes in this harvesting network. If the metadata was not harvested or if localrating/enable is true then \'local rating\' is applied, counting only rating from users of this node.
When a remote rating is applied, the local rating is not updated. It will be updated on the next harvest run (FIXME ?). + * @summary Rate a record + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async rateRecord( + metadataUuid: string, + body: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.rateRecord( + metadataUuid, + body, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Restore saved content from a status record + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async restoreAtStatusSave( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.restoreAtStatusSave( + metadataUuid, + statusId, + userId, + changeDate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Save the HTML form content. + * @summary Save edits + * @param {string} metadataUuid Record UUID. + * @param {string} [tab] Tab + * @param {boolean} [withAttributes] + * @param {boolean} [withValidationErrors] + * @param {boolean} [minor] + * @param {string} [status] Submit for review directly after save. + * @param {boolean} [commit] Save current edits. + * @param {boolean} [terminate] Save and terminate session. + * @param {string} [data] Record as XML. TODO: rename xml + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveEdits( + metadataUuid: string, + tab?: string, + withAttributes?: boolean, + withValidationErrors?: boolean, + minor?: boolean, + status?: string, + commit?: boolean, + terminate?: boolean, + data?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveEdits( + metadataUuid, + tab, + withAttributes, + withValidationErrors, + minor, + status, + commit, + terminate, + data, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * More info + * @summary Create an overview using the map print module + * @param {string} metadataUuid Record UUID. + * @param {string} jsonConfig The mapprint module JSON configuration + * @param {number} [rotationAngle] The rotation angle of the map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveThumbnail( + metadataUuid: string, + jsonConfig: string, + rotationAngle?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveThumbnail( + metadataUuid, + jsonConfig, + rotationAngle, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Set group and owner for one or more records + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setGroupAndOwner( + groupIdentifier: number, + userIdentifier: number, + uuids?: Array, + bucket?: string, + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.setGroupAndOwner( + groupIdentifier, + userIdentifier, + uuids, + bucket, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * A record is related to one group. + * @summary Set record group + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setRecordGroup( + metadataUuid: string, + body: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.setRecordGroup( + metadataUuid, + body, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Set record group and owner + * @param {string} metadataUuid Record UUID. + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setRecordOwnership( + metadataUuid: string, + groupIdentifier: number, + userIdentifier: number, + approved?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.setRecordOwnership( + metadataUuid, + groupIdentifier, + userIdentifier, + approved, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Set the record status + * @param {string} metadataUuid Record UUID. + * @param {MetadataStatusParameter} metadataStatusParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setStatus( + metadataUuid: string, + metadataStatusParameter: MetadataStatusParameter, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.setStatus( + metadataUuid, + metadataStatusParameter, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * See record sharing for more details. + * @summary Set sharing settings for one or more records + * @param {SharingParameter} sharingParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async share( + sharingParameter: SharingParameter, + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.share( + sharingParameter, + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Privileges are assigned by group. User needs to be able to edit a record to set sharing settings. For reserved group (ie. Internet, Intranet & Guest), user MUST be reviewer of one group. For other group, if Only set privileges to user\'s groups is set in catalog configuration user MUST be a member of the group.
Clear first allows to unset all operations first before setting the new ones.Clear option does not remove reserved groups operation if user is not an administrator, a reviewer or the owner of the record.
More info + * @summary Set record sharing + * @param {string} metadataUuid Record UUID. + * @param {SharingParameter} sharingParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async share1( + metadataUuid: string, + sharingParameter: SharingParameter, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.share1( + metadataUuid, + sharingParameter, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get saved content from the status record after changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async showStatusAfter( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.showStatusAfter( + metadataUuid, + statusId, + userId, + changeDate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get saved content from the status record before changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async showStatusBefore( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.showStatusBefore( + metadataUuid, + statusId, + userId, + changeDate, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Return HTML form for editing. + * @summary Edit a record + * @param {string} metadataUuid Record UUID. + * @param {string} [currTab] Tab + * @param {boolean} [withAttributes] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async startEditing( + metadataUuid: string, + currTab?: string, + withAttributes?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.startEditing( + metadataUuid, + currTab, + withAttributes, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Add tags to a record + * @param {string} metadataUuid Record UUID. + * @param {Array} id Tag identifier + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async tagRecord( + metadataUuid: string, + id: Array, + clear?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.tagRecord( + metadataUuid, + id, + clear, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Add or remove tags to one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {Array} [id] Tag identifier + * @param {Array} [removeId] Tag identifier to remove. + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async tagRecords( + uuids?: Array, + bucket?: string, + id?: Array, + removeId?: Array, + clear?: boolean, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.tagRecords( + uuids, + bucket, + id, + removeId, + clear, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * The backup contains all metadata not harvested including templates. + * @summary Trigger MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async trigger( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.trigger( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * See record sharing for more details. + * @summary Un-publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unpublish( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.unpublish( + uuids, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Unsets privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unpublish1( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.unpublish1( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove a DOI (this is not recommended, DOI are supposed to be persistent once created. This is mainly here for testing). + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async unregisterDoi( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.unregisterDoi( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User MUST be able to edit the record to validate it. FIXME : id MUST be the id of the current metadata record in session ? + * @summary Validate a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [isvalid] Validation status. Should be provided only in case of SUBTEMPLATE validation. If provided for another type, throw a BadParameter Exception + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async validateRecord( + metadataUuid: string, + isvalid?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.validateRecord( + metadataUuid, + isvalid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. This activates an asyncronous process, this method does not return any report. This method returns an id to be used to get the report. + * @summary Submit a record to the INSPIRE service for validation. + * @param {string} metadataUuid Record UUID. + * @param {string} testsuite Test suite to run + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async validateRecordForInspire( + metadataUuid: string, + testsuite: string, + mode?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.validateRecordForInspire( + metadataUuid, + testsuite, + mode, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Update validation status for all records. + * @summary Validate one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {boolean} [approved] Use approved version or not + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async validateRecords( + uuids?: Array, + approved?: boolean, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.validateRecords( + uuids, + approved, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Update validation status for all records. + * @summary Validate one or more records in INSPIRE validator + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async validateRecordsInspire( + uuids?: Array, + bucket?: string, + mode?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.validateRecordsInspire( + uuids, + bucket, + mode, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * RecordsApi - factory interface + * @export + */ +export const RecordsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = RecordsApiFp(configuration); + return { + /** + * + * @summary Reorder element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the element to move. + * @param {'up' | 'down'} direction Direction + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addElement( + metadataUuid: string, + ref: string, + direction: "up" | "down", + displayAttributes?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .addElement(metadataUuid, ref, direction, displayAttributes, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Add element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the insertion point. + * @param {string} name Name of the element to add (with prefix) + * @param {string} [child] Use geonet:attribute for attributes or child name. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addElement1( + metadataUuid: string, + ref: string, + name: string, + child?: string, + displayAttributes?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .addElement1(metadataUuid, ref, name, child, displayAttributes, options) + .then((request) => request(axios, basePath)); + }, + /** + * Add sample records for one or more schemas. Samples are defined for each standard in the samples folder as MEF files. + * @summary Add samples + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addSamples( + schema: Array, + options?: any + ): AxiosPromise { + return localVarFp + .addSamples(schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * Add template records for one or more schemas. Templates are defined for each standard in the template folder as XML files. Template may also contains subtemplates. + * @summary Add templates + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addTemplates( + schema: Array, + options?: any + ): AxiosPromise { + return localVarFp + .addTemplates(schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * All parameters will be substituted to the XPath query. eg. {{protocol}} in the XPath expression will be replaced by the protocol parameter provided in the request body. + * @summary Apply a saved query for this metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} savedQuery The saved query to apply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applyQuery( + metadataUuid: string, + savedQuery: string, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .applyQuery(metadataUuid, savedQuery, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Edit a set of records by XPath expressions. This operations applies the update-fixed-info.xsl transformation for the metadata schema and updates the change date if the parameter updateDateStamp is set to true. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + batchEdit( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .batchEdit(batchEditParameter, uuids, bucket, updateDateStamp, options) + .then((request) => request(axios, basePath)); + }, + /** + * Cancel current editing session. + * @summary Cancel edits + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelEdits(metadataUuid: string, options?: any): AxiosPromise { + return localVarFp + .cancelEdits(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Check that a record can be submitted to DataCite for DOI creation. DataCite requires some fields to be populated. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkDoiStatus( + metadataUuid: string, + options?: any + ): AxiosPromise<{ [key: string]: boolean }> { + return localVarFp + .checkDoiStatus(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. If the process is complete an object with status is returned. + * @summary Check the status of validation with the INSPIRE service. + * @param {string} testId Test identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkValidation( + testId: string, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .checkValidation(testId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Clear validation status of one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cleanValidationStatus( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .cleanValidationStatus(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Close a record task + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {string} closeDate Close date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + closeTask( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + closeDate: string, + options?: any + ): AxiosPromise { + return localVarFp + .closeTask( + metadataUuid, + statusId, + userId, + changeDate, + closeDate, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Create a record from a template or by copying an existing record.Return the UUID of the newly created record. Existing links in the source record are preserved, this means that the new record may contains link to the source attachments. They need to be manually updated after creation. + * @summary Create a new record + * @param {string} sourceUuid UUID of the source record to copy. + * @param {string} group The group the record is attached to. + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {string} [targetUuid] Assign a custom UUID. If this UUID already exist an error is returned. This is enabled only if metadata create / generate UUID settings is activated. + * @param {boolean} [isVisibleByAllGroupMembers] Is published to all user group members? If not, only the author and administrator can edit the record. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [hasCategoryOfSource] Copy categories from source? + * @param {boolean} [isChildOfSource] Is child of the record to copy? + * @param {boolean} [hasAttachmentsOfSource] Copy attachments from source? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + create( + sourceUuid: string, + group: string, + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + targetUuid?: string, + isVisibleByAllGroupMembers?: boolean, + category?: Array, + hasCategoryOfSource?: boolean, + isChildOfSource?: boolean, + hasAttachmentsOfSource?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .create( + sourceUuid, + group, + metadataType, + targetUuid, + isVisibleByAllGroupMembers, + category, + hasCategoryOfSource, + isChildOfSource, + hasAttachmentsOfSource, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Submit a record to the Datacite metadata store in order to create a DOI. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createDoi( + metadataUuid: string, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .createDoi(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + delResource( + metadataUuid: string, + resourceId: string, + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .delResource(metadataUuid, resourceId, approved, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete all uploaded metadata resources + * @param {string} metadataUuid The metadata UUID + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + delResources( + metadataUuid: string, + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .delResources(metadataUuid, approved, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete all record status + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteAllRecordStatus( + metadataUuid: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteAllRecordStatus(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete attribute + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the attribute to remove. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteAttribute( + metadataUuid: string, + ref: string, + displayAttributes?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .deleteAttribute(metadataUuid, ref, displayAttributes, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete element + * @param {string} metadataUuid Record UUID. + * @param {Array} ref Reference of the element to remove. + * @param {string} parent Name of the parent. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteElement( + metadataUuid: string, + ref: Array, + parent: string, + displayAttributes?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .deleteElement(metadataUuid, ref, parent, displayAttributes, options) + .then((request) => request(axios, basePath)); + }, + /** + * User MUST be able to edit the record to delete it. By default, a backup is made in ZIP format. After that, the record attachments are removed, the document removed from the index and then from the database. + * @summary Delete a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteRecord( + metadataUuid: string, + withBackup?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .deleteRecord(metadataUuid, withBackup, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete a record status + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteRecordStatus( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteRecordStatus(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(axios, basePath)); + }, + /** + * User MUST be able to edit the record to delete it. + * @summary Delete one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteRecords( + uuids?: Array, + bucket?: string, + withBackup?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .deleteRecords(uuids, bucket, withBackup, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete tags to one or more records + * @param {Array} id Tag identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTagForRecords( + id: Array, + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteTagForRecords(id, uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Delete tags of a record + * @param {string} metadataUuid Record UUID. + * @param {Array} [id] Tag identifier. If none, all tags are removed. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTags( + metadataUuid: string, + id?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .deleteTags(metadataUuid, id, options) + .then((request) => request(axios, basePath)); + }, + /** + * The backup contains all metadata not harvested including templates. + * @summary Download MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadBackup(options?: any): AxiosPromise { + return localVarFp + .downloadBackup(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary (Experimental) Enable version control + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableVersionControl( + metadataUuid: string, + options?: any + ): AxiosPromise { + return localVarFp + .enableVersionControl(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary (Experimental) Enable version control for one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + enableVersionControlForRecords( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .enableVersionControlForRecords(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * The CSV is a short summary of each records. + * @summary Get a set of metadata records as CSV + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exportAsCsv( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .exportAsCsv(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a set of metadata records as ZIP + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exportAsMef( + uuids?: Array, + bucket?: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options?: any + ): AxiosPromise { + return localVarFp + .exportAsMef( + uuids, + bucket, + format, + withRelated, + withXLinksResolved, + withXLinkAttribute, + addSchemaLocation, + approved, + accept, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * The PDF is a short summary of each records with links to the complete metadata record in different format (ie. landing page on the portal, XML) + * @summary Get a set of metadata records as PDF + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exportAsPdf( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .exportAsPdf(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get the list of users \"active\" during a time period. + * @param {string} dateFrom From date of users login date + * @param {string} dateTo To date of users login date + * @param {Array} [groups] Group(s) for the users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getActiveUsers( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .getActiveUsers(dateFrom, dateTo, groups, options) + .then((request) => request(axios, basePath)); + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get record extents as image + * @param {string} metadataUuid Record UUID. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRecordExtentAsImage( + metadataUuid: string, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getAllRecordExtentAsImage( + metadataUuid, + mapsrs, + width, + height, + background, + fillColor, + strokeColor, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get list of record extents + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRecordExtentAsJson( + metadataUuid: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getAllRecordExtentAsJson(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary List all metadata attachments + * @param {string} metadataUuid The metadata UUID + * @param {'type' | 'name'} [sort] Sort by + * @param {boolean} [approved] Use approved version or not + * @param {string} [filter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllResources( + metadataUuid: string, + sort?: "type" | "name", + approved?: boolean, + filter?: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getAllResources(metadataUuid, sort, approved, filter, options) + .then((request) => request(axios, basePath)); + }, + /** + * . + * @summary Get catalog content as RDF. This endpoint supports the same Lucene query parameters as for the GUI search. + * @param {number} [from] Indicates the start position in a sorted list of matches that the client wants to use as the beginning of a page result. + * @param {number} [hitsPerPage] Indicates the number of hits per page. + * @param {string} [any] Search key + * @param {string} [title] A search key for the title. + * @param {string} [facetQ] A search facet in the Lucene index. Use the GeoNetwork GUI search to generate the suitable filter values. Example: standard/dcat-ap&createDateYear/2018&sourceCatalog/6d93613e-2b76-4e26-94af-4b4c420a1758 (filter by creation year and source catalog). + * @param {string} [sortBy] Lucene sortBy criteria. Relevant values: relevance, title, changeDate. + * @param {string} [sortOrder] Sort order. Possible values: reverse. + * @param {number} [similarity] Use the Lucene FuzzyQuery. Values range from 0.0 to 1.0 and defaults to 0.8. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAsRdf( + from?: number, + hitsPerPage?: number, + any?: string, + title?: string, + facetQ?: string, + sortBy?: string, + sortOrder?: string, + similarity?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getAsRdf( + from, + hitsPerPage, + any, + title, + facetQ, + sortBy, + sortOrder, + similarity, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Get record related resources + * @param {string} metadataUuid Record UUID. + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {number} [start] Start offset for paging. Default 1. Only applies to related metadata records (ie. not for thumbnails). + * @param {number} [rows] Number of rows returned. Default 100. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAssociatedResources( + metadataUuid: string, + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + start?: number, + rows?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getAssociatedResources(metadataUuid, type, start, rows, options) + .then((request) => request(axios, basePath)); + }, + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Returns a map to decode attributes in a dataset (from the associated feature catalog) + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFeatureCatalog( + metadataUuid: string, + options?: any + ): AxiosPromise { + return localVarFp + .getFeatureCatalog(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get one record extent as image + * @param {string} metadataUuid Record UUID. + * @param {number} geometryIndex Index of the geometry or bounding box to display. Starts at 1. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOneRecordExtentAsImage( + metadataUuid: string, + geometryIndex: number, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getOneRecordExtentAsImage( + metadataUuid, + geometryIndex, + mapsrs, + width, + height, + background, + fillColor, + strokeColor, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Used when a view is based on the search results content and does not really access the record. Record is then added to the indexing queue and popularity will be updated soon. + * @summary Increase record popularity + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecord(metadataUuid: string, options?: any): AxiosPromise { + return localVarFp + .getRecord(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * Depending on the accept header the appropriate formatter is used. When requesting a ZIP, a MEF version 2 file is returned. When requesting HTML, the default formatter is used. + * @summary Get a metadata record + * @param {string} metadataUuid Record UUID. + * @param {string} accept Accept header should indicate which is the appropriate format to return. It could be text/html, application/xml, application/zip, ...If no appropriate Accept header found, the XML format is returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecord1( + metadataUuid: string, + accept: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecord1(metadataUuid, accept, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordAs( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordAs( + metadataUuid, + addSchemaLocation, + increasePopularity, + withInfo, + attachment, + approved, + accept, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordAs1( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordAs1( + metadataUuid, + addSchemaLocation, + increasePopularity, + withInfo, + attachment, + approved, + accept, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a metadata record as ZIP + * @param {string} metadataUuid Record UUID. + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordAsZip( + metadataUuid: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordAsZip( + metadataUuid, + format, + withRelated, + withXLinksResolved, + withXLinkAttribute, + addSchemaLocation, + approved, + accept, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a formatted metadata record + * @param {string} formatterId + * @param {string} metadataUuid Record UUID. + * @param {string} [accept] Formatter type to use. + * @param {'_25' | '_50' | '_75' | '_100'} [width] + * @param {string} [mdpath] + * @param {string} [language] Optional language ISO 3 letters code to override HTTP Accept-language header. + * @param {'txt' | 'html' | 'xml' | 'json' | 'jsonld' | 'pdf' | 'testpdf'} [output] + * @param {boolean} [approved] Download the approved version + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordFormattedBy( + formatterId: string, + metadataUuid: string, + accept?: string, + width?: "_25" | "_50" | "_75" | "_100", + mdpath?: string, + language?: string, + output?: "txt" | "html" | "xml" | "json" | "jsonld" | "pdf" | "testpdf", + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordFormattedBy( + formatterId, + metadataUuid, + accept, + width, + mdpath, + language, + output, + approved, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Return current sharing options for a record. + * @summary Get record sharing settings + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordSharingSettings( + metadataUuid: string, + options?: any + ): AxiosPromise { + return localVarFp + .getRecordSharingSettings(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get record status history + * @param {string} metadataUuid Record UUID. + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordStatusHistory( + metadataUuid: string, + details?: boolean, + sortOrder?: "ASC" | "DESC", + options?: any + ): AxiosPromise { + return localVarFp + .getRecordStatusHistory(metadataUuid, details, sortOrder, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get record status history by type + * @param {string} metadataUuid Record UUID. + * @param {'workflow' | 'task' | 'event'} type Type + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordStatusHistoryByType( + metadataUuid: string, + type: "workflow" | "task" | "event", + details?: boolean, + sortOrder?: "ASC" | "DESC", + options?: any + ): AxiosPromise { + return localVarFp + .getRecordStatusHistoryByType( + metadataUuid, + type, + details, + sortOrder, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Tags are used to classify information.
More info + * @summary Get record tags + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordTags( + metadataUuid: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getRecordTags(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of metadata file downloads + * @param {string} dateFrom From date of the metadata downloads + * @param {string} dateTo To date of the metadata downloads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportDataDownloads( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .getReportDataDownloads(dateFrom, dateTo, groups, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get uploaded files to metadata records during a period. + * @param {string} dateFrom From date of the metadata uploads + * @param {string} dateTo To date of the metadata uploads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportDataUploads( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .getReportDataUploads(dateFrom, dateTo, groups, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get the metadata not published during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportInternalMetadata( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .getReportInternalMetadata(dateFrom, dateTo, groups, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get the updated metadata during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReportUpdatedMetadata( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .getReportUpdatedMetadata(dateFrom, dateTo, groups, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {number} [size] Size (only applies to images). From 1px to 2048px. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getResource( + metadataUuid: string, + resourceId: string, + approved?: boolean, + size?: number, + options?: any + ): AxiosPromise> { + return localVarFp + .getResource(metadataUuid, resourceId, approved, size, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary List saved queries for this metadata + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSavedQueries( + metadataUuid: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getSavedQueries(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get record sharing settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSharingSettings(options?: any): AxiosPromise { + return localVarFp + .getSharingSettings(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get last workflow status for a record + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStatus(metadataUuid: string, options?: any): AxiosPromise { + return localVarFp + .getStatus(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * Analyze the record an suggest processes to improve the quality of the record.
More info + * @summary Get suggestions + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSuggestions( + metadataUuid: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getSuggestions(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * TG13, TG2, ... + * @summary Get test suites available. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTestSuites( + metadataUuid: string, + options?: any + ): AxiosPromise<{ [key: string]: Array }> { + return localVarFp + .getTestSuites(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Search status + * @param {Array<'workflow' | 'task' | 'event'>} [type] One or more types to retrieve (ie. worflow, event, task). Default is all. + * @param {boolean} [details] All event details including XML changes. Responses are bigger. Default is false + * @param {'ASC' | 'DESC'} [sortOrder] Sort Order (ie. DESC or ASC). Default is none. + * @param {Array} [author] One or more event author. Default is all. + * @param {Array} [owner] One or more event owners. Default is all. + * @param {Array} [id] One or more record identifier. Default is all. + * @param {Array} [record] One or more metadata record identifier. Default is all. + * @param {Array} [uuid] One or more metadata uuid. Default is all. + * @param {Array} [statusIds] One or more status id. Default is all. + * @param {string} [dateFrom] Start date + * @param {string} [dateTo] End date + * @param {number} [from] From page + * @param {number} [size] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWorkflowStatusByType( + type?: Array<"workflow" | "task" | "event">, + details?: boolean, + sortOrder?: "ASC" | "DESC", + author?: Array, + owner?: Array, + id?: Array, + record?: Array, + uuid?: Array, + statusIds?: Array, + dateFrom?: string, + dateTo?: string, + from?: number, + size?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getWorkflowStatusByType( + type, + details, + sortOrder, + author, + owner, + id, + record, + uuid, + statusIds, + dateFrom, + dateTo, + from, + size, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Index a set of records provided either by a bucket or a list of uuids + * @summary Index a set of records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + index( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise<{ [key: string]: object }> { + return localVarFp + .index(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * Add one or more record from an XML fragment, URL or file in a folder on the catalog server. When loadingfrom the catalog server folder, it might be faster to use a local filesystem harvester. + * @summary Add a record + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [url] URL of a file to download and insert. + * @param {string} [serverFolder] Server folder where to look for files. + * @param {boolean} [recursiveSearch] (Server folder import only) Recursive search in folder. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {string} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + insert( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + url?: Array, + serverFolder?: string, + recursiveSearch?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + body?: string, + options?: any + ): AxiosPromise { + return localVarFp + .insert( + metadataType, + url, + serverFolder, + recursiveSearch, + publishToAll, + assignToCatalog, + uuidProcessing, + group, + category, + rejectIfInvalid, + transformWith, + schema, + extra, + body, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Add record in the catalog by uploading files. + * @summary Add a record from XML or MEF/ZIP file + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [file] XML or MEF file to upload + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + insertFile( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + file?: Array, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + options?: any + ): AxiosPromise { + return localVarFp + .insertFile( + metadataType, + file, + uuidProcessing, + group, + category, + rejectIfInvalid, + publishToAll, + assignToCatalog, + transformWith, + schema, + extra, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Add record in the catalog by uploading a map context. + * @summary Add a map metadata record from OGC OWS context + * @param {string} title A map title + * @param {string} [recordAbstract] A map abstract + * @param {string} [xml] OGC OWS context as string + * @param {string} [filename] OGC OWS context file name + * @param {string} [url] OGC OWS context URL + * @param {string} [viewerUrl] A map viewer URL to visualize the map + * @param {string} [overview] Map overview as PNG (base64 encoded) + * @param {string} [overviewFilename] Map overview filename + * @param {string} [topic] Topic category + * @param {boolean} [publishToAll] Publish record. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + insertOgcMapContextFile( + title: string, + recordAbstract?: string, + xml?: string, + filename?: string, + url?: string, + viewerUrl?: string, + overview?: string, + overviewFilename?: string, + topic?: string, + publishToAll?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + options?: any + ): AxiosPromise { + return localVarFp + .insertOgcMapContextFile( + title, + recordAbstract, + xml, + filename, + url, + viewerUrl, + overview, + overviewFilename, + topic, + publishToAll, + uuidProcessing, + group, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update the metadata resource visibility + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {'public' | 'private'} visibility The visibility + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + patchResource( + metadataUuid: string, + resourceId: string, + visibility: "public" | "private", + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .patchResource(metadataUuid, resourceId, visibility, approved, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Preview edits made by XPath expressions. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewBatchEdit( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + diffType?: "patch" | "diff" | "diffhtml", + options?: any + ): AxiosPromise { + return localVarFp + .previewBatchEdit(batchEditParameter, uuids, bucket, diffType, options) + .then((request) => request(axios, basePath)); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processRecord( + metadataUuid: string, + process: string, + options?: any + ): AxiosPromise { + return localVarFp + .processRecord(metadataUuid, process, options) + .then((request) => request(axios, basePath)); + }, + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Preview process result + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processRecordPreview( + metadataUuid: string, + process: string, + options?: any + ): AxiosPromise { + return localVarFp + .processRecordPreview(metadataUuid, process, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Set privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publish(metadataUuid: string, options?: any): AxiosPromise { + return localVarFp + .publish(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * See record sharing for more details. + * @summary Publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publish1( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .publish1(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Create a new resource for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {InlineObject2} [inlineObject2] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putResource( + metadataUuid: string, + visibility?: "public" | "private", + approved?: boolean, + inlineObject2?: InlineObject2, + options?: any + ): AxiosPromise { + return localVarFp + .putResource(metadataUuid, visibility, approved, inlineObject2, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Create a new resource from a URL for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} url The URL to load in the store + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putResourceFromURL( + metadataUuid: string, + url: string, + visibility?: "public" | "private", + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .putResourceFromURL(metadataUuid, url, visibility, approved, options) + .then((request) => request(axios, basePath)); + }, + /** + * User rating of metadata. If the metadata was harvested using the \'GeoNetwork\' protocol and the system setting localrating/enable is false (the default), the user\'s rating is shared between GN nodes in this harvesting network. If the metadata was not harvested or if localrating/enable is true then \'local rating\' is applied, counting only rating from users of this node.
When a remote rating is applied, the local rating is not updated. It will be updated on the next harvest run (FIXME ?). + * @summary Rate a record + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + rateRecord( + metadataUuid: string, + body: number, + options?: any + ): AxiosPromise { + return localVarFp + .rateRecord(metadataUuid, body, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Restore saved content from a status record + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + restoreAtStatusSave( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: any + ): AxiosPromise { + return localVarFp + .restoreAtStatusSave( + metadataUuid, + statusId, + userId, + changeDate, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Save the HTML form content. + * @summary Save edits + * @param {string} metadataUuid Record UUID. + * @param {string} [tab] Tab + * @param {boolean} [withAttributes] + * @param {boolean} [withValidationErrors] + * @param {boolean} [minor] + * @param {string} [status] Submit for review directly after save. + * @param {boolean} [commit] Save current edits. + * @param {boolean} [terminate] Save and terminate session. + * @param {string} [data] Record as XML. TODO: rename xml + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveEdits( + metadataUuid: string, + tab?: string, + withAttributes?: boolean, + withValidationErrors?: boolean, + minor?: boolean, + status?: string, + commit?: boolean, + terminate?: boolean, + data?: string, + options?: any + ): AxiosPromise { + return localVarFp + .saveEdits( + metadataUuid, + tab, + withAttributes, + withValidationErrors, + minor, + status, + commit, + terminate, + data, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * More info + * @summary Create an overview using the map print module + * @param {string} metadataUuid Record UUID. + * @param {string} jsonConfig The mapprint module JSON configuration + * @param {number} [rotationAngle] The rotation angle of the map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveThumbnail( + metadataUuid: string, + jsonConfig: string, + rotationAngle?: number, + options?: any + ): AxiosPromise { + return localVarFp + .saveThumbnail(metadataUuid, jsonConfig, rotationAngle, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Set group and owner for one or more records + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setGroupAndOwner( + groupIdentifier: number, + userIdentifier: number, + uuids?: Array, + bucket?: string, + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .setGroupAndOwner( + groupIdentifier, + userIdentifier, + uuids, + bucket, + approved, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * A record is related to one group. + * @summary Set record group + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setRecordGroup( + metadataUuid: string, + body: number, + options?: any + ): AxiosPromise { + return localVarFp + .setRecordGroup(metadataUuid, body, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Set record group and owner + * @param {string} metadataUuid Record UUID. + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setRecordOwnership( + metadataUuid: string, + groupIdentifier: number, + userIdentifier: number, + approved?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .setRecordOwnership( + metadataUuid, + groupIdentifier, + userIdentifier, + approved, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Set the record status + * @param {string} metadataUuid Record UUID. + * @param {MetadataStatusParameter} metadataStatusParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setStatus( + metadataUuid: string, + metadataStatusParameter: MetadataStatusParameter, + options?: any + ): AxiosPromise { + return localVarFp + .setStatus(metadataUuid, metadataStatusParameter, options) + .then((request) => request(axios, basePath)); + }, + /** + * See record sharing for more details. + * @summary Set sharing settings for one or more records + * @param {SharingParameter} sharingParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + share( + sharingParameter: SharingParameter, + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .share(sharingParameter, uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * Privileges are assigned by group. User needs to be able to edit a record to set sharing settings. For reserved group (ie. Internet, Intranet & Guest), user MUST be reviewer of one group. For other group, if Only set privileges to user\'s groups is set in catalog configuration user MUST be a member of the group.
Clear first allows to unset all operations first before setting the new ones.Clear option does not remove reserved groups operation if user is not an administrator, a reviewer or the owner of the record.
More info + * @summary Set record sharing + * @param {string} metadataUuid Record UUID. + * @param {SharingParameter} sharingParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + share1( + metadataUuid: string, + sharingParameter: SharingParameter, + options?: any + ): AxiosPromise { + return localVarFp + .share1(metadataUuid, sharingParameter, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get saved content from the status record after changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + showStatusAfter( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: any + ): AxiosPromise { + return localVarFp + .showStatusAfter(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get saved content from the status record before changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + showStatusBefore( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: any + ): AxiosPromise { + return localVarFp + .showStatusBefore(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(axios, basePath)); + }, + /** + * Return HTML form for editing. + * @summary Edit a record + * @param {string} metadataUuid Record UUID. + * @param {string} [currTab] Tab + * @param {boolean} [withAttributes] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + startEditing( + metadataUuid: string, + currTab?: string, + withAttributes?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .startEditing(metadataUuid, currTab, withAttributes, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Add tags to a record + * @param {string} metadataUuid Record UUID. + * @param {Array} id Tag identifier + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + tagRecord( + metadataUuid: string, + id: Array, + clear?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .tagRecord(metadataUuid, id, clear, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Add or remove tags to one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {Array} [id] Tag identifier + * @param {Array} [removeId] Tag identifier to remove. + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + tagRecords( + uuids?: Array, + bucket?: string, + id?: Array, + removeId?: Array, + clear?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .tagRecords(uuids, bucket, id, removeId, clear, options) + .then((request) => request(axios, basePath)); + }, + /** + * The backup contains all metadata not harvested including templates. + * @summary Trigger MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + trigger(options?: any): AxiosPromise { + return localVarFp + .trigger(options) + .then((request) => request(axios, basePath)); + }, + /** + * See record sharing for more details. + * @summary Un-publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublish( + uuids?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .unpublish(uuids, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Unsets privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unpublish1(metadataUuid: string, options?: any): AxiosPromise { + return localVarFp + .unpublish1(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove a DOI (this is not recommended, DOI are supposed to be persistent once created. This is mainly here for testing). + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + unregisterDoi(metadataUuid: string, options?: any): AxiosPromise { + return localVarFp + .unregisterDoi(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * User MUST be able to edit the record to validate it. FIXME : id MUST be the id of the current metadata record in session ? + * @summary Validate a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [isvalid] Validation status. Should be provided only in case of SUBTEMPLATE validation. If provided for another type, throw a BadParameter Exception + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecord( + metadataUuid: string, + isvalid?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .validateRecord(metadataUuid, isvalid, options) + .then((request) => request(axios, basePath)); + }, + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. This activates an asyncronous process, this method does not return any report. This method returns an id to be used to get the report. + * @summary Submit a record to the INSPIRE service for validation. + * @param {string} metadataUuid Record UUID. + * @param {string} testsuite Test suite to run + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecordForInspire( + metadataUuid: string, + testsuite: string, + mode?: string, + options?: any + ): AxiosPromise { + return localVarFp + .validateRecordForInspire(metadataUuid, testsuite, mode, options) + .then((request) => request(axios, basePath)); + }, + /** + * Update validation status for all records. + * @summary Validate one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {boolean} [approved] Use approved version or not + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecords( + uuids?: Array, + approved?: boolean, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .validateRecords(uuids, approved, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * Update validation status for all records. + * @summary Validate one or more records in INSPIRE validator + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateRecordsInspire( + uuids?: Array, + bucket?: string, + mode?: string, + options?: any + ): AxiosPromise { + return localVarFp + .validateRecordsInspire(uuids, bucket, mode, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RecordsApi - object-oriented interface + * @export + * @class RecordsApi + * @extends {BaseAPI} + */ +export class RecordsApi extends BaseAPI { + /** + * + * @summary Reorder element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the element to move. + * @param {'up' | 'down'} direction Direction + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public addElement( + metadataUuid: string, + ref: string, + direction: "up" | "down", + displayAttributes?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .addElement(metadataUuid, ref, direction, displayAttributes, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Add element + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the insertion point. + * @param {string} name Name of the element to add (with prefix) + * @param {string} [child] Use geonet:attribute for attributes or child name. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public addElement1( + metadataUuid: string, + ref: string, + name: string, + child?: string, + displayAttributes?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .addElement1(metadataUuid, ref, name, child, displayAttributes, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Add sample records for one or more schemas. Samples are defined for each standard in the samples folder as MEF files. + * @summary Add samples + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public addSamples(schema: Array, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .addSamples(schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Add template records for one or more schemas. Templates are defined for each standard in the template folder as XML files. Template may also contains subtemplates. + * @summary Add templates + * @param {Array} schema Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public addTemplates(schema: Array, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .addTemplates(schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * All parameters will be substituted to the XPath query. eg. {{protocol}} in the XPath expression will be replaced by the protocol parameter provided in the request body. + * @summary Apply a saved query for this metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} savedQuery The saved query to apply + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public applyQuery( + metadataUuid: string, + savedQuery: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .applyQuery(metadataUuid, savedQuery, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Edit a set of records by XPath expressions. This operations applies the update-fixed-info.xsl transformation for the metadata schema and updates the change date if the parameter updateDateStamp is set to true. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [updateDateStamp] If true updates the DateStamp (or equivalent in standards different to ISO 19139) field in the metadata with the current timestamp + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public batchEdit( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + updateDateStamp?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .batchEdit(batchEditParameter, uuids, bucket, updateDateStamp, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Cancel current editing session. + * @summary Cancel edits + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public cancelEdits(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .cancelEdits(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Check that a record can be submitted to DataCite for DOI creation. DataCite requires some fields to be populated. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public checkDoiStatus(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .checkDoiStatus(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. If the process is complete an object with status is returned. + * @summary Check the status of validation with the INSPIRE service. + * @param {string} testId Test identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public checkValidation(testId: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .checkValidation(testId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Clear validation status of one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public cleanValidationStatus( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .cleanValidationStatus(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Close a record task + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {string} closeDate Close date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public closeTask( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + closeDate: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .closeTask(metadataUuid, statusId, userId, changeDate, closeDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Create a record from a template or by copying an existing record.Return the UUID of the newly created record. Existing links in the source record are preserved, this means that the new record may contains link to the source attachments. They need to be manually updated after creation. + * @summary Create a new record + * @param {string} sourceUuid UUID of the source record to copy. + * @param {string} group The group the record is attached to. + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {string} [targetUuid] Assign a custom UUID. If this UUID already exist an error is returned. This is enabled only if metadata create / generate UUID settings is activated. + * @param {boolean} [isVisibleByAllGroupMembers] Is published to all user group members? If not, only the author and administrator can edit the record. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [hasCategoryOfSource] Copy categories from source? + * @param {boolean} [isChildOfSource] Is child of the record to copy? + * @param {boolean} [hasAttachmentsOfSource] Copy attachments from source? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public create( + sourceUuid: string, + group: string, + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + targetUuid?: string, + isVisibleByAllGroupMembers?: boolean, + category?: Array, + hasCategoryOfSource?: boolean, + isChildOfSource?: boolean, + hasAttachmentsOfSource?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .create( + sourceUuid, + group, + metadataType, + targetUuid, + isVisibleByAllGroupMembers, + category, + hasCategoryOfSource, + isChildOfSource, + hasAttachmentsOfSource, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Submit a record to the Datacite metadata store in order to create a DOI. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public createDoi(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .createDoi(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public delResource( + metadataUuid: string, + resourceId: string, + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .delResource(metadataUuid, resourceId, approved, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete all uploaded metadata resources + * @param {string} metadataUuid The metadata UUID + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public delResources( + metadataUuid: string, + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .delResources(metadataUuid, approved, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete all record status + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteAllRecordStatus( + metadataUuid: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteAllRecordStatus(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete attribute + * @param {string} metadataUuid Record UUID. + * @param {string} ref Reference of the attribute to remove. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteAttribute( + metadataUuid: string, + ref: string, + displayAttributes?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteAttribute(metadataUuid, ref, displayAttributes, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete element + * @param {string} metadataUuid Record UUID. + * @param {Array} ref Reference of the element to remove. + * @param {string} parent Name of the parent. + * @param {boolean} [displayAttributes] Should attributes be shown on the editor snippet? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteElement( + metadataUuid: string, + ref: Array, + parent: string, + displayAttributes?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteElement(metadataUuid, ref, parent, displayAttributes, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User MUST be able to edit the record to delete it. By default, a backup is made in ZIP format. After that, the record attachments are removed, the document removed from the index and then from the database. + * @summary Delete a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteRecord( + metadataUuid: string, + withBackup?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteRecord(metadataUuid, withBackup, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete a record status + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteRecordStatus( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteRecordStatus(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User MUST be able to edit the record to delete it. + * @summary Delete one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [withBackup] Backup first the record as MEF in the metadata removed folder. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteRecords( + uuids?: Array, + bucket?: string, + withBackup?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteRecords(uuids, bucket, withBackup, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete tags to one or more records + * @param {Array} id Tag identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteTagForRecords( + id: Array, + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteTagForRecords(id, uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Delete tags of a record + * @param {string} metadataUuid Record UUID. + * @param {Array} [id] Tag identifier. If none, all tags are removed. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public deleteTags( + metadataUuid: string, + id?: Array, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .deleteTags(metadataUuid, id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The backup contains all metadata not harvested including templates. + * @summary Download MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public downloadBackup(options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .downloadBackup(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary (Experimental) Enable version control + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public enableVersionControl( + metadataUuid: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .enableVersionControl(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary (Experimental) Enable version control for one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public enableVersionControlForRecords( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .enableVersionControlForRecords(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The CSV is a short summary of each records. + * @summary Get a set of metadata records as CSV + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public exportAsCsv( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .exportAsCsv(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a set of metadata records as ZIP + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public exportAsMef( + uuids?: Array, + bucket?: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .exportAsMef( + uuids, + bucket, + format, + withRelated, + withXLinksResolved, + withXLinkAttribute, + addSchemaLocation, + approved, + accept, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The PDF is a short summary of each records with links to the complete metadata record in different format (ie. landing page on the portal, XML) + * @summary Get a set of metadata records as PDF + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public exportAsPdf( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .exportAsPdf(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get the list of users \"active\" during a time period. + * @param {string} dateFrom From date of users login date + * @param {string} dateTo To date of users login date + * @param {Array} [groups] Group(s) for the users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getActiveUsers( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getActiveUsers(dateFrom, dateTo, groups, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get record extents as image + * @param {string} metadataUuid Record UUID. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getAllRecordExtentAsImage( + metadataUuid: string, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getAllRecordExtentAsImage( + metadataUuid, + mapsrs, + width, + height, + background, + fillColor, + strokeColor, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get list of record extents + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getAllRecordExtentAsJson( + metadataUuid: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getAllRecordExtentAsJson(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary List all metadata attachments + * @param {string} metadataUuid The metadata UUID + * @param {'type' | 'name'} [sort] Sort by + * @param {boolean} [approved] Use approved version or not + * @param {string} [filter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getAllResources( + metadataUuid: string, + sort?: "type" | "name", + approved?: boolean, + filter?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getAllResources(metadataUuid, sort, approved, filter, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * . + * @summary Get catalog content as RDF. This endpoint supports the same Lucene query parameters as for the GUI search. + * @param {number} [from] Indicates the start position in a sorted list of matches that the client wants to use as the beginning of a page result. + * @param {number} [hitsPerPage] Indicates the number of hits per page. + * @param {string} [any] Search key + * @param {string} [title] A search key for the title. + * @param {string} [facetQ] A search facet in the Lucene index. Use the GeoNetwork GUI search to generate the suitable filter values. Example: standard/dcat-ap&createDateYear/2018&sourceCatalog/6d93613e-2b76-4e26-94af-4b4c420a1758 (filter by creation year and source catalog). + * @param {string} [sortBy] Lucene sortBy criteria. Relevant values: relevance, title, changeDate. + * @param {string} [sortOrder] Sort order. Possible values: reverse. + * @param {number} [similarity] Use the Lucene FuzzyQuery. Values range from 0.0 to 1.0 and defaults to 0.8. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getAsRdf( + from?: number, + hitsPerPage?: number, + any?: string, + title?: string, + facetQ?: string, + sortBy?: string, + sortOrder?: string, + similarity?: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getAsRdf( + from, + hitsPerPage, + any, + title, + facetQ, + sortBy, + sortOrder, + similarity, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Get record related resources + * @param {string} metadataUuid Record UUID. + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {number} [start] Start offset for paging. Default 1. Only applies to related metadata records (ie. not for thumbnails). + * @param {number} [rows] Number of rows returned. Default 100. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getAssociatedResources( + metadataUuid: string, + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + start?: number, + rows?: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getAssociatedResources(metadataUuid, type, start, rows, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to this records.
More info + * @summary Returns a map to decode attributes in a dataset (from the associated feature catalog) + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getFeatureCatalog(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getFeatureCatalog(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + * @summary Get one record extent as image + * @param {string} metadataUuid Record UUID. + * @param {number} geometryIndex Index of the geometry or bounding box to display. Starts at 1. + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [fillColor] (optional) Fill color with format RED,GREEN,BLUE,ALPHA + * @param {string} [strokeColor] (optional) Stroke color with format RED,GREEN,BLUE,ALPHA + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getOneRecordExtentAsImage( + metadataUuid: string, + geometryIndex: number, + mapsrs?: string, + width?: number, + height?: number, + background?: string, + fillColor?: string, + strokeColor?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getOneRecordExtentAsImage( + metadataUuid, + geometryIndex, + mapsrs, + width, + height, + background, + fillColor, + strokeColor, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Used when a view is based on the search results content and does not really access the record. Record is then added to the indexing queue and popularity will be updated soon. + * @summary Increase record popularity + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecord(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getRecord(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Depending on the accept header the appropriate formatter is used. When requesting a ZIP, a MEF version 2 file is returned. When requesting HTML, the default formatter is used. + * @summary Get a metadata record + * @param {string} metadataUuid Record UUID. + * @param {string} accept Accept header should indicate which is the appropriate format to return. It could be text/html, application/xml, application/zip, ...If no appropriate Accept header found, the XML format is returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecord1( + metadataUuid: string, + accept: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecord1(metadataUuid, accept, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordAs( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordAs( + metadataUuid, + addSchemaLocation, + increasePopularity, + withInfo, + attachment, + approved, + accept, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a metadata record as XML or JSON + * @param {string} metadataUuid Record UUID. + * @param {boolean} [addSchemaLocation] Add XSD schema location based on standard configuration (see schema-ident.xml). + * @param {boolean} [increasePopularity] Increase record popularity + * @param {boolean} [withInfo] Add geonet:info details + * @param {boolean} [attachment] Download as a file + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordAs1( + metadataUuid: string, + addSchemaLocation?: boolean, + increasePopularity?: boolean, + withInfo?: boolean, + attachment?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordAs1( + metadataUuid, + addSchemaLocation, + increasePopularity, + withInfo, + attachment, + approved, + accept, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing the metadata as XML and some others files depending on the version requested. See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + * @summary Get a metadata record as ZIP + * @param {string} metadataUuid Record UUID. + * @param {'simple' | 'partial' | 'full'} [format] MEF file format. + * @param {boolean} [withRelated] With related records (parent and service). + * @param {boolean} [withXLinksResolved] Resolve XLinks in the records. + * @param {boolean} [withXLinkAttribute] Preserve XLink URLs in the records. + * @param {boolean} [addSchemaLocation] + * @param {boolean} [approved] Download the approved version + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordAsZip( + metadataUuid: string, + format?: "simple" | "partial" | "full", + withRelated?: boolean, + withXLinksResolved?: boolean, + withXLinkAttribute?: boolean, + addSchemaLocation?: boolean, + approved?: boolean, + accept?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordAsZip( + metadataUuid, + format, + withRelated, + withXLinksResolved, + withXLinkAttribute, + addSchemaLocation, + approved, + accept, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a formatted metadata record + * @param {string} formatterId + * @param {string} metadataUuid Record UUID. + * @param {string} [accept] Formatter type to use. + * @param {'_25' | '_50' | '_75' | '_100'} [width] + * @param {string} [mdpath] + * @param {string} [language] Optional language ISO 3 letters code to override HTTP Accept-language header. + * @param {'txt' | 'html' | 'xml' | 'json' | 'jsonld' | 'pdf' | 'testpdf'} [output] + * @param {boolean} [approved] Download the approved version + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordFormattedBy( + formatterId: string, + metadataUuid: string, + accept?: string, + width?: "_25" | "_50" | "_75" | "_100", + mdpath?: string, + language?: string, + output?: "txt" | "html" | "xml" | "json" | "jsonld" | "pdf" | "testpdf", + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordFormattedBy( + formatterId, + metadataUuid, + accept, + width, + mdpath, + language, + output, + approved, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Return current sharing options for a record. + * @summary Get record sharing settings + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordSharingSettings( + metadataUuid: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordSharingSettings(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get record status history + * @param {string} metadataUuid Record UUID. + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordStatusHistory( + metadataUuid: string, + details?: boolean, + sortOrder?: "ASC" | "DESC", + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordStatusHistory(metadataUuid, details, sortOrder, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get record status history by type + * @param {string} metadataUuid Record UUID. + * @param {'workflow' | 'task' | 'event'} type Type + * @param {boolean} [details] + * @param {'ASC' | 'DESC'} [sortOrder] Sort direction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordStatusHistoryByType( + metadataUuid: string, + type: "workflow" | "task" | "event", + details?: boolean, + sortOrder?: "ASC" | "DESC", + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getRecordStatusHistoryByType( + metadataUuid, + type, + details, + sortOrder, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Tags are used to classify information.
More info + * @summary Get record tags + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getRecordTags(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getRecordTags(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of metadata file downloads + * @param {string} dateFrom From date of the metadata downloads + * @param {string} dateTo To date of the metadata downloads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getReportDataDownloads( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getReportDataDownloads(dateFrom, dateTo, groups, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get uploaded files to metadata records during a period. + * @param {string} dateFrom From date of the metadata uploads + * @param {string} dateTo To date of the metadata uploads + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getReportDataUploads( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getReportDataUploads(dateFrom, dateTo, groups, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get the metadata not published during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getReportInternalMetadata( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getReportInternalMetadata(dateFrom, dateTo, groups, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get the updated metadata during a period. + * @param {string} dateFrom From date of metadata change date + * @param {string} dateTo To date of metadata change date + * @param {Array} [groups] Metadata group(s) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getReportUpdatedMetadata( + dateFrom: string, + dateTo: string, + groups?: Array, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getReportUpdatedMetadata(dateFrom, dateTo, groups, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a metadata resource + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {boolean} [approved] Use approved version or not + * @param {number} [size] Size (only applies to images). From 1px to 2048px. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getResource( + metadataUuid: string, + resourceId: string, + approved?: boolean, + size?: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getResource(metadataUuid, resourceId, approved, size, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary List saved queries for this metadata + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getSavedQueries(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getSavedQueries(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get record sharing settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getSharingSettings(options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getSharingSettings(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get last workflow status for a record + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getStatus(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getStatus(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Analyze the record an suggest processes to improve the quality of the record.
More info + * @summary Get suggestions + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getSuggestions(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getSuggestions(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * TG13, TG2, ... + * @summary Get test suites available. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getTestSuites(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .getTestSuites(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Search status + * @param {Array<'workflow' | 'task' | 'event'>} [type] One or more types to retrieve (ie. worflow, event, task). Default is all. + * @param {boolean} [details] All event details including XML changes. Responses are bigger. Default is false + * @param {'ASC' | 'DESC'} [sortOrder] Sort Order (ie. DESC or ASC). Default is none. + * @param {Array} [author] One or more event author. Default is all. + * @param {Array} [owner] One or more event owners. Default is all. + * @param {Array} [id] One or more record identifier. Default is all. + * @param {Array} [record] One or more metadata record identifier. Default is all. + * @param {Array} [uuid] One or more metadata uuid. Default is all. + * @param {Array} [statusIds] One or more status id. Default is all. + * @param {string} [dateFrom] Start date + * @param {string} [dateTo] End date + * @param {number} [from] From page + * @param {number} [size] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public getWorkflowStatusByType( + type?: Array<"workflow" | "task" | "event">, + details?: boolean, + sortOrder?: "ASC" | "DESC", + author?: Array, + owner?: Array, + id?: Array, + record?: Array, + uuid?: Array, + statusIds?: Array, + dateFrom?: string, + dateTo?: string, + from?: number, + size?: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .getWorkflowStatusByType( + type, + details, + sortOrder, + author, + owner, + id, + record, + uuid, + statusIds, + dateFrom, + dateTo, + from, + size, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Index a set of records provided either by a bucket or a list of uuids + * @summary Index a set of records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public index( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .index(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Add one or more record from an XML fragment, URL or file in a folder on the catalog server. When loadingfrom the catalog server folder, it might be faster to use a local filesystem harvester. + * @summary Add a record + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [url] URL of a file to download and insert. + * @param {string} [serverFolder] Server folder where to look for files. + * @param {boolean} [recursiveSearch] (Server folder import only) Recursive search in folder. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {string} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public insert( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + url?: Array, + serverFolder?: string, + recursiveSearch?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + body?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .insert( + metadataType, + url, + serverFolder, + recursiveSearch, + publishToAll, + assignToCatalog, + uuidProcessing, + group, + category, + rejectIfInvalid, + transformWith, + schema, + extra, + body, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Add record in the catalog by uploading files. + * @summary Add a record from XML or MEF/ZIP file + * @param {'METADATA' | 'TEMPLATE' | 'SUB_TEMPLATE' | 'TEMPLATE_OF_SUB_TEMPLATE'} [metadataType] The type of record. + * @param {Array} [file] XML or MEF file to upload + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {Array} [category] Tags to assign to the record. + * @param {boolean} [rejectIfInvalid] Validate the record first and reject it if not valid. + * @param {boolean} [publishToAll] (XML file only) Publish record. + * @param {boolean} [assignToCatalog] (MEF file only) Assign to current catalog. + * @param {string} [transformWith] XSL transformation to apply to the record. + * @param {string} [schema] Force the schema of the record. If not set, schema autodetection is used (and is the preferred method). + * @param {string} [extra] (experimental) Add extra information to the record. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public insertFile( + metadataType?: + | "METADATA" + | "TEMPLATE" + | "SUB_TEMPLATE" + | "TEMPLATE_OF_SUB_TEMPLATE", + file?: Array, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + category?: Array, + rejectIfInvalid?: boolean, + publishToAll?: boolean, + assignToCatalog?: boolean, + transformWith?: string, + schema?: string, + extra?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .insertFile( + metadataType, + file, + uuidProcessing, + group, + category, + rejectIfInvalid, + publishToAll, + assignToCatalog, + transformWith, + schema, + extra, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Add record in the catalog by uploading a map context. + * @summary Add a map metadata record from OGC OWS context + * @param {string} title A map title + * @param {string} [recordAbstract] A map abstract + * @param {string} [xml] OGC OWS context as string + * @param {string} [filename] OGC OWS context file name + * @param {string} [url] OGC OWS context URL + * @param {string} [viewerUrl] A map viewer URL to visualize the map + * @param {string} [overview] Map overview as PNG (base64 encoded) + * @param {string} [overviewFilename] Map overview filename + * @param {string} [topic] Topic category + * @param {boolean} [publishToAll] Publish record. + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {string} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public insertOgcMapContextFile( + title: string, + recordAbstract?: string, + xml?: string, + filename?: string, + url?: string, + viewerUrl?: string, + overview?: string, + overviewFilename?: string, + topic?: string, + publishToAll?: boolean, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .insertOgcMapContextFile( + title, + recordAbstract, + xml, + filename, + url, + viewerUrl, + overview, + overviewFilename, + topic, + publishToAll, + uuidProcessing, + group, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update the metadata resource visibility + * @param {string} metadataUuid The metadata UUID + * @param {string} resourceId The resource identifier (ie. filename) + * @param {'public' | 'private'} visibility The visibility + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public patchResource( + metadataUuid: string, + resourceId: string, + visibility: "public" | "private", + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .patchResource(metadataUuid, resourceId, visibility, approved, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Preview edits made by XPath expressions. + * @param {Array} batchEditParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {'patch' | 'diff' | 'diffhtml'} [diffType] Return differences with diff, diffhtml or patch + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public previewBatchEdit( + batchEditParameter: Array, + uuids?: Array, + bucket?: string, + diffType?: "patch" | "diff" | "diffhtml", + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .previewBatchEdit(batchEditParameter, uuids, bucket, diffType, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Apply a process + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public processRecord( + metadataUuid: string, + process: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .processRecord(metadataUuid, process, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Process a metadata with an XSL transformation declared in the metadata schema (See the process folder). Parameters sent to the service are forwarded to XSL process. + * @summary Preview process result + * @param {string} metadataUuid Record UUID. + * @param {string} process Process identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public processRecordPreview( + metadataUuid: string, + process: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .processRecordPreview(metadataUuid, process, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Set privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public publish(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .publish(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * See record sharing for more details. + * @summary Publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public publish1( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .publish1(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Create a new resource for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {InlineObject2} [inlineObject2] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public putResource( + metadataUuid: string, + visibility?: "public" | "private", + approved?: boolean, + inlineObject2?: InlineObject2, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .putResource(metadataUuid, visibility, approved, inlineObject2, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Create a new resource from a URL for a given metadata + * @param {string} metadataUuid The metadata UUID + * @param {string} url The URL to load in the store + * @param {'public' | 'private'} [visibility] The sharing policy + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public putResourceFromURL( + metadataUuid: string, + url: string, + visibility?: "public" | "private", + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .putResourceFromURL(metadataUuid, url, visibility, approved, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User rating of metadata. If the metadata was harvested using the \'GeoNetwork\' protocol and the system setting localrating/enable is false (the default), the user\'s rating is shared between GN nodes in this harvesting network. If the metadata was not harvested or if localrating/enable is true then \'local rating\' is applied, counting only rating from users of this node.
When a remote rating is applied, the local rating is not updated. It will be updated on the next harvest run (FIXME ?). + * @summary Rate a record + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public rateRecord( + metadataUuid: string, + body: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .rateRecord(metadataUuid, body, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Restore saved content from a status record + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public restoreAtStatusSave( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .restoreAtStatusSave(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Save the HTML form content. + * @summary Save edits + * @param {string} metadataUuid Record UUID. + * @param {string} [tab] Tab + * @param {boolean} [withAttributes] + * @param {boolean} [withValidationErrors] + * @param {boolean} [minor] + * @param {string} [status] Submit for review directly after save. + * @param {boolean} [commit] Save current edits. + * @param {boolean} [terminate] Save and terminate session. + * @param {string} [data] Record as XML. TODO: rename xml + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public saveEdits( + metadataUuid: string, + tab?: string, + withAttributes?: boolean, + withValidationErrors?: boolean, + minor?: boolean, + status?: string, + commit?: boolean, + terminate?: boolean, + data?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .saveEdits( + metadataUuid, + tab, + withAttributes, + withValidationErrors, + minor, + status, + commit, + terminate, + data, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * More info + * @summary Create an overview using the map print module + * @param {string} metadataUuid Record UUID. + * @param {string} jsonConfig The mapprint module JSON configuration + * @param {number} [rotationAngle] The rotation angle of the map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public saveThumbnail( + metadataUuid: string, + jsonConfig: string, + rotationAngle?: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .saveThumbnail(metadataUuid, jsonConfig, rotationAngle, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Set group and owner for one or more records + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public setGroupAndOwner( + groupIdentifier: number, + userIdentifier: number, + uuids?: Array, + bucket?: string, + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .setGroupAndOwner( + groupIdentifier, + userIdentifier, + uuids, + bucket, + approved, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * A record is related to one group. + * @summary Set record group + * @param {string} metadataUuid Record UUID. + * @param {number} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public setRecordGroup( + metadataUuid: string, + body: number, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .setRecordGroup(metadataUuid, body, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Set record group and owner + * @param {string} metadataUuid Record UUID. + * @param {number} groupIdentifier Group identifier + * @param {number} userIdentifier User identifier + * @param {boolean} [approved] Use approved version or not + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public setRecordOwnership( + metadataUuid: string, + groupIdentifier: number, + userIdentifier: number, + approved?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .setRecordOwnership( + metadataUuid, + groupIdentifier, + userIdentifier, + approved, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Set the record status + * @param {string} metadataUuid Record UUID. + * @param {MetadataStatusParameter} metadataStatusParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public setStatus( + metadataUuid: string, + metadataStatusParameter: MetadataStatusParameter, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .setStatus(metadataUuid, metadataStatusParameter, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * See record sharing for more details. + * @summary Set sharing settings for one or more records + * @param {SharingParameter} sharingParameter + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public share( + sharingParameter: SharingParameter, + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .share(sharingParameter, uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Privileges are assigned by group. User needs to be able to edit a record to set sharing settings. For reserved group (ie. Internet, Intranet & Guest), user MUST be reviewer of one group. For other group, if Only set privileges to user\'s groups is set in catalog configuration user MUST be a member of the group.
Clear first allows to unset all operations first before setting the new ones.Clear option does not remove reserved groups operation if user is not an administrator, a reviewer or the owner of the record.
More info + * @summary Set record sharing + * @param {string} metadataUuid Record UUID. + * @param {SharingParameter} sharingParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public share1( + metadataUuid: string, + sharingParameter: SharingParameter, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .share1(metadataUuid, sharingParameter, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get saved content from the status record after changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public showStatusAfter( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .showStatusAfter(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get saved content from the status record before changes + * @param {string} metadataUuid Record UUID. + * @param {number} statusId Status identifier + * @param {number} userId User identifier + * @param {string} changeDate Change date + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public showStatusBefore( + metadataUuid: string, + statusId: number, + userId: number, + changeDate: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .showStatusBefore(metadataUuid, statusId, userId, changeDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Return HTML form for editing. + * @summary Edit a record + * @param {string} metadataUuid Record UUID. + * @param {string} [currTab] Tab + * @param {boolean} [withAttributes] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public startEditing( + metadataUuid: string, + currTab?: string, + withAttributes?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .startEditing(metadataUuid, currTab, withAttributes, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Add tags to a record + * @param {string} metadataUuid Record UUID. + * @param {Array} id Tag identifier + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public tagRecord( + metadataUuid: string, + id: Array, + clear?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .tagRecord(metadataUuid, id, clear, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Add or remove tags to one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {Array} [id] Tag identifier + * @param {Array} [removeId] Tag identifier to remove. + * @param {boolean} [clear] Clear all before adding new ones + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public tagRecords( + uuids?: Array, + bucket?: string, + id?: Array, + removeId?: Array, + clear?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .tagRecords(uuids, bucket, id, removeId, clear, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The backup contains all metadata not harvested including templates. + * @summary Trigger MEF backup archive + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public trigger(options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .trigger(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * See record sharing for more details. + * @summary Un-publish one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public unpublish( + uuids?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .unpublish(uuids, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Unsets privileges for ALL group to publish the metadata for all users. + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public unpublish1(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .unpublish1(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove a DOI (this is not recommended, DOI are supposed to be persistent once created. This is mainly here for testing). + * @param {string} metadataUuid Record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public unregisterDoi(metadataUuid: string, options?: AxiosRequestConfig) { + return RecordsApiFp(this.configuration) + .unregisterDoi(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User MUST be able to edit the record to validate it. FIXME : id MUST be the id of the current metadata record in session ? + * @summary Validate a record + * @param {string} metadataUuid Record UUID. + * @param {boolean} [isvalid] Validation status. Should be provided only in case of SUBTEMPLATE validation. If provided for another type, throw a BadParameter Exception + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public validateRecord( + metadataUuid: string, + isvalid?: boolean, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .validateRecord(metadataUuid, isvalid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User MUST be able to edit the record to validate it. An INSPIRE endpoint must be configured in Settings. This activates an asyncronous process, this method does not return any report. This method returns an id to be used to get the report. + * @summary Submit a record to the INSPIRE service for validation. + * @param {string} metadataUuid Record UUID. + * @param {string} testsuite Test suite to run + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public validateRecordForInspire( + metadataUuid: string, + testsuite: string, + mode?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .validateRecordForInspire(metadataUuid, testsuite, mode, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Update validation status for all records. + * @summary Validate one or more records + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {boolean} [approved] Use approved version or not + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public validateRecords( + uuids?: Array, + approved?: boolean, + bucket?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .validateRecords(uuids, approved, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Update validation status for all records. + * @summary Validate one or more records in INSPIRE validator + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [mode] Define the encoding of the record to use. By default, ISO19139 are used as is and ISO19115-3 are converted to ISO19139.If mode = csw, a GetRecordById request is used.If mode = any portal id, then a GetRecordById request is used on this portal CSW entry point which may define custom CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecordsApi + */ + public validateRecordsInspire( + uuids?: Array, + bucket?: string, + mode?: string, + options?: AxiosRequestConfig + ) { + return RecordsApiFp(this.configuration) + .validateRecordsInspire(uuids, bucket, mode, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * RegionsApi - axios parameter creator + * @export + */ +export const RegionsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * A rendering of the geometry as a png. + * @summary Get geometry as image + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [geom] (optional) a wkt or gml encoded geometry. + * @param {string} [geomtype] (optional) defines if geom is wkt or gml. Allowed values are wkt and gml. if not specified the it is assumed the geometry is wkt + * @param {string} [geomsrs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeomAsImage: async ( + mapsrs?: string, + width?: number, + height?: number, + background?: string, + geom?: string, + geomtype?: string, + geomsrs?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/regions/geom.png`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (mapsrs !== undefined) { + localVarQueryParameter["mapsrs"] = mapsrs; + } + + if (width !== undefined) { + localVarQueryParameter["width"] = width; + } + + if (height !== undefined) { + localVarQueryParameter["height"] = height; + } + + if (background !== undefined) { + localVarQueryParameter["background"] = background; + } + + if (geom !== undefined) { + localVarQueryParameter["geom"] = geom; + } + + if (geomtype !== undefined) { + localVarQueryParameter["geomtype"] = geomtype; + } + + if (geomsrs !== undefined) { + localVarQueryParameter["geomsrs"] = geomsrs; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of region types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRegionTypes: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/regions/types`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of regions + * @param {string} [label] + * @param {string} [categoryId] + * @param {number} [maxRecords] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRegions: async ( + label?: string, + categoryId?: string, + maxRecords?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/regions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (label !== undefined) { + localVarQueryParameter["label"] = label; + } + + if (categoryId !== undefined) { + localVarQueryParameter["categoryId"] = categoryId; + } + + if (maxRecords !== undefined) { + localVarQueryParameter["maxRecords"] = maxRecords; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * RegionsApi - functional programming interface + * @export + */ +export const RegionsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = RegionsApiAxiosParamCreator(configuration); + return { + /** + * A rendering of the geometry as a png. + * @summary Get geometry as image + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [geom] (optional) a wkt or gml encoded geometry. + * @param {string} [geomtype] (optional) defines if geom is wkt or gml. Allowed values are wkt and gml. if not specified the it is assumed the geometry is wkt + * @param {string} [geomsrs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGeomAsImage( + mapsrs?: string, + width?: number, + height?: number, + background?: string, + geom?: string, + geomtype?: string, + geomsrs?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGeomAsImage( + mapsrs, + width, + height, + background, + geom, + geomtype, + geomsrs, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of region types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRegionTypes( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionTypes( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of regions + * @param {string} [label] + * @param {string} [categoryId] + * @param {number} [maxRecords] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRegions( + label?: string, + categoryId?: string, + maxRecords?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRegions( + label, + categoryId, + maxRecords, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * RegionsApi - factory interface + * @export + */ +export const RegionsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = RegionsApiFp(configuration); + return { + /** + * A rendering of the geometry as a png. + * @summary Get geometry as image + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [geom] (optional) a wkt or gml encoded geometry. + * @param {string} [geomtype] (optional) defines if geom is wkt or gml. Allowed values are wkt and gml. if not specified the it is assumed the geometry is wkt + * @param {string} [geomsrs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeomAsImage( + mapsrs?: string, + width?: number, + height?: number, + background?: string, + geom?: string, + geomtype?: string, + geomsrs?: string, + options?: any + ): AxiosPromise> { + return localVarFp + .getGeomAsImage( + mapsrs, + width, + height, + background, + geom, + geomtype, + geomsrs, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of region types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRegionTypes(options?: any): AxiosPromise> { + return localVarFp + .getRegionTypes(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of regions + * @param {string} [label] + * @param {string} [categoryId] + * @param {number} [maxRecords] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRegions( + label?: string, + categoryId?: string, + maxRecords?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getRegions(label, categoryId, maxRecords, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RegionsApi - object-oriented interface + * @export + * @class RegionsApi + * @extends {BaseAPI} + */ +export class RegionsApi extends BaseAPI { + /** + * A rendering of the geometry as a png. + * @summary Get geometry as image + * @param {string} [mapsrs] + * @param {number} [width] (optional) width of the image that is created. Only one of width and height are permitted + * @param {number} [height] (optional) height of the image that is created. Only one of width and height are permitted + * @param {string} [background] (optional) URL for loading a background image for regions or a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml). A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: minx, maxx, miny, maxy, width, height + * @param {string} [geom] (optional) a wkt or gml encoded geometry. + * @param {string} [geomtype] (optional) defines if geom is wkt or gml. Allowed values are wkt and gml. if not specified the it is assumed the geometry is wkt + * @param {string} [geomsrs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegionsApi + */ + public getGeomAsImage( + mapsrs?: string, + width?: number, + height?: number, + background?: string, + geom?: string, + geomtype?: string, + geomsrs?: string, + options?: AxiosRequestConfig + ) { + return RegionsApiFp(this.configuration) + .getGeomAsImage( + mapsrs, + width, + height, + background, + geom, + geomtype, + geomsrs, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of region types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegionsApi + */ + public getRegionTypes(options?: AxiosRequestConfig) { + return RegionsApiFp(this.configuration) + .getRegionTypes(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of regions + * @param {string} [label] + * @param {string} [categoryId] + * @param {number} [maxRecords] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegionsApi + */ + public getRegions( + label?: string, + categoryId?: string, + maxRecords?: number, + options?: AxiosRequestConfig + ) { + return RegionsApiFp(this.configuration) + .getRegions(label, categoryId, maxRecords, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * RegistriesApi - axios parameter creator + * @export + */ +export const RegistriesApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Delete a thesaurus. + * @summary Delete a thesaurus by name + * @param {string} thesaurus Thesaurus to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteThesaurus: async ( + thesaurus: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'thesaurus' is not null or undefined + assertParamExists("deleteThesaurus", "thesaurus", thesaurus); + const localVarPath = `/registries/vocabularies/{thesaurus}`.replace( + `{${"thesaurus"}}`, + encodeURIComponent(String(thesaurus)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Extracts directory entries from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + extractEntries: async ( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'xpath' is not null or undefined + assertParamExists("extractEntries", "xpath", xpath); + const localVarPath = `/registries/actions/entries/collect`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (identifierXpath !== undefined) { + localVarQueryParameter["identifierXpath"] = identifierXpath; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get CRS + * @param {string} id CRS identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCrs: async ( + id: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getCrs", "id", id); + const localVarPath = `/registries/crs/{id}`.replace( + `{${"id"}}`, + encodeURIComponent(String(id)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of CRS type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCrsTypes: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/registries/crs/types`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records using XLinks. XLinks can be remote or local. + * @summary Get a directory entry + * @param {string} uuid Directory entry UUID. + * @param {Array} [process] Process + * @param {string} [transformation] Transformation + * @param {Array} [lang] lang + * @param {string} [schema] schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getEntry: async ( + uuid: string, + process?: Array, + transformation?: string, + lang?: Array, + schema?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uuid' is not null or undefined + assertParamExists("getEntry", "uuid", uuid); + const localVarPath = `/registries/entries/{uuid}`.replace( + `{${"uuid"}}`, + encodeURIComponent(String(uuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (process) { + localVarQueryParameter["process"] = process; + } + + if (transformation !== undefined) { + localVarQueryParameter["transformation"] = transformation; + } + + if (lang) { + localVarQueryParameter["lang"] = lang; + } + + if (schema !== undefined) { + localVarQueryParameter["schema"] = schema; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeywordById: async ( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getKeywordById", "id", id); + // verify required parameter 'thesaurus' is not null or undefined + assertParamExists("getKeywordById", "thesaurus", thesaurus); + const localVarPath = `/registries/vocabularies/keyword`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter["id"] = id; + } + + if (thesaurus !== undefined) { + localVarQueryParameter["thesaurus"] = thesaurus; + } + + if (lang) { + localVarQueryParameter["lang"] = lang; + } + + if (keywordOnly !== undefined) { + localVarQueryParameter["keywordOnly"] = keywordOnly; + } + + if (transformation !== undefined) { + localVarQueryParameter["transformation"] = transformation; + } + + if (langMap !== undefined) { + localVarQueryParameter["langMap"] = langMap; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeywordById1: async ( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getKeywordById1", "id", id); + // verify required parameter 'thesaurus' is not null or undefined + assertParamExists("getKeywordById1", "thesaurus", thesaurus); + const localVarPath = `/registries/vocabularies/keyword`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter["id"] = id; + } + + if (thesaurus !== undefined) { + localVarQueryParameter["thesaurus"] = thesaurus; + } + + if (lang) { + localVarQueryParameter["lang"] = lang; + } + + if (keywordOnly !== undefined) { + localVarQueryParameter["keywordOnly"] = keywordOnly; + } + + if (transformation !== undefined) { + localVarQueryParameter["transformation"] = transformation; + } + + if (langMap !== undefined) { + localVarQueryParameter["langMap"] = langMap; + } + + if (accept !== undefined && accept !== null) { + localVarHeaderParameter["Accept"] = String(accept); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Download the thesaurus in SKOS format. + * @summary Download a thesaurus by name + * @param {string} thesaurus Thesaurus to download. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getThesaurus: async ( + thesaurus: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'thesaurus' is not null or undefined + assertParamExists("getThesaurus", "thesaurus", thesaurus); + const localVarPath = `/registries/vocabularies/{thesaurus}`.replace( + `{${"thesaurus"}}`, + encodeURIComponent(String(thesaurus)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * CSV file MUST contains columns at least for concept id and label. For multilingual thesaurus, consider using columns like label, label_fre, label_ita with languages parameter set to [en, fr, it]. Default language value is used if translations are empty. The thesaurus filename will be the filename of the CSV file (with .rdf extension). It is recommended to set the thesaurus title and namespace URL even if default values will be used based on the filename. Thesaurus dates are set to the date of import. + * @summary Uploads a CSV file and convert it to SKOS format + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [encoding] Encoding. Default is UTF-8. + * @param {string} [thesaurusNs] Thesaurus namespace. Default is filename. + * @param {Array} [languages] Thesaurus languages + * @param {string} [thesaurusTitle] Thesaurus title. Default is filename. + * @param {string} [conceptIdColumn] Column name for concept id. Default is id. + * @param {string} [conceptLabelColumn] Column name for concept label. Default is label. + * @param {string} [conceptDescriptionColumn] Column name for concept description. Default is description. + * @param {string} [conceptBroaderIdColumn] Column name for broader concept id. Default is broader. + * @param {string} [conceptNarrowerIdColumn] Column name for narrower concept id. Default is narrower. + * @param {string} [conceptRelatedIdColumn] Column name for related concept id. Default is related. + * @param {string} [conceptLinkSeparator] Separator used when multiple broader/narrower/related ids are in the same column. Default is \'|\'. + * @param {boolean} [importAsThesaurus] Import CSV file as thesaurus if true (detault) or return it in SKOS format. + * @param {InlineObject5} [inlineObject5] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + importCsvAsThesaurus: async ( + type?: "external" | "local", + dir?: string, + encoding?: string, + thesaurusNs?: string, + languages?: Array, + thesaurusTitle?: string, + conceptIdColumn?: string, + conceptLabelColumn?: string, + conceptDescriptionColumn?: string, + conceptBroaderIdColumn?: string, + conceptNarrowerIdColumn?: string, + conceptRelatedIdColumn?: string, + conceptLinkSeparator?: string, + importAsThesaurus?: boolean, + inlineObject5?: InlineObject5, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/registries/vocabularies/import/csv`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + if (dir !== undefined) { + localVarQueryParameter["dir"] = dir; + } + + if (encoding !== undefined) { + localVarQueryParameter["encoding"] = encoding; + } + + if (thesaurusNs !== undefined) { + localVarQueryParameter["thesaurusNs"] = thesaurusNs; + } + + if (languages) { + localVarQueryParameter["languages"] = languages; + } + + if (thesaurusTitle !== undefined) { + localVarQueryParameter["thesaurusTitle"] = thesaurusTitle; + } + + if (conceptIdColumn !== undefined) { + localVarQueryParameter["conceptIdColumn"] = conceptIdColumn; + } + + if (conceptLabelColumn !== undefined) { + localVarQueryParameter["conceptLabelColumn"] = conceptLabelColumn; + } + + if (conceptDescriptionColumn !== undefined) { + localVarQueryParameter["conceptDescriptionColumn"] = + conceptDescriptionColumn; + } + + if (conceptBroaderIdColumn !== undefined) { + localVarQueryParameter["conceptBroaderIdColumn"] = + conceptBroaderIdColumn; + } + + if (conceptNarrowerIdColumn !== undefined) { + localVarQueryParameter["conceptNarrowerIdColumn"] = + conceptNarrowerIdColumn; + } + + if (conceptRelatedIdColumn !== undefined) { + localVarQueryParameter["conceptRelatedIdColumn"] = + conceptRelatedIdColumn; + } + + if (conceptLinkSeparator !== undefined) { + localVarQueryParameter["conceptLinkSeparator"] = conceptLinkSeparator; + } + + if (importAsThesaurus !== undefined) { + localVarQueryParameter["importAsThesaurus"] = importAsThesaurus; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + inlineObject5, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records. Use this service to import geographic extent entries from an ESRI Shapefile format. + * @summary Import spatial directory entries + * @param {any} file The ZIP file to upload containing the Shapefile. + * @param {string} [uuidAttribute] Attribute to use for UUID. If none, random UUID are generated. + * @param {string} [uuidPattern] Pattern to build UUID from. Default is \'{{uuid}}\'. + * @param {string} [descriptionAttribute] Attribute to use for extent description. If none, no extent description defined. TODO: Add per language desc ? + * @param {string} [geomProjectionTo] geomProjectionTo + * @param {boolean} [lenient] lenient + * @param {string} [charset] Attribute table charset + * @param {boolean} [onlyBoundingBox] Create only bounding box for each spatial objects. + * @param {string} [process] Process + * @param {string} [schema] Schema identifier + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {number} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + importSpatialEntries: async ( + file: any, + uuidAttribute?: string, + uuidPattern?: string, + descriptionAttribute?: string, + geomProjectionTo?: string, + lenient?: boolean, + charset?: string, + onlyBoundingBox?: boolean, + process?: string, + schema?: string, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists("importSpatialEntries", "file", file); + const localVarPath = `/registries/actions/entries/import/spatial`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && + configuration.formDataCtor) || + FormData)(); + + if (uuidAttribute !== undefined) { + localVarQueryParameter["uuidAttribute"] = uuidAttribute; + } + + if (uuidPattern !== undefined) { + localVarQueryParameter["uuidPattern"] = uuidPattern; + } + + if (descriptionAttribute !== undefined) { + localVarQueryParameter["descriptionAttribute"] = descriptionAttribute; + } + + if (geomProjectionTo !== undefined) { + localVarQueryParameter["geomProjectionTo"] = geomProjectionTo; + } + + if (lenient !== undefined) { + localVarQueryParameter["lenient"] = lenient; + } + + if (charset !== undefined) { + localVarQueryParameter["charset"] = charset; + } + + if (onlyBoundingBox !== undefined) { + localVarQueryParameter["onlyBoundingBox"] = onlyBoundingBox; + } + + if (process !== undefined) { + localVarQueryParameter["process"] = process; + } + + if (schema !== undefined) { + localVarQueryParameter["schema"] = schema; + } + + if (uuidProcessing !== undefined) { + localVarQueryParameter["uuidProcessing"] = uuidProcessing; + } + + if (group !== undefined) { + localVarQueryParameter["group"] = group; + } + + if (file !== undefined) { + localVarFormParams.append("file", file as any); + } + + localVarHeaderParameter["Content-Type"] = "multipart/form-data"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Preview directory entries extracted from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewExtractedEntries: async ( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'xpath' is not null or undefined + assertParamExists("previewExtractedEntries", "xpath", xpath); + const localVarPath = `/registries/actions/entries/collect`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (identifierXpath !== undefined) { + localVarQueryParameter["identifierXpath"] = identifierXpath; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Preview updated matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewUpdatedRecordEntries: async ( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'xpath' is not null or undefined + assertParamExists("previewUpdatedRecordEntries", "xpath", xpath); + const localVarPath = `/registries/actions/entries/synchronize`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (identifierXpath !== undefined) { + localVarQueryParameter["identifierXpath"] = identifierXpath; + } + + if (propertiesToCopy) { + localVarQueryParameter["propertiesToCopy"] = propertiesToCopy; + } + + if (substituteAsXLink !== undefined) { + localVarQueryParameter["substituteAsXLink"] = substituteAsXLink; + } + + if (fq !== undefined) { + localVarQueryParameter["fq"] = fq; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Based on GeoTools EPSG database. If phrase query, each words are searched separately. + * @summary Search coordinate reference system (CRS) + * @param {string} [q] Search value + * @param {'CoordinateReferenceSystem' | 'VerticalCRS' | 'GeographicCRS' | 'ProjectedCRS'} [type] Type of CRS + * @param {number} [rows] Number of results. Default is: 100 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchCrs: async ( + q?: string, + type?: + | "CoordinateReferenceSystem" + | "VerticalCRS" + | "GeographicCRS" + | "ProjectedCRS", + rows?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/registries/crs`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (q !== undefined) { + localVarQueryParameter["q"] = q; + } + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + if (rows !== undefined) { + localVarQueryParameter["rows"] = rows; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Search keywords + * @param {string} [q] Query + * @param {string} [lang] Query in that language + * @param {number} [rows] Number of rows + * @param {number} [start] Start from + * @param {Array} [pLang] Return keyword information in one or more languages + * @param {Array} [thesaurus] Thesaurus identifier + * @param {'STARTS_WITH' | 'CONTAINS' | 'MATCH'} [type] Type of search + * @param {string} [uri] URI query + * @param {string} [sort] Sort by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchKeywords: async ( + q?: string, + lang?: string, + rows?: number, + start?: number, + pLang?: Array, + thesaurus?: Array, + type?: "STARTS_WITH" | "CONTAINS" | "MATCH", + uri?: string, + sort?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/registries/vocabularies/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (q !== undefined) { + localVarQueryParameter["q"] = q; + } + + if (lang !== undefined) { + localVarQueryParameter["lang"] = lang; + } + + if (rows !== undefined) { + localVarQueryParameter["rows"] = rows; + } + + if (start !== undefined) { + localVarQueryParameter["start"] = start; + } + + if (pLang) { + localVarQueryParameter["pLang"] = pLang; + } + + if (thesaurus) { + localVarQueryParameter["thesaurus"] = thesaurus; + } + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + if (uri !== undefined) { + localVarQueryParameter["uri"] = uri; + } + + if (sort !== undefined) { + localVarQueryParameter["sort"] = sort; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Update matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRecordEntries: async ( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'xpath' is not null or undefined + assertParamExists("updateRecordEntries", "xpath", xpath); + const localVarPath = `/registries/actions/entries/synchronize`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuids) { + localVarQueryParameter["uuids"] = uuids; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (identifierXpath !== undefined) { + localVarQueryParameter["identifierXpath"] = identifierXpath; + } + + if (propertiesToCopy) { + localVarQueryParameter["propertiesToCopy"] = propertiesToCopy; + } + + if (substituteAsXLink !== undefined) { + localVarQueryParameter["substituteAsXLink"] = substituteAsXLink; + } + + if (fq !== undefined) { + localVarQueryParameter["fq"] = fq; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from a file + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {InlineObject4} [inlineObject4] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadThesaurus: async ( + type?: "external" | "local", + dir?: string, + stylesheet?: string, + inlineObject4?: InlineObject4, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/registries/vocabularies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + if (dir !== undefined) { + localVarQueryParameter["dir"] = dir; + } + + if (stylesheet !== undefined) { + localVarQueryParameter["stylesheet"] = stylesheet; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + inlineObject4, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from URL or Registry + * @param {string} [url] If set, try to download from the Internet. + * @param {string} [registryUrl] If set, try to download from a registry. + * @param {'re3gistry' | 'ldRegistry'} [registryType] If using registryUrl, then define the type of registry. If not set, default mode is re3gistry. + * @param {Array} [registryLanguage] Languages to download from a registry. + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadThesaurusFromUrl: async ( + url?: string, + registryUrl?: string, + registryType?: "re3gistry" | "ldRegistry", + registryLanguage?: Array, + type?: "external" | "local", + dir?: string, + stylesheet?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/registries/vocabularies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (url !== undefined) { + localVarQueryParameter["url"] = url; + } + + if (registryUrl !== undefined) { + localVarQueryParameter["registryUrl"] = registryUrl; + } + + if (registryType !== undefined) { + localVarQueryParameter["registryType"] = registryType; + } + + if (registryLanguage) { + localVarQueryParameter["registryLanguage"] = registryLanguage; + } + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + if (dir !== undefined) { + localVarQueryParameter["dir"] = dir; + } + + if (stylesheet !== undefined) { + localVarQueryParameter["stylesheet"] = stylesheet; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * RegistriesApi - functional programming interface + * @export + */ +export const RegistriesApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + RegistriesApiAxiosParamCreator(configuration); + return { + /** + * Delete a thesaurus. + * @summary Delete a thesaurus by name + * @param {string} thesaurus Thesaurus to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteThesaurus( + thesaurus: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThesaurus( + thesaurus, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Extracts directory entries from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async extractEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.extractEntries( + xpath, + uuids, + bucket, + identifierXpath, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get CRS + * @param {string} id CRS identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCrs( + id: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCrs( + id, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of CRS type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCrsTypes( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCrsTypes( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records using XLinks. XLinks can be remote or local. + * @summary Get a directory entry + * @param {string} uuid Directory entry UUID. + * @param {Array} [process] Process + * @param {string} [transformation] Transformation + * @param {Array} [lang] lang + * @param {string} [schema] schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getEntry( + uuid: string, + process?: Array, + transformation?: string, + lang?: Array, + schema?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getEntry( + uuid, + process, + transformation, + lang, + schema, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getKeywordById( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getKeywordById( + id, + thesaurus, + lang, + keywordOnly, + transformation, + langMap, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getKeywordById1( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getKeywordById1( + id, + thesaurus, + lang, + keywordOnly, + transformation, + langMap, + accept, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Download the thesaurus in SKOS format. + * @summary Download a thesaurus by name + * @param {string} thesaurus Thesaurus to download. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getThesaurus( + thesaurus: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getThesaurus( + thesaurus, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * CSV file MUST contains columns at least for concept id and label. For multilingual thesaurus, consider using columns like label, label_fre, label_ita with languages parameter set to [en, fr, it]. Default language value is used if translations are empty. The thesaurus filename will be the filename of the CSV file (with .rdf extension). It is recommended to set the thesaurus title and namespace URL even if default values will be used based on the filename. Thesaurus dates are set to the date of import. + * @summary Uploads a CSV file and convert it to SKOS format + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [encoding] Encoding. Default is UTF-8. + * @param {string} [thesaurusNs] Thesaurus namespace. Default is filename. + * @param {Array} [languages] Thesaurus languages + * @param {string} [thesaurusTitle] Thesaurus title. Default is filename. + * @param {string} [conceptIdColumn] Column name for concept id. Default is id. + * @param {string} [conceptLabelColumn] Column name for concept label. Default is label. + * @param {string} [conceptDescriptionColumn] Column name for concept description. Default is description. + * @param {string} [conceptBroaderIdColumn] Column name for broader concept id. Default is broader. + * @param {string} [conceptNarrowerIdColumn] Column name for narrower concept id. Default is narrower. + * @param {string} [conceptRelatedIdColumn] Column name for related concept id. Default is related. + * @param {string} [conceptLinkSeparator] Separator used when multiple broader/narrower/related ids are in the same column. Default is \'|\'. + * @param {boolean} [importAsThesaurus] Import CSV file as thesaurus if true (detault) or return it in SKOS format. + * @param {InlineObject5} [inlineObject5] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async importCsvAsThesaurus( + type?: "external" | "local", + dir?: string, + encoding?: string, + thesaurusNs?: string, + languages?: Array, + thesaurusTitle?: string, + conceptIdColumn?: string, + conceptLabelColumn?: string, + conceptDescriptionColumn?: string, + conceptBroaderIdColumn?: string, + conceptNarrowerIdColumn?: string, + conceptRelatedIdColumn?: string, + conceptLinkSeparator?: string, + importAsThesaurus?: boolean, + inlineObject5?: InlineObject5, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.importCsvAsThesaurus( + type, + dir, + encoding, + thesaurusNs, + languages, + thesaurusTitle, + conceptIdColumn, + conceptLabelColumn, + conceptDescriptionColumn, + conceptBroaderIdColumn, + conceptNarrowerIdColumn, + conceptRelatedIdColumn, + conceptLinkSeparator, + importAsThesaurus, + inlineObject5, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records. Use this service to import geographic extent entries from an ESRI Shapefile format. + * @summary Import spatial directory entries + * @param {any} file The ZIP file to upload containing the Shapefile. + * @param {string} [uuidAttribute] Attribute to use for UUID. If none, random UUID are generated. + * @param {string} [uuidPattern] Pattern to build UUID from. Default is \'{{uuid}}\'. + * @param {string} [descriptionAttribute] Attribute to use for extent description. If none, no extent description defined. TODO: Add per language desc ? + * @param {string} [geomProjectionTo] geomProjectionTo + * @param {boolean} [lenient] lenient + * @param {string} [charset] Attribute table charset + * @param {boolean} [onlyBoundingBox] Create only bounding box for each spatial objects. + * @param {string} [process] Process + * @param {string} [schema] Schema identifier + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {number} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async importSpatialEntries( + file: any, + uuidAttribute?: string, + uuidPattern?: string, + descriptionAttribute?: string, + geomProjectionTo?: string, + lenient?: boolean, + charset?: string, + onlyBoundingBox?: boolean, + process?: string, + schema?: string, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.importSpatialEntries( + file, + uuidAttribute, + uuidPattern, + descriptionAttribute, + geomProjectionTo, + lenient, + charset, + onlyBoundingBox, + process, + schema, + uuidProcessing, + group, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Preview directory entries extracted from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async previewExtractedEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.previewExtractedEntries( + xpath, + uuids, + bucket, + identifierXpath, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Preview updated matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async previewUpdatedRecordEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.previewUpdatedRecordEntries( + xpath, + uuids, + bucket, + identifierXpath, + propertiesToCopy, + substituteAsXLink, + fq, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Based on GeoTools EPSG database. If phrase query, each words are searched separately. + * @summary Search coordinate reference system (CRS) + * @param {string} [q] Search value + * @param {'CoordinateReferenceSystem' | 'VerticalCRS' | 'GeographicCRS' | 'ProjectedCRS'} [type] Type of CRS + * @param {number} [rows] Number of results. Default is: 100 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async searchCrs( + q?: string, + type?: + | "CoordinateReferenceSystem" + | "VerticalCRS" + | "GeographicCRS" + | "ProjectedCRS", + rows?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchCrs( + q, + type, + rows, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Search keywords + * @param {string} [q] Query + * @param {string} [lang] Query in that language + * @param {number} [rows] Number of rows + * @param {number} [start] Start from + * @param {Array} [pLang] Return keyword information in one or more languages + * @param {Array} [thesaurus] Thesaurus identifier + * @param {'STARTS_WITH' | 'CONTAINS' | 'MATCH'} [type] Type of search + * @param {string} [uri] URI query + * @param {string} [sort] Sort by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async searchKeywords( + q?: string, + lang?: string, + rows?: number, + start?: number, + pLang?: Array, + thesaurus?: Array, + type?: "STARTS_WITH" | "CONTAINS" | "MATCH", + uri?: string, + sort?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchKeywords( + q, + lang, + rows, + start, + pLang, + thesaurus, + type, + uri, + sort, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Update matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateRecordEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateRecordEntries( + xpath, + uuids, + bucket, + identifierXpath, + propertiesToCopy, + substituteAsXLink, + fq, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from a file + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {InlineObject4} [inlineObject4] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadThesaurus( + type?: "external" | "local", + dir?: string, + stylesheet?: string, + inlineObject4?: InlineObject4, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.uploadThesaurus( + type, + dir, + stylesheet, + inlineObject4, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from URL or Registry + * @param {string} [url] If set, try to download from the Internet. + * @param {string} [registryUrl] If set, try to download from a registry. + * @param {'re3gistry' | 'ldRegistry'} [registryType] If using registryUrl, then define the type of registry. If not set, default mode is re3gistry. + * @param {Array} [registryLanguage] Languages to download from a registry. + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadThesaurusFromUrl( + url?: string, + registryUrl?: string, + registryType?: "re3gistry" | "ldRegistry", + registryLanguage?: Array, + type?: "external" | "local", + dir?: string, + stylesheet?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.uploadThesaurusFromUrl( + url, + registryUrl, + registryType, + registryLanguage, + type, + dir, + stylesheet, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * RegistriesApi - factory interface + * @export + */ +export const RegistriesApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = RegistriesApiFp(configuration); + return { + /** + * Delete a thesaurus. + * @summary Delete a thesaurus by name + * @param {string} thesaurus Thesaurus to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteThesaurus(thesaurus: string, options?: any): AxiosPromise { + return localVarFp + .deleteThesaurus(thesaurus, options) + .then((request) => request(axios, basePath)); + }, + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Extracts directory entries from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + extractEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options?: any + ): AxiosPromise { + return localVarFp + .extractEntries(xpath, uuids, bucket, identifierXpath, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get CRS + * @param {string} id CRS identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCrs(id: string, options?: any): AxiosPromise { + return localVarFp + .getCrs(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of CRS type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCrsTypes(options?: any): AxiosPromise> { + return localVarFp + .getCrsTypes(options) + .then((request) => request(axios, basePath)); + }, + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records using XLinks. XLinks can be remote or local. + * @summary Get a directory entry + * @param {string} uuid Directory entry UUID. + * @param {Array} [process] Process + * @param {string} [transformation] Transformation + * @param {Array} [lang] lang + * @param {string} [schema] schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getEntry( + uuid: string, + process?: Array, + transformation?: string, + lang?: Array, + schema?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getEntry(uuid, process, transformation, lang, schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeywordById( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getKeywordById( + id, + thesaurus, + lang, + keywordOnly, + transformation, + langMap, + accept, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeywordById1( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getKeywordById1( + id, + thesaurus, + lang, + keywordOnly, + transformation, + langMap, + accept, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Download the thesaurus in SKOS format. + * @summary Download a thesaurus by name + * @param {string} thesaurus Thesaurus to download. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getThesaurus(thesaurus: string, options?: any): AxiosPromise { + return localVarFp + .getThesaurus(thesaurus, options) + .then((request) => request(axios, basePath)); + }, + /** + * CSV file MUST contains columns at least for concept id and label. For multilingual thesaurus, consider using columns like label, label_fre, label_ita with languages parameter set to [en, fr, it]. Default language value is used if translations are empty. The thesaurus filename will be the filename of the CSV file (with .rdf extension). It is recommended to set the thesaurus title and namespace URL even if default values will be used based on the filename. Thesaurus dates are set to the date of import. + * @summary Uploads a CSV file and convert it to SKOS format + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [encoding] Encoding. Default is UTF-8. + * @param {string} [thesaurusNs] Thesaurus namespace. Default is filename. + * @param {Array} [languages] Thesaurus languages + * @param {string} [thesaurusTitle] Thesaurus title. Default is filename. + * @param {string} [conceptIdColumn] Column name for concept id. Default is id. + * @param {string} [conceptLabelColumn] Column name for concept label. Default is label. + * @param {string} [conceptDescriptionColumn] Column name for concept description. Default is description. + * @param {string} [conceptBroaderIdColumn] Column name for broader concept id. Default is broader. + * @param {string} [conceptNarrowerIdColumn] Column name for narrower concept id. Default is narrower. + * @param {string} [conceptRelatedIdColumn] Column name for related concept id. Default is related. + * @param {string} [conceptLinkSeparator] Separator used when multiple broader/narrower/related ids are in the same column. Default is \'|\'. + * @param {boolean} [importAsThesaurus] Import CSV file as thesaurus if true (detault) or return it in SKOS format. + * @param {InlineObject5} [inlineObject5] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + importCsvAsThesaurus( + type?: "external" | "local", + dir?: string, + encoding?: string, + thesaurusNs?: string, + languages?: Array, + thesaurusTitle?: string, + conceptIdColumn?: string, + conceptLabelColumn?: string, + conceptDescriptionColumn?: string, + conceptBroaderIdColumn?: string, + conceptNarrowerIdColumn?: string, + conceptRelatedIdColumn?: string, + conceptLinkSeparator?: string, + importAsThesaurus?: boolean, + inlineObject5?: InlineObject5, + options?: any + ): AxiosPromise { + return localVarFp + .importCsvAsThesaurus( + type, + dir, + encoding, + thesaurusNs, + languages, + thesaurusTitle, + conceptIdColumn, + conceptLabelColumn, + conceptDescriptionColumn, + conceptBroaderIdColumn, + conceptNarrowerIdColumn, + conceptRelatedIdColumn, + conceptLinkSeparator, + importAsThesaurus, + inlineObject5, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records. Use this service to import geographic extent entries from an ESRI Shapefile format. + * @summary Import spatial directory entries + * @param {any} file The ZIP file to upload containing the Shapefile. + * @param {string} [uuidAttribute] Attribute to use for UUID. If none, random UUID are generated. + * @param {string} [uuidPattern] Pattern to build UUID from. Default is \'{{uuid}}\'. + * @param {string} [descriptionAttribute] Attribute to use for extent description. If none, no extent description defined. TODO: Add per language desc ? + * @param {string} [geomProjectionTo] geomProjectionTo + * @param {boolean} [lenient] lenient + * @param {string} [charset] Attribute table charset + * @param {boolean} [onlyBoundingBox] Create only bounding box for each spatial objects. + * @param {string} [process] Process + * @param {string} [schema] Schema identifier + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {number} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + importSpatialEntries( + file: any, + uuidAttribute?: string, + uuidPattern?: string, + descriptionAttribute?: string, + geomProjectionTo?: string, + lenient?: boolean, + charset?: string, + onlyBoundingBox?: boolean, + process?: string, + schema?: string, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: number, + options?: any + ): AxiosPromise { + return localVarFp + .importSpatialEntries( + file, + uuidAttribute, + uuidPattern, + descriptionAttribute, + geomProjectionTo, + lenient, + charset, + onlyBoundingBox, + process, + schema, + uuidProcessing, + group, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Preview directory entries extracted from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewExtractedEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options?: any + ): AxiosPromise { + return localVarFp + .previewExtractedEntries(xpath, uuids, bucket, identifierXpath, options) + .then((request) => request(axios, basePath)); + }, + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Preview updated matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewUpdatedRecordEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options?: any + ): AxiosPromise { + return localVarFp + .previewUpdatedRecordEntries( + xpath, + uuids, + bucket, + identifierXpath, + propertiesToCopy, + substituteAsXLink, + fq, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Based on GeoTools EPSG database. If phrase query, each words are searched separately. + * @summary Search coordinate reference system (CRS) + * @param {string} [q] Search value + * @param {'CoordinateReferenceSystem' | 'VerticalCRS' | 'GeographicCRS' | 'ProjectedCRS'} [type] Type of CRS + * @param {number} [rows] Number of results. Default is: 100 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchCrs( + q?: string, + type?: + | "CoordinateReferenceSystem" + | "VerticalCRS" + | "GeographicCRS" + | "ProjectedCRS", + rows?: number, + options?: any + ): AxiosPromise> { + return localVarFp + .searchCrs(q, type, rows, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Search keywords + * @param {string} [q] Query + * @param {string} [lang] Query in that language + * @param {number} [rows] Number of rows + * @param {number} [start] Start from + * @param {Array} [pLang] Return keyword information in one or more languages + * @param {Array} [thesaurus] Thesaurus identifier + * @param {'STARTS_WITH' | 'CONTAINS' | 'MATCH'} [type] Type of search + * @param {string} [uri] URI query + * @param {string} [sort] Sort by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + searchKeywords( + q?: string, + lang?: string, + rows?: number, + start?: number, + pLang?: Array, + thesaurus?: Array, + type?: "STARTS_WITH" | "CONTAINS" | "MATCH", + uri?: string, + sort?: string, + options?: any + ): AxiosPromise { + return localVarFp + .searchKeywords( + q, + lang, + rows, + start, + pLang, + thesaurus, + type, + uri, + sort, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Update matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRecordEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options?: any + ): AxiosPromise { + return localVarFp + .updateRecordEntries( + xpath, + uuids, + bucket, + identifierXpath, + propertiesToCopy, + substituteAsXLink, + fq, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from a file + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {InlineObject4} [inlineObject4] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadThesaurus( + type?: "external" | "local", + dir?: string, + stylesheet?: string, + inlineObject4?: InlineObject4, + options?: any + ): AxiosPromise { + return localVarFp + .uploadThesaurus(type, dir, stylesheet, inlineObject4, options) + .then((request) => request(axios, basePath)); + }, + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from URL or Registry + * @param {string} [url] If set, try to download from the Internet. + * @param {string} [registryUrl] If set, try to download from a registry. + * @param {'re3gistry' | 'ldRegistry'} [registryType] If using registryUrl, then define the type of registry. If not set, default mode is re3gistry. + * @param {Array} [registryLanguage] Languages to download from a registry. + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadThesaurusFromUrl( + url?: string, + registryUrl?: string, + registryType?: "re3gistry" | "ldRegistry", + registryLanguage?: Array, + type?: "external" | "local", + dir?: string, + stylesheet?: string, + options?: any + ): AxiosPromise { + return localVarFp + .uploadThesaurusFromUrl( + url, + registryUrl, + registryType, + registryLanguage, + type, + dir, + stylesheet, + options + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RegistriesApi - object-oriented interface + * @export + * @class RegistriesApi + * @extends {BaseAPI} + */ +export class RegistriesApi extends BaseAPI { + /** + * Delete a thesaurus. + * @summary Delete a thesaurus by name + * @param {string} thesaurus Thesaurus to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public deleteThesaurus(thesaurus: string, options?: AxiosRequestConfig) { + return RegistriesApiFp(this.configuration) + .deleteThesaurus(thesaurus, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Extracts directory entries from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public extractEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .extractEntries(xpath, uuids, bucket, identifierXpath, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get CRS + * @param {string} id CRS identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public getCrs(id: string, options?: AxiosRequestConfig) { + return RegistriesApiFp(this.configuration) + .getCrs(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of CRS type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public getCrsTypes(options?: AxiosRequestConfig) { + return RegistriesApiFp(this.configuration) + .getCrsTypes(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records using XLinks. XLinks can be remote or local. + * @summary Get a directory entry + * @param {string} uuid Directory entry UUID. + * @param {Array} [process] Process + * @param {string} [transformation] Transformation + * @param {Array} [lang] lang + * @param {string} [schema] schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public getEntry( + uuid: string, + process?: Array, + transformation?: string, + lang?: Array, + schema?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .getEntry(uuid, process, transformation, lang, schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public getKeywordById( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .getKeywordById( + id, + thesaurus, + lang, + keywordOnly, + transformation, + langMap, + accept, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve XML representation of keyword(s) from same thesaurususing different transformations. \'to-iso19139-keyword\' is the default and return an ISO19139 snippet.\'to-iso19139-keyword-as-xlink\' return an XLinked element. Custom transformation can be create on a per schema basis. + * @summary Get keyword by id + * @param {string} id Keyword identifier or list of keyword identifiers comma separated. + * @param {string} thesaurus Thesaurus to look info for the keyword(s). + * @param {Array} [lang] Languages. + * @param {boolean} [keywordOnly] Only print the keyword, no thesaurus information. + * @param {string} [transformation] XSL template to use (ISO19139 keyword by default, see convert.xsl). + * @param {string} [langMap] langMap, that converts the values in the \'lang\' parameter to how they will be actually represented in the record. {\'fre\':\'fra\'} or {\'fre\':\'fr\'}. Missing/empty means to convert to iso 2 letter. + * @param {string} [accept] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public getKeywordById1( + id: string, + thesaurus: string, + lang?: Array, + keywordOnly?: boolean, + transformation?: string, + langMap?: string, + accept?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .getKeywordById1( + id, + thesaurus, + lang, + keywordOnly, + transformation, + langMap, + accept, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Download the thesaurus in SKOS format. + * @summary Download a thesaurus by name + * @param {string} thesaurus Thesaurus to download. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public getThesaurus(thesaurus: string, options?: AxiosRequestConfig) { + return RegistriesApiFp(this.configuration) + .getThesaurus(thesaurus, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * CSV file MUST contains columns at least for concept id and label. For multilingual thesaurus, consider using columns like label, label_fre, label_ita with languages parameter set to [en, fr, it]. Default language value is used if translations are empty. The thesaurus filename will be the filename of the CSV file (with .rdf extension). It is recommended to set the thesaurus title and namespace URL even if default values will be used based on the filename. Thesaurus dates are set to the date of import. + * @summary Uploads a CSV file and convert it to SKOS format + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [encoding] Encoding. Default is UTF-8. + * @param {string} [thesaurusNs] Thesaurus namespace. Default is filename. + * @param {Array} [languages] Thesaurus languages + * @param {string} [thesaurusTitle] Thesaurus title. Default is filename. + * @param {string} [conceptIdColumn] Column name for concept id. Default is id. + * @param {string} [conceptLabelColumn] Column name for concept label. Default is label. + * @param {string} [conceptDescriptionColumn] Column name for concept description. Default is description. + * @param {string} [conceptBroaderIdColumn] Column name for broader concept id. Default is broader. + * @param {string} [conceptNarrowerIdColumn] Column name for narrower concept id. Default is narrower. + * @param {string} [conceptRelatedIdColumn] Column name for related concept id. Default is related. + * @param {string} [conceptLinkSeparator] Separator used when multiple broader/narrower/related ids are in the same column. Default is \'|\'. + * @param {boolean} [importAsThesaurus] Import CSV file as thesaurus if true (detault) or return it in SKOS format. + * @param {InlineObject5} [inlineObject5] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public importCsvAsThesaurus( + type?: "external" | "local", + dir?: string, + encoding?: string, + thesaurusNs?: string, + languages?: Array, + thesaurusTitle?: string, + conceptIdColumn?: string, + conceptLabelColumn?: string, + conceptDescriptionColumn?: string, + conceptBroaderIdColumn?: string, + conceptNarrowerIdColumn?: string, + conceptRelatedIdColumn?: string, + conceptLinkSeparator?: string, + importAsThesaurus?: boolean, + inlineObject5?: InlineObject5, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .importCsvAsThesaurus( + type, + dir, + encoding, + thesaurusNs, + languages, + thesaurusTitle, + conceptIdColumn, + conceptLabelColumn, + conceptDescriptionColumn, + conceptBroaderIdColumn, + conceptNarrowerIdColumn, + conceptRelatedIdColumn, + conceptLinkSeparator, + importAsThesaurus, + inlineObject5, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Directory entry (AKA subtemplates) are XML fragments that can be inserted in metadata records. Use this service to import geographic extent entries from an ESRI Shapefile format. + * @summary Import spatial directory entries + * @param {any} file The ZIP file to upload containing the Shapefile. + * @param {string} [uuidAttribute] Attribute to use for UUID. If none, random UUID are generated. + * @param {string} [uuidPattern] Pattern to build UUID from. Default is \'{{uuid}}\'. + * @param {string} [descriptionAttribute] Attribute to use for extent description. If none, no extent description defined. TODO: Add per language desc ? + * @param {string} [geomProjectionTo] geomProjectionTo + * @param {boolean} [lenient] lenient + * @param {string} [charset] Attribute table charset + * @param {boolean} [onlyBoundingBox] Create only bounding box for each spatial objects. + * @param {string} [process] Process + * @param {string} [schema] Schema identifier + * @param {'GENERATEUUID' | 'NOTHING' | 'OVERWRITE'} [uuidProcessing] Record identifier processing. + * @param {number} [group] The group the record is attached to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public importSpatialEntries( + file: any, + uuidAttribute?: string, + uuidPattern?: string, + descriptionAttribute?: string, + geomProjectionTo?: string, + lenient?: boolean, + charset?: string, + onlyBoundingBox?: boolean, + process?: string, + schema?: string, + uuidProcessing?: "GENERATEUUID" | "NOTHING" | "OVERWRITE", + group?: number, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .importSpatialEntries( + file, + uuidAttribute, + uuidPattern, + descriptionAttribute, + geomProjectionTo, + lenient, + charset, + onlyBoundingBox, + process, + schema, + uuidProcessing, + group, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Scan one or more records for element matching the XPath provided and save them as directory entries (ie. subtemplate).

Only records that the current user can edit are analyzed. + * @summary Preview directory entries extracted from records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public previewExtractedEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .previewExtractedEntries(xpath, uuids, bucket, identifierXpath, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Preview updated matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public previewUpdatedRecordEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .previewUpdatedRecordEntries( + xpath, + uuids, + bucket, + identifierXpath, + propertiesToCopy, + substituteAsXLink, + fq, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Based on GeoTools EPSG database. If phrase query, each words are searched separately. + * @summary Search coordinate reference system (CRS) + * @param {string} [q] Search value + * @param {'CoordinateReferenceSystem' | 'VerticalCRS' | 'GeographicCRS' | 'ProjectedCRS'} [type] Type of CRS + * @param {number} [rows] Number of results. Default is: 100 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public searchCrs( + q?: string, + type?: + | "CoordinateReferenceSystem" + | "VerticalCRS" + | "GeographicCRS" + | "ProjectedCRS", + rows?: number, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .searchCrs(q, type, rows, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Search keywords + * @param {string} [q] Query + * @param {string} [lang] Query in that language + * @param {number} [rows] Number of rows + * @param {number} [start] Start from + * @param {Array} [pLang] Return keyword information in one or more languages + * @param {Array} [thesaurus] Thesaurus identifier + * @param {'STARTS_WITH' | 'CONTAINS' | 'MATCH'} [type] Type of search + * @param {string} [uri] URI query + * @param {string} [sort] Sort by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public searchKeywords( + q?: string, + lang?: string, + rows?: number, + start?: number, + pLang?: Array, + thesaurus?: Array, + type?: "STARTS_WITH" | "CONTAINS" | "MATCH", + uri?: string, + sort?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .searchKeywords( + q, + lang, + rows, + start, + pLang, + thesaurus, + type, + uri, + sort, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Scan one or more records for element matching the XPath provided and then check if this element is available in the directory. If Found, the element from the directory update the element in the record and optionally properties are preserved.

The identifier XPath is used to find a match. An optional filtercan be added to restrict search to a subset of the directory. If no identifier XPaths is provided, the UUID is based on the content of the snippet (hash). It is recommended to use an identifier for better matching (eg. ISO19139 contact with different roles will not match on the automatic UUID mode). + * @summary Update matching entries in records + * @param {string} xpath XPath of the elements to extract as entry. + * @param {Array} [uuids] Record UUIDs. If null current selection is used. + * @param {string} [bucket] Selection bucket name + * @param {string} [identifierXpath] XPath of the element identifier. If not defined a random UUID is generated and analysis will not check for duplicates. + * @param {Array} [propertiesToCopy] List of XPath of properties to copy from record to matching entry. + * @param {boolean} [substituteAsXLink] Replace entry by XLink. + * @param {string} [fq] Filter query for directory search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public updateRecordEntries( + xpath: string, + uuids?: Array, + bucket?: string, + identifierXpath?: string, + propertiesToCopy?: Array, + substituteAsXLink?: boolean, + fq?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .updateRecordEntries( + xpath, + uuids, + bucket, + identifierXpath, + propertiesToCopy, + substituteAsXLink, + fq, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from a file + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {InlineObject4} [inlineObject4] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public uploadThesaurus( + type?: "external" | "local", + dir?: string, + stylesheet?: string, + inlineObject4?: InlineObject4, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .uploadThesaurus(type, dir, stylesheet, inlineObject4, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Uploads a new thesaurus. + * @summary Uploads a new thesaurus from URL or Registry + * @param {string} [url] If set, try to download from the Internet. + * @param {string} [registryUrl] If set, try to download from a registry. + * @param {'re3gistry' | 'ldRegistry'} [registryType] If using registryUrl, then define the type of registry. If not set, default mode is re3gistry. + * @param {Array} [registryLanguage] Languages to download from a registry. + * @param {'external' | 'local'} [type] Local or external (default). + * @param {string} [dir] Type of thesaurus, usually one of the ISO thesaurus type codelist value. Default is theme. + * @param {string} [stylesheet] XSL to be use to convert the thesaurus before load. Default _none_. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RegistriesApi + */ + public uploadThesaurusFromUrl( + url?: string, + registryUrl?: string, + registryType?: "re3gistry" | "ldRegistry", + registryLanguage?: Array, + type?: "external" | "local", + dir?: string, + stylesheet?: string, + options?: AxiosRequestConfig + ) { + return RegistriesApiFp(this.configuration) + .uploadThesaurusFromUrl( + url, + registryUrl, + registryType, + registryLanguage, + type, + dir, + stylesheet, + options + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * RelatedApi - axios parameter creator + * @export + */ +export const RelatedApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to all requested records.
More info + * @summary Get record related resources for all requested metadatas + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {Array} [uuid] Uuids of the metadatas you request the relations from. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAssociatedResourcesForRecords: async ( + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + uuid?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/related`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type) { + localVarQueryParameter["type"] = type; + } + + if (uuid) { + localVarQueryParameter["uuid"] = uuid; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * RelatedApi - functional programming interface + * @export + */ +export const RelatedApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = RelatedApiAxiosParamCreator(configuration); + return { + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to all requested records.
More info + * @summary Get record related resources for all requested metadatas + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {Array} [uuid] Uuids of the metadatas you request the relations from. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAssociatedResourcesForRecords( + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + uuid?: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: RelatedResponse }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getAssociatedResourcesForRecords( + type, + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * RelatedApi - factory interface + * @export + */ +export const RelatedApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = RelatedApiFp(configuration); + return { + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to all requested records.
More info + * @summary Get record related resources for all requested metadatas + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {Array} [uuid] Uuids of the metadatas you request the relations from. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAssociatedResourcesForRecords( + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + uuid?: Array, + options?: any + ): AxiosPromise<{ [key: string]: RelatedResponse }> { + return localVarFp + .getAssociatedResourcesForRecords(type, uuid, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RelatedApi - object-oriented interface + * @export + * @class RelatedApi + * @extends {BaseAPI} + */ +export class RelatedApi extends BaseAPI { + /** + * Retrieve related services, datasets, onlines, thumbnails, sources, ... to all requested records.
More info + * @summary Get record related resources for all requested metadatas + * @param {Array<'children' | 'parent' | 'brothersAndSisters' | 'siblings' | 'associated' | 'services' | 'datasets' | 'fcats' | 'hasfeaturecats' | 'sources' | 'hassources' | 'related' | 'onlines' | 'thumbnails'>} [type] Type of related resource. If none, all resources are returned. + * @param {Array} [uuid] Uuids of the metadatas you request the relations from. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RelatedApi + */ + public getAssociatedResourcesForRecords( + type?: Array< + | "children" + | "parent" + | "brothersAndSisters" + | "siblings" + | "associated" + | "services" + | "datasets" + | "fcats" + | "hasfeaturecats" + | "sources" + | "hassources" + | "related" + | "onlines" + | "thumbnails" + >, + uuid?: Array, + options?: AxiosRequestConfig + ) { + return RelatedApiFp(this.configuration) + .getAssociatedResourcesForRecords(type, uuid, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * SearchApi - axios parameter creator + * @export + */ +export const SearchApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + msearch: async ( + bucket?: string, + body?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/search/records/_msearch`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + body, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + search: async ( + bucket?: string, + body?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/search/records/_search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + body, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * SearchApi - functional programming interface + * @export + */ +export const SearchApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration); + return { + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async msearch( + bucket?: string, + body?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.msearch( + bucket, + body, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async search( + bucket?: string, + body?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.search( + bucket, + body, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * SearchApi - factory interface + * @export + */ +export const SearchApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = SearchApiFp(configuration); + return { + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + msearch(bucket?: string, body?: string, options?: any): AxiosPromise { + return localVarFp + .msearch(bucket, body, options) + .then((request) => request(axios, basePath)); + }, + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + search(bucket?: string, body?: string, options?: any): AxiosPromise { + return localVarFp + .search(bucket, body, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SearchApi - object-oriented interface + * @export + * @class SearchApi + * @extends {BaseAPI} + */ +export class SearchApi extends BaseAPI { + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SearchApi + */ + public msearch(bucket?: string, body?: string, options?: AxiosRequestConfig) { + return SearchApiFp(this.configuration) + .msearch(bucket, body, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html for search parameters details. + * @summary Search endpoint + * @param {string} [bucket] + * @param {string} [body] JSON request based on Elasticsearch API. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SearchApi + */ + public search(bucket?: string, body?: string, options?: AxiosRequestConfig) { + return SearchApiFp(this.configuration) + .search(bucket, body, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * SelectionsApi - axios parameter creator + * @export + */ +export const SelectionsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Select one or more items + * @param {string} bucket Bucket name + * @param {Array} [uuid] One or more record UUIDs. If null, select all in current search if bucket name is \'metadata\' (TODO: remove this limitation?). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + add: async ( + bucket: string, + uuid?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'bucket' is not null or undefined + assertParamExists("add", "bucket", bucket); + const localVarPath = `/selections/{bucket}`.replace( + `{${"bucket"}}`, + encodeURIComponent(String(bucket)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuid) { + localVarQueryParameter["uuid"] = uuid; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Clear selection or remove items + * @param {string} bucket Selection bucket name + * @param {Array} [uuid] One or more record UUIDs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clear: async ( + bucket: string, + uuid?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'bucket' is not null or undefined + assertParamExists("clear", "bucket", bucket); + const localVarPath = `/selections/{bucket}`.replace( + `{${"bucket"}}`, + encodeURIComponent(String(bucket)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuid) { + localVarQueryParameter["uuid"] = uuid; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get current selection + * @param {string} bucket Bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + get: async ( + bucket: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'bucket' is not null or undefined + assertParamExists("get", "bucket", bucket); + const localVarPath = `/selections/{bucket}`.replace( + `{${"bucket"}}`, + encodeURIComponent(String(bucket)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * SelectionsApi - functional programming interface + * @export + */ +export const SelectionsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + SelectionsApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Select one or more items + * @param {string} bucket Bucket name + * @param {Array} [uuid] One or more record UUIDs. If null, select all in current search if bucket name is \'metadata\' (TODO: remove this limitation?). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async add( + bucket: string, + uuid?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.add( + bucket, + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Clear selection or remove items + * @param {string} bucket Selection bucket name + * @param {Array} [uuid] One or more record UUIDs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async clear( + bucket: string, + uuid?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.clear( + bucket, + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get current selection + * @param {string} bucket Bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async get( + bucket: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.get( + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * SelectionsApi - factory interface + * @export + */ +export const SelectionsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = SelectionsApiFp(configuration); + return { + /** + * + * @summary Select one or more items + * @param {string} bucket Bucket name + * @param {Array} [uuid] One or more record UUIDs. If null, select all in current search if bucket name is \'metadata\' (TODO: remove this limitation?). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + add( + bucket: string, + uuid?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .add(bucket, uuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Clear selection or remove items + * @param {string} bucket Selection bucket name + * @param {Array} [uuid] One or more record UUIDs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clear( + bucket: string, + uuid?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .clear(bucket, uuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get current selection + * @param {string} bucket Bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + get(bucket: string, options?: any): AxiosPromise> { + return localVarFp + .get(bucket, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SelectionsApi - object-oriented interface + * @export + * @class SelectionsApi + * @extends {BaseAPI} + */ +export class SelectionsApi extends BaseAPI { + /** + * + * @summary Select one or more items + * @param {string} bucket Bucket name + * @param {Array} [uuid] One or more record UUIDs. If null, select all in current search if bucket name is \'metadata\' (TODO: remove this limitation?). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SelectionsApi + */ + public add( + bucket: string, + uuid?: Array, + options?: AxiosRequestConfig + ) { + return SelectionsApiFp(this.configuration) + .add(bucket, uuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Clear selection or remove items + * @param {string} bucket Selection bucket name + * @param {Array} [uuid] One or more record UUIDs + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SelectionsApi + */ + public clear( + bucket: string, + uuid?: Array, + options?: AxiosRequestConfig + ) { + return SelectionsApiFp(this.configuration) + .clear(bucket, uuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get current selection + * @param {string} bucket Bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SelectionsApi + */ + public get(bucket: string, options?: AxiosRequestConfig) { + return SelectionsApiFp(this.configuration) + .get(bucket, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * SiteApi - axios parameter creator + * @export + */ +export const SiteApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * May be used when indexing task is hanging. + * @summary Force to commit pending documents in index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + commitIndexChanges: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/index/commit`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get site informations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInformation: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/info`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get last activity + * @param {number} [lines] Number of lines to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLastActivity: async ( + lines?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/logging/activity`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (lines !== undefined) { + localVarQueryParameter["lines"] = lines; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get last activity in a ZIP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLastActivityInAZip: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/logging/activity/zip`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get log files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogFiles: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/logging`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary robots.txt + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRobotsText: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/robots.txt`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Provides also setting properties. + * @summary Get settings with details + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSettingsDetails: async ( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/settings/details`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (set) { + localVarQueryParameter["set"] = set; + } + + if (key) { + localVarQueryParameter["key"] = key; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return public settings for anonymous users, internals are allowed for authenticated. + * @summary Get settings + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSettingsSet: async ( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (set) { + localVarQueryParameter["set"] = set; + } + + if (key) { + localVarQueryParameter["key"] = key; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get site (or portal) description + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSiteOrPortalDescription: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get sitemap + * @param {string} [format] Format (xml or html). + * @param {number} [doc] page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSitemap: async ( + format?: string, + doc?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/sitemap`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (format !== undefined) { + localVarQueryParameter["format"] = format; + } + + if (doc !== undefined) { + localVarQueryParameter["doc"] = doc; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * To know when and how this version of the application was built. + * @summary Get build details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSystemInfo: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/info/build`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * XSL transformations may be applied while importing or harvesting records. + * @summary Get XSL tranformations available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getXslTransformations: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/info/transforms`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Index + * @param {boolean} [reset] Drop and recreate index + * @param {boolean} [asynchronous] Asynchronous mode (only on all records. ie. no selection bucket) + * @param {boolean} [havingXlinkOnly] Records having only XLinks + * @param {Array} [indices] Index. By default only remove record index. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + index1: async ( + reset?: boolean, + asynchronous?: boolean, + havingXlinkOnly?: boolean, + indices?: Array, + bucket?: string, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/index`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (reset !== undefined) { + localVarQueryParameter["reset"] = reset; + } + + if (asynchronous !== undefined) { + localVarQueryParameter["asynchronous"] = asynchronous; + } + + if (havingXlinkOnly !== undefined) { + localVarQueryParameter["havingXlinkOnly"] = havingXlinkOnly; + } + + if (indices) { + localVarQueryParameter["indices"] = indices; + } + + if (bucket !== undefined) { + localVarQueryParameter["bucket"] = bucket; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Index synchronized with database + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + indexAndDbSynchronizationStatus: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/index/synchronized`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Index commit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + indexCommit: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/index/commit`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Index status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + indexStatus: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/index/status`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Is CAS enabled? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isCasEnabled: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/info/isCasEnabled`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Is indexing? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isIndexing: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/indexing`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Is in read-only mode? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isReadOnly: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/site/info/readonly`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Save settings + * @param {{ [key: string]: string; }} allRequestParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveSettings: async ( + allRequestParams: { [key: string]: string }, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'allRequestParams' is not null or undefined + assertParamExists("saveSettings", "allRequestParams", allRequestParams); + const localVarPath = `/site/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (allRequestParams !== undefined) { + localVarQueryParameter["allRequestParams"] = allRequestParams; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Logos are stored in the data directory resources/images/harvesting as PNG or GIF images. When a logo is assigned to the catalog, a new image is created in images/logos/.png. + * @summary Set catalog logo + * @param {string} file Logo to use for the catalog + * @param {boolean} [asFavicon] Create favicon too + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLogo: async ( + file: string, + asFavicon?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists("setLogo", "file", file); + const localVarPath = `/site/logo`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (file !== undefined) { + localVarQueryParameter["file"] = file; + } + + if (asFavicon !== undefined) { + localVarQueryParameter["asFavicon"] = asFavicon; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * TODO: Needs doc + * @summary Update staging profile + * @param {'testing' | 'development' | 'production'} profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateStagingProfile: async ( + profile: "testing" | "development" | "production", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'profile' is not null or undefined + assertParamExists("updateStagingProfile", "profile", profile); + const localVarPath = `/site/info/staging/{profile}`.replace( + `{${"profile"}}`, + encodeURIComponent(String(profile)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * SiteApi - functional programming interface + * @export + */ +export const SiteApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = SiteApiAxiosParamCreator(configuration); + return { + /** + * May be used when indexing task is hanging. + * @summary Force to commit pending documents in index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async commitIndexChanges( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.commitIndexChanges(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get site informations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getInformation( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getInformation( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get last activity + * @param {number} [lines] Number of lines to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLastActivity( + lines?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLastActivity( + lines, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get last activity in a ZIP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLastActivityInAZip( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getLastActivityInAZip(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get log files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLogFiles( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLogFiles( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary robots.txt + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRobotsText( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRobotsText( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Provides also setting properties. + * @summary Get settings with details + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSettingsDetails( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSettingsDetails(set, key, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Return public settings for anonymous users, internals are allowed for authenticated. + * @summary Get settings + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSettingsSet( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSettingsSet( + set, + key, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get site (or portal) description + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSiteOrPortalDescription( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSiteOrPortalDescription(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get sitemap + * @param {string} [format] Format (xml or html). + * @param {number} [doc] page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSitemap( + format?: string, + doc?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSitemap( + format, + doc, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * To know when and how this version of the application was built. + * @summary Get build details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSystemInfo( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemInfo( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * XSL transformations may be applied while importing or harvesting records. + * @summary Get XSL tranformations available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getXslTransformations( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getXslTransformations(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Index + * @param {boolean} [reset] Drop and recreate index + * @param {boolean} [asynchronous] Asynchronous mode (only on all records. ie. no selection bucket) + * @param {boolean} [havingXlinkOnly] Records having only XLinks + * @param {Array} [indices] Index. By default only remove record index. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async index1( + reset?: boolean, + asynchronous?: boolean, + havingXlinkOnly?: boolean, + indices?: Array, + bucket?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.index1( + reset, + asynchronous, + havingXlinkOnly, + indices, + bucket, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Index synchronized with database + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async indexAndDbSynchronizationStatus( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: object }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.indexAndDbSynchronizationStatus( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Index commit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async indexCommit( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.indexCommit( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Index status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async indexStatus( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.indexStatus( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Is CAS enabled? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async isCasEnabled( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.isCasEnabled( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Is indexing? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async isIndexing( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.isIndexing( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Is in read-only mode? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async isReadOnly( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.isReadOnly( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Save settings + * @param {{ [key: string]: string; }} allRequestParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveSettings( + allRequestParams: { [key: string]: string }, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveSettings( + allRequestParams, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Logos are stored in the data directory resources/images/harvesting as PNG or GIF images. When a logo is assigned to the catalog, a new image is created in images/logos/.png. + * @summary Set catalog logo + * @param {string} file Logo to use for the catalog + * @param {boolean} [asFavicon] Create favicon too + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setLogo( + file: string, + asFavicon?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.setLogo( + file, + asFavicon, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * TODO: Needs doc + * @summary Update staging profile + * @param {'testing' | 'development' | 'production'} profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateStagingProfile( + profile: "testing" | "development" | "production", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateStagingProfile(profile, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * SiteApi - factory interface + * @export + */ +export const SiteApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = SiteApiFp(configuration); + return { + /** + * May be used when indexing task is hanging. + * @summary Force to commit pending documents in index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + commitIndexChanges(options?: any): AxiosPromise { + return localVarFp + .commitIndexChanges(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get site informations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInformation(options?: any): AxiosPromise { + return localVarFp + .getInformation(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get last activity + * @param {number} [lines] Number of lines to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLastActivity(lines?: number, options?: any): AxiosPromise { + return localVarFp + .getLastActivity(lines, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get last activity in a ZIP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLastActivityInAZip(options?: any): AxiosPromise { + return localVarFp + .getLastActivityInAZip(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get log files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogFiles(options?: any): AxiosPromise> { + return localVarFp + .getLogFiles(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary robots.txt + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRobotsText(options?: any): AxiosPromise { + return localVarFp + .getRobotsText(options) + .then((request) => request(axios, basePath)); + }, + /** + * Provides also setting properties. + * @summary Get settings with details + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSettingsDetails( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options?: any + ): AxiosPromise> { + return localVarFp + .getSettingsDetails(set, key, options) + .then((request) => request(axios, basePath)); + }, + /** + * Return public settings for anonymous users, internals are allowed for authenticated. + * @summary Get settings + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSettingsSet( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .getSettingsSet(set, key, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get site (or portal) description + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSiteOrPortalDescription( + options?: any + ): AxiosPromise { + return localVarFp + .getSiteOrPortalDescription(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get sitemap + * @param {string} [format] Format (xml or html). + * @param {number} [doc] page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSitemap( + format?: string, + doc?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getSitemap(format, doc, options) + .then((request) => request(axios, basePath)); + }, + /** + * To know when and how this version of the application was built. + * @summary Get build details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSystemInfo(options?: any): AxiosPromise { + return localVarFp + .getSystemInfo(options) + .then((request) => request(axios, basePath)); + }, + /** + * XSL transformations may be applied while importing or harvesting records. + * @summary Get XSL tranformations available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getXslTransformations(options?: any): AxiosPromise> { + return localVarFp + .getXslTransformations(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Index + * @param {boolean} [reset] Drop and recreate index + * @param {boolean} [asynchronous] Asynchronous mode (only on all records. ie. no selection bucket) + * @param {boolean} [havingXlinkOnly] Records having only XLinks + * @param {Array} [indices] Index. By default only remove record index. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + index1( + reset?: boolean, + asynchronous?: boolean, + havingXlinkOnly?: boolean, + indices?: Array, + bucket?: string, + options?: any + ): AxiosPromise { + return localVarFp + .index1(reset, asynchronous, havingXlinkOnly, indices, bucket, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Index synchronized with database + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + indexAndDbSynchronizationStatus( + options?: any + ): AxiosPromise<{ [key: string]: object }> { + return localVarFp + .indexAndDbSynchronizationStatus(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Index commit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + indexCommit(options?: any): AxiosPromise { + return localVarFp + .indexCommit(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Index status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + indexStatus(options?: any): AxiosPromise { + return localVarFp + .indexStatus(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Is CAS enabled? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isCasEnabled(options?: any): AxiosPromise { + return localVarFp + .isCasEnabled(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Is indexing? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isIndexing(options?: any): AxiosPromise { + return localVarFp + .isIndexing(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Is in read-only mode? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isReadOnly(options?: any): AxiosPromise { + return localVarFp + .isReadOnly(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Save settings + * @param {{ [key: string]: string; }} allRequestParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveSettings( + allRequestParams: { [key: string]: string }, + options?: any + ): AxiosPromise { + return localVarFp + .saveSettings(allRequestParams, options) + .then((request) => request(axios, basePath)); + }, + /** + * Logos are stored in the data directory resources/images/harvesting as PNG or GIF images. When a logo is assigned to the catalog, a new image is created in images/logos/.png. + * @summary Set catalog logo + * @param {string} file Logo to use for the catalog + * @param {boolean} [asFavicon] Create favicon too + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLogo( + file: string, + asFavicon?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .setLogo(file, asFavicon, options) + .then((request) => request(axios, basePath)); + }, + /** + * TODO: Needs doc + * @summary Update staging profile + * @param {'testing' | 'development' | 'production'} profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateStagingProfile( + profile: "testing" | "development" | "production", + options?: any + ): AxiosPromise { + return localVarFp + .updateStagingProfile(profile, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SiteApi - object-oriented interface + * @export + * @class SiteApi + * @extends {BaseAPI} + */ +export class SiteApi extends BaseAPI { + /** + * May be used when indexing task is hanging. + * @summary Force to commit pending documents in index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public commitIndexChanges(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .commitIndexChanges(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get site informations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getInformation(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getInformation(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get last activity + * @param {number} [lines] Number of lines to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getLastActivity(lines?: number, options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getLastActivity(lines, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get last activity in a ZIP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getLastActivityInAZip(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getLastActivityInAZip(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get log files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getLogFiles(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getLogFiles(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary robots.txt + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getRobotsText(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getRobotsText(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Provides also setting properties. + * @summary Get settings with details + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getSettingsDetails( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .getSettingsDetails(set, key, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Return public settings for anonymous users, internals are allowed for authenticated. + * @summary Get settings + * @param {Array<'INSPIRE' | 'CSW' | 'HARVESTER' | 'USER_GROUP_ONLY' | 'AUTH' | 'READ_ONLY' | 'INDEX' | 'SYSTEMINFO' | 'STAGING_PROFILE' | 'TYPE'>} [set] Setting set. A common set of settings to retrieve. + * @param {Array} [key] Setting key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getSettingsSet( + set?: Array< + | "INSPIRE" + | "CSW" + | "HARVESTER" + | "USER_GROUP_ONLY" + | "AUTH" + | "READ_ONLY" + | "INDEX" + | "SYSTEMINFO" + | "STAGING_PROFILE" + | "TYPE" + >, + key?: Array, + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .getSettingsSet(set, key, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get site (or portal) description + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getSiteOrPortalDescription(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getSiteOrPortalDescription(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get sitemap + * @param {string} [format] Format (xml or html). + * @param {number} [doc] page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getSitemap( + format?: string, + doc?: number, + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .getSitemap(format, doc, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * To know when and how this version of the application was built. + * @summary Get build details + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getSystemInfo(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getSystemInfo(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * XSL transformations may be applied while importing or harvesting records. + * @summary Get XSL tranformations available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public getXslTransformations(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .getXslTransformations(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Index + * @param {boolean} [reset] Drop and recreate index + * @param {boolean} [asynchronous] Asynchronous mode (only on all records. ie. no selection bucket) + * @param {boolean} [havingXlinkOnly] Records having only XLinks + * @param {Array} [indices] Index. By default only remove record index. + * @param {string} [bucket] Selection bucket name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public index1( + reset?: boolean, + asynchronous?: boolean, + havingXlinkOnly?: boolean, + indices?: Array, + bucket?: string, + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .index1(reset, asynchronous, havingXlinkOnly, indices, bucket, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Index synchronized with database + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public indexAndDbSynchronizationStatus(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .indexAndDbSynchronizationStatus(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Index commit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public indexCommit(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .indexCommit(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Index status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public indexStatus(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .indexStatus(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Is CAS enabled? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public isCasEnabled(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .isCasEnabled(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Is indexing? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public isIndexing(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .isIndexing(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Is in read-only mode? + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public isReadOnly(options?: AxiosRequestConfig) { + return SiteApiFp(this.configuration) + .isReadOnly(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Save settings + * @param {{ [key: string]: string; }} allRequestParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public saveSettings( + allRequestParams: { [key: string]: string }, + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .saveSettings(allRequestParams, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Logos are stored in the data directory resources/images/harvesting as PNG or GIF images. When a logo is assigned to the catalog, a new image is created in images/logos/.png. + * @summary Set catalog logo + * @param {string} file Logo to use for the catalog + * @param {boolean} [asFavicon] Create favicon too + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public setLogo( + file: string, + asFavicon?: boolean, + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .setLogo(file, asFavicon, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * TODO: Needs doc + * @summary Update staging profile + * @param {'testing' | 'development' | 'production'} profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SiteApi + */ + public updateStagingProfile( + profile: "testing" | "development" | "production", + options?: AxiosRequestConfig + ) { + return SiteApiFp(this.configuration) + .updateStagingProfile(profile, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * SourcesApi - axios parameter creator + * @export + */ +export const SourcesApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Add a source + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addSource: async ( + source: Source, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'source' is not null or undefined + assertParamExists("addSource", "source", source); + const localVarPath = `/sources`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + source, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove a source + * @param {string} sourceIdentifier Source identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteSource: async ( + sourceIdentifier: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'sourceIdentifier' is not null or undefined + assertParamExists("deleteSource", "sourceIdentifier", sourceIdentifier); + const localVarPath = `/sources/{sourceIdentifier}`.replace( + `{${"sourceIdentifier"}}`, + encodeURIComponent(String(sourceIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources by type + * @param {'portal' | 'subportal' | 'externalportal' | 'harvester'} type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSourcesByType: async ( + type: "portal" | "subportal" | "externalportal" | "harvester", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'type' is not null or undefined + assertParamExists("getSourcesByType", "type", type); + const localVarPath = `/sources/{type}`.replace( + `{${"type"}}`, + encodeURIComponent(String(type)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources + * @param {number} [group] Group owner of the source (only applies to subportal). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSubPortals1: async ( + group?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/sources`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (group !== undefined) { + localVarQueryParameter["group"] = group; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a source + * @param {string} sourceIdentifier Source identifier + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateSource: async ( + sourceIdentifier: string, + source: Source, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'sourceIdentifier' is not null or undefined + assertParamExists("updateSource", "sourceIdentifier", sourceIdentifier); + // verify required parameter 'source' is not null or undefined + assertParamExists("updateSource", "source", source); + const localVarPath = `/sources/{sourceIdentifier}`.replace( + `{${"sourceIdentifier"}}`, + encodeURIComponent(String(sourceIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + source, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * SourcesApi - functional programming interface + * @export + */ +export const SourcesApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = SourcesApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Add a source + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addSource( + source: Source, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addSource( + source, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove a source + * @param {string} sourceIdentifier Source identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteSource( + sourceIdentifier: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSource( + sourceIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources by type + * @param {'portal' | 'subportal' | 'externalportal' | 'harvester'} type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSourcesByType( + type: "portal" | "subportal" | "externalportal" | "harvester", + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSourcesByType(type, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources + * @param {number} [group] Group owner of the source (only applies to subportal). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSubPortals1( + group?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSubPortals1( + group, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a source + * @param {string} sourceIdentifier Source identifier + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateSource( + sourceIdentifier: string, + source: Source, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateSource( + sourceIdentifier, + source, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * SourcesApi - factory interface + * @export + */ +export const SourcesApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = SourcesApiFp(configuration); + return { + /** + * + * @summary Add a source + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addSource(source: Source, options?: any): AxiosPromise { + return localVarFp + .addSource(source, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove a source + * @param {string} sourceIdentifier Source identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteSource( + sourceIdentifier: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteSource(sourceIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources by type + * @param {'portal' | 'subportal' | 'externalportal' | 'harvester'} type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSourcesByType( + type: "portal" | "subportal" | "externalportal" | "harvester", + options?: any + ): AxiosPromise> { + return localVarFp + .getSourcesByType(type, options) + .then((request) => request(axios, basePath)); + }, + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources + * @param {number} [group] Group owner of the source (only applies to subportal). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSubPortals1(group?: number, options?: any): AxiosPromise> { + return localVarFp + .getSubPortals1(group, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a source + * @param {string} sourceIdentifier Source identifier + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateSource( + sourceIdentifier: string, + source: Source, + options?: any + ): AxiosPromise { + return localVarFp + .updateSource(sourceIdentifier, source, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SourcesApi - object-oriented interface + * @export + * @class SourcesApi + * @extends {BaseAPI} + */ +export class SourcesApi extends BaseAPI { + /** + * + * @summary Add a source + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SourcesApi + */ + public addSource(source: Source, options?: AxiosRequestConfig) { + return SourcesApiFp(this.configuration) + .addSource(source, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove a source + * @param {string} sourceIdentifier Source identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SourcesApi + */ + public deleteSource(sourceIdentifier: string, options?: AxiosRequestConfig) { + return SourcesApiFp(this.configuration) + .deleteSource(sourceIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources by type + * @param {'portal' | 'subportal' | 'externalportal' | 'harvester'} type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SourcesApi + */ + public getSourcesByType( + type: "portal" | "subportal" | "externalportal" | "harvester", + options?: AxiosRequestConfig + ) { + return SourcesApiFp(this.configuration) + .getSourcesByType(type, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Sources are the local catalogue, subportal, external catalogue (when importing MEF files) or harvesters. + * @summary Get all sources + * @param {number} [group] Group owner of the source (only applies to subportal). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SourcesApi + */ + public getSubPortals1(group?: number, options?: AxiosRequestConfig) { + return SourcesApiFp(this.configuration) + .getSubPortals1(group, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a source + * @param {string} sourceIdentifier Source identifier + * @param {Source} source + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SourcesApi + */ + public updateSource( + sourceIdentifier: string, + source: Source, + options?: AxiosRequestConfig + ) { + return SourcesApiFp(this.configuration) + .updateSource(sourceIdentifier, source, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * StandardsApi - axios parameter creator + * @export + */ +export const StandardsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * All translations are combined in the same object. No distinction by codelist. This is useful if you need lots of codelists terms to be loaded. + * @summary Get multiple codelist translations + * @param {string} schema Schema identifier + * @param {Array} codelist Codelist element name or alias + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCodelistsTranslations: async ( + schema: string, + codelist: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("getCodelistsTranslations", "schema", schema); + // verify required parameter 'codelist' is not null or undefined + assertParamExists("getCodelistsTranslations", "codelist", codelist); + const localVarPath = `/standards/{schema}/codelists`.replace( + `{${"schema"}}`, + encodeURIComponent(String(schema)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (codelist) { + localVarQueryParameter["codelist"] = codelist; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get batch editor configuration for a standard + * @param {string} schema Schema identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfiguration: async ( + schema: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("getConfiguration", "schema", schema); + const localVarPath = `/standards/{schema}/batchconfiguration`.replace( + `{${"schema"}}`, + encodeURIComponent(String(schema)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get batch editor configuration for standards + * @param {Array} [schema] Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfigurations: async ( + schema?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/standards/batchconfiguration`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (schema) { + localVarQueryParameter["schema"] = schema; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get editor associated resources panel configuration + * @param {string} schema Schema identifier + * @param {string} name Configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getEditorAssociatedPanelConfiguration: async ( + schema: string, + name: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists( + "getEditorAssociatedPanelConfiguration", + "schema", + schema + ); + // verify required parameter 'name' is not null or undefined + assertParamExists("getEditorAssociatedPanelConfiguration", "name", name); + const localVarPath = + `/standards/{schema}/editor/associatedpanel/config/{name}.json` + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))) + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get descriptor details + * @param {string} schema Schema identifier + * @param {string} element Descriptor name + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getElementDetails: async ( + schema: string, + element: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("getElementDetails", "schema", schema); + // verify required parameter 'element' is not null or undefined + assertParamExists("getElementDetails", "element", element); + const localVarPath = `/standards/{schema}/descriptors/{element}/details` + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))) + .replace(`{${"element"}}`, encodeURIComponent(String(element))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (parent !== undefined) { + localVarQueryParameter["parent"] = parent; + } + + if (displayIf !== undefined) { + localVarQueryParameter["displayIf"] = displayIf; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (isoType !== undefined) { + localVarQueryParameter["isoType"] = isoType; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get codelist details + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] Parent name with namespace which may indicate a more precise label as defined in context attribute. + * @param {string} [displayIf] Display if condition as defined in the codelist.xml file. Allows to select a more precise codelist when more than one is defined for same name. + * @param {string} [xpath] XPath of the element to target which may indicate a more precise label as defined in context attribute. + * @param {string} [isoType] ISO type of the element to target which may indicate a more precise label as defined in context attribute. (Same as context. TODO: Deprecate ?) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSchemaCodelistsWithDetails: async ( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("getSchemaCodelistsWithDetails", "schema", schema); + // verify required parameter 'codelist' is not null or undefined + assertParamExists("getSchemaCodelistsWithDetails", "codelist", codelist); + const localVarPath = `/standards/{schema}/codelists/{codelist}/details` + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))) + .replace(`{${"codelist"}}`, encodeURIComponent(String(codelist))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (parent !== undefined) { + localVarQueryParameter["parent"] = parent; + } + + if (displayIf !== undefined) { + localVarQueryParameter["displayIf"] = displayIf; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (isoType !== undefined) { + localVarQueryParameter["isoType"] = isoType; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get codelist translations + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSchemaTranslations: async ( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'schema' is not null or undefined + assertParamExists("getSchemaTranslations", "schema", schema); + // verify required parameter 'codelist' is not null or undefined + assertParamExists("getSchemaTranslations", "codelist", codelist); + const localVarPath = `/standards/{schema}/codelists/{codelist}` + .replace(`{${"schema"}}`, encodeURIComponent(String(schema))) + .replace(`{${"codelist"}}`, encodeURIComponent(String(codelist))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (parent !== undefined) { + localVarQueryParameter["parent"] = parent; + } + + if (displayIf !== undefined) { + localVarQueryParameter["displayIf"] = displayIf; + } + + if (xpath !== undefined) { + localVarQueryParameter["xpath"] = xpath; + } + + if (isoType !== undefined) { + localVarQueryParameter["isoType"] = isoType; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStandardConfigurations: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/standards`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Reload standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reloadSchema: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/standards/reload`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * StandardsApi - functional programming interface + * @export + */ +export const StandardsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + StandardsApiAxiosParamCreator(configuration); + return { + /** + * All translations are combined in the same object. No distinction by codelist. This is useful if you need lots of codelists terms to be loaded. + * @summary Get multiple codelist translations + * @param {string} schema Schema identifier + * @param {Array} codelist Codelist element name or alias + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCodelistsTranslations( + schema: string, + codelist: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getCodelistsTranslations( + schema, + codelist, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get batch editor configuration for a standard + * @param {string} schema Schema identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getConfiguration( + schema: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: BatchEditing }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getConfiguration(schema, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get batch editor configuration for standards + * @param {Array} [schema] Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getConfigurations( + schema?: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: BatchEditing }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getConfigurations(schema, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get editor associated resources panel configuration + * @param {string} schema Schema identifier + * @param {string} name Configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getEditorAssociatedPanelConfiguration( + schema: string, + name: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getEditorAssociatedPanelConfiguration( + schema, + name, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get descriptor details + * @param {string} schema Schema identifier + * @param {string} element Descriptor name + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getElementDetails( + schema: string, + element: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getElementDetails( + schema, + element, + parent, + displayIf, + xpath, + isoType, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get codelist details + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] Parent name with namespace which may indicate a more precise label as defined in context attribute. + * @param {string} [displayIf] Display if condition as defined in the codelist.xml file. Allows to select a more precise codelist when more than one is defined for same name. + * @param {string} [xpath] XPath of the element to target which may indicate a more precise label as defined in context attribute. + * @param {string} [isoType] ISO type of the element to target which may indicate a more precise label as defined in context attribute. (Same as context. TODO: Deprecate ?) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSchemaCodelistsWithDetails( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSchemaCodelistsWithDetails( + schema, + codelist, + parent, + displayIf, + xpath, + isoType, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get codelist translations + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSchemaTranslations( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSchemaTranslations( + schema, + codelist, + parent, + displayIf, + xpath, + isoType, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getStandardConfigurations( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getStandardConfigurations(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Reload standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async reloadSchema( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.reloadSchema( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * StandardsApi - factory interface + * @export + */ +export const StandardsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = StandardsApiFp(configuration); + return { + /** + * All translations are combined in the same object. No distinction by codelist. This is useful if you need lots of codelists terms to be loaded. + * @summary Get multiple codelist translations + * @param {string} schema Schema identifier + * @param {Array} codelist Codelist element name or alias + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCodelistsTranslations( + schema: string, + codelist: Array, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .getCodelistsTranslations(schema, codelist, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get batch editor configuration for a standard + * @param {string} schema Schema identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfiguration( + schema: string, + options?: any + ): AxiosPromise<{ [key: string]: BatchEditing }> { + return localVarFp + .getConfiguration(schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get batch editor configuration for standards + * @param {Array} [schema] Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfigurations( + schema?: Array, + options?: any + ): AxiosPromise<{ [key: string]: BatchEditing }> { + return localVarFp + .getConfigurations(schema, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get editor associated resources panel configuration + * @param {string} schema Schema identifier + * @param {string} name Configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getEditorAssociatedPanelConfiguration( + schema: string, + name: string, + options?: any + ): AxiosPromise { + return localVarFp + .getEditorAssociatedPanelConfiguration(schema, name, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get descriptor details + * @param {string} schema Schema identifier + * @param {string} element Descriptor name + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getElementDetails( + schema: string, + element: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getElementDetails( + schema, + element, + parent, + displayIf, + xpath, + isoType, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get codelist details + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] Parent name with namespace which may indicate a more precise label as defined in context attribute. + * @param {string} [displayIf] Display if condition as defined in the codelist.xml file. Allows to select a more precise codelist when more than one is defined for same name. + * @param {string} [xpath] XPath of the element to target which may indicate a more precise label as defined in context attribute. + * @param {string} [isoType] ISO type of the element to target which may indicate a more precise label as defined in context attribute. (Same as context. TODO: Deprecate ?) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSchemaCodelistsWithDetails( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: any + ): AxiosPromise { + return localVarFp + .getSchemaCodelistsWithDetails( + schema, + codelist, + parent, + displayIf, + xpath, + isoType, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get codelist translations + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSchemaTranslations( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .getSchemaTranslations( + schema, + codelist, + parent, + displayIf, + xpath, + isoType, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStandardConfigurations(options?: any): AxiosPromise { + return localVarFp + .getStandardConfigurations(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Reload standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reloadSchema(options?: any): AxiosPromise { + return localVarFp + .reloadSchema(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * StandardsApi - object-oriented interface + * @export + * @class StandardsApi + * @extends {BaseAPI} + */ +export class StandardsApi extends BaseAPI { + /** + * All translations are combined in the same object. No distinction by codelist. This is useful if you need lots of codelists terms to be loaded. + * @summary Get multiple codelist translations + * @param {string} schema Schema identifier + * @param {Array} codelist Codelist element name or alias + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getCodelistsTranslations( + schema: string, + codelist: Array, + options?: AxiosRequestConfig + ) { + return StandardsApiFp(this.configuration) + .getCodelistsTranslations(schema, codelist, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get batch editor configuration for a standard + * @param {string} schema Schema identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getConfiguration(schema: string, options?: AxiosRequestConfig) { + return StandardsApiFp(this.configuration) + .getConfiguration(schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get batch editor configuration for standards + * @param {Array} [schema] Schema identifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getConfigurations( + schema?: Array, + options?: AxiosRequestConfig + ) { + return StandardsApiFp(this.configuration) + .getConfigurations(schema, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get editor associated resources panel configuration + * @param {string} schema Schema identifier + * @param {string} name Configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getEditorAssociatedPanelConfiguration( + schema: string, + name: string, + options?: AxiosRequestConfig + ) { + return StandardsApiFp(this.configuration) + .getEditorAssociatedPanelConfiguration(schema, name, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get descriptor details + * @param {string} schema Schema identifier + * @param {string} element Descriptor name + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getElementDetails( + schema: string, + element: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: AxiosRequestConfig + ) { + return StandardsApiFp(this.configuration) + .getElementDetails( + schema, + element, + parent, + displayIf, + xpath, + isoType, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get codelist details + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] Parent name with namespace which may indicate a more precise label as defined in context attribute. + * @param {string} [displayIf] Display if condition as defined in the codelist.xml file. Allows to select a more precise codelist when more than one is defined for same name. + * @param {string} [xpath] XPath of the element to target which may indicate a more precise label as defined in context attribute. + * @param {string} [isoType] ISO type of the element to target which may indicate a more precise label as defined in context attribute. (Same as context. TODO: Deprecate ?) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getSchemaCodelistsWithDetails( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: AxiosRequestConfig + ) { + return StandardsApiFp(this.configuration) + .getSchemaCodelistsWithDetails( + schema, + codelist, + parent, + displayIf, + xpath, + isoType, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get codelist translations + * @param {string} schema Schema identifier + * @param {string} codelist Codelist element name or alias + * @param {string} [parent] + * @param {string} [displayIf] + * @param {string} [xpath] + * @param {string} [isoType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getSchemaTranslations( + schema: string, + codelist: string, + parent?: string, + displayIf?: string, + xpath?: string, + isoType?: string, + options?: AxiosRequestConfig + ) { + return StandardsApiFp(this.configuration) + .getSchemaTranslations( + schema, + codelist, + parent, + displayIf, + xpath, + isoType, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public getStandardConfigurations(options?: AxiosRequestConfig) { + return StandardsApiFp(this.configuration) + .getStandardConfigurations(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Reload standards + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StandardsApi + */ + public reloadSchema(options?: AxiosRequestConfig) { + return StandardsApiFp(this.configuration) + .reloadSchema(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * StatusApi - axios parameter creator + * @export + */ +export const StatusApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Delete all record history and status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteAllHistoryAndStatus: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/status`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get status by type + * @param {'workflow' | 'task' | 'event'} type Type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStatusByType: async ( + type: "workflow" | "task" | "event", + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'type' is not null or undefined + assertParamExists("getStatusByType", "type", type); + const localVarPath = `/status/{type}`.replace( + `{${"type"}}`, + encodeURIComponent(String(type)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStatusList: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/status`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * StatusApi - functional programming interface + * @export + */ +export const StatusApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = StatusApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Delete all record history and status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteAllHistoryAndStatus( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteAllHistoryAndStatus(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get status by type + * @param {'workflow' | 'task' | 'event'} type Type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getStatusByType( + type: "workflow" | "task" | "event", + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStatusByType( + type, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getStatusList( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStatusList( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * StatusApi - factory interface + * @export + */ +export const StatusApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = StatusApiFp(configuration); + return { + /** + * + * @summary Delete all record history and status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteAllHistoryAndStatus(options?: any): AxiosPromise { + return localVarFp + .deleteAllHistoryAndStatus(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get status by type + * @param {'workflow' | 'task' | 'event'} type Type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStatusByType( + type: "workflow" | "task" | "event", + options?: any + ): AxiosPromise> { + return localVarFp + .getStatusByType(type, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStatusList(options?: any): AxiosPromise> { + return localVarFp + .getStatusList(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * StatusApi - object-oriented interface + * @export + * @class StatusApi + * @extends {BaseAPI} + */ +export class StatusApi extends BaseAPI { + /** + * + * @summary Delete all record history and status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatusApi + */ + public deleteAllHistoryAndStatus(options?: AxiosRequestConfig) { + return StatusApiFp(this.configuration) + .deleteAllHistoryAndStatus(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get status by type + * @param {'workflow' | 'task' | 'event'} type Type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatusApi + */ + public getStatusByType( + type: "workflow" | "task" | "event", + options?: AxiosRequestConfig + ) { + return StatusApiFp(this.configuration) + .getStatusByType(type, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatusApi + */ + public getStatusList(options?: AxiosRequestConfig) { + return StatusApiFp(this.configuration) + .getStatusList(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * TagsApi - axios parameter creator + * @export + */ +export const TagsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Remove a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTag: async ( + tagIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'tagIdentifier' is not null or undefined + assertParamExists("deleteTag", "tagIdentifier", tagIdentifier); + const localVarPath = `/tags/{tagIdentifier}`.replace( + `{${"tagIdentifier"}}`, + encodeURIComponent(String(tagIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTag: async ( + tagIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'tagIdentifier' is not null or undefined + assertParamExists("getTag", "tagIdentifier", tagIdentifier); + const localVarPath = `/tags/{tagIdentifier}`.replace( + `{${"tagIdentifier"}}`, + encodeURIComponent(String(tagIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get tags + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTags: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * If labels are not defined, a default label is created with the category name for all languages. + * @summary Create a tag + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putTag: async ( + metadataCategory: MetadataCategory, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataCategory' is not null or undefined + assertParamExists("putTag", "metadataCategory", metadataCategory); + const localVarPath = `/tags`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + metadataCategory, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a tag + * @param {number} tagIdentifier Tag identifier + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateTag: async ( + tagIdentifier: number, + metadataCategory: MetadataCategory, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'tagIdentifier' is not null or undefined + assertParamExists("updateTag", "tagIdentifier", tagIdentifier); + // verify required parameter 'metadataCategory' is not null or undefined + assertParamExists("updateTag", "metadataCategory", metadataCategory); + const localVarPath = `/tags/{tagIdentifier}`.replace( + `{${"tagIdentifier"}}`, + encodeURIComponent(String(tagIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + metadataCategory, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * TagsApi - functional programming interface + * @export + */ +export const TagsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = TagsApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Remove a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteTag( + tagIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag( + tagIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTag( + tagIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTag( + tagIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get tags + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTags( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTags( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * If labels are not defined, a default label is created with the category name for all languages. + * @summary Create a tag + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async putTag( + metadataCategory: MetadataCategory, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.putTag( + metadataCategory, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a tag + * @param {number} tagIdentifier Tag identifier + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateTag( + tagIdentifier: number, + metadataCategory: MetadataCategory, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag( + tagIdentifier, + metadataCategory, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * TagsApi - factory interface + * @export + */ +export const TagsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = TagsApiFp(configuration); + return { + /** + * + * @summary Remove a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTag(tagIdentifier: number, options?: any): AxiosPromise { + return localVarFp + .deleteTag(tagIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTag( + tagIdentifier: number, + options?: any + ): AxiosPromise { + return localVarFp + .getTag(tagIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get tags + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTags(options?: any): AxiosPromise> { + return localVarFp + .getTags(options) + .then((request) => request(axios, basePath)); + }, + /** + * If labels are not defined, a default label is created with the category name for all languages. + * @summary Create a tag + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putTag( + metadataCategory: MetadataCategory, + options?: any + ): AxiosPromise { + return localVarFp + .putTag(metadataCategory, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a tag + * @param {number} tagIdentifier Tag identifier + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateTag( + tagIdentifier: number, + metadataCategory: MetadataCategory, + options?: any + ): AxiosPromise { + return localVarFp + .updateTag(tagIdentifier, metadataCategory, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * TagsApi - object-oriented interface + * @export + * @class TagsApi + * @extends {BaseAPI} + */ +export class TagsApi extends BaseAPI { + /** + * + * @summary Remove a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagsApi + */ + public deleteTag(tagIdentifier: number, options?: AxiosRequestConfig) { + return TagsApiFp(this.configuration) + .deleteTag(tagIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a tag + * @param {number} tagIdentifier Tag identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagsApi + */ + public getTag(tagIdentifier: number, options?: AxiosRequestConfig) { + return TagsApiFp(this.configuration) + .getTag(tagIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get tags + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagsApi + */ + public getTags(options?: AxiosRequestConfig) { + return TagsApiFp(this.configuration) + .getTags(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * If labels are not defined, a default label is created with the category name for all languages. + * @summary Create a tag + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagsApi + */ + public putTag( + metadataCategory: MetadataCategory, + options?: AxiosRequestConfig + ) { + return TagsApiFp(this.configuration) + .putTag(metadataCategory, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a tag + * @param {number} tagIdentifier Tag identifier + * @param {MetadataCategory} metadataCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TagsApi + */ + public updateTag( + tagIdentifier: number, + metadataCategory: MetadataCategory, + options?: AxiosRequestConfig + ) { + return TagsApiFp(this.configuration) + .updateTag(tagIdentifier, metadataCategory, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * ToolsApi - axios parameter creator + * @export + */ +export const ToolsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Add or update all database translations. + * @param {Array} translations + * @param {boolean} [replace] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addTranslations: async ( + translations: Array, + replace?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'translations' is not null or undefined + assertParamExists("addTranslations", "translations", translations); + const localVarPath = `/i18n/db/translations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (replace !== undefined) { + localVarQueryParameter["replace"] = replace; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + translations, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Database translations can be used to customize labels in the UI for different languages. + * @summary Add or update database translations for a key. + * @param {string} key Untranslated key for which translations are provided. + * @param {{ [key: string]: string; }} requestBody An object where keys are valid 3-letter language codes (e.g. `eng` or `fre`) and values are custom translations for the corresponding language. + * @param {boolean} [replace] Set to `true` to erase all existing translations for that key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addTranslationsFor: async ( + key: string, + requestBody: { [key: string]: string }, + replace?: boolean, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'key' is not null or undefined + assertParamExists("addTranslationsFor", "key", key); + // verify required parameter 'requestBody' is not null or undefined + assertParamExists("addTranslationsFor", "requestBody", requestBody); + const localVarPath = `/i18n/db/translations/{key}`.replace( + `{${"key"}}`, + encodeURIComponent(String(key)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (replace !== undefined) { + localVarQueryParameter["replace"] = replace; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + requestBody, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the currend SLD for the requested layers, add new filters in, save the SLD and return the new SLD URL. + * @summary Generate a SLD with a new filter + * @param {string} url The WMS server URL + * @param {string} layers The layers + * @param {string} filters The filters in JSON + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + buildSLD: async ( + url: string, + layers: string, + filters: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'url' is not null or undefined + assertParamExists("buildSLD", "url", url); + // verify required parameter 'layers' is not null or undefined + assertParamExists("buildSLD", "layers", layers); + // verify required parameter 'filters' is not null or undefined + assertParamExists("buildSLD", "filters", filters); + const localVarPath = `/tools/ogc/sld`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (url !== undefined) { + localVarQueryParameter["url"] = url; + } + + if (layers !== undefined) { + localVarQueryParameter["layers"] = layers; + } + + if (filters !== undefined) { + localVarQueryParameter["filters"] = filters; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Call a migration step + * @param {string} stepName Class name to execute corresponding to a migration step. See DatabaseMigrationTask. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + callStep: async ( + stepName: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'stepName' is not null or undefined + assertParamExists("callStep", "stepName", stepName); + const localVarPath = `/tools/migration/steps/{stepName}`.replace( + `{${"stepName"}}`, + encodeURIComponent(String(stepName)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Clean translation packages cache. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cleanTranslationsPackagesCache: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/i18n/cache`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete custom translations stored in the database. + * @summary Delete database translations. + * @param {string} key Untranslated key for which all translations will be deleted. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTranslations: async ( + key: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'key' is not null or undefined + assertParamExists("deleteTranslations", "key", key); + const localVarPath = `/i18n/db/translations/{key}`.replace( + `{${"key"}}`, + encodeURIComponent(String(key)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Clean all SLD generated previously + * @summary Remove all SLD files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deteleSLD: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/tools/ogc/sld`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Download a SLD + * @param {number} id The SLD identifier + * @param {string} extension + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadSLD: async ( + id: number, + extension: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("downloadSLD", "id", id); + // verify required parameter 'extension' is not null or undefined + assertParamExists("downloadSLD", "extension", extension); + const localVarPath = `/tools/ogc/sld/{id}.{extension}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"extension"}}`, encodeURIComponent(String(extension))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary List custom user translations + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCustomTranslations: async ( + type?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/i18n/db/custom`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type) { + localVarQueryParameter["type"] = type; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary List database translations (used to overrides client application translations). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDbTranslations: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/i18n/db/translations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get the list of SLD available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSLD: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/tools/ogc/sld`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary List translations for database description table + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTranslations: async ( + type?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/i18n/db`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type) { + localVarQueryParameter["type"] = type; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of translation packages. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTranslationsPackage: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/i18n/packages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a translation package. + * @param {string} pack + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTranslationsPackage1: async ( + pack: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'pack' is not null or undefined + assertParamExists("getTranslationsPackage1", "pack", pack); + const localVarPath = `/i18n/packages/{pack}`.replace( + `{${"pack"}}`, + encodeURIComponent(String(pack)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove all database translations. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removeAllTranslations: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/i18n/db/translations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Send an email to the catalog feedback email. + * @summary Test mail configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + testMailConfiguration: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/tools/mail/test`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * ToolsApi - functional programming interface + * @export + */ +export const ToolsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ToolsApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Add or update all database translations. + * @param {Array} translations + * @param {boolean} [replace] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addTranslations( + translations: Array, + replace?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.addTranslations( + translations, + replace, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Database translations can be used to customize labels in the UI for different languages. + * @summary Add or update database translations for a key. + * @param {string} key Untranslated key for which translations are provided. + * @param {{ [key: string]: string; }} requestBody An object where keys are valid 3-letter language codes (e.g. `eng` or `fre`) and values are custom translations for the corresponding language. + * @param {boolean} [replace] Set to `true` to erase all existing translations for that key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addTranslationsFor( + key: string, + requestBody: { [key: string]: string }, + replace?: boolean, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.addTranslationsFor( + key, + requestBody, + replace, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Get the currend SLD for the requested layers, add new filters in, save the SLD and return the new SLD URL. + * @summary Generate a SLD with a new filter + * @param {string} url The WMS server URL + * @param {string} layers The layers + * @param {string} filters The filters in JSON + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async buildSLD( + url: string, + layers: string, + filters: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.buildSLD( + url, + layers, + filters, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Call a migration step + * @param {string} stepName Class name to execute corresponding to a migration step. See DatabaseMigrationTask. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async callStep( + stepName: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.callStep( + stepName, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Clean translation packages cache. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cleanTranslationsPackagesCache( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.cleanTranslationsPackagesCache(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Delete custom translations stored in the database. + * @summary Delete database translations. + * @param {string} key Untranslated key for which all translations will be deleted. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteTranslations( + key: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteTranslations(key, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Clean all SLD generated previously + * @summary Remove all SLD files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deteleSLD( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deteleSLD( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Download a SLD + * @param {number} id The SLD identifier + * @param {string} extension + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async downloadSLD( + id: number, + extension: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.downloadSLD( + id, + extension, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary List custom user translations + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCustomTranslations( + type?: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getCustomTranslations(type, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary List database translations (used to overrides client application translations). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getDbTranslations( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getDbTranslations(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get the list of SLD available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSLD( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSLD(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary List translations for database description table + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTranslations( + type?: Array, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTranslations( + type, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of translation packages. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTranslationsPackage( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: Array }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getTranslationsPackage(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a translation package. + * @param {string} pack + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTranslationsPackage1( + pack: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise<{ [key: string]: string }> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getTranslationsPackage1(pack, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove all database translations. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async removeAllTranslations( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.removeAllTranslations(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Send an email to the catalog feedback email. + * @summary Test mail configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async testMailConfiguration( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.testMailConfiguration(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * ToolsApi - factory interface + * @export + */ +export const ToolsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = ToolsApiFp(configuration); + return { + /** + * + * @summary Add or update all database translations. + * @param {Array} translations + * @param {boolean} [replace] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addTranslations( + translations: Array, + replace?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .addTranslations(translations, replace, options) + .then((request) => request(axios, basePath)); + }, + /** + * Database translations can be used to customize labels in the UI for different languages. + * @summary Add or update database translations for a key. + * @param {string} key Untranslated key for which translations are provided. + * @param {{ [key: string]: string; }} requestBody An object where keys are valid 3-letter language codes (e.g. `eng` or `fre`) and values are custom translations for the corresponding language. + * @param {boolean} [replace] Set to `true` to erase all existing translations for that key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addTranslationsFor( + key: string, + requestBody: { [key: string]: string }, + replace?: boolean, + options?: any + ): AxiosPromise { + return localVarFp + .addTranslationsFor(key, requestBody, replace, options) + .then((request) => request(axios, basePath)); + }, + /** + * Get the currend SLD for the requested layers, add new filters in, save the SLD and return the new SLD URL. + * @summary Generate a SLD with a new filter + * @param {string} url The WMS server URL + * @param {string} layers The layers + * @param {string} filters The filters in JSON + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + buildSLD( + url: string, + layers: string, + filters: string, + options?: any + ): AxiosPromise { + return localVarFp + .buildSLD(url, layers, filters, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Call a migration step + * @param {string} stepName Class name to execute corresponding to a migration step. See DatabaseMigrationTask. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + callStep(stepName: string, options?: any): AxiosPromise { + return localVarFp + .callStep(stepName, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Clean translation packages cache. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cleanTranslationsPackagesCache(options?: any): AxiosPromise { + return localVarFp + .cleanTranslationsPackagesCache(options) + .then((request) => request(axios, basePath)); + }, + /** + * Delete custom translations stored in the database. + * @summary Delete database translations. + * @param {string} key Untranslated key for which all translations will be deleted. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteTranslations(key: string, options?: any): AxiosPromise { + return localVarFp + .deleteTranslations(key, options) + .then((request) => request(axios, basePath)); + }, + /** + * Clean all SLD generated previously + * @summary Remove all SLD files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deteleSLD(options?: any): AxiosPromise { + return localVarFp + .deteleSLD(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Download a SLD + * @param {number} id The SLD identifier + * @param {string} extension + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + downloadSLD( + id: number, + extension: string, + options?: any + ): AxiosPromise { + return localVarFp + .downloadSLD(id, extension, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary List custom user translations + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCustomTranslations( + type?: Array, + options?: any + ): AxiosPromise> { + return localVarFp + .getCustomTranslations(type, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary List database translations (used to overrides client application translations). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDbTranslations(options?: any): AxiosPromise { + return localVarFp + .getDbTranslations(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get the list of SLD available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSLD(options?: any): AxiosPromise> { + return localVarFp + .getSLD(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary List translations for database description table + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTranslations( + type?: Array, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .getTranslations(type, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of translation packages. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTranslationsPackage( + options?: any + ): AxiosPromise<{ [key: string]: Array }> { + return localVarFp + .getTranslationsPackage(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a translation package. + * @param {string} pack + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTranslationsPackage1( + pack: string, + options?: any + ): AxiosPromise<{ [key: string]: string }> { + return localVarFp + .getTranslationsPackage1(pack, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove all database translations. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removeAllTranslations(options?: any): AxiosPromise { + return localVarFp + .removeAllTranslations(options) + .then((request) => request(axios, basePath)); + }, + /** + * Send an email to the catalog feedback email. + * @summary Test mail configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + testMailConfiguration(options?: any): AxiosPromise { + return localVarFp + .testMailConfiguration(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ToolsApi - object-oriented interface + * @export + * @class ToolsApi + * @extends {BaseAPI} + */ +export class ToolsApi extends BaseAPI { + /** + * + * @summary Add or update all database translations. + * @param {Array} translations + * @param {boolean} [replace] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public addTranslations( + translations: Array, + replace?: boolean, + options?: AxiosRequestConfig + ) { + return ToolsApiFp(this.configuration) + .addTranslations(translations, replace, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Database translations can be used to customize labels in the UI for different languages. + * @summary Add or update database translations for a key. + * @param {string} key Untranslated key for which translations are provided. + * @param {{ [key: string]: string; }} requestBody An object where keys are valid 3-letter language codes (e.g. `eng` or `fre`) and values are custom translations for the corresponding language. + * @param {boolean} [replace] Set to `true` to erase all existing translations for that key + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public addTranslationsFor( + key: string, + requestBody: { [key: string]: string }, + replace?: boolean, + options?: AxiosRequestConfig + ) { + return ToolsApiFp(this.configuration) + .addTranslationsFor(key, requestBody, replace, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the currend SLD for the requested layers, add new filters in, save the SLD and return the new SLD URL. + * @summary Generate a SLD with a new filter + * @param {string} url The WMS server URL + * @param {string} layers The layers + * @param {string} filters The filters in JSON + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public buildSLD( + url: string, + layers: string, + filters: string, + options?: AxiosRequestConfig + ) { + return ToolsApiFp(this.configuration) + .buildSLD(url, layers, filters, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Call a migration step + * @param {string} stepName Class name to execute corresponding to a migration step. See DatabaseMigrationTask. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public callStep(stepName: string, options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .callStep(stepName, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Clean translation packages cache. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public cleanTranslationsPackagesCache(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .cleanTranslationsPackagesCache(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Delete custom translations stored in the database. + * @summary Delete database translations. + * @param {string} key Untranslated key for which all translations will be deleted. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public deleteTranslations(key: string, options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .deleteTranslations(key, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Clean all SLD generated previously + * @summary Remove all SLD files + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public deteleSLD(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .deteleSLD(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Download a SLD + * @param {number} id The SLD identifier + * @param {string} extension + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public downloadSLD( + id: number, + extension: string, + options?: AxiosRequestConfig + ) { + return ToolsApiFp(this.configuration) + .downloadSLD(id, extension, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary List custom user translations + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public getCustomTranslations( + type?: Array, + options?: AxiosRequestConfig + ) { + return ToolsApiFp(this.configuration) + .getCustomTranslations(type, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary List database translations (used to overrides client application translations). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public getDbTranslations(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .getDbTranslations(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get the list of SLD available + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public getSLD(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .getSLD(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary List translations for database description table + * @param {Array} [type] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public getTranslations(type?: Array, options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .getTranslations(type, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of translation packages. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public getTranslationsPackage(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .getTranslationsPackage(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a translation package. + * @param {string} pack + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public getTranslationsPackage1(pack: string, options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .getTranslationsPackage1(pack, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove all database translations. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public removeAllTranslations(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .removeAllTranslations(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Send an email to the catalog feedback email. + * @summary Test mail configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ToolsApi + */ + public testMailConfiguration(options?: AxiosRequestConfig) { + return ToolsApiFp(this.configuration) + .testMailConfiguration(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * UiApi - axios parameter creator + * @export + */ +export const UiApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Remove a UI Configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUiConfiguration: async ( + uiIdentifier: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uiIdentifier' is not null or undefined + assertParamExists("deleteUiConfiguration", "uiIdentifier", uiIdentifier); + const localVarPath = `/ui/{uiIdentifier}`.replace( + `{${"uiIdentifier"}}`, + encodeURIComponent(String(uiIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a UI configuration + * @param {string} uiIdentifier UI identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUiConfiguration: async ( + uiIdentifier: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uiIdentifier' is not null or undefined + assertParamExists("getUiConfiguration", "uiIdentifier", uiIdentifier); + const localVarPath = `/ui/{uiIdentifier}`.replace( + `{${"uiIdentifier"}}`, + encodeURIComponent(String(uiIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get UI configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUiConfigurations: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/ui`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a UI configuration + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putUiConfiguration: async ( + uiSetting: UiSetting, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uiSetting' is not null or undefined + assertParamExists("putUiConfiguration", "uiSetting", uiSetting); + const localVarPath = `/ui`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + uiSetting, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a UI configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateUiConfiguration: async ( + uiIdentifier: string, + uiSetting: UiSetting, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uiIdentifier' is not null or undefined + assertParamExists("updateUiConfiguration", "uiIdentifier", uiIdentifier); + // verify required parameter 'uiSetting' is not null or undefined + assertParamExists("updateUiConfiguration", "uiSetting", uiSetting); + const localVarPath = `/ui/{uiIdentifier}`.replace( + `{${"uiIdentifier"}}`, + encodeURIComponent(String(uiIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + uiSetting, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * UiApi - functional programming interface + * @export + */ +export const UiApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = UiApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Remove a UI Configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteUiConfiguration( + uiIdentifier: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteUiConfiguration( + uiIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a UI configuration + * @param {string} uiIdentifier UI identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUiConfiguration( + uiIdentifier: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getUiConfiguration( + uiIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get UI configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUiConfigurations( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getUiConfigurations(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Create a UI configuration + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async putUiConfiguration( + uiSetting: UiSetting, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.putUiConfiguration(uiSetting, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a UI configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateUiConfiguration( + uiIdentifier: string, + uiSetting: UiSetting, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateUiConfiguration( + uiIdentifier, + uiSetting, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * UiApi - factory interface + * @export + */ +export const UiApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = UiApiFp(configuration); + return { + /** + * + * @summary Remove a UI Configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUiConfiguration( + uiIdentifier: string, + options?: any + ): AxiosPromise { + return localVarFp + .deleteUiConfiguration(uiIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a UI configuration + * @param {string} uiIdentifier UI identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUiConfiguration( + uiIdentifier: string, + options?: any + ): AxiosPromise { + return localVarFp + .getUiConfiguration(uiIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get UI configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUiConfigurations(options?: any): AxiosPromise> { + return localVarFp + .getUiConfigurations(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Create a UI configuration + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + putUiConfiguration( + uiSetting: UiSetting, + options?: any + ): AxiosPromise { + return localVarFp + .putUiConfiguration(uiSetting, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a UI configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateUiConfiguration( + uiIdentifier: string, + uiSetting: UiSetting, + options?: any + ): AxiosPromise { + return localVarFp + .updateUiConfiguration(uiIdentifier, uiSetting, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UiApi - object-oriented interface + * @export + * @class UiApi + * @extends {BaseAPI} + */ +export class UiApi extends BaseAPI { + /** + * + * @summary Remove a UI Configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UiApi + */ + public deleteUiConfiguration( + uiIdentifier: string, + options?: AxiosRequestConfig + ) { + return UiApiFp(this.configuration) + .deleteUiConfiguration(uiIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a UI configuration + * @param {string} uiIdentifier UI identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UiApi + */ + public getUiConfiguration( + uiIdentifier: string, + options?: AxiosRequestConfig + ) { + return UiApiFp(this.configuration) + .getUiConfiguration(uiIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get UI configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UiApi + */ + public getUiConfigurations(options?: AxiosRequestConfig) { + return UiApiFp(this.configuration) + .getUiConfigurations(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Create a UI configuration + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UiApi + */ + public putUiConfiguration( + uiSetting: UiSetting, + options?: AxiosRequestConfig + ) { + return UiApiFp(this.configuration) + .putUiConfiguration(uiSetting, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a UI configuration + * @param {string} uiIdentifier UI configuration identifier + * @param {UiSetting} uiSetting + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UiApi + */ + public updateUiConfiguration( + uiIdentifier: string, + uiSetting: UiSetting, + options?: AxiosRequestConfig + ) { + return UiApiFp(this.configuration) + .updateUiConfiguration(uiIdentifier, uiSetting, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * UserfeedbackApi - axios parameter creator + * @export + */ +export const UserfeedbackApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Removes a user feedback + * @summary Removes a user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserFeedback: async ( + uuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uuid' is not null or undefined + assertParamExists("deleteUserFeedback", "uuid", uuid); + const localVarPath = `/userfeedback/{uuid}`.replace( + `{${"uuid"}}`, + encodeURIComponent(String(uuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Provides an average rating for a metadata record + * @param {string} metadataUuid Metadata record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMetadataRating: async ( + metadataUuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("getMetadataRating", "metadataUuid", metadataUuid); + const localVarPath = `/records/{metadataUuid}/userfeedbackrating`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of rating criteria + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingCriteria: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/userfeedback/ratingcriteria`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Finds a specific user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserComment: async ( + uuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uuid' is not null or undefined + assertParamExists("getUserComment", "uuid", uuid); + const localVarPath = `/userfeedback/{uuid}`.replace( + `{${"uuid"}}`, + encodeURIComponent(String(uuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback records. + * @param {string} [metadataUuid] Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserComments: async ( + metadataUuid?: string, + size?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/userfeedback`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (metadataUuid !== undefined) { + localVarQueryParameter["metadataUuid"] = metadataUuid; + } + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback for a specific records. + * @param {string} metadataUuid Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserCommentsOnARecord: async ( + metadataUuid: string, + size?: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists( + "getUserCommentsOnARecord", + "metadataUuid", + metadataUuid + ); + const localVarPath = `/records/{metadataUuid}/userfeedback`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a user feedback in draft status if the user is not logged in. + * @summary Creates a user feedback + * @param {UserFeedbackDTO} userFeedbackDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + newUserFeedback: async ( + userFeedbackDTO: UserFeedbackDTO, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userFeedbackDTO' is not null or undefined + assertParamExists("newUserFeedback", "userFeedbackDTO", userFeedbackDTO); + const localVarPath = `/userfeedback`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + userFeedbackDTO, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * For reviewers + * @summary Publishes a feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishFeedback: async ( + uuid: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'uuid' is not null or undefined + assertParamExists("publishFeedback", "uuid", uuid); + const localVarPath = `/userfeedback/{uuid}/publish`.replace( + `{${"uuid"}}`, + encodeURIComponent(String(uuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Send an email to catalogue administrator or record\'s contact + * @param {string} metadataUuid Metadata record UUID. + * @param {string} name User name. + * @param {string} org User organisation. + * @param {string} email User email address. + * @param {string} comments A comment or question. + * @param {string} [recaptcha] Recaptcha validation key. + * @param {string} [phone] User phone number. + * @param {string} [subject] Email subject. + * @param {string} [_function] User function. + * @param {string} [type] Comment type. + * @param {string} [category] Comment category. + * @param {string} [metadataEmail] List of record\'s contact to send this email. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendEmailToContact: async ( + metadataUuid: string, + name: string, + org: string, + email: string, + comments: string, + recaptcha?: string, + phone?: string, + subject?: string, + _function?: string, + type?: string, + category?: string, + metadataEmail?: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'metadataUuid' is not null or undefined + assertParamExists("sendEmailToContact", "metadataUuid", metadataUuid); + // verify required parameter 'name' is not null or undefined + assertParamExists("sendEmailToContact", "name", name); + // verify required parameter 'org' is not null or undefined + assertParamExists("sendEmailToContact", "org", org); + // verify required parameter 'email' is not null or undefined + assertParamExists("sendEmailToContact", "email", email); + // verify required parameter 'comments' is not null or undefined + assertParamExists("sendEmailToContact", "comments", comments); + const localVarPath = `/records/{metadataUuid}/alert`.replace( + `{${"metadataUuid"}}`, + encodeURIComponent(String(metadataUuid)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (recaptcha !== undefined) { + localVarQueryParameter["recaptcha"] = recaptcha; + } + + if (name !== undefined) { + localVarQueryParameter["name"] = name; + } + + if (org !== undefined) { + localVarQueryParameter["org"] = org; + } + + if (email !== undefined) { + localVarQueryParameter["email"] = email; + } + + if (comments !== undefined) { + localVarQueryParameter["comments"] = comments; + } + + if (phone !== undefined) { + localVarQueryParameter["phone"] = phone; + } + + if (subject !== undefined) { + localVarQueryParameter["subject"] = subject; + } + + if (_function !== undefined) { + localVarQueryParameter["function"] = _function; + } + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + if (category !== undefined) { + localVarQueryParameter["category"] = category; + } + + if (metadataEmail !== undefined) { + localVarQueryParameter["metadataEmail"] = metadataEmail; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * UserfeedbackApi - functional programming interface + * @export + */ +export const UserfeedbackApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + UserfeedbackApiAxiosParamCreator(configuration); + return { + /** + * Removes a user feedback + * @summary Removes a user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteUserFeedback( + uuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteUserFeedback(uuid, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Provides an average rating for a metadata record + * @param {string} metadataUuid Metadata record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getMetadataRating( + metadataUuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getMetadataRating( + metadataUuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of rating criteria + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRatingCriteria( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getRatingCriteria(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Finds a specific user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserComment( + uuid: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserComment( + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback records. + * @param {string} [metadataUuid] Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserComments( + metadataUuid?: string, + size?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserComments( + metadataUuid, + size, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback for a specific records. + * @param {string} metadataUuid Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserCommentsOnARecord( + metadataUuid: string, + size?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getUserCommentsOnARecord( + metadataUuid, + size, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Creates a user feedback in draft status if the user is not logged in. + * @summary Creates a user feedback + * @param {UserFeedbackDTO} userFeedbackDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async newUserFeedback( + userFeedbackDTO: UserFeedbackDTO, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.newUserFeedback( + userFeedbackDTO, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * For reviewers + * @summary Publishes a feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async publishFeedback( + uuid: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.publishFeedback( + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Send an email to catalogue administrator or record\'s contact + * @param {string} metadataUuid Metadata record UUID. + * @param {string} name User name. + * @param {string} org User organisation. + * @param {string} email User email address. + * @param {string} comments A comment or question. + * @param {string} [recaptcha] Recaptcha validation key. + * @param {string} [phone] User phone number. + * @param {string} [subject] Email subject. + * @param {string} [_function] User function. + * @param {string} [type] Comment type. + * @param {string} [category] Comment category. + * @param {string} [metadataEmail] List of record\'s contact to send this email. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendEmailToContact( + metadataUuid: string, + name: string, + org: string, + email: string, + comments: string, + recaptcha?: string, + phone?: string, + subject?: string, + _function?: string, + type?: string, + category?: string, + metadataEmail?: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.sendEmailToContact( + metadataUuid, + name, + org, + email, + comments, + recaptcha, + phone, + subject, + _function, + type, + category, + metadataEmail, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * UserfeedbackApi - factory interface + * @export + */ +export const UserfeedbackApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = UserfeedbackApiFp(configuration); + return { + /** + * Removes a user feedback + * @summary Removes a user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserFeedback(uuid: string, options?: any): AxiosPromise { + return localVarFp + .deleteUserFeedback(uuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Provides an average rating for a metadata record + * @param {string} metadataUuid Metadata record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMetadataRating( + metadataUuid: string, + options?: any + ): AxiosPromise { + return localVarFp + .getMetadataRating(metadataUuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of rating criteria + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingCriteria(options?: any): AxiosPromise> { + return localVarFp + .getRatingCriteria(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Finds a specific user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserComment(uuid: string, options?: any): AxiosPromise { + return localVarFp + .getUserComment(uuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback records. + * @param {string} [metadataUuid] Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserComments( + metadataUuid?: string, + size?: number, + options?: any + ): AxiosPromise> { + return localVarFp + .getUserComments(metadataUuid, size, options) + .then((request) => request(axios, basePath)); + }, + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback for a specific records. + * @param {string} metadataUuid Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserCommentsOnARecord( + metadataUuid: string, + size?: number, + options?: any + ): AxiosPromise> { + return localVarFp + .getUserCommentsOnARecord(metadataUuid, size, options) + .then((request) => request(axios, basePath)); + }, + /** + * Creates a user feedback in draft status if the user is not logged in. + * @summary Creates a user feedback + * @param {UserFeedbackDTO} userFeedbackDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + newUserFeedback( + userFeedbackDTO: UserFeedbackDTO, + options?: any + ): AxiosPromise { + return localVarFp + .newUserFeedback(userFeedbackDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * For reviewers + * @summary Publishes a feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + publishFeedback(uuid: string, options?: any): AxiosPromise { + return localVarFp + .publishFeedback(uuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Send an email to catalogue administrator or record\'s contact + * @param {string} metadataUuid Metadata record UUID. + * @param {string} name User name. + * @param {string} org User organisation. + * @param {string} email User email address. + * @param {string} comments A comment or question. + * @param {string} [recaptcha] Recaptcha validation key. + * @param {string} [phone] User phone number. + * @param {string} [subject] Email subject. + * @param {string} [_function] User function. + * @param {string} [type] Comment type. + * @param {string} [category] Comment category. + * @param {string} [metadataEmail] List of record\'s contact to send this email. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendEmailToContact( + metadataUuid: string, + name: string, + org: string, + email: string, + comments: string, + recaptcha?: string, + phone?: string, + subject?: string, + _function?: string, + type?: string, + category?: string, + metadataEmail?: string, + options?: any + ): AxiosPromise { + return localVarFp + .sendEmailToContact( + metadataUuid, + name, + org, + email, + comments, + recaptcha, + phone, + subject, + _function, + type, + category, + metadataEmail, + options + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UserfeedbackApi - object-oriented interface + * @export + * @class UserfeedbackApi + * @extends {BaseAPI} + */ +export class UserfeedbackApi extends BaseAPI { + /** + * Removes a user feedback + * @summary Removes a user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public deleteUserFeedback(uuid: string, options?: AxiosRequestConfig) { + return UserfeedbackApiFp(this.configuration) + .deleteUserFeedback(uuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Provides an average rating for a metadata record + * @param {string} metadataUuid Metadata record UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public getMetadataRating(metadataUuid: string, options?: AxiosRequestConfig) { + return UserfeedbackApiFp(this.configuration) + .getMetadataRating(metadataUuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of rating criteria + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public getRatingCriteria(options?: AxiosRequestConfig) { + return UserfeedbackApiFp(this.configuration) + .getRatingCriteria(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Finds a specific user feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public getUserComment(uuid: string, options?: AxiosRequestConfig) { + return UserfeedbackApiFp(this.configuration) + .getUserComment(uuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback records. + * @param {string} [metadataUuid] Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public getUserComments( + metadataUuid?: string, + size?: number, + options?: AxiosRequestConfig + ) { + return UserfeedbackApiFp(this.configuration) + .getUserComments(metadataUuid, size, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * This list will include also the draft user feedback if the client is logged as reviewer. + * @summary Finds a list of user feedback for a specific records. + * @param {string} metadataUuid Metadata record UUID. + * @param {number} [size] Maximum number of feedback to return. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public getUserCommentsOnARecord( + metadataUuid: string, + size?: number, + options?: AxiosRequestConfig + ) { + return UserfeedbackApiFp(this.configuration) + .getUserCommentsOnARecord(metadataUuid, size, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Creates a user feedback in draft status if the user is not logged in. + * @summary Creates a user feedback + * @param {UserFeedbackDTO} userFeedbackDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public newUserFeedback( + userFeedbackDTO: UserFeedbackDTO, + options?: AxiosRequestConfig + ) { + return UserfeedbackApiFp(this.configuration) + .newUserFeedback(userFeedbackDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * For reviewers + * @summary Publishes a feedback + * @param {string} uuid User feedback UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public publishFeedback(uuid: string, options?: AxiosRequestConfig) { + return UserfeedbackApiFp(this.configuration) + .publishFeedback(uuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Send an email to catalogue administrator or record\'s contact + * @param {string} metadataUuid Metadata record UUID. + * @param {string} name User name. + * @param {string} org User organisation. + * @param {string} email User email address. + * @param {string} comments A comment or question. + * @param {string} [recaptcha] Recaptcha validation key. + * @param {string} [phone] User phone number. + * @param {string} [subject] Email subject. + * @param {string} [_function] User function. + * @param {string} [type] Comment type. + * @param {string} [category] Comment category. + * @param {string} [metadataEmail] List of record\'s contact to send this email. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserfeedbackApi + */ + public sendEmailToContact( + metadataUuid: string, + name: string, + org: string, + email: string, + comments: string, + recaptcha?: string, + phone?: string, + subject?: string, + _function?: string, + type?: string, + category?: string, + metadataEmail?: string, + options?: AxiosRequestConfig + ) { + return UserfeedbackApiFp(this.configuration) + .sendEmailToContact( + metadataUuid, + name, + org, + email, + comments, + recaptcha, + phone, + subject, + _function, + type, + category, + metadataEmail, + options + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * UsersApi - axios parameter creator + * @export + */ +export const UsersApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Check if a user property already exist + * @param {string} property The user property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkUserPropertyExist: async ( + property: string, + exist: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'property' is not null or undefined + assertParamExists("checkUserPropertyExist", "property", property); + // verify required parameter 'exist' is not null or undefined + assertParamExists("checkUserPropertyExist", "exist", exist); + const localVarPath = `/users/properties/{property}`.replace( + `{${"property"}}`, + encodeURIComponent(String(property)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (exist !== undefined) { + localVarQueryParameter["exist"] = exist; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a catalog user. + * @summary Creates a user + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createUser: async ( + userDto: UserDto, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userDto' is not null or undefined + assertParamExists("createUser", "userDto", userDto); + const localVarPath = `/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + userDto, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a catalog user by identifier. + * @summary Delete a user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUser: async ( + userIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("deleteUser", "userIdentifier", userIdentifier); + const localVarPath = `/users/{userIdentifier}`.replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Return users who actually owns one or more records. + * @summary Get owners + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordOwners: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/users/owners`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUser: async ( + userIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("getUser", "userIdentifier", userIdentifier); + const localVarPath = `/users/{userIdentifier}`.replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get user identicon + * @param {number} userIdentifier User identifier. + * @param {number} [size] Size. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserIdenticon: async ( + userIdentifier: number, + size?: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("getUserIdenticon", "userIdentifier", userIdentifier); + const localVarPath = `/users/{userIdentifier}.png`.replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (size !== undefined) { + localVarQueryParameter["size"] = size; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUsers: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * User is created with a registered user profile. username field is ignored and the email is used as username. Password is sent by email. Catalog administrator is also notified. + * @summary Create user account + * @param {UserRegisterDto} userRegisterDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + registerUser: async ( + userRegisterDto: UserRegisterDto, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userRegisterDto' is not null or undefined + assertParamExists("registerUser", "userRegisterDto", userRegisterDto); + const localVarPath = `/user/actions/register`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + userRegisterDto, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Resets the user password. + * @summary Resets user password + * @param {number} userIdentifier User identifier. + * @param {PasswordResetDto} passwordResetDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetUserPassword: async ( + userIdentifier: number, + passwordResetDto: PasswordResetDto, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("resetUserPassword", "userIdentifier", userIdentifier); + // verify required parameter 'passwordResetDto' is not null or undefined + assertParamExists( + "resetUserPassword", + "passwordResetDto", + passwordResetDto + ); + const localVarPath = + `/users/{userIdentifier}/actions/forget-password`.replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + passwordResetDto, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Retrieve all user groups + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveAllUserGroups: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/users/groups`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve the user groups. + * @summary Retrieve user groups + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveUserGroups: async ( + userIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("retrieveUserGroups", "userIdentifier", userIdentifier); + const localVarPath = `/users/{userIdentifier}/groups`.replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Transfer privileges + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveOwners: async ( + transferRequest: TransferRequest, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'transferRequest' is not null or undefined + assertParamExists("saveOwners", "transferRequest", transferRequest); + const localVarPath = `/users/owners`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + transferRequest, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * An email is sent to the requested user with a link to reset his password. User MUST have an email to get the link. LDAP users will not be able to retrieve their password using this service. + * @summary Send user password reminder by email + * @param {string} username The user name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendPasswordByEmail: async ( + username: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists("sendPasswordByEmail", "username", username); + const localVarPath = `/user/actions/forgot-password`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (username !== undefined) { + localVarQueryParameter["username"] = username; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get a valid changekey by email first and then update your password. + * @summary Update user password + * @param {string} username The user name + * @param {PasswordUpdateParameter} passwordUpdateParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePassword: async ( + username: string, + passwordUpdateParameter: PasswordUpdateParameter, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'username' is not null or undefined + assertParamExists("updatePassword", "username", username); + // verify required parameter 'passwordUpdateParameter' is not null or undefined + assertParamExists( + "updatePassword", + "passwordUpdateParameter", + passwordUpdateParameter + ); + const localVarPath = `/user/{username}`.replace( + `{${"username"}}`, + encodeURIComponent(String(username)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PATCH", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + passwordUpdateParameter, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a catalog user. + * @summary Update a user + * @param {number} userIdentifier User identifier. + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateUser: async ( + userIdentifier: number, + userDto: UserDto, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("updateUser", "userIdentifier", userIdentifier); + // verify required parameter 'userDto' is not null or undefined + assertParamExists("updateUser", "userDto", userDto); + const localVarPath = `/users/{userIdentifier}`.replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + userDto, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * UsersApi - functional programming interface + * @export + */ +export const UsersApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Check if a user property already exist + * @param {string} property The user property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async checkUserPropertyExist( + property: string, + exist: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.checkUserPropertyExist( + property, + exist, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Creates a catalog user. + * @summary Creates a user + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createUser( + userDto: UserDto, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.createUser( + userDto, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Deletes a catalog user by identifier. + * @summary Delete a user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteUser( + userIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser( + userIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Return users who actually owns one or more records. + * @summary Get owners + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRecordOwners( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordOwners( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUser( + userIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUser( + userIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get user identicon + * @param {number} userIdentifier User identifier. + * @param {number} [size] Size. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserIdenticon( + userIdentifier: number, + size?: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getUserIdenticon( + userIdentifier, + size, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUsers( + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers( + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * User is created with a registered user profile. username field is ignored and the email is used as username. Password is sent by email. Catalog administrator is also notified. + * @summary Create user account + * @param {UserRegisterDto} userRegisterDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async registerUser( + userRegisterDto: UserRegisterDto, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.registerUser( + userRegisterDto, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Resets the user password. + * @summary Resets user password + * @param {number} userIdentifier User identifier. + * @param {PasswordResetDto} passwordResetDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async resetUserPassword( + userIdentifier: number, + passwordResetDto: PasswordResetDto, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.resetUserPassword( + userIdentifier, + passwordResetDto, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Retrieve all user groups + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async retrieveAllUserGroups( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.retrieveAllUserGroups(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Retrieve the user groups. + * @summary Retrieve user groups + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async retrieveUserGroups( + userIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.retrieveUserGroups( + userIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Transfer privileges + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async saveOwners( + transferRequest: TransferRequest, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveOwners( + transferRequest, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * An email is sent to the requested user with a link to reset his password. User MUST have an email to get the link. LDAP users will not be able to retrieve their password using this service. + * @summary Send user password reminder by email + * @param {string} username The user name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendPasswordByEmail( + username: string, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.sendPasswordByEmail(username, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Get a valid changekey by email first and then update your password. + * @summary Update user password + * @param {string} username The user name + * @param {PasswordUpdateParameter} passwordUpdateParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatePassword( + username: string, + passwordUpdateParameter: PasswordUpdateParameter, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePassword( + username, + passwordUpdateParameter, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Updates a catalog user. + * @summary Update a user + * @param {number} userIdentifier User identifier. + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateUser( + userIdentifier: number, + userDto: UserDto, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser( + userIdentifier, + userDto, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * UsersApi - factory interface + * @export + */ +export const UsersApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = UsersApiFp(configuration); + return { + /** + * + * @summary Check if a user property already exist + * @param {string} property The user property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkUserPropertyExist( + property: string, + exist: string, + options?: any + ): AxiosPromise { + return localVarFp + .checkUserPropertyExist(property, exist, options) + .then((request) => request(axios, basePath)); + }, + /** + * Creates a catalog user. + * @summary Creates a user + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createUser(userDto: UserDto, options?: any): AxiosPromise { + return localVarFp + .createUser(userDto, options) + .then((request) => request(axios, basePath)); + }, + /** + * Deletes a catalog user by identifier. + * @summary Delete a user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUser(userIdentifier: number, options?: any): AxiosPromise { + return localVarFp + .deleteUser(userIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * Return users who actually owns one or more records. + * @summary Get owners + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRecordOwners(options?: any): AxiosPromise> { + return localVarFp + .getRecordOwners(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUser(userIdentifier: number, options?: any): AxiosPromise { + return localVarFp + .getUser(userIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get user identicon + * @param {number} userIdentifier User identifier. + * @param {number} [size] Size. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserIdenticon( + userIdentifier: number, + size?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getUserIdenticon(userIdentifier, size, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUsers(options?: any): AxiosPromise> { + return localVarFp + .getUsers(options) + .then((request) => request(axios, basePath)); + }, + /** + * User is created with a registered user profile. username field is ignored and the email is used as username. Password is sent by email. Catalog administrator is also notified. + * @summary Create user account + * @param {UserRegisterDto} userRegisterDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + registerUser( + userRegisterDto: UserRegisterDto, + options?: any + ): AxiosPromise { + return localVarFp + .registerUser(userRegisterDto, options) + .then((request) => request(axios, basePath)); + }, + /** + * Resets the user password. + * @summary Resets user password + * @param {number} userIdentifier User identifier. + * @param {PasswordResetDto} passwordResetDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetUserPassword( + userIdentifier: number, + passwordResetDto: PasswordResetDto, + options?: any + ): AxiosPromise { + return localVarFp + .resetUserPassword(userIdentifier, passwordResetDto, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Retrieve all user groups + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveAllUserGroups( + options?: any + ): AxiosPromise> { + return localVarFp + .retrieveAllUserGroups(options) + .then((request) => request(axios, basePath)); + }, + /** + * Retrieve the user groups. + * @summary Retrieve user groups + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + retrieveUserGroups( + userIdentifier: number, + options?: any + ): AxiosPromise> { + return localVarFp + .retrieveUserGroups(userIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Transfer privileges + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + saveOwners( + transferRequest: TransferRequest, + options?: any + ): AxiosPromise { + return localVarFp + .saveOwners(transferRequest, options) + .then((request) => request(axios, basePath)); + }, + /** + * An email is sent to the requested user with a link to reset his password. User MUST have an email to get the link. LDAP users will not be able to retrieve their password using this service. + * @summary Send user password reminder by email + * @param {string} username The user name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendPasswordByEmail(username: string, options?: any): AxiosPromise { + return localVarFp + .sendPasswordByEmail(username, options) + .then((request) => request(axios, basePath)); + }, + /** + * Get a valid changekey by email first and then update your password. + * @summary Update user password + * @param {string} username The user name + * @param {PasswordUpdateParameter} passwordUpdateParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePassword( + username: string, + passwordUpdateParameter: PasswordUpdateParameter, + options?: any + ): AxiosPromise { + return localVarFp + .updatePassword(username, passwordUpdateParameter, options) + .then((request) => request(axios, basePath)); + }, + /** + * Updates a catalog user. + * @summary Update a user + * @param {number} userIdentifier User identifier. + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateUser( + userIdentifier: number, + userDto: UserDto, + options?: any + ): AxiosPromise { + return localVarFp + .updateUser(userIdentifier, userDto, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UsersApi - object-oriented interface + * @export + * @class UsersApi + * @extends {BaseAPI} + */ +export class UsersApi extends BaseAPI { + /** + * + * @summary Check if a user property already exist + * @param {string} property The user property to check + * @param {string} exist The value to search + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public checkUserPropertyExist( + property: string, + exist: string, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .checkUserPropertyExist(property, exist, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Creates a catalog user. + * @summary Creates a user + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public createUser(userDto: UserDto, options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .createUser(userDto, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a catalog user by identifier. + * @summary Delete a user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public deleteUser(userIdentifier: number, options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .deleteUser(userIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Return users who actually owns one or more records. + * @summary Get owners + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public getRecordOwners(options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .getRecordOwners(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get user + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUser(userIdentifier: number, options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .getUser(userIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get user identicon + * @param {number} userIdentifier User identifier. + * @param {number} [size] Size. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUserIdenticon( + userIdentifier: number, + size?: number, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .getUserIdenticon(userIdentifier, size, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get users + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUsers(options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .getUsers(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * User is created with a registered user profile. username field is ignored and the email is used as username. Password is sent by email. Catalog administrator is also notified. + * @summary Create user account + * @param {UserRegisterDto} userRegisterDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public registerUser( + userRegisterDto: UserRegisterDto, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .registerUser(userRegisterDto, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Resets the user password. + * @summary Resets user password + * @param {number} userIdentifier User identifier. + * @param {PasswordResetDto} passwordResetDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public resetUserPassword( + userIdentifier: number, + passwordResetDto: PasswordResetDto, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .resetUserPassword(userIdentifier, passwordResetDto, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Retrieve all user groups + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public retrieveAllUserGroups(options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .retrieveAllUserGroups(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve the user groups. + * @summary Retrieve user groups + * @param {number} userIdentifier User identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public retrieveUserGroups( + userIdentifier: number, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .retrieveUserGroups(userIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Transfer privileges + * @param {TransferRequest} transferRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public saveOwners( + transferRequest: TransferRequest, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .saveOwners(transferRequest, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * An email is sent to the requested user with a link to reset his password. User MUST have an email to get the link. LDAP users will not be able to retrieve their password using this service. + * @summary Send user password reminder by email + * @param {string} username The user name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public sendPasswordByEmail(username: string, options?: AxiosRequestConfig) { + return UsersApiFp(this.configuration) + .sendPasswordByEmail(username, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get a valid changekey by email first and then update your password. + * @summary Update user password + * @param {string} username The user name + * @param {PasswordUpdateParameter} passwordUpdateParameter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public updatePassword( + username: string, + passwordUpdateParameter: PasswordUpdateParameter, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .updatePassword(username, passwordUpdateParameter, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a catalog user. + * @summary Update a user + * @param {number} userIdentifier User identifier. + * @param {UserDto} userDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersApi + */ + public updateUser( + userIdentifier: number, + userDto: UserDto, + options?: AxiosRequestConfig + ) { + return UsersApiFp(this.configuration) + .updateUser(userIdentifier, userDto, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * UsersearchesApi - axios parameter creator + * @export + */ +export const UsersearchesApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * Creates a user search. + * @summary Creates a user search + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createUserCustomSearch: async ( + userSearchDto: UserSearchDto, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'userSearchDto' is not null or undefined + assertParamExists( + "createUserCustomSearch", + "userSearchDto", + userSearchDto + ); + const localVarPath = `/usersearches`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + userSearchDto, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a user search by identifier. + * @summary Delete a user search + * @param {number} searchIdentifier Search identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserCustomSerach: async ( + searchIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'searchIdentifier' is not null or undefined + assertParamExists( + "deleteUserCustomSerach", + "searchIdentifier", + searchIdentifier + ); + const localVarPath = `/usersearches/{searchIdentifier}`.replace( + `{${"searchIdentifier"}}`, + encodeURIComponent(String(searchIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get user custom searches for all users (no paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllUserCustomSearches: async ( + featuredType?: "HOME" | "EDITOR_BOARD", + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/usersearches/all`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (featuredType !== undefined) { + localVarQueryParameter["featuredType"] = featuredType; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get user custom searches for all users (paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {string} [search] + * @param {number} [offset] From page + * @param {number} [limit] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllUserCustomSearchesPage: async ( + featuredType?: "HOME" | "EDITOR_BOARD", + search?: string, + offset?: number, + limit?: number, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/usersearches/allpaginated`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (featuredType !== undefined) { + localVarQueryParameter["featuredType"] = featuredType; + } + + if (search !== undefined) { + localVarQueryParameter["search"] = search; + } + + if (offset !== undefined) { + localVarQueryParameter["offset"] = offset; + } + + if (limit !== undefined) { + localVarQueryParameter["limit"] = limit; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get featured user custom searches + * @param {'HOME' | 'EDITOR_BOARD'} [type] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFeaturedUserCustomSearches: async ( + type?: "HOME" | "EDITOR_BOARD", + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/usersearches/featured`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (type !== undefined) { + localVarQueryParameter["type"] = type; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get custom search + * @param {number} searchIdentifier User search identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserCustomSearch: async ( + searchIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'searchIdentifier' is not null or undefined + assertParamExists( + "getUserCustomSearch", + "searchIdentifier", + searchIdentifier + ); + const localVarPath = `/usersearches/{searchIdentifier}`.replace( + `{${"searchIdentifier"}}`, + encodeURIComponent(String(searchIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get user custom searches + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserCustomSearches: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/usersearches`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a user search + * @param {number} searchIdentifier User search identifier + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateCustomUserSearch: async ( + searchIdentifier: number, + userSearchDto: UserSearchDto, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'searchIdentifier' is not null or undefined + assertParamExists( + "updateCustomUserSearch", + "searchIdentifier", + searchIdentifier + ); + // verify required parameter 'userSearchDto' is not null or undefined + assertParamExists( + "updateCustomUserSearch", + "userSearchDto", + userSearchDto + ); + const localVarPath = `/usersearches/{searchIdentifier}`.replace( + `{${"searchIdentifier"}}`, + encodeURIComponent(String(searchIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + userSearchDto, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * UsersearchesApi - functional programming interface + * @export + */ +export const UsersearchesApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + UsersearchesApiAxiosParamCreator(configuration); + return { + /** + * Creates a user search. + * @summary Creates a user search + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createUserCustomSearch( + userSearchDto: UserSearchDto, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.createUserCustomSearch( + userSearchDto, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Deletes a user search by identifier. + * @summary Delete a user search + * @param {number} searchIdentifier Search identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteUserCustomSerach( + searchIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteUserCustomSerach( + searchIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get user custom searches for all users (no paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllUserCustomSearches( + featuredType?: "HOME" | "EDITOR_BOARD", + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getAllUserCustomSearches( + featuredType, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get user custom searches for all users (paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {string} [search] + * @param {number} [offset] From page + * @param {number} [limit] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllUserCustomSearchesPage( + featuredType?: "HOME" | "EDITOR_BOARD", + search?: string, + offset?: number, + limit?: number, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getAllUserCustomSearchesPage( + featuredType, + search, + offset, + limit, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get featured user custom searches + * @param {'HOME' | 'EDITOR_BOARD'} [type] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getFeaturedUserCustomSearches( + type?: "HOME" | "EDITOR_BOARD", + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getFeaturedUserCustomSearches( + type, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get custom search + * @param {number} searchIdentifier User search identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserCustomSearch( + searchIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getUserCustomSearch( + searchIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get user custom searches + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserCustomSearches( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getUserCustomSearches(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a user search + * @param {number} searchIdentifier User search identifier + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateCustomUserSearch( + searchIdentifier: number, + userSearchDto: UserSearchDto, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateCustomUserSearch( + searchIdentifier, + userSearchDto, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * UsersearchesApi - factory interface + * @export + */ +export const UsersearchesApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = UsersearchesApiFp(configuration); + return { + /** + * Creates a user search. + * @summary Creates a user search + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createUserCustomSearch( + userSearchDto: UserSearchDto, + options?: any + ): AxiosPromise { + return localVarFp + .createUserCustomSearch(userSearchDto, options) + .then((request) => request(axios, basePath)); + }, + /** + * Deletes a user search by identifier. + * @summary Delete a user search + * @param {number} searchIdentifier Search identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserCustomSerach( + searchIdentifier: number, + options?: any + ): AxiosPromise { + return localVarFp + .deleteUserCustomSerach(searchIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get user custom searches for all users (no paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllUserCustomSearches( + featuredType?: "HOME" | "EDITOR_BOARD", + options?: any + ): AxiosPromise> { + return localVarFp + .getAllUserCustomSearches(featuredType, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get user custom searches for all users (paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {string} [search] + * @param {number} [offset] From page + * @param {number} [limit] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllUserCustomSearchesPage( + featuredType?: "HOME" | "EDITOR_BOARD", + search?: string, + offset?: number, + limit?: number, + options?: any + ): AxiosPromise { + return localVarFp + .getAllUserCustomSearchesPage( + featuredType, + search, + offset, + limit, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get featured user custom searches + * @param {'HOME' | 'EDITOR_BOARD'} [type] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFeaturedUserCustomSearches( + type?: "HOME" | "EDITOR_BOARD", + options?: any + ): AxiosPromise> { + return localVarFp + .getFeaturedUserCustomSearches(type, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get custom search + * @param {number} searchIdentifier User search identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserCustomSearch( + searchIdentifier: number, + options?: any + ): AxiosPromise { + return localVarFp + .getUserCustomSearch(searchIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get user custom searches + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserCustomSearches(options?: any): AxiosPromise> { + return localVarFp + .getUserCustomSearches(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a user search + * @param {number} searchIdentifier User search identifier + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateCustomUserSearch( + searchIdentifier: number, + userSearchDto: UserSearchDto, + options?: any + ): AxiosPromise { + return localVarFp + .updateCustomUserSearch(searchIdentifier, userSearchDto, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UsersearchesApi - object-oriented interface + * @export + * @class UsersearchesApi + * @extends {BaseAPI} + */ +export class UsersearchesApi extends BaseAPI { + /** + * Creates a user search. + * @summary Creates a user search + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public createUserCustomSearch( + userSearchDto: UserSearchDto, + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .createUserCustomSearch(userSearchDto, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a user search by identifier. + * @summary Delete a user search + * @param {number} searchIdentifier Search identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public deleteUserCustomSerach( + searchIdentifier: number, + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .deleteUserCustomSerach(searchIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get user custom searches for all users (no paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public getAllUserCustomSearches( + featuredType?: "HOME" | "EDITOR_BOARD", + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .getAllUserCustomSearches(featuredType, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get user custom searches for all users (paginated) + * @param {'HOME' | 'EDITOR_BOARD'} [featuredType] Featured type search. + * @param {string} [search] + * @param {number} [offset] From page + * @param {number} [limit] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public getAllUserCustomSearchesPage( + featuredType?: "HOME" | "EDITOR_BOARD", + search?: string, + offset?: number, + limit?: number, + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .getAllUserCustomSearchesPage( + featuredType, + search, + offset, + limit, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get featured user custom searches + * @param {'HOME' | 'EDITOR_BOARD'} [type] Number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public getFeaturedUserCustomSearches( + type?: "HOME" | "EDITOR_BOARD", + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .getFeaturedUserCustomSearches(type, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get custom search + * @param {number} searchIdentifier User search identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public getUserCustomSearch( + searchIdentifier: number, + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .getUserCustomSearch(searchIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get user custom searches + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public getUserCustomSearches(options?: AxiosRequestConfig) { + return UsersearchesApiFp(this.configuration) + .getUserCustomSearches(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a user search + * @param {number} searchIdentifier User search identifier + * @param {UserSearchDto} userSearchDto + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UsersearchesApi + */ + public updateCustomUserSearch( + searchIdentifier: number, + userSearchDto: UserSearchDto, + options?: AxiosRequestConfig + ) { + return UsersearchesApiFp(this.configuration) + .updateCustomUserSearch(searchIdentifier, userSearchDto, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * UserselectionsApi - axios parameter creator + * @export + */ +export const UserselectionsApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Add items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addToUserSelection: async ( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'selectionIdentifier' is not null or undefined + assertParamExists( + "addToUserSelection", + "selectionIdentifier", + selectionIdentifier + ); + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists("addToUserSelection", "userIdentifier", userIdentifier); + const localVarPath = + `/userselections/{selectionIdentifier}/{userIdentifier}` + .replace( + `{${"selectionIdentifier"}}`, + encodeURIComponent(String(selectionIdentifier)) + ) + .replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuid) { + localVarQueryParameter["uuid"] = uuid; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Add a user selection set + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPersistentSelectionType: async ( + selection: Selection, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'selection' is not null or undefined + assertParamExists( + "createPersistentSelectionType", + "selection", + selection + ); + const localVarPath = `/userselections`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + selection, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. If null, remove all. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFromUserSelection: async ( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'selectionIdentifier' is not null or undefined + assertParamExists( + "deleteFromUserSelection", + "selectionIdentifier", + selectionIdentifier + ); + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists( + "deleteFromUserSelection", + "userIdentifier", + userIdentifier + ); + const localVarPath = + `/userselections/{selectionIdentifier}/{userIdentifier}` + .replace( + `{${"selectionIdentifier"}}`, + encodeURIComponent(String(selectionIdentifier)) + ) + .replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uuid) { + localVarQueryParameter["uuid"] = uuid; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Remove a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserSelection: async ( + selectionIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'selectionIdentifier' is not null or undefined + assertParamExists( + "deleteUserSelection", + "selectionIdentifier", + selectionIdentifier + ); + const localVarPath = `/userselections/{selectionIdentifier}`.replace( + `{${"selectionIdentifier"}}`, + encodeURIComponent(String(selectionIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "DELETE", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get list of user selection sets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSelectionList: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/userselections`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get record in a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSelectionRecords: async ( + selectionIdentifier: number, + userIdentifier: number, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'selectionIdentifier' is not null or undefined + assertParamExists( + "getSelectionRecords", + "selectionIdentifier", + selectionIdentifier + ); + // verify required parameter 'userIdentifier' is not null or undefined + assertParamExists( + "getSelectionRecords", + "userIdentifier", + userIdentifier + ); + const localVarPath = + `/userselections/{selectionIdentifier}/{userIdentifier}` + .replace( + `{${"selectionIdentifier"}}`, + encodeURIComponent(String(selectionIdentifier)) + ) + .replace( + `{${"userIdentifier"}}`, + encodeURIComponent(String(userIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateUserSelection: async ( + selectionIdentifier: number, + selection: Selection, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'selectionIdentifier' is not null or undefined + assertParamExists( + "updateUserSelection", + "selectionIdentifier", + selectionIdentifier + ); + // verify required parameter 'selection' is not null or undefined + assertParamExists("updateUserSelection", "selection", selection); + const localVarPath = `/userselections/{selectionIdentifier}`.replace( + `{${"selectionIdentifier"}}`, + encodeURIComponent(String(selectionIdentifier)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "PUT", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + selection, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * UserselectionsApi - functional programming interface + * @export + */ +export const UserselectionsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + UserselectionsApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Add items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async addToUserSelection( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.addToUserSelection( + selectionIdentifier, + userIdentifier, + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Add a user selection set + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createPersistentSelectionType( + selection: Selection, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.createPersistentSelectionType( + selection, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. If null, remove all. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteFromUserSelection( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteFromUserSelection( + selectionIdentifier, + userIdentifier, + uuid, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Remove a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteUserSelection( + selectionIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.deleteUserSelection( + selectionIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get list of user selection sets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSelectionList( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSelectionList(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get record in a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSelectionRecords( + selectionIdentifier: number, + userIdentifier: number, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getSelectionRecords( + selectionIdentifier, + userIdentifier, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Update a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateUserSelection( + selectionIdentifier: number, + selection: Selection, + options?: AxiosRequestConfig + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.updateUserSelection( + selectionIdentifier, + selection, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + }; +}; + +/** + * UserselectionsApi - factory interface + * @export + */ +export const UserselectionsApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = UserselectionsApiFp(configuration); + return { + /** + * + * @summary Add items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addToUserSelection( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .addToUserSelection(selectionIdentifier, userIdentifier, uuid, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Add a user selection set + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPersistentSelectionType( + selection: Selection, + options?: any + ): AxiosPromise { + return localVarFp + .createPersistentSelectionType(selection, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. If null, remove all. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteFromUserSelection( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options?: any + ): AxiosPromise { + return localVarFp + .deleteFromUserSelection( + selectionIdentifier, + userIdentifier, + uuid, + options + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Remove a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserSelection( + selectionIdentifier: number, + options?: any + ): AxiosPromise { + return localVarFp + .deleteUserSelection(selectionIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get list of user selection sets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSelectionList(options?: any): AxiosPromise> { + return localVarFp + .getSelectionList(options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get record in a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSelectionRecords( + selectionIdentifier: number, + userIdentifier: number, + options?: any + ): AxiosPromise> { + return localVarFp + .getSelectionRecords(selectionIdentifier, userIdentifier, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateUserSelection( + selectionIdentifier: number, + selection: Selection, + options?: any + ): AxiosPromise { + return localVarFp + .updateUserSelection(selectionIdentifier, selection, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UserselectionsApi - object-oriented interface + * @export + * @class UserselectionsApi + * @extends {BaseAPI} + */ +export class UserselectionsApi extends BaseAPI { + /** + * + * @summary Add items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public addToUserSelection( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options?: AxiosRequestConfig + ) { + return UserselectionsApiFp(this.configuration) + .addToUserSelection(selectionIdentifier, userIdentifier, uuid, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Add a user selection set + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public createPersistentSelectionType( + selection: Selection, + options?: AxiosRequestConfig + ) { + return UserselectionsApiFp(this.configuration) + .createPersistentSelectionType(selection, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove items to a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {Array} [uuid] One or more record UUIDs. If null, remove all. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public deleteFromUserSelection( + selectionIdentifier: number, + userIdentifier: number, + uuid?: Array, + options?: AxiosRequestConfig + ) { + return UserselectionsApiFp(this.configuration) + .deleteFromUserSelection( + selectionIdentifier, + userIdentifier, + uuid, + options + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public deleteUserSelection( + selectionIdentifier: number, + options?: AxiosRequestConfig + ) { + return UserselectionsApiFp(this.configuration) + .deleteUserSelection(selectionIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get list of user selection sets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public getSelectionList(options?: AxiosRequestConfig) { + return UserselectionsApiFp(this.configuration) + .getSelectionList(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get record in a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {number} userIdentifier User identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public getSelectionRecords( + selectionIdentifier: number, + userIdentifier: number, + options?: AxiosRequestConfig + ) { + return UserselectionsApiFp(this.configuration) + .getSelectionRecords(selectionIdentifier, userIdentifier, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update a user selection set + * @param {number} selectionIdentifier Selection identifier + * @param {Selection} selection + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserselectionsApi + */ + public updateUserSelection( + selectionIdentifier: number, + selection: Selection, + options?: AxiosRequestConfig + ) { + return UserselectionsApiFp(this.configuration) + .updateUserSelection(selectionIdentifier, selection, options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/libs/geonetwork-openapi/src/base.ts b/src/libs/geonetwork-openapi/src/base.ts new file mode 100644 index 0000000..6ede433 --- /dev/null +++ b/src/libs/geonetwork-openapi/src/base.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * GeoNetwork 4.0.6 OpenAPI Documentation + * This is the description of the GeoNetwork OpenAPI. Use this API to manage your catalog. + * + * The version of the OpenAPI document: 4.0.6 + * Contact: geonetwork-users@lists.sourceforge.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Configuration } from "./configuration"; +// Some imports not used depending on template conditions +// @ts-ignore +import globalAxios, { + AxiosPromise, + AxiosInstance, + AxiosRequestConfig, +} from "axios"; + +export const BASE_PATH = "http://localhost:8080/geonetwork/srv/api".replace( + /\/+$/, + "" +); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: AxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor( + configuration?: Configuration, + protected basePath: string = BASE_PATH, + protected axios: AxiosInstance = globalAxios + ) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + } +} + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} diff --git a/src/libs/geonetwork-openapi/src/common.ts b/src/libs/geonetwork-openapi/src/common.ts new file mode 100644 index 0000000..77dd7d3 --- /dev/null +++ b/src/libs/geonetwork-openapi/src/common.ts @@ -0,0 +1,181 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * GeoNetwork 4.0.6 OpenAPI Documentation + * This is the description of the GeoNetwork OpenAPI. Use this API to manage your catalog. + * + * The version of the OpenAPI document: 4.0.6 + * Contact: geonetwork-users@lists.sourceforge.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Configuration } from "./configuration"; +import { RequiredError, RequestArgs } from "./base"; +import { AxiosInstance, AxiosResponse } from "axios"; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = "https://example.com"; + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function ( + functionName: string, + paramName: string, + paramValue: unknown +) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError( + paramName, + `Required parameter ${paramName} was null or undefined when calling ${functionName}.` + ); + } +}; + +/** + * + * @export + */ +export const setApiKeyToObject = async function ( + object: any, + keyParamName: string, + configuration?: Configuration +) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = + typeof configuration.apiKey === "function" + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +}; + +/** + * + * @export + */ +export const setBasicAuthToObject = function ( + object: any, + configuration?: Configuration +) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { + username: configuration.username, + password: configuration.password, + }; + } +}; + +/** + * + * @export + */ +export const setBearerAuthToObject = async function ( + object: any, + configuration?: Configuration +) { + if (configuration && configuration.accessToken) { + const accessToken = + typeof configuration.accessToken === "function" + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +}; + +/** + * + * @export + */ +export const setOAuthToObject = async function ( + object: any, + name: string, + scopes: string[], + configuration?: Configuration +) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = + typeof configuration.accessToken === "function" + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +}; + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + for (const object of objects) { + for (const key in object) { + if (Array.isArray(object[key])) { + searchParams.delete(key); + for (const item of object[key]) { + searchParams.append(key, item); + } + } else { + searchParams.set(key, object[key]); + } + } + } + url.search = searchParams.toString(); +}; + +/** + * + * @export + */ +export const serializeDataIfNeeded = function ( + value: any, + requestOptions: any, + configuration?: Configuration +) { + const nonString = typeof value !== "string"; + const needsSerialization = + nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : value || ""; +}; + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash; +}; + +/** + * + * @export + */ +export const createRequestFunction = function ( + axiosArgs: RequestArgs, + globalAxios: AxiosInstance, + BASE_PATH: string, + configuration?: Configuration +) { + return >( + axios: AxiosInstance = globalAxios, + basePath: string = BASE_PATH + ) => { + const axiosRequestArgs = { + ...axiosArgs.options, + url: (configuration?.basePath || basePath) + axiosArgs.url, + }; + return axios.request(axiosRequestArgs); + }; +}; diff --git a/src/libs/geonetwork-openapi/src/configuration.ts b/src/libs/geonetwork-openapi/src/configuration.ts new file mode 100644 index 0000000..87532b8 --- /dev/null +++ b/src/libs/geonetwork-openapi/src/configuration.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * GeoNetwork 4.0.6 OpenAPI Documentation + * This is the description of the GeoNetwork OpenAPI. Use this API to manage your catalog. + * + * The version of the OpenAPI document: 4.0.6 + * Contact: geonetwork-users@lists.sourceforge.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface ConfigurationParameters { + apiKey?: + | string + | Promise + | ((name: string) => string) + | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: + | string + | Promise + | ((name: string) => string) + | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp( + "^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", + "i" + ); + return ( + mime !== null && + (jsonMime.test(mime) || + mime.toLowerCase() === "application/json-patch+json") + ); + } +} diff --git a/src/libs/geonetwork-openapi/src/git_push.sh b/src/libs/geonetwork-openapi/src/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/src/libs/geonetwork-openapi/src/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/src/libs/geonetwork-openapi/src/index.ts b/src/libs/geonetwork-openapi/src/index.ts new file mode 100644 index 0000000..dcdb46b --- /dev/null +++ b/src/libs/geonetwork-openapi/src/index.ts @@ -0,0 +1,16 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * GeoNetwork 4.0.6 OpenAPI Documentation + * This is the description of the GeoNetwork OpenAPI. Use this API to manage your catalog. + * + * The version of the OpenAPI document: 4.0.6 + * Contact: geonetwork-users@lists.sourceforge.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export * from "./api"; +export * from "./configuration"; diff --git a/src/libs/geonetwork-openapi/src/spec.yaml b/src/libs/geonetwork-openapi/src/spec.yaml new file mode 100644 index 0000000..9cb1078 --- /dev/null +++ b/src/libs/geonetwork-openapi/src/spec.yaml @@ -0,0 +1,14286 @@ +openapi: 3.0.1 +info: + title: GeoNetwork 4.0.6 OpenAPI Documentation + description: This is the description of the GeoNetwork OpenAPI. Use this API to + manage your catalog. + contact: + name: GeoNetwork user mailing list + url: https://sourceforge.net/p/geonetwork/mailman/geonetwork-users/ + email: geonetwork-users@lists.sourceforge.net + license: + name: GPL 2.0 + url: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html + version: 4.0.6 +externalDocs: + description: Learn how to access the catalog using the GeoNetwork REST API. + url: http://localhost:8080/geonetwork/doc/api +servers: +- url: "{catalog}/{portal}/api" + description: My GeoNetwork + variables: + catalog: + description: The GeoNetwork catalog to contact + enum: + - http://localhost:8080/geonetwork + - ../.. + default: http://localhost:8080/geonetwork + portal: + description: The thematic portal + enum: + - srv + default: srv +tags: +- name: standards + description: Standard related operations +- name: site + description: Catalog operations +- name: harvesters + description: Harvester operations +- name: selections + description: Selection related operations +- name: tags + description: Tags operations +- name: registries + description: Registries related operations +- name: operations + description: Privileges operations +- name: links + description: Record link operations +- name: userfeedback + description: User feedback +- name: related + description: Related records +- name: pages + description: Static pages inside GeoNetwork +- name: tools + description: Utility operations +- name: status + description: Workflow status operations +- name: formatters + description: Formatter admin operations +- name: languages + description: Languages operations +- name: formatters + description: Formatter operations +- name: customstyle + description: Functionalities for custom styling +- name: search + description: Proxy for ElasticSearch catalog search operations +- name: processes + description: Processing operations +- name: groups + description: Groups operations +- name: sources + description: Source catalogue operations +- name: records + description: Metadata record operations +- name: mapservers + description: Mapservers related operations +- name: logos + description: Logos operations +- name: userselections + description: User selections related operations +- name: me + description: Me operations +- name: identifiers + description: Identifiers operations +- name: usersearches + description: User custom searches operations +- name: regions + description: Regions operations +- name: ui + description: User interface configuration operations +- name: users + description: User operations +paths: + /tags/{tagIdentifier}: + get: + tags: + - tags + summary: Get a tag + operationId: getTag + parameters: + - name: tagIdentifier + in: path + description: Tag identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Tag details. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataCategory' + put: + tags: + - tags + summary: Update a tag + operationId: updateTag + parameters: + - name: tagIdentifier + in: path + description: Tag identifier + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataCategory' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "204": + description: Tag updated. + content: + '*/*': + schema: + type: string + delete: + tags: + - tags + summary: Remove a tag + operationId: deleteTag + parameters: + - name: tagIdentifier + in: path + description: Tag identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "204": + description: Tag removed. + content: + '*/*': + schema: + type: string + /tags: + get: + tags: + - tags + summary: Get tags + operationId: getTags + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of tags. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MetadataCategory' + put: + tags: + - tags + summary: Create a tag + description: "If labels are not defined, a default label is created with the\ + \ category name for all languages." + operationId: putTag + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataCategory' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: integer + format: int32 + "201": + description: Tag created. Return the new tag identifier. + content: + '*/*': + schema: + type: integer + format: int32 + /customstyle: + get: + tags: + - customstyle + summary: Get CssStyleSettings + description: This returns a map with all Less variables. + operationId: getCssStyle + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: string + post: + tags: + - customstyle + summary: Saves custom style variables. + description: Saves custom style variables. + operationId: saveCssStyle + requestBody: + content: + application/json: + schema: + type: string + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + type: string + /search/records/_msearch: + post: + tags: + - search + summary: Search endpoint + description: See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html + for search parameters details. + operationId: msearch + parameters: + - name: bucket + in: query + required: false + schema: + type: string + default: metadata + requestBody: + description: JSON request based on Elasticsearch API. + content: + application/json: + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /search/records/_search: + post: + tags: + - search + summary: Search endpoint + description: See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html + for search parameters details. + operationId: search + parameters: + - name: bucket + in: query + required: false + schema: + type: string + default: metadata + requestBody: + description: JSON request based on Elasticsearch API. + content: + application/json: + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /groups: + get: + tags: + - groups + summary: Get groups + description: "The catalog contains one or more groups. By default, there is\ + \ 3 reserved groups (Internet, Intranet, Guest) and a sample group.
This\ + \ service returns all catalog groups when not authenticated or when current\ + \ is user is an administrator. The list can contains or not reserved groups\ + \ depending on the parameters.
When authenticated, return user groups\ + \ optionally filtered on a specific user profile." + operationId: getGroups + parameters: + - name: withReservedGroup + in: query + description: "Including Internet, Intranet, Guest groups or not" + required: false + schema: + type: boolean + default: false + - name: profile + in: query + description: For a specific profile + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Group' + put: + tags: + - groups + summary: Add a group + description: Return the identifier of the group created. + operationId: addGroup + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: integer + format: int32 + "400": + description: Group with that id or name already exist. + content: + application/json: + schema: + type: integer + format: int32 + "201": + description: Group created. + content: + application/json: + schema: + type: integer + format: int32 + /groups/{groupId}/logo: + get: + tags: + - groups + summary: Get the group logo image. + description: If last-modified header is present it is used to check if the logo + has been modified since the header date. If it hasn't been modified returns + an empty 304 Not Modified response. If modified returns the image. If the + group has no logo then returns a transparent 1x1 px PNG image. + operationId: getGroupLogo + parameters: + - name: groupId + in: path + description: Group identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /groups/{groupIdentifier}/users: + get: + tags: + - groups + summary: Get group users + operationId: getGroupUsers + parameters: + - name: groupIdentifier + in: path + description: Group identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + "200": + description: List of users in that group. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + /groups/{groupIdentifier}: + get: + tags: + - groups + summary: Get group + description: Return the requested group details. + operationId: getGroup + parameters: + - name: groupIdentifier + in: path + description: Group identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + put: + tags: + - groups + summary: Update a group + operationId: updateGroup + parameters: + - name: groupIdentifier + in: path + description: Group identifier + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + required: true + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only UserAdmins can access it. + "204": + description: Group updated. + delete: + tags: + - groups + summary: Remove a group + description: "Remove a group by first removing sharing settings, link to users\ + \ and finally reindex all affected records." + operationId: deleteGroup + parameters: + - name: groupIdentifier + in: path + description: Group identifier. + required: true + schema: + type: integer + format: int32 + - name: force + in: query + description: Force removal even if records are assigned to that group. + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only UserAdmins can access it. + "204": + description: Group removed. + /harvesters/{harvesterUuid}/assign: + post: + tags: + - harvesters + summary: Assign harvester records to a new source + operationId: assignHarvestedRecordToSource + parameters: + - name: harvesterUuid + in: path + description: The harvester UUID + required: true + schema: + type: string + - name: source + in: query + description: The target source UUID + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + application/json: + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + "204": + description: Harvester records transfered to new source. + content: + application/json: + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + /harvesters/properties/{property}: + get: + tags: + - harvesters + summary: Check if a harvester name or host already exist + operationId: checkHarvesterPropertyExist + parameters: + - name: property + in: path + description: The harvester property to check + required: true + schema: + type: string + - name: exist + in: query + description: The value to search + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + "404": + description: A property with that value already exist. + content: + '*/*': + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + "200": + description: Property does not exist. + content: + '*/*': + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + /identifiers: + get: + tags: + - identifiers + summary: Get identifier templates + description: Identifier templates are used to create record UUIDs havind a particular + structure. The template will be used when user creates a new record. The template + identifier to use is defined in the administration > settings. + operationId: getIdentifiers + parameters: + - name: userDefinedOnly + in: query + description: Only user defined ones + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of identifier templates. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MetadataIdentifierTemplate' + "403": + description: Operation not allowed. Only Editor can access it. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MetadataIdentifierTemplate' + put: + tags: + - identifiers + summary: Add an identifier template + operationId: addIdentifier + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataIdentifierTemplate' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Identifier template created. + content: + application/json: + schema: + type: integer + format: int32 + "403": + description: Operation not allowed. Only Editor can access it. + content: + application/json: + schema: + type: integer + format: int32 + /identifiers/{identifier}: + put: + tags: + - identifiers + summary: Update an identifier template + operationId: updateIdentifier + parameters: + - name: identifier + in: path + description: Identifier template identifier + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataIdentifierTemplate' + required: true + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only Editor can access it. + "204": + description: Identifier template updated. + delete: + tags: + - identifiers + summary: Remove an identifier template + operationId: deleteIdentifier + parameters: + - name: identifier + in: path + description: Identifier template identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only Editor can access it. + "204": + description: Template identifier removed. + /isolanguages: + get: + tags: + - languages + summary: Get ISO languages + description: ISO languages provides a list of all languages (eg. used for autocompletion + in metadata editor). + operationId: getIsoLanguages + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IsoLanguage' + /languages/application: + get: + tags: + - languages + summary: Get languages available in the application + description: Languages available in this version of the application. Those that + you can add using PUT operation and which have SQL script to initialize the + language. + operationId: getApplicationLanguages + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Language' + /languages/{langCode}: + put: + tags: + - languages + summary: Add a language + description: Add all default translations from all *Desc tables in the database. + This operation will only add translations for a default catalog installation. + Defaults can be customized in SQL scripts located in WEB-INF/classes/setup/sql/data/*. + operationId: addLanguages + parameters: + - name: langCode + in: path + description: ISO 3 letter code + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Language translations added. + "403": + description: Operation not allowed. Only Administrator can access it. + "404": + description: Resource not found. eg. No SQL file available for that langugae. + delete: + tags: + - languages + summary: Remove a language + description: "Delete all translations from all *Desc tables in the database.\ + \ Warning: This will also remove all translations you may have done to those\ + \ objects (eg. custom groups)." + operationId: deleteLanguage + parameters: + - name: langCode + in: path + description: ISO 3 letter code + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only Administrator can access it. + "204": + description: Language translations removed. + /languages: + get: + tags: + - languages + summary: Get languages + description: "Languages for the application having translations in the database.\ + \ All tables with 'Desc' suffix contains translation for some domain objects\ + \ like groups, tags, ..." + operationId: getLanguages + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Language' + /records/links/csv: + get: + tags: + - links + description: Get record links as CSV + operationId: getRecordLinksAsCsv + parameters: + - name: filter + in: query + description: "Filter, e.g. \"{url: 'png', lastState: 'ko', records: 'e421',\ + \ groupId: 12}\", lastState being 'ok'/'ko'/'unknown'" + required: false + schema: + $ref: '#/components/schemas/JSONObject' + - name: groupIdFilter + in: query + description: "Optional, filter links to records published in that group." + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: groupOwnerIdFilter + in: query + description: "Optional, filter links to records created in that group." + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: page + in: query + description: Results page you want to retrieve (0..N) + schema: + type: integer + format: int32 + - name: size + in: query + description: Number of records per page. + schema: + type: integer + format: int32 + - name: sort + in: query + description: "Sorting criteria in the format: property(,asc|desc). Default\ + \ sort order is ascending. " + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /records/links: + get: + tags: + - links + summary: Get record links + operationId: getRecordLinks + parameters: + - name: filter + in: query + description: "Filter, e.g. \"{url: 'png', lastState: 'ko', records: 'e421',\ + \ groupId: 12}\", lastState being 'ok'/'ko'/'unknown'" + required: false + schema: + $ref: '#/components/schemas/JSONObject' + - name: groupIdFilter + in: query + description: "Optional, filter links to records published in that group." + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: groupOwnerIdFilter + in: query + description: "Optional, filter links to records created in that group." + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: page + in: query + description: Results page you want to retrieve (0..N) + schema: + type: integer + format: int32 + - name: size + in: query + description: Number of records per page. + schema: + type: integer + format: int32 + - name: sort + in: query + description: "Sorting criteria in the format: property(,asc|desc). Default\ + \ sort order is ascending. " + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PageLink' + post: + tags: + - links + summary: Analyze records links + description: One of uuids or bucket parameter is required if not an Administrator. + Only records that you can edit will be validated. + operationId: analyzeRecordLinks + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: removeFirst + in: query + description: Only allowed if Administrator. + required: false + schema: + type: boolean + default: true + - name: analyze + in: query + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + delete: + tags: + - links + summary: Remove all links and status history + operationId: purgeAll + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /mapservers/{mapserverId}: + get: + tags: + - mapservers + summary: Get a mapserver + operationId: getMapserver + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + application/json: + schema: + $ref: '#/components/schemas/AnonymousMapserver' + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/AnonymousMapserver' + put: + tags: + - mapservers + summary: Update a mapserver + operationId: updateMapserver_1 + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MapServer' + required: true + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "204": + description: Mapserver updated. + "403": + description: Operation not allowed. Only Reviewvers can access it. + delete: + tags: + - mapservers + summary: Remove a mapserver + operationId: deleteMapserver + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "204": + description: Mapserver removed. + "403": + description: Operation not allowed. Only Reviewvers can access it. + /mapservers: + get: + tags: + - mapservers + summary: Get mapservers + description: "Mapservers are used by the catalog to publish record attachments\ + \ (eg. ZIP file with shape) or record associated resources (eg. database table,\ + \ file on the local network) in a remote mapserver like GeoServer or MapServer.\ + \ The catalog communicate with the mapserver using GeoServer REST API." + operationId: getMapservers + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AnonymousMapserver' + put: + tags: + - mapservers + summary: Add a mapserver + description: Return the id of the newly created mapserver. + operationId: addMapserver + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MapServer' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Mapserver created. + content: + application/json: + schema: + type: integer + format: int32 + "400": + description: Bad parameters. + content: + application/json: + schema: + type: integer + format: int32 + "403": + description: Operation not allowed. Only Reviewvers can access it. + content: + application/json: + schema: + type: integer + format: int32 + /mapservers/{mapserverId}/auth: + post: + tags: + - mapservers + summary: Update a mapserver authentication + description: The remote mapserver REST API may require basic authentication. + This operation set the username and password. + operationId: updateMapserver + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: integer + format: int32 + - name: username + in: query + description: User name + required: true + schema: + type: string + - name: password + in: query + description: Password + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "204": + description: Mapserver updated. + "403": + description: Operation not allowed. Only Reviewvers can access it. + /mapservers/{mapserverId}/records/{metadataUuid}: + get: + tags: + - mapservers + summary: 'Check metadata mapserver resource is published ' + operationId: getMapserverResource + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: string + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: resource + in: query + description: Resource name (could be a file or a db connection) + required: true + schema: + type: string + - name: metadataTitle + in: query + description: Metadata title + required: false + schema: + type: string + default: "" + - name: metadataAbstract + in: query + description: Metadata abstract + required: false + schema: + type: string + default: "" + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + text/plain: + schema: + type: string + put: + tags: + - mapservers + summary: Publish a metadata resource in a mapserver + operationId: publishMapserverResource + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: string + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: resource + in: query + description: Resource name (could be a file or a db connection) + required: true + schema: + type: string + - name: metadataTitle + in: query + description: Metadata title + required: false + schema: + type: string + default: "" + - name: metadataAbstract + in: query + description: Metadata abstract + required: false + schema: + type: string + default: "" + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + text/plain: + schema: + type: string + delete: + tags: + - mapservers + summary: Remove a metadata mapserver resource + operationId: deleteMapserverResource + parameters: + - name: mapserverId + in: path + description: Mapserver identifier + required: true + schema: + type: string + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: resource + in: query + description: Resource name (could be a file or a db connection) + required: true + schema: + type: string + - name: metadataTitle + in: query + description: Metadata title + required: false + schema: + type: string + default: "" + - name: metadataAbstract + in: query + description: Metadata abstract + required: false + schema: + type: string + default: "" + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + text/plain: + schema: + type: string + /operations: + get: + tags: + - operations + summary: Get operations + description: "Return the list of operations. Operations are used to define authorization\ + \ per group. Extending the list of default operations (ie. view, dynamic,\ + \ download, editing, notify, featured) might be feasible but is experimental.
\ + \ Featured is not really used anymore (was used in past version for home page\ + \ highlights)." + operationId: getOperations + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Operation' + /pages/: + post: + tags: + - pages + summary: Add a new Page object in DRAFT section in status HIDDEN + description:

Is not possible to load a link and a file at the same time.

+ More + info + operationId: addPage + parameters: + - name: language + in: query + required: true + schema: + type: string + - name: pageId + in: query + required: true + schema: + type: string + - name: link + in: query + required: false + schema: + type: string + - name: format + in: query + required: true + schema: + type: string + enum: + - LINK + - HTML + - TEXT + - MARKDOWN + - WIKI + requestBody: + content: + application/json: + schema: + type: object + properties: + data: + type: string + format: binary + responses: + default: + description: default response + content: + application/json: {} + "500": + description: File not valid + "400": + description: Wrong parameters are provided + "404": + description: Page not found + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "200": + description: Page saved + "409": + description: "Page already in the system: use PUT" + /pages/{language}/{pageId}: + get: + tags: + - pages + summary: Return the page object details except the content + description: More + info + operationId: getPage + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Page not found + content: + application/json: + schema: + $ref: '#/components/schemas/PageJSONWrapper' + "200": + description: Page found + content: + application/json: + schema: + $ref: '#/components/schemas/PageJSONWrapper' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/PageJSONWrapper' + put: + tags: + - pages + summary: Edit a Page name and language + description: More + info + operationId: editPageName + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + - name: newLanguage + in: query + required: false + schema: + type: string + - name: newPageId + in: query + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "200": + description: Page changes saved + post: + tags: + - pages + summary: Edit a Page content and format + description: More + info + operationId: editPage + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + - name: link + in: query + required: false + schema: + type: string + - name: format + in: query + required: true + schema: + type: string + enum: + - LINK + - HTML + - TEXT + - MARKDOWN + - WIKI + requestBody: + content: + application/json: + schema: + type: object + properties: + data: + type: string + format: binary + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + '*/*': + schema: + type: string + "200": + description: Page changes saved + content: + '*/*': + schema: + type: string + delete: + tags: + - pages + summary: Delete a Page object + description: More + info + operationId: deletePage + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + - name: format + in: query + required: true + schema: + type: string + enum: + - LINK + - HTML + - TEXT + - MARKDOWN + - WIKI + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Page removed + "404": + description: Page not found + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /pages/{language}/{pageId}/content: + get: + tags: + - pages + summary: Return the static html content identified by pageId + description: More + info + operationId: getPageContent + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Page not found + content: + text/plain;charset=UTF-8: + schema: + type: string + "200": + description: Page found + content: + text/plain;charset=UTF-8: + schema: + type: string + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + text/plain;charset=UTF-8: + schema: + type: string + /pages/{language}/{pageId}/{section}: + post: + tags: + - pages + summary: Adds the page to a section. This means that the link to the page will + be shown in the list associated to that section. + description: More + info + operationId: addPageToSection + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + - name: section + in: path + required: true + schema: + type: string + enum: + - ALL + - TOP + - FOOTER + - MENU + - SUBMENU + - CUSTOM_MENU1 + - CUSTOM_MENU2 + - CUSTOM_MENU3 + - DRAFT + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Page not found + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "200": + description: Page changes saved + delete: + tags: + - pages + summary: Removes the page from a section. This means that the link to the page + will not be shown in the list associated to that section. + description: More + info + operationId: removePageFromSection + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + - name: section + in: path + required: true + schema: + type: string + enum: + - ALL + - TOP + - FOOTER + - MENU + - SUBMENU + - CUSTOM_MENU1 + - CUSTOM_MENU2 + - CUSTOM_MENU3 + - DRAFT + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Page not found + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "200": + description: Page changes saved + /pages/{language}/{pageId}/{status}: + put: + tags: + - pages + summary: Changes the status of a page. + description: More + info + operationId: changePageStatus + parameters: + - name: language + in: path + required: true + schema: + type: string + - name: pageId + in: path + required: true + schema: + type: string + - name: status + in: path + required: true + schema: + type: string + enum: + - PUBLIC + - PUBLIC_ONLY + - PRIVATE + - HIDDEN + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Page not found + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "200": + description: Page changes saved + /pages/list: + get: + tags: + - pages + summary: List all pages according to the filters + description: More + info + operationId: listPages + parameters: + - name: language + in: query + required: false + schema: + type: string + - name: section + in: query + required: false + schema: + type: string + enum: + - ALL + - TOP + - FOOTER + - MENU + - SUBMENU + - CUSTOM_MENU1 + - CUSTOM_MENU2 + - CUSTOM_MENU3 + - DRAFT + - name: format + in: query + required: false + schema: + type: string + enum: + - LINK + - HTML + - TEXT + - MARKDOWN + - WIKI + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PageJSONWrapper' + /processes/db/search-and-replace: + get: + tags: + - processes + summary: Preview of search and replace text. + description: " When errors occur during processing, the processing report is\ + \ returned in JSON format." + operationId: previewProcessSearchAndReplace + parameters: + - name: useRegexp + in: query + description: Use regular expression (may not be supported by all databases + - tested with H2 and PostgreSQL) + required: false + schema: + type: boolean + default: false + - name: search + in: query + description: Value to search for + required: true + schema: + type: string + - name: replace + in: query + description: Replacement + required: false + schema: + type: string + default: "" + - name: regexpFlags + in: query + description: regexpFlags + required: false + schema: + type: string + default: "" + - name: diffType + in: query + description: "Return differences with diff, diffhtml or patch" + required: false + schema: + type: string + enum: + - patch + - diff + - diffhtml + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "500": + description: If one record processed is invalid. + content: + '*/*': + schema: + type: object + "403": + description: Operation not allowed. Only Editors can access it. + content: + '*/*': + schema: + type: object + "200": + description: Processed records. + content: + '*/*': + schema: + type: object + post: + tags: + - processes + summary: Apply a database search and replace to one or more records + description: Process a metadata with an XSL transformation declared in the metadata + schema (See the process folder). Parameters sent to the service are forwarded + to XSL process. + operationId: processSearchAndReplace + parameters: + - name: useRegexp + in: query + description: Use regular expression (may not be supported by all databases + - tested with H2 and PostgreSQL) + required: false + schema: + type: boolean + default: false + - name: search + in: query + description: Value to search for + required: true + schema: + type: string + - name: replace + in: query + description: Replacement + required: false + schema: + type: string + default: "" + - name: regexpFlags + in: query + description: regexpFlags + required: false + schema: + type: string + default: "" + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: updateDateStamp + in: query + description: If true updates the DateStamp (or equivalent in standards different + to ISO 19139) field in the metadata with the current timestamp + required: false + schema: + type: boolean + default: true + - name: index + in: query + description: Index after processing + required: false + schema: + type: boolean + default: true + example: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/XsltMetadataProcessingReport' + "201": + description: Report about processed records. + content: + application/json: + schema: + $ref: '#/components/schemas/XsltMetadataProcessingReport' + /processes/search-and-replace: + post: + tags: + - processes + summary: Search and replace values in one or more records + description: "Service to apply replacements to one or more records.\n To define\ + \ a replacement, send the following parameters:\n * mdsection-139815551372=metadata\n\ + \ * mdfield-1398155513728=id.contact.individualName\n * replaceValue-1398155513728=Juan\n\ + \ * searchValue-1398155513728=Jose\n\nTODO: Would be good to provide a simple\ + \ object to define list of changes instead of group of parameters.
Batch\ + \ editing can also be used for similar works." + operationId: searchAndReplace + parameters: + - name: process + in: query + required: false + schema: + type: string + default: massive-content-update + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: isTesting + in: query + description: Test only (ie. metadata are not saved). Return the report only. + required: false + schema: + type: boolean + default: false + - name: isCaseInsensitive + in: query + description: Case insensitive search. + required: false + schema: + type: boolean + default: false + - name: vacuumMode + in: query + description: "'record' to apply vacuum.xsl, 'element' to remove empty elements.\ + \ Empty to not affect empty elements." + required: false + schema: + type: string + default: "" + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Replacements applied. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataReplacementProcessingReport' + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataReplacementProcessingReport' + /processes/reports: + get: + tags: + - processes + summary: Get current process reports + description: "When processing, the report is stored in memory and allows to\ + \ retrieve progress repport during processing. Usually, process reports are\ + \ returned by the synchronous processing operation." + operationId: getProcessReport + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of reports returned. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProcessingReport' + "403": + description: Operation not allowed. Only authenticated user can access it. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProcessingReport' + delete: + tags: + - processes + summary: Clear process reports list + operationId: delete + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only authenticated user can access it. + "204": + description: Report registry cleared. + /records/validate: + put: + tags: + - records + summary: Validate one or more records + description: Update validation status for all records. + operationId: validateRecords + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + example: true + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "201": + description: Records validated. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + delete: + tags: + - records + summary: Clear validation status of one or more records + operationId: cleanValidationStatus + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Records validation status cleared. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + /records/validate/inspire: + put: + tags: + - records + summary: Validate one or more records in INSPIRE validator + description: Update validation status for all records. + operationId: validateRecordsInspire + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: mode + in: query + description: "Define the encoding of the record to use. By default, ISO19139\ + \ are used as is and ISO19115-3 are converted to ISO19139.If mode = csw,\ + \ a GetRecordById request is used.If mode = any portal id, then a GetRecordById\ + \ request is used on this portal CSW entry point which may define custom\ + \ CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493." + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + type: string + "201": + description: Records validated. + content: + application/json: + schema: + type: string + /processes/{process}: + get: + tags: + - processes + summary: Preview process result applied to one or more records + description: "Preview result of a process applied to metadata records with an\ + \ XSL transformation declared in the metadata schema (See the process folder).\ + \ Parameters sent to the service are forwarded to XSL process. Append mode\ + \ has 2 limitations. First, it only support a set of records in the same schema.\ + \ Secondly, it does not propagate URL parameters. This mode is mainly used\ + \ to create custom reports based on metadata records content.If process name\ + \ ends with '.csv', the XSL process output a text document which is returned.\ + \ When errors occur during processing, the processing report is returned in\ + \ JSON format." + operationId: previewProcessRecords + parameters: + - name: process + in: path + description: Process identifier + required: true + schema: + type: string + - name: diffType + in: query + description: "Return differences with diff, diffhtml or patch" + required: false + schema: + type: string + enum: + - patch + - diff + - diffhtml + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: appendFirst + in: query + description: Append documents before processing + required: false + schema: + type: boolean + default: false + example: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + '*/*': + schema: + type: object + "200": + description: Processed records. + content: + '*/*': + schema: + type: object + post: + tags: + - processes + summary: Apply a process to one or more records + description: Process a metadata with an XSL transformation declared in the metadata + schema (See the process folder). Parameters sent to the service are forwarded + to XSL process. + operationId: processRecords + parameters: + - name: process + in: path + description: Process identifier + required: true + schema: + type: string + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: updateDateStamp + in: query + description: If true updates the DateStamp (or equivalent in standards different + to ISO 19139) field in the metadata with the current timestamp + required: false + schema: + type: boolean + default: true + - name: index + in: query + description: Index after processing + required: false + schema: + type: boolean + default: true + example: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/XsltMetadataProcessingReport' + "201": + description: Report about processed records. + content: + application/json: + schema: + $ref: '#/components/schemas/XsltMetadataProcessingReport' + /records/pdf: + get: + tags: + - records + summary: Get a set of metadata records as PDF + description: "The PDF is a short summary of each records with links to the complete\ + \ metadata record in different format (ie. landing page on the portal, XML)" + operationId: exportAsPdf + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return requested records as PDF. + "403": + description: Operation not allowed. User needs to be able to view the resource. + /records/csv: + get: + tags: + - records + summary: Get a set of metadata records as CSV + description: The CSV is a short summary of each records. + operationId: exportAsCsv + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return requested records as CSV. + "403": + description: Operation not allowed. User needs to be able to view the resource. + /records: + get: + tags: + - records + summary: Get catalog content as RDF. This endpoint supports the same Lucene + query parameters as for the GUI search. + description: "." + operationId: getAsRdf + parameters: + - name: from + in: query + description: Indicates the start position in a sorted list of matches that + the client wants to use as the beginning of a page result. + schema: + type: integer + format: int32 + default: 1 + - name: hitsPerPage + in: query + description: Indicates the number of hits per page. + schema: + type: integer + format: int32 + - name: any + in: query + description: Search key + schema: + type: string + - name: title + in: query + description: A search key for the title. + schema: + type: string + - name: facet.q + in: query + description: "A search facet in the Lucene index. Use the GeoNetwork GUI search\ + \ to generate the suitable filter values. Example: standard/dcat-ap&createDateYear/2018&sourceCatalog/6d93613e-2b76-4e26-94af-4b4c420a1758\ + \ (filter by creation year and source catalog)." + schema: + type: string + - name: sortBy + in: query + description: "Lucene sortBy criteria. Relevant values: relevance, title, changeDate." + schema: + type: string + - name: sortOrder + in: query + description: "Sort order. Possible values: reverse." + schema: + type: string + - name: similarity + in: query + description: Use the Lucene FuzzyQuery. Values range from 0.0 to 1.0 and defaults + to 0.8. + schema: + type: number + format: float + default: 0.8 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the catalog content as RDF. + "303": + description: "Redirect the client to the first in-sequence page resource.\ + \ This happens when the paging parameters (from, hitsPerPage) are not\ + \ included in the request." + put: + tags: + - records + summary: Add a record + description: "Add one or more record from an XML fragment, URL or file in a\ + \ folder on the catalog server. When loadingfrom the catalog server folder,\ + \ it might be faster to use a local filesystem harvester." + operationId: insert + parameters: + - name: metadataType + in: query + description: The type of record. + required: false + schema: + type: string + enum: + - METADATA + - TEMPLATE + - SUB_TEMPLATE + - TEMPLATE_OF_SUB_TEMPLATE + default: METADATA + - name: url + in: query + description: URL of a file to download and insert. + required: false + schema: + type: array + items: + type: string + - name: serverFolder + in: query + description: Server folder where to look for files. + required: false + schema: + type: string + - name: recursiveSearch + in: query + description: (Server folder import only) Recursive search in folder. + required: false + schema: + type: boolean + default: false + - name: publishToAll + in: query + description: (XML file only) Publish record. + required: false + schema: + type: boolean + default: false + - name: assignToCatalog + in: query + description: (MEF file only) Assign to current catalog. + required: false + schema: + type: boolean + default: false + - name: uuidProcessing + in: query + description: Record identifier processing. + required: false + schema: + type: string + enum: + - GENERATEUUID + - NOTHING + - OVERWRITE + default: NOTHING + - name: group + in: query + description: The group the record is attached to. + required: false + schema: + type: string + - name: category + in: query + description: Tags to assign to the record. + required: false + schema: + type: array + items: + type: string + - name: rejectIfInvalid + in: query + description: Validate the record first and reject it if not valid. + required: false + schema: + type: boolean + default: false + - name: transformWith + in: query + description: XSL transformation to apply to the record. + required: false + schema: + type: string + default: _none_ + - name: schema + in: query + description: "Force the schema of the record. If not set, schema autodetection\ + \ is used (and is the preferred method)." + required: false + schema: + type: string + - name: extra + in: query + description: (experimental) Add extra information to the record. + required: false + schema: + type: string + requestBody: + content: + application/xml: + schema: + type: string + description: XML fragment. + application/json: + schema: + type: string + description: XML fragment. + application/x-www-form-urlencoded: + schema: + type: string + description: XML fragment. + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "201": + description: Report about imported records. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + post: + tags: + - records + summary: Add a record from XML or MEF/ZIP file + description: Add record in the catalog by uploading files. + operationId: insertFile + parameters: + - name: metadataType + in: query + description: The type of record. + required: false + schema: + type: string + enum: + - METADATA + - TEMPLATE + - SUB_TEMPLATE + - TEMPLATE_OF_SUB_TEMPLATE + default: METADATA + - name: file + in: query + description: XML or MEF file to upload + required: false + schema: + type: array + items: + type: string + format: binary + - name: uuidProcessing + in: query + description: Record identifier processing. + required: false + schema: + type: string + enum: + - GENERATEUUID + - NOTHING + - OVERWRITE + default: NOTHING + - name: group + in: query + description: The group the record is attached to. + required: false + schema: + type: string + - name: category + in: query + description: Tags to assign to the record. + required: false + schema: + type: array + items: + type: string + - name: rejectIfInvalid + in: query + description: Validate the record first and reject it if not valid. + required: false + schema: + type: boolean + default: false + - name: publishToAll + in: query + description: (XML file only) Publish record. + required: false + schema: + type: boolean + default: false + - name: assignToCatalog + in: query + description: (MEF file only) Assign to current catalog. + required: false + schema: + type: boolean + default: false + - name: transformWith + in: query + description: XSL transformation to apply to the record. + required: false + schema: + type: string + default: _none_ + - name: schema + in: query + description: "Force the schema of the record. If not set, schema autodetection\ + \ is used (and is the preferred method)." + required: false + schema: + type: string + - name: extra + in: query + description: (experimental) Add extra information to the record. + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "201": + description: Report about imported records. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + delete: + tags: + - records + summary: Delete one or more records + description: 'User MUST be able to edit the record to delete it. ' + operationId: deleteRecords + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: withBackup + in: query + description: Backup first the record as MEF in the metadata removed folder. + required: false + schema: + type: boolean + default: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "204": + description: Report about deleted records. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + /records/zip: + get: + tags: + - records + summary: Get a set of metadata records as ZIP + description: Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing + the metadata as XML and some others files depending on the version requested. + See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + operationId: exportAsMef + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: format + in: query + description: MEF file format. + required: false + schema: + type: string + enum: + - simple + - partial + - full + default: full + - name: withRelated + in: query + description: With related records (parent and service). + required: false + schema: + type: boolean + default: false + - name: withXLinksResolved + in: query + description: Resolve XLinks in the records. + required: false + schema: + type: boolean + default: true + - name: withXLinkAttribute + in: query + description: Preserve XLink URLs in the records. + required: false + schema: + type: boolean + default: false + - name: addSchemaLocation + in: query + required: false + schema: + type: boolean + default: true + - name: approved + in: query + description: Download the approved version + required: false + schema: + type: boolean + default: true + - name: Accept + in: header + required: false + schema: + type: string + default: application/x-gn-mef-2-zip + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return requested records as ZIP. + "403": + description: Operation not allowed. User needs to be able to view the resource. + /records/{metadataUuid}/doi: + put: + tags: + - records + summary: Submit a record to the Datacite metadata store in order to create a + DOI. + operationId: createDoi + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Metadata not found. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "500": + description: Service unavailable. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "201": + description: Check status of the report. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + delete: + tags: + - records + summary: "Remove a DOI (this is not recommended, DOI are supposed to be persistent\ + \ once created. This is mainly here for testing)." + operationId: unregisterDoi + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Metadata or DOI not found. + content: + application/json: + schema: + type: string + "204": + description: DOI unregistered. + content: + application/json: + schema: + type: string + "403": + description: Operation not allowed. Only Administrators can access it. + content: + application/json: + schema: + type: string + "500": + description: Service unavailable. + content: + application/json: + schema: + type: string + /records/{metadataUuid}/doi/checkPreConditions: + get: + tags: + - records + summary: Check that a record can be submitted to DataCite for DOI creation. + DataCite requires some fields to be populated. + operationId: checkDoiStatus + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Record can be proposed to DataCite. + content: + application/json: + schema: + type: object + additionalProperties: + type: boolean + "404": + description: Metadata not found. + content: + application/json: + schema: + type: object + additionalProperties: + type: boolean + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + type: object + additionalProperties: + type: boolean + "500": + description: Service unavailable. + content: + application/json: + schema: + type: object + additionalProperties: + type: boolean + "400": + description: Record does not meet preconditions. Check error message. + content: + application/json: + schema: + type: object + additionalProperties: + type: boolean + /records/{metadataUuid}/validate/inspire: + put: + tags: + - records + summary: Submit a record to the INSPIRE service for validation. + description: "User MUST be able to edit the record to validate it. An INSPIRE\ + \ endpoint must be configured in Settings. This activates an asyncronous process,\ + \ this method does not return any report. This method returns an id to be\ + \ used to get the report." + operationId: validateRecordForInspire + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: testsuite + in: query + description: Test suite to run + required: true + schema: + type: string + - name: mode + in: query + description: "Define the encoding of the record to use. By default, ISO19139\ + \ are used as is and ISO19115-3 are converted to ISO19139.If mode = csw,\ + \ a GetRecordById request is used.If mode = any portal id, then a GetRecordById\ + \ request is used on this portal CSW entry point which may define custom\ + \ CSW post processing. See https://github.com/geonetwork/core-geonetwork/pull/4493." + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Metadata not found. + content: + text/plain: + schema: + type: string + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + text/plain: + schema: + type: string + "500": + description: Service unavailable. + content: + text/plain: + schema: + type: string + "201": + description: Check status of the report. + content: + text/plain: + schema: + type: string + /records/{testId}/validate/inspire: + get: + tags: + - records + summary: Check the status of validation with the INSPIRE service. + description: 'User MUST be able to edit the record to validate it. An INSPIRE + endpoint must be configured in Settings. If the process is complete an object + with status is returned. ' + operationId: checkValidation + parameters: + - name: testId + in: path + description: Test identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Report ready. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "201": + description: Report not ready. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "404": + description: Report id not found. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + /records/{metadataUuid}/validate/inspire/testsuites: + get: + tags: + - records + summary: Get test suites available. + description: "TG13, TG2, ..." + operationId: getTestSuites + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of testsuites available. + content: + application/json: + schema: + type: object + additionalProperties: + type: array + items: + type: string + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + type: object + additionalProperties: + type: array + items: + type: string + /records/{metadataUuid}/formatters/zip: + get: + tags: + - records + summary: Get a metadata record as ZIP + description: Metadata Exchange Format (MEF) is returned. MEF is a ZIP file containing + the metadata as XML and some others files depending on the version requested. + See http://geonetwork-opensource.org/manuals/trunk/eng/users/annexes/mef-format.html. + operationId: getRecordAsZip + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: format + in: query + description: MEF file format. + required: false + schema: + type: string + enum: + - simple + - partial + - full + default: full + - name: withRelated + in: query + description: With related records (parent and service). + required: false + schema: + type: boolean + default: true + - name: withXLinksResolved + in: query + description: Resolve XLinks in the records. + required: false + schema: + type: boolean + default: true + - name: withXLinkAttribute + in: query + description: Preserve XLink URLs in the records. + required: false + schema: + type: boolean + default: false + - name: addSchemaLocation + in: query + required: false + schema: + type: boolean + default: true + - name: approved + in: query + description: Download the approved version + required: false + schema: + type: boolean + default: true + - name: Accept + in: header + required: false + schema: + type: string + default: application/x-gn-mef-2-zip + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the record. + "403": + description: Operation not allowed. User needs to be able to view the resource. + /records/{metadataUuid}/formatters/xml: + get: + tags: + - records + summary: Get a metadata record as XML or JSON + operationId: getRecordAs + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: addSchemaLocation + in: query + description: Add XSD schema location based on standard configuration (see + schema-ident.xml). + required: false + schema: + type: boolean + default: true + - name: increasePopularity + in: query + description: Increase record popularity + required: false + schema: + type: boolean + default: true + - name: withInfo + in: query + description: Add geonet:info details + required: false + schema: + type: boolean + default: false + - name: attachment + in: query + description: Download as a file + required: false + schema: + type: boolean + default: false + - name: approved + in: query + description: Download the approved version + required: false + schema: + type: boolean + default: true + - name: Accept + in: header + required: false + schema: + type: string + default: application/xml + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the record. + content: + application/xml: + schema: + type: object + application/json: + schema: + type: object + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/xml: + schema: + type: object + application/json: + schema: + type: object + /records/{metadataUuid}/formatters/json: + get: + tags: + - records + summary: Get a metadata record as XML or JSON + operationId: getRecordAs_1 + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: addSchemaLocation + in: query + description: Add XSD schema location based on standard configuration (see + schema-ident.xml). + required: false + schema: + type: boolean + default: true + - name: increasePopularity + in: query + description: Increase record popularity + required: false + schema: + type: boolean + default: true + - name: withInfo + in: query + description: Add geonet:info details + required: false + schema: + type: boolean + default: false + - name: attachment + in: query + description: Download as a file + required: false + schema: + type: boolean + default: false + - name: approved + in: query + description: Download the approved version + required: false + schema: + type: boolean + default: true + - name: Accept + in: header + required: false + schema: + type: string + default: application/xml + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the record. + content: + application/xml: + schema: + type: object + application/json: + schema: + type: object + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/xml: + schema: + type: object + application/json: + schema: + type: object + /records/{metadataUuid}/related: + get: + tags: + - records + summary: Get record related resources + description: "Retrieve related services, datasets, onlines, thumbnails, sources,\ + \ ... to this records.
More\ + \ info" + operationId: getAssociatedResources + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: type + in: query + description: "Type of related resource. If none, all resources are returned." + required: false + schema: + type: array + items: + type: string + enum: + - children + - parent + - brothersAndSisters + - siblings + - associated + - services + - datasets + - fcats + - hasfeaturecats + - sources + - hassources + - related + - onlines + - thumbnails + default: [] + - name: start + in: query + description: Start offset for paging. Default 1. Only applies to related metadata + records (ie. not for thumbnails). + required: false + schema: + type: integer + format: int32 + default: 0 + - name: rows + in: query + description: Number of rows returned. Default 100. + required: false + schema: + type: integer + format: int32 + default: 100 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the associated resources. + content: + application/xml: + schema: + $ref: '#/components/schemas/RelatedResponse' + application/json: + schema: + $ref: '#/components/schemas/RelatedResponse' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/xml: + schema: + $ref: '#/components/schemas/RelatedResponse' + application/json: + schema: + $ref: '#/components/schemas/RelatedResponse' + /records/{metadataUuid}/featureCatalog: + get: + tags: + - records + summary: Returns a map to decode attributes in a dataset (from the associated + feature catalog) + description: "Retrieve related services, datasets, onlines, thumbnails, sources,\ + \ ... to this records.
More\ + \ info" + operationId: getFeatureCatalog + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the associated resources. + content: + application/xml: + schema: + $ref: '#/components/schemas/FeatureResponse' + application/json: + schema: + $ref: '#/components/schemas/FeatureResponse' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/xml: + schema: + $ref: '#/components/schemas/FeatureResponse' + application/json: + schema: + $ref: '#/components/schemas/FeatureResponse' + /records/{metadataUuid}/popularity: + post: + tags: + - records + summary: Increase record popularity + description: Used when a view is based on the search results content and does + not really access the record. Record is then added to the indexing queue and + popularity will be updated soon. + operationId: getRecord + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "201": + description: Popularity updated. + "403": + description: Operation not allowed. User needs to be able to view the resource. + /records/{metadataUuid}: + get: + tags: + - records + summary: Get a metadata record + description: "Depending on the accept header the appropriate formatter is used.\ + \ When requesting a ZIP, a MEF version 2 file is returned. When requesting\ + \ HTML, the default formatter is used." + operationId: getRecord_1 + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: Accept + in: header + description: "Accept header should indicate which is the appropriate format\ + \ to return. It could be text/html, application/xml, application/zip, ...If\ + \ no appropriate Accept header found, the XML format is returned." + required: true + schema: + type: string + default: application/xml + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + text/html: + schema: + type: string + application/xml: + schema: + type: string + application/xhtml+xml: + schema: + type: string + application/json: + schema: + type: string + application/pdf: + schema: + type: string + application/zip: + schema: + type: string + application/x-gn-mef-1-zip: + schema: + type: string + application/x-gn-mef-2-zip: + schema: + type: string + '*/*': + schema: + type: string + "200": + description: Return the record. + content: + text/html: + schema: + type: string + application/xml: + schema: + type: string + application/xhtml+xml: + schema: + type: string + application/json: + schema: + type: string + application/pdf: + schema: + type: string + application/zip: + schema: + type: string + application/x-gn-mef-1-zip: + schema: + type: string + application/x-gn-mef-2-zip: + schema: + type: string + '*/*': + schema: + type: string + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + text/html: + schema: + type: string + application/xml: + schema: + type: string + application/xhtml+xml: + schema: + type: string + application/json: + schema: + type: string + application/pdf: + schema: + type: string + application/zip: + schema: + type: string + application/x-gn-mef-1-zip: + schema: + type: string + application/x-gn-mef-2-zip: + schema: + type: string + '*/*': + schema: + type: string + delete: + tags: + - records + summary: Delete a record + description: "User MUST be able to edit the record to delete it. By default,\ + \ a backup is made in ZIP format. After that, the record attachments are removed,\ + \ the document removed from the index and then from the database." + operationId: deleteRecord + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: withBackup + in: query + description: Backup first the record as MEF in the metadata removed folder. + required: false + schema: + type: boolean + default: true + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Record deleted. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/index: + get: + tags: + - records + summary: Index a set of records + description: Index a set of records provided either by a bucket or a list of + uuids + operationId: index + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Administrators can access it. + content: + application/json: + schema: + type: object + properties: + nullObject: + type: boolean + array: + type: boolean + empty: + type: boolean + additionalProperties: + type: object + "200": + description: Record indexed. + content: + application/json: + schema: + type: object + properties: + nullObject: + type: boolean + array: + type: boolean + empty: + type: boolean + additionalProperties: + type: object + /records/importfrommap: + post: + tags: + - records + summary: Add a map metadata record from OGC OWS context + description: Add record in the catalog by uploading a map context. + operationId: insertOgcMapContextFile + parameters: + - name: title + in: query + description: A map title + required: true + schema: + type: string + - name: recordAbstract + in: query + description: A map abstract + required: false + schema: + type: string + - name: xml + in: query + description: OGC OWS context as string + required: false + schema: + type: string + - name: filename + in: query + description: OGC OWS context file name + required: false + schema: + type: string + - name: url + in: query + description: OGC OWS context URL + required: false + schema: + type: string + - name: viewerUrl + in: query + description: A map viewer URL to visualize the map + required: false + schema: + type: string + - name: overview + in: query + description: Map overview as PNG (base64 encoded) + required: false + schema: + type: string + - name: overviewFilename + in: query + description: Map overview filename + required: false + schema: + type: string + - name: topic + in: query + description: Topic category + required: false + schema: + type: string + - name: publishToAll + in: query + description: Publish record. + required: false + schema: + type: boolean + default: false + - name: uuidProcessing + in: query + description: Record identifier processing. + required: false + schema: + type: string + enum: + - GENERATEUUID + - NOTHING + - OVERWRITE + default: NOTHING + - name: group + in: query + description: The group the record is attached to. + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "201": + description: Report about imported records. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + /records/duplicate: + put: + tags: + - records + summary: Create a new record + description: "Create a record from a template or by copying an existing record.Return\ + \ the UUID of the newly created record. Existing links in the source record\ + \ are preserved, this means that the new record may contains link to the source\ + \ attachments. They need to be manually updated after creation." + operationId: create + parameters: + - name: metadataType + in: query + description: The type of record. + required: false + schema: + type: string + enum: + - METADATA + - TEMPLATE + - SUB_TEMPLATE + - TEMPLATE_OF_SUB_TEMPLATE + default: METADATA + - name: sourceUuid + in: query + description: UUID of the source record to copy. + required: true + schema: + type: string + - name: targetUuid + in: query + description: Assign a custom UUID. If this UUID already exist an error is + returned. This is enabled only if metadata create / generate UUID settings + is activated. + required: false + schema: + type: string + - name: group + in: query + description: The group the record is attached to. + required: true + schema: + type: string + - name: isVisibleByAllGroupMembers + in: query + description: "Is published to all user group members? If not, only the author\ + \ and administrator can edit the record." + required: false + schema: + type: boolean + default: false + - name: category + in: query + description: Tags to assign to the record. + required: false + schema: + type: array + items: + type: string + - name: hasCategoryOfSource + in: query + description: Copy categories from source? + required: false + schema: + type: boolean + default: false + - name: isChildOfSource + in: query + description: Is child of the record to copy? + required: false + schema: + type: boolean + default: false + - name: hasAttachmentsOfSource + in: query + description: Copy attachments from source? + required: false + schema: + type: boolean + default: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Return the internal id of the newly created record. + content: + application/json: + schema: + type: string + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + type: string + /records/{metadataUuid}/processes/{process}: + get: + tags: + - records + summary: Preview process result + description: Process a metadata with an XSL transformation declared in the metadata + schema (See the process folder). Parameters sent to the service are forwarded + to XSL process. + operationId: processRecordPreview + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: process + in: path + description: Process identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: A preview of the processed record. + content: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: {} + post: + tags: + - records + summary: Apply a process + description: Process a metadata with an XSL transformation declared in the metadata + schema (See the process folder). Parameters sent to the service are forwarded + to XSL process. + operationId: processRecord + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: process + in: path + description: Process identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/xml: + schema: + type: string + "204": + description: Record processed and saved. + content: + application/xml: + schema: + type: string + /records/{metadataUuid}/processes: + get: + tags: + - records + summary: Get suggestions + description: Analyze the record an suggest processes to improve the quality + of the record.
More + info + operationId: getSuggestions + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SuggestionType' + "200": + description: Record suggestions. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SuggestionType' + /records/samples: + put: + tags: + - records + summary: Add samples + description: Add sample records for one or more schemas. Samples are defined + for each standard in the samples folder as MEF files. + operationId: addSamples + parameters: + - name: schema + in: query + description: Schema identifiers + required: true + schema: + type: array + items: + type: string + example: iso19139 + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Return a report of what has been done. + content: + '*/*': + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "403": + description: Operation not allowed. Only Administrators can access it. + content: + '*/*': + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + /records/templates: + put: + tags: + - records + summary: Add templates + description: Add template records for one or more schemas. Templates are defined + for each standard in the template folder as XML files. Template may also contains + subtemplates. + operationId: addTemplates + parameters: + - name: schema + in: query + description: Schema identifiers + required: true + schema: + type: array + items: + type: string + example: iso19139 + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Return a report of what has been done. + content: + '*/*': + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "403": + description: Operation not allowed. Only Administrators can access it. + content: + '*/*': + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + /records/{metadataUuid}/query/{savedQuery}: + post: + tags: + - records + summary: Apply a saved query for this metadata + description: "All parameters will be substituted to the XPath query. eg. {{protocol}}\ + \ in the XPath expression will be replaced by the protocol parameter provided\ + \ in the request body." + operationId: applyQuery + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: savedQuery + in: path + description: The saved query to apply + required: true + schema: + type: string + example: wfs-indexing-config + responses: + default: + description: default response + content: + application/json: {} + "200": + description: "List of matching elements. If element are nodes, then they\ + \ are returned as string." + content: + application/json: + schema: + type: object + additionalProperties: + type: string + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + /records/{metadataUuid}/query: + get: + tags: + - records + summary: List saved queries for this metadata + operationId: getSavedQueries + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Saved query available. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SavedQuery' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SavedQuery' + /records/sharing: + get: + tags: + - records + summary: Get record sharing settings + operationId: getSharingSettings + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/SharingResponse' + "200": + description: Return a default array of group and operations that can be + used to set record sharing properties. + content: + application/json: + schema: + $ref: '#/components/schemas/SharingResponse' + put: + tags: + - records + summary: Set sharing settings for one or more records + description: See record sharing for more details. + operationId: share + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SharingParameter' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Report about updated privileges. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "403": + description: Operation not allowed. Only Editors can access it. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/sharing: + get: + tags: + - records + summary: Get record sharing settings + description: Return current sharing options for a record. + operationId: getRecordSharingSettings + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: The record sharing settings. + content: + application/json: + schema: + $ref: '#/components/schemas/SharingResponse' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/SharingResponse' + put: + tags: + - records + summary: Set record sharing + description: "Privileges are assigned by group. User needs to be able to edit\ + \ a record to set sharing settings. For reserved group (ie. Internet, Intranet\ + \ & Guest), user MUST be reviewer of one group. For other group, if Only set\ + \ privileges to user's groups is set in catalog configuration user MUST be\ + \ a member of the group.
Clear first allows to unset all operations first\ + \ before setting the new ones.Clear option does not remove reserved groups\ + \ operation if user is not an administrator, a reviewer or the owner of the\ + \ record.
More\ + \ info" + operationId: share_1 + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SharingParameter' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Settings updated. + /records/unpublish: + put: + tags: + - records + summary: Un-publish one or more records + description: See record sharing for more details. + operationId: unpublish + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Report about updated privileges. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "403": + description: Operation not allowed. Only Editors can access it. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/unpublish: + put: + tags: + - records + summary: Unsets privileges for ALL group to publish the metadata for all users. + operationId: unpublish_1 + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Settings updated. + /records/{metadataUuid}/group: + put: + tags: + - records + summary: Set record group + description: A record is related to one group. + operationId: setRecordGroup + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: integer + description: Group identifier + format: int32 + required: true + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Record group updated. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/ownership: + put: + tags: + - records + summary: Set group and owner for one or more records + operationId: setGroupAndOwner + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: groupIdentifier + in: query + description: Group identifier + required: true + schema: + type: integer + format: int32 + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: userIdentifier + in: query + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: false + example: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "201": + description: Records group and owner updated + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/ownership: + put: + tags: + - records + summary: Set record group and owner + operationId: setRecordOwnership + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: groupIdentifier + in: query + description: Group identifier + required: true + schema: + type: integer + format: int32 + - name: userIdentifier + in: query + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: true + example: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "201": + description: Record group and owner updated + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/publish: + put: + tags: + - records + summary: Set privileges for ALL group to publish the metadata for all users. + operationId: publish + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Settings updated. + /records/publish: + put: + tags: + - records + summary: Publish one or more records + description: See record sharing for more details. + operationId: publish_1 + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Report about updated privileges. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "403": + description: Operation not allowed. Only Editors can access it. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/rate: + put: + tags: + - records + summary: Rate a record + description: "User rating of metadata. If the metadata was harvested using the\ + \ 'GeoNetwork' protocol and the system setting localrating/enable is false\ + \ (the default), the user's rating is shared between GN nodes in this harvesting\ + \ network. If the metadata was not harvested or if localrating/enable is true\ + \ then 'local rating' is applied, counting only rating from users of this\ + \ node.
When a remote rating is applied, the local rating is not updated.\ + \ It will be updated on the next harvest run (FIXME ?)." + operationId: rateRecord + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: integer + description: Rating + format: int32 + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: New rating value. + content: + '*/*': + schema: + type: integer + format: int32 + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + '*/*': + schema: + type: integer + format: int32 + /records/{metadataUuid}/tags: + get: + tags: + - records + summary: Get record tags + description: Tags are used to classify information.
More + info + operationId: getRecordTags + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Record tags. + content: + application/json: + schema: + uniqueItems: true + type: array + items: + $ref: '#/components/schemas/MetadataCategory' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + uniqueItems: true + type: array + items: + $ref: '#/components/schemas/MetadataCategory' + put: + tags: + - records + summary: Add tags to a record + operationId: tagRecord + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: id + in: query + description: Tag identifier + required: true + schema: + type: array + items: + type: integer + format: int32 + - name: clear + in: query + description: Clear all before adding new ones + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "201": + description: Record tags added. + delete: + tags: + - records + summary: Delete tags of a record + operationId: deleteTags + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: id + in: query + description: "Tag identifier. If none, all tags are removed." + required: false + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Record tags removed. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/tags: + put: + tags: + - records + summary: Add or remove tags to one or more records + operationId: tagRecords + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: id + in: query + description: Tag identifier + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: removeId + in: query + description: Tag identifier to remove. + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: clear + in: query + description: Clear all before adding new ones + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "201": + description: Report about updated records. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + delete: + tags: + - records + summary: Delete tags to one or more records + operationId: deleteTagForRecords + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: id + in: query + description: Tag identifier + required: true + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Editors can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + "201": + description: Report about removed records. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/validate/internal: + put: + tags: + - records + summary: Validate a record + description: "User MUST be able to edit the record to validate it. FIXME : id\ + \ MUST be the id of the current metadata record in session ?" + operationId: validateRecord + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: isvalid + in: query + description: "Validation status. Should be provided only in case of SUBTEMPLATE\ + \ validation. If provided for another type, throw a BadParameter Exception" + required: false + schema: + type: boolean + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Validation report. + content: + application/json: + schema: + $ref: '#/components/schemas/Reports' + application/xml: + schema: + $ref: '#/components/schemas/Reports' + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/Reports' + application/xml: + schema: + $ref: '#/components/schemas/Reports' + /records/{metadataUuid}/versions: + put: + tags: + - records + summary: (Experimental) Enable version control + operationId: enableVersionControl + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + '*/*': + schema: + type: string + /records/versions: + put: + tags: + - records + summary: (Experimental) Enable version control for one or more records + operationId: enableVersionControlForRecords + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataProcessingReport' + /records/{metadataUuid}/status: + get: + tags: + - records + summary: Get record status history + operationId: getRecordStatusHistory + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: details + in: query + required: false + schema: + type: boolean + - name: sortOrder + in: query + description: Sort direction + required: false + schema: + type: string + enum: + - ASC + - DESC + default: DESC + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: {} + put: + tags: + - records + summary: Set the record status + operationId: setStatus + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataStatusParameter' + required: true + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Status updated. + "400": + description: Metadata workflow not enabled. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + delete: + tags: + - records + summary: Delete all record status + operationId: deleteAllRecordStatus + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Status not found. + "403": + description: Operation not allowed. Only Administrators can access it. + "204": + description: Status removed. + /records/{metadataUuid}/status/{type}: + get: + tags: + - records + summary: Get record status history by type + operationId: getRecordStatusHistoryByType + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: type + in: path + description: Type + required: true + schema: + type: string + enum: + - workflow + - task + - event + - name: details + in: query + required: false + schema: + type: boolean + - name: sortOrder + in: query + description: Sort direction + required: false + schema: + type: string + enum: + - ASC + - DESC + default: DESC + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: {} + /records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/close: + put: + tags: + - records + summary: Close a record task + operationId: closeTask + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: statusId + in: path + description: Status identifier + required: true + schema: + type: integer + format: int32 + - name: userId + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: changeDate + in: path + description: Change date + required: true + schema: + type: string + - name: closeDate + in: query + description: Close date + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Status not found. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Task closed. + /records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}: + delete: + tags: + - records + summary: Delete a record status + operationId: deleteRecordStatus + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: statusId + in: path + description: Status identifier + required: true + schema: + type: integer + format: int32 + - name: userId + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: changeDate + in: path + description: Change date + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Status not found. + "403": + description: Operation not allowed. Only Administrators can access it. + "204": + description: Status removed. + /records/status/search: + get: + tags: + - records + summary: Search status + operationId: getWorkflowStatusByType + parameters: + - name: type + in: query + description: "One or more types to retrieve (ie. worflow, event, task). Default\ + \ is all." + required: false + schema: + type: array + items: + type: string + enum: + - workflow + - task + - event + - name: details + in: query + description: All event details including XML changes. Responses are bigger. + Default is false + required: false + schema: + type: boolean + - name: sortOrder + in: query + description: Sort Order (ie. DESC or ASC). Default is none. + required: false + schema: + type: string + enum: + - ASC + - DESC + - name: author + in: query + description: One or more event author. Default is all. + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: owner + in: query + description: One or more event owners. Default is all. + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: id + in: query + description: One or more record identifier. Default is all. + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: record + in: query + description: One or more metadata record identifier. Default is all. + required: false + schema: + type: array + items: + type: integer + format: int32 + - name: uuid + in: query + description: One or more metadata uuid. Default is all. + required: false + schema: + type: array + items: + type: string + - name: statusIds + in: query + description: One or more status id. Default is all. + required: false + schema: + type: array + items: + type: string + - name: dateFrom + in: query + description: Start date + required: false + schema: + type: string + - name: dateTo + in: query + description: End date + required: false + schema: + type: string + - name: from + in: query + description: From page + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + description: Number of records to return + required: false + schema: + type: integer + format: int32 + default: 100 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: {} + /records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/before: + get: + tags: + - records + summary: Get saved content from the status record before changes + operationId: showStatusBefore + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: statusId + in: path + description: Status identifier + required: true + schema: + type: integer + format: int32 + - name: userId + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: changeDate + in: path + description: Change date + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/xml: + schema: + type: string + "200": + description: Previous version of the record. + content: + application/xml: + schema: + type: string + /records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/after: + get: + tags: + - records + summary: Get saved content from the status record after changes + operationId: showStatusAfter + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: statusId + in: path + description: Status identifier + required: true + schema: + type: integer + format: int32 + - name: userId + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: changeDate + in: path + description: Change date + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/xml: + schema: + type: string + "200": + description: Version of the record after changes. + content: + application/xml: + schema: + type: string + /records/{metadataUuid}/status/{statusId}.{userId}.{changeDate}/restore: + post: + tags: + - records + summary: Restore saved content from a status record + operationId: restoreAtStatusSave + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: statusId + in: path + description: Status identifier + required: true + schema: + type: integer + format: int32 + - name: userId + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: changeDate + in: path + description: Change date + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Record restored. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/{metadataUuid}/status/workflow/last: + get: + tags: + - records + summary: Get last workflow status for a record + operationId: getStatus + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Record status. + content: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: {} + /records/{metadataUuid}/attachments/print-thumbnail: + put: + tags: + - records + summary: Create an overview using the map print module + description: More + info + operationId: saveThumbnail + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: jsonConfig + in: query + description: The mapprint module JSON configuration + required: true + schema: + type: string + - name: rotationAngle + in: query + description: The rotation angle of the map + required: false + schema: + type: integer + format: int32 + default: 0 + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Thumbnail created. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataResource' + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataResource' + /records/{metadataUuid}/attachments: + get: + tags: + - records + summary: List all metadata attachments + description: More + info + operationId: getAllResources + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: sort + in: query + description: Sort by + required: false + schema: + type: string + enum: + - type + - name + default: name + example: type + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: true + example: true + - name: filter + in: query + required: false + schema: + type: string + default: '*.*' + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the record attachments. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MetadataResource' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MetadataResource' + put: + tags: + - records + summary: Create a new resource from a URL for a given metadata + operationId: putResourceFromURL + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: visibility + in: query + description: The sharing policy + required: false + schema: + type: string + enum: + - public + - private + default: public + example: public + - name: url + in: query + description: The URL to load in the store + required: true + schema: + type: string + format: url + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: false + example: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Attachment added. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataResource' + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + '*/*': + schema: + $ref: '#/components/schemas/MetadataResource' + post: + tags: + - records + summary: Create a new resource for a given metadata + operationId: putResource + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: visibility + in: query + description: The sharing policy + required: false + schema: + type: string + enum: + - public + - private + default: public + example: public + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: false + example: true + requestBody: + content: + application/json: + schema: + required: + - file + type: object + properties: + file: + type: string + description: The file to upload + format: binary + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataResource' + "201": + description: Attachment uploaded. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataResource' + delete: + tags: + - records + summary: Delete all uploaded metadata resources + operationId: delResources + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: false + example: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Attachment added. + /records/{metadataUuid}/attachments/{resourceId}: + get: + tags: + - records + summary: Get a metadata resource + operationId: getResource + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: resourceId + in: path + description: The resource identifier (ie. filename) + required: true + schema: + type: string + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: true + example: true + - name: size + in: query + description: Size (only applies to images). From 1px to 2048px. + required: false + schema: + type: integer + format: int32 + example: 200 + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to download the + resource. + content: + '*/*': + schema: + type: array + items: + type: string + format: byte + "201": + description: Record attachment. + content: + '*/*': + schema: + type: array + items: + type: string + format: byte + delete: + tags: + - records + summary: Delete a metadata resource + operationId: delResource + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: resourceId + in: path + description: The resource identifier (ie. filename) + required: true + schema: + type: string + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: false + example: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Attachment visibility removed. + patch: + tags: + - records + summary: Update the metadata resource visibility + operationId: patchResource + parameters: + - name: metadataUuid + in: path + description: The metadata UUID + required: true + schema: + type: string + example: 43d7c186-2187-4bcd-8843-41e575a5ef56 + - name: resourceId + in: path + description: The resource identifier (ie. filename) + required: true + schema: + type: string + - name: visibility + in: query + description: The visibility + required: true + schema: + type: string + enum: + - public + - private + example: public + - name: approved + in: query + description: Use approved version or not + required: false + schema: + type: boolean + default: false + example: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Attachment visibility updated. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataResource' + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataResource' + /records/backups/latest: + get: + tags: + - records + summary: Download MEF backup archive + description: The backup contains all metadata not harvested including templates. + operationId: downloadBackup + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + application/zip: + schema: + type: string + format: binary + /records/backups: + put: + tags: + - records + summary: Trigger MEF backup archive + description: The backup contains all metadata not harvested including templates. + operationId: trigger + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return succeed message. + content: + application/json: + schema: + type: string + /records/batchediting/preview: + post: + tags: + - records + summary: Preview edits made by XPath expressions. + operationId: previewBatchEdit + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: diffType + in: query + description: "Return differences with diff, diffhtml or patch" + required: false + schema: + type: string + enum: + - patch + - diff + - diffhtml + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BatchEditParameter' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/xml: + schema: + type: object + "200": + description: Processed records. + content: + application/xml: + schema: + type: object + /records/batchediting: + put: + tags: + - records + summary: Edit a set of records by XPath expressions. This operations applies + the update-fixed-info.xsl transformation for the metadata schema and updates + the change date if the parameter updateDateStamp is set to true. + operationId: batchEdit + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: updateDateStamp + in: query + description: If true updates the DateStamp (or equivalent in standards different + to ISO 19139) field in the metadata with the current timestamp + required: false + schema: + type: boolean + default: false + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BatchEditParameter' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Return a report of what has been done. + content: + application/json: + schema: + $ref: '#/components/schemas/IProcessingReport' + "403": + description: Operation not allowed. User needs to be able to edit the resource. + content: + application/json: + schema: + $ref: '#/components/schemas/IProcessingReport' + /records/{metadataUuid}/editor: + get: + tags: + - records + summary: Edit a record + description: Return HTML form for editing. + operationId: startEditing + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: currTab + in: query + description: Tab + required: false + schema: + type: string + default: simple + - name: withAttributes + in: query + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "200": + description: The editor form. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + post: + tags: + - records + summary: Save edits + description: Save the HTML form content. + operationId: saveEdits + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: tab + in: query + description: Tab + required: false + schema: + type: string + default: simple + - name: withAttributes + in: query + required: false + schema: + type: boolean + default: false + - name: withValidationErrors + in: query + required: false + schema: + type: boolean + default: false + - name: minor + in: query + required: false + schema: + type: boolean + default: false + - name: status + in: query + description: Submit for review directly after save. + required: false + schema: + type: string + default: "1" + - name: commit + in: query + description: Save current edits. + required: false + schema: + type: boolean + default: false + - name: terminate + in: query + description: Save and terminate session. + required: false + schema: + type: boolean + default: false + - name: data + in: query + description: "Record as XML. TODO: rename xml" + required: false + schema: + type: string + default: "" + responses: + default: + description: default response + content: + application/json: {} + "200": + description: The editor form. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + delete: + tags: + - records + summary: Cancel edits + description: Cancel current editing session. + operationId: cancelEdits + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. User needs to be able to edit the resource. + "204": + description: Editing session cancelled. + /records/{metadataUuid}/editor/elements: + put: + tags: + - records + summary: Add element + operationId: addElement_1 + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: ref + in: query + description: Reference of the insertion point. + required: true + schema: + type: string + - name: name + in: query + description: Name of the element to add (with prefix) + required: true + schema: + type: string + - name: child + in: query + description: Use geonet:attribute for attributes or child name. + required: false + schema: + type: string + - name: displayAttributes + in: query + description: Should attributes be shown on the editor snippet? + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Element added. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + delete: + tags: + - records + summary: Delete element + operationId: deleteElement + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: ref + in: query + description: Reference of the element to remove. + required: true + schema: + type: array + items: + type: string + - name: parent + in: query + description: Name of the parent. + required: true + schema: + type: string + - name: displayAttributes + in: query + description: Should attributes be shown on the editor snippet? + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Element removed. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/{metadataUuid}/editor/attributes: + delete: + tags: + - records + summary: Delete attribute + operationId: deleteAttribute + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: ref + in: query + description: Reference of the attribute to remove. + required: true + schema: + type: string + - name: displayAttributes + in: query + description: Should attributes be shown on the editor snippet? + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Attribute removed. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/{metadataUuid}/editor/elements/{direction}: + put: + tags: + - records + summary: Reorder element + operationId: addElement + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: ref + in: query + description: Reference of the element to move. + required: true + schema: + type: string + - name: direction + in: path + description: Direction + required: true + schema: + type: string + enum: + - up + - down + - name: displayAttributes + in: query + description: Should attributes be shown on the editor snippet? + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Element reordered. + "403": + description: Operation not allowed. User needs to be able to edit the resource. + /records/{metadataUuid}/extents.png: + get: + tags: + - records + summary: Get record extents as image + description: | + A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. + Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) + + Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + operationId: getAllRecordExtentAsImage + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: mapsrs + in: query + required: false + schema: + type: string + default: EPSG:4326 + - name: width + in: query + description: (optional) width of the image that is created. Only one of width + and height are permitted + required: false + schema: + type: integer + format: int32 + default: 300 + - name: height + in: query + description: (optional) height of the image that is created. Only one of width + and height are permitted + required: false + schema: + type: integer + format: int32 + - name: background + in: query + description: "(optional) URL for loading a background image for regions or\ + \ a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml).\ + \ A WMS Getmap request is the typical example. The URL must be parameterized\ + \ with the following parameters: minx, maxx, miny, maxy, width, height" + required: false + schema: + type: string + default: settings + - name: fillColor + in: query + description: "(optional) Fill color with format RED,GREEN,BLUE,ALPHA" + required: false + schema: + type: string + default: "0,0,0,50" + - name: strokeColor + in: query + description: "(optional) Stroke color with format RED,GREEN,BLUE,ALPHA" + required: false + schema: + type: string + default: "0,0,0,255" + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + image/png: + schema: + type: array + items: + type: string + format: byte + /records/{metadataUuid}/extents.json: + get: + tags: + - records + summary: Get list of record extents + description: | + A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. + Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) + + Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + operationId: getAllRecordExtentAsJson + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ExtentDto' + /records/{metadataUuid}/extents/{geometryIndex}.png: + get: + tags: + - records + summary: Get one record extent as image + description: | + A rendering of the geometry as a png. If no background is specified the image will be transparent. In getMap the envelope of the geometry is calculated then it is expanded by a factor. That factor is the size of the map. This allows the map to be slightly bigger than the geometry allowing some context to be shown. This parameter allows different factors to be chosen per scale level. + Proportion is the proportion of the world that the geometry covers (bounds of WGS84)/(bounds of geometry in WGS84) + + Named backgrounds allow the background parameter to be a simple key and the complete URL will be looked up from this list of named backgrounds + operationId: getOneRecordExtentAsImage + parameters: + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: geometryIndex + in: path + description: Index of the geometry or bounding box to display. Starts at 1. + required: true + schema: + type: integer + format: int32 + - name: mapsrs + in: query + required: false + schema: + type: string + default: EPSG:4326 + - name: width + in: query + description: (optional) width of the image that is created. Only one of width + and height are permitted + required: false + schema: + type: integer + format: int32 + default: 300 + - name: height + in: query + description: (optional) height of the image that is created. Only one of width + and height are permitted + required: false + schema: + type: integer + format: int32 + - name: background + in: query + description: "(optional) URL for loading a background image for regions or\ + \ a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml).\ + \ A WMS Getmap request is the typical example. The URL must be parameterized\ + \ with the following parameters: minx, maxx, miny, maxy, width, height" + required: false + schema: + type: string + default: settings + - name: fillColor + in: query + description: "(optional) Fill color with format RED,GREEN,BLUE,ALPHA" + required: false + schema: + type: string + default: "0,0,0,50" + - name: strokeColor + in: query + description: "(optional) Stroke color with format RED,GREEN,BLUE,ALPHA" + required: false + schema: + type: string + default: "0,0,0,255" + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + image/png: + schema: + type: array + items: + type: string + format: byte + /formatters/cache: + delete: + tags: + - formatters + summary: Clear formatter cache + description: "Formatters are used to render records in various format (HTML,\ + \ PDF, ...). When a record is rendered a cache is populated for better performance.\ + \ By default the cache is an H2 database with files on the filesystems (See\ + \ /resources/htmlcache/formatter-cache folder)." + operationId: clearFormatterCache + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Administrator can access it. + "204": + description: Cache cleared. + /formatters/{schema}/{formatter}/files: + get: + tags: + - formatters + summary: Get formatter files + operationId: getFormatterFiles + parameters: + - name: formatter + in: path + required: true + schema: + type: string + - name: schema + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /formatters: + get: + tags: + - formatters + summary: Get formatters + operationId: listFormatters + parameters: + - name: id + in: query + required: false + schema: + type: string + - name: uuid + in: query + required: false + schema: + type: string + - name: schema + in: query + required: false + schema: + type: string + default: all + - name: pluginOnly + in: query + required: false + schema: + type: boolean + default: false + - name: publishedOnly + in: query + required: false + schema: + type: boolean + default: true + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/FormatterDataResponse' + post: + tags: + - formatters + summary: Import a XSLT formatter (usually a zip named 'schema-formatter.zip') + operationId: addFormatter + parameters: + - name: file + in: query + required: true + schema: + type: array + items: + type: string + format: binary + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + /formatters/{schema}/{formatter}: + get: + tags: + - formatters + summary: Download a formatter as ZIP + operationId: downloadFormatter + parameters: + - name: formatter + in: path + required: true + schema: + type: string + - name: schema + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + delete: + tags: + - formatters + summary: Delete a formatter + operationId: deleteFormatter + parameters: + - name: formatter + in: path + required: true + schema: + type: string + - name: schema + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "204": + description: No Content + /formatters/{schema}/{formatter}/files/{file}: + get: + tags: + - formatters + summary: Get formatter file content + operationId: getFormatterFileContent + parameters: + - name: formatter + in: path + required: true + schema: + type: string + - name: schema + in: path + required: true + schema: + type: string + - name: file + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + text/plain: + schema: + type: string + post: + tags: + - formatters + summary: Update formatter file + operationId: updateFormatterFile + parameters: + - name: formatter + in: path + required: true + schema: + type: string + - name: schema + in: path + required: true + schema: + type: string + - name: file + in: path + required: true + schema: + type: string + - name: data + in: query + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + /records/{metadataUuid}/formatters/{formatterId}: + get: + tags: + - records + summary: Get a formatted metadata record + operationId: getRecordFormattedBy + parameters: + - name: Accept + in: header + description: Formatter type to use. + required: false + schema: + type: string + default: text/html + - name: formatterId + in: path + required: true + schema: + type: string + - name: metadataUuid + in: path + description: Record UUID. + required: true + schema: + type: string + - name: width + in: query + required: false + schema: + type: string + enum: + - _25 + - _50 + - _75 + - _100 + default: _100 + - name: mdpath + in: query + required: false + schema: + type: string + - name: language + in: query + description: Optional language ISO 3 letters code to override HTTP Accept-language + header. + required: false + schema: + type: string + - name: output + in: query + required: false + schema: + type: string + enum: + - txt + - html + - xml + - json + - jsonld + - pdf + - testpdf + - name: approved + in: query + description: Download the approved version + required: false + schema: + type: boolean + default: true + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /regions: + get: + tags: + - regions + summary: Get list of regions + operationId: getRegions + parameters: + - name: label + in: query + required: false + schema: + type: string + - name: categoryId + in: query + required: false + schema: + type: string + - name: maxRecords + in: query + required: false + schema: + type: integer + format: int32 + default: -1 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of regions. + content: + application/xml: + schema: + $ref: '#/components/schemas/ListRegionsResponse' + application/json: + schema: + $ref: '#/components/schemas/ListRegionsResponse' + /regions/types: + get: + tags: + - regions + summary: Get list of region types + operationId: getRegionTypes + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of region types. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Category' + /regions/geom.png: + get: + tags: + - regions + summary: Get geometry as image + description: A rendering of the geometry as a png. + operationId: getGeomAsImage + parameters: + - name: mapsrs + in: query + required: false + schema: + type: string + default: EPSG:4326 + - name: width + in: query + description: (optional) width of the image that is created. Only one of width + and height are permitted + required: false + schema: + type: integer + format: int32 + default: 300 + - name: height + in: query + description: (optional) height of the image that is created. Only one of width + and height are permitted + required: false + schema: + type: integer + format: int32 + - name: background + in: query + description: "(optional) URL for loading a background image for regions or\ + \ a key that references the namedBackgrounds (configured in config-spring-geonetwork.xml).\ + \ A WMS Getmap request is the typical example. The URL must be parameterized\ + \ with the following parameters: minx, maxx, miny, maxy, width, height" + required: false + schema: + type: string + default: settings + - name: geom + in: query + description: (optional) a wkt or gml encoded geometry. + required: false + schema: + type: string + - name: geomtype + in: query + description: (optional) defines if geom is wkt or gml. Allowed values are + wkt and gml. if not specified the it is assumed the geometry is wkt + required: false + schema: + type: string + default: WKT + - name: geomsrs + in: query + required: false + schema: + type: string + default: EPSG:4326 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + image/png: + schema: + type: array + items: + type: string + format: byte + /registries/crs/{id}: + get: + tags: + - registries + summary: Get CRS + operationId: getCrs + parameters: + - name: id + in: path + description: CRS identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: CRS not found. + content: + application/json: + schema: + $ref: '#/components/schemas/Crs' + application/xml: + schema: + $ref: '#/components/schemas/Crs' + "200": + description: CRS details. + content: + application/json: + schema: + $ref: '#/components/schemas/Crs' + application/xml: + schema: + $ref: '#/components/schemas/Crs' + /registries/crs: + get: + tags: + - registries + summary: Search coordinate reference system (CRS) + description: "Based on GeoTools EPSG database. If phrase query, each words are\ + \ searched separately." + operationId: searchCrs + parameters: + - name: q + in: query + description: Search value + required: false + schema: + type: string + default: "" + - name: type + in: query + description: Type of CRS + required: false + schema: + type: string + enum: + - CoordinateReferenceSystem + - VerticalCRS + - GeographicCRS + - ProjectedCRS + - name: rows + in: query + description: "Number of results. Default is: 100" + required: false + schema: + type: integer + format: int32 + default: 100 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of CRS. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Crs' + /registries/crs/types: + get: + tags: + - registries + summary: Get list of CRS type + operationId: getCrsTypes + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of CRS types. + content: + application/json: + schema: + type: array + items: + type: string + enum: + - CoordinateReferenceSystem + - VerticalCRS + - GeographicCRS + - ProjectedCRS + /registries/actions/entries/collect: + get: + tags: + - registries + summary: Preview directory entries extracted from records + description: Scan one or more records for element matching the XPath provided + and save them as directory entries (ie. subtemplate).

Only records + that the current user can edit are analyzed. + operationId: previewExtractedEntries + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: xpath + in: query + description: XPath of the elements to extract as entry. + required: true + schema: + type: string + example: .//gmd:CI_ResponsibleParty + - name: identifierXpath + in: query + description: XPath of the element identifier. If not defined a random UUID + is generated and analysis will not check for duplicates. + required: false + schema: + type: string + example: '@uuid' + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/xml: + schema: + type: object + put: + tags: + - registries + summary: Extracts directory entries from records + description: Scan one or more records for element matching the XPath provided + and save them as directory entries (ie. subtemplate).

Only records + that the current user can edit are analyzed. + operationId: extractEntries + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: xpath + in: query + description: XPath of the elements to extract as entry. + required: true + schema: + type: string + example: .//gmd:CI_ResponsibleParty + - name: identifierXpath + in: query + description: XPath of the element identifier. If not defined a random UUID + is generated and analysis will not check for duplicates. + required: false + schema: + type: string + example: '@uuid' + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + /registries/actions/entries/synchronize: + get: + tags: + - registries + summary: Preview updated matching entries in records + description: "Scan one or more records for element matching the XPath provided\ + \ and then check if this element is available in the directory. If Found,\ + \ the element from the directory update the element in the record and optionally\ + \ properties are preserved.

The identifier XPath is used to find\ + \ a match. An optional filtercan be added to restrict search to a subset of\ + \ the directory. If no identifier XPaths is provided, the UUID is based on\ + \ the content of the snippet (hash). It is recommended to use an identifier\ + \ for better matching (eg. ISO19139 contact with different roles will not\ + \ match on the automatic UUID mode)." + operationId: previewUpdatedRecordEntries + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: xpath + in: query + description: XPath of the elements to extract as entry. + required: true + schema: + type: string + example: .//gmd:CI_ResponsibleParty + - name: identifierXpath + in: query + description: XPath of the element identifier. If not defined a random UUID + is generated and analysis will not check for duplicates. + required: false + schema: + type: string + example: '@uuid or .//gmd:electronicMailAddress/gco:CharacterString/text()' + - name: propertiesToCopy + in: query + description: List of XPath of properties to copy from record to matching entry. + required: false + schema: + type: array + items: + type: string + example: ./gmd:role/*/@codeListValue + - name: substituteAsXLink + in: query + description: Replace entry by XLink. + required: false + schema: + type: boolean + default: false + example: '@uuid' + - name: fq + in: query + description: Filter query for directory search. + required: false + schema: + type: string + example: groupPublished:IFREMER + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/xml: + schema: + type: object + put: + tags: + - registries + summary: Update matching entries in records + description: "Scan one or more records for element matching the XPath provided\ + \ and then check if this element is available in the directory. If Found,\ + \ the element from the directory update the element in the record and optionally\ + \ properties are preserved.

The identifier XPath is used to find\ + \ a match. An optional filtercan be added to restrict search to a subset of\ + \ the directory. If no identifier XPaths is provided, the UUID is based on\ + \ the content of the snippet (hash). It is recommended to use an identifier\ + \ for better matching (eg. ISO19139 contact with different roles will not\ + \ match on the automatic UUID mode)." + operationId: updateRecordEntries + parameters: + - name: uuids + in: query + description: Record UUIDs. If null current selection is used. + required: false + schema: + type: array + items: + type: string + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + - name: xpath + in: query + description: XPath of the elements to extract as entry. + required: true + schema: + type: string + example: .//gmd:CI_ResponsibleParty + - name: identifierXpath + in: query + description: XPath of the element identifier. If not defined a random UUID + is generated and analysis will not check for duplicates. + required: false + schema: + type: string + example: '@uuid' + - name: propertiesToCopy + in: query + description: List of XPath of properties to copy from record to matching entry. + required: false + schema: + type: array + items: + type: string + example: ./gmd:role/*/@codeListValue + - name: substituteAsXLink + in: query + description: Replace entry by XLink. + required: false + schema: + type: boolean + default: false + - name: fq + in: query + description: Filter query for directory search. + required: false + schema: + type: string + example: groupPublished:IFREMER + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + type: object + /registries/actions/entries/import/spatial: + post: + tags: + - registries + summary: Import spatial directory entries + description: Directory entry (AKA subtemplates) are XML fragments that can be + inserted in metadata records. Use this service to import geographic extent + entries from an ESRI Shapefile format. + operationId: importSpatialEntries + parameters: + - name: uuidAttribute + in: query + description: "Attribute to use for UUID. If none, random UUID are generated." + required: false + schema: + type: string + - name: uuidPattern + in: query + description: "Pattern to build UUID from. Default is '{{uuid}}'." + required: false + schema: + type: string + default: "{{uuid}}" + - name: descriptionAttribute + in: query + description: "Attribute to use for extent description. If none, no extent\ + \ description defined. TODO: Add per language desc ?" + required: false + schema: + type: string + - name: geomProjectionTo + in: query + description: geomProjectionTo + required: false + schema: + type: string + - name: lenient + in: query + description: lenient + required: false + schema: + type: boolean + - name: charset + in: query + description: Attribute table charset + required: false + schema: + type: string + default: "" + - name: onlyBoundingBox + in: query + description: Create only bounding box for each spatial objects. + required: false + schema: + type: boolean + default: true + - name: process + in: query + description: Process + required: false + schema: + type: string + - name: schema + in: query + description: Schema identifier + required: false + schema: + type: string + - name: uuidProcessing + in: query + description: Record identifier processing. + required: false + schema: + type: string + enum: + - GENERATEUUID + - NOTHING + - OVERWRITE + default: NOTHING + - name: group + in: query + description: The group the record is attached to. + required: false + schema: + type: integer + format: int32 + requestBody: + content: + multipart/form-data: + schema: + required: + - file + type: object + properties: + file: + type: string + description: The ZIP file to upload containing the Shapefile. + format: binary + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Directory entries imported. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + "403": + description: Operation not allowed. Only Reviewvers can access it. + content: + application/json: + schema: + $ref: '#/components/schemas/SimpleMetadataProcessingReport' + /registries/entries/{uuid}: + get: + tags: + - registries + summary: Get a directory entry + description: Directory entry (AKA subtemplates) are XML fragments that can be + inserted in metadata records using XLinks. XLinks can be remote or local. + operationId: getEntry + parameters: + - name: uuid + in: path + description: Directory entry UUID. + required: true + schema: + type: string + - name: process + in: query + description: Process + required: false + schema: + type: array + items: + type: string + - name: transformation + in: query + description: Transformation + required: false + schema: + type: string + - name: lang + in: query + description: lang + required: false + schema: + type: array + items: + type: string + - name: schema + in: query + description: schema + required: false + schema: + type: string + default: iso19139 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Directory entry. + content: {} + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: {} + /registries/vocabularies/keyword: + get: + tags: + - registries + summary: Get keyword by id + description: Retrieve XML representation of keyword(s) from same thesaurususing + different transformations. 'to-iso19139-keyword' is the default and return + an ISO19139 snippet.'to-iso19139-keyword-as-xlink' return an XLinked element. + Custom transformation can be create on a per schema basis. + operationId: getKeywordById_1 + parameters: + - name: id + in: query + description: Keyword identifier or list of keyword identifiers comma separated. + required: true + schema: + type: string + - name: thesaurus + in: query + description: Thesaurus to look info for the keyword(s). + required: true + schema: + type: string + - name: lang + in: query + description: Languages. + required: false + schema: + type: array + items: + type: string + - name: keywordOnly + in: query + description: "Only print the keyword, no thesaurus information." + required: false + schema: + type: boolean + default: false + - name: transformation + in: query + description: "XSL template to use (ISO19139 keyword by default, see convert.xsl)." + required: false + schema: + type: string + - name: langMap + in: query + description: "langMap, that converts the values in the 'lang' parameter to\ + \ how they will be actually represented in the record. {'fre':'fra'} or\ + \ {'fre':'fr'}. Missing/empty means to convert to iso 2 letter." + required: false + schema: + type: string + - name: Accept + in: header + required: false + schema: + type: string + default: application/xml + responses: + default: + description: default response + content: + application/json: {} + "200": + description: XML snippet with requested keywords. + content: + application/xml: + schema: + type: object + application/json: + schema: + type: object + post: + tags: + - registries + summary: Get keyword by id + description: Retrieve XML representation of keyword(s) from same thesaurususing + different transformations. 'to-iso19139-keyword' is the default and return + an ISO19139 snippet.'to-iso19139-keyword-as-xlink' return an XLinked element. + Custom transformation can be create on a per schema basis. + operationId: getKeywordById + parameters: + - name: id + in: query + description: Keyword identifier or list of keyword identifiers comma separated. + required: true + schema: + type: string + - name: thesaurus + in: query + description: Thesaurus to look info for the keyword(s). + required: true + schema: + type: string + - name: lang + in: query + description: Languages. + required: false + schema: + type: array + items: + type: string + - name: keywordOnly + in: query + description: "Only print the keyword, no thesaurus information." + required: false + schema: + type: boolean + default: false + - name: transformation + in: query + description: "XSL template to use (ISO19139 keyword by default, see convert.xsl)." + required: false + schema: + type: string + - name: langMap + in: query + description: "langMap, that converts the values in the 'lang' parameter to\ + \ how they will be actually represented in the record. {'fre':'fra'} or\ + \ {'fre':'fr'}. Missing/empty means to convert to iso 2 letter." + required: false + schema: + type: string + - name: Accept + in: header + required: false + schema: + type: string + default: application/xml + responses: + default: + description: default response + content: + application/json: {} + "200": + description: XML snippet with requested keywords. + content: + application/xml: + schema: + type: object + application/json: + schema: + type: object + /registries/vocabularies/{thesaurus}: + get: + tags: + - registries + summary: Download a thesaurus by name + description: Download the thesaurus in SKOS format. + operationId: getThesaurus + parameters: + - name: thesaurus + in: path + description: Thesaurus to download. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "200": + description: Thesaurus in SKOS format. + delete: + tags: + - registries + summary: Delete a thesaurus by name + description: Delete a thesaurus. + operationId: deleteThesaurus + parameters: + - name: thesaurus + in: path + description: Thesaurus to delete. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only UserAdmins can access it. + "200": + description: Thesaurus deleted. + /registries/vocabularies: + put: + tags: + - registries + summary: Uploads a new thesaurus from URL or Registry + description: Uploads a new thesaurus. + operationId: uploadThesaurusFromUrl + parameters: + - name: url + in: query + description: "If set, try to download from the Internet." + required: false + schema: + type: string + - name: registryUrl + in: query + description: "If set, try to download from a registry." + required: false + schema: + type: string + - name: registryType + in: query + description: "If using registryUrl, then define the type of registry. If not\ + \ set, default mode is re3gistry." + required: false + schema: + type: string + enum: + - re3gistry + - ldRegistry + - name: registryLanguage + in: query + description: Languages to download from a registry. + required: false + schema: + type: array + items: + type: string + - name: type + in: query + description: Local or external (default). + required: false + schema: + type: string + enum: + - external + - local + default: external + - name: dir + in: query + description: "Type of thesaurus, usually one of the ISO thesaurus type codelist\ + \ value. Default is theme." + required: false + schema: + type: string + default: theme + - name: stylesheet + in: query + description: XSL to be use to convert the thesaurus before load. Default _none_. + required: false + schema: + type: string + default: _none_ + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Thesaurus uploaded in SKOS format. + content: + text/xml: + schema: + type: string + "403": + description: Operation not allowed. Only Reviewvers can access it. + content: + text/xml: + schema: + type: string + post: + tags: + - registries + summary: Uploads a new thesaurus from a file + description: Uploads a new thesaurus. + operationId: uploadThesaurus + parameters: + - name: type + in: query + description: Local or external (default). + required: false + schema: + type: string + enum: + - external + - local + default: external + - name: dir + in: query + description: "Type of thesaurus, usually one of the ISO thesaurus type codelist\ + \ value. Default is theme." + required: false + schema: + type: string + default: theme + - name: stylesheet + in: query + description: XSL to be use to convert the thesaurus before load. Default _none_. + required: false + schema: + type: string + default: _none_ + requestBody: + content: + application/json: + schema: + type: object + properties: + file: + type: string + description: "If set, do a file upload." + format: binary + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Thesaurus uploaded in SKOS format. + content: + text/xml: + schema: + type: string + "403": + description: Operation not allowed. Only Reviewvers can access it. + content: + text/xml: + schema: + type: string + /registries/vocabularies/import/csv: + post: + tags: + - registries + summary: Uploads a CSV file and convert it to SKOS format + description: "CSV file MUST contains columns at least for concept id and label.\ + \ For multilingual thesaurus, consider using columns like label, label_fre,\ + \ label_ita with languages parameter set to [en, fr, it]. Default language\ + \ value is used if translations are empty. The thesaurus filename will be\ + \ the filename of the CSV file (with .rdf extension). It is recommended to\ + \ set the thesaurus title and namespace URL even if default values will be\ + \ used based on the filename. Thesaurus dates are set to the date of import." + operationId: importCsvAsThesaurus + parameters: + - name: type + in: query + description: Local or external (default). + required: false + schema: + type: string + enum: + - external + - local + default: external + - name: dir + in: query + description: "Type of thesaurus, usually one of the ISO thesaurus type codelist\ + \ value. Default is theme." + required: false + schema: + type: string + default: theme + - name: encoding + in: query + description: Encoding. Default is UTF-8. + required: false + schema: + type: string + default: UTF-8 + - name: thesaurusNs + in: query + description: Thesaurus namespace. Default is filename. + required: false + schema: + type: string + default: "" + - name: languages + in: query + description: Thesaurus languages + required: false + schema: + type: array + items: + type: string + default: + - en + - name: thesaurusTitle + in: query + description: Thesaurus title. Default is filename. + required: false + schema: + type: string + default: "" + - name: conceptIdColumn + in: query + description: Column name for concept id. Default is id. + required: false + schema: + type: string + default: id + - name: conceptLabelColumn + in: query + description: Column name for concept label. Default is label. + required: false + schema: + type: string + default: label + - name: conceptDescriptionColumn + in: query + description: Column name for concept description. Default is description. + required: false + schema: + type: string + default: "" + - name: conceptBroaderIdColumn + in: query + description: Column name for broader concept id. Default is broader. + required: false + schema: + type: string + default: broader + - name: conceptNarrowerIdColumn + in: query + description: Column name for narrower concept id. Default is narrower. + required: false + schema: + type: string + default: narrower + - name: conceptRelatedIdColumn + in: query + description: Column name for related concept id. Default is related. + required: false + schema: + type: string + default: related + - name: conceptLinkSeparator + in: query + description: Separator used when multiple broader/narrower/related ids are + in the same column. Default is '|'. + required: false + schema: + type: string + default: \| + - name: importAsThesaurus + in: query + description: Import CSV file as thesaurus if true (detault) or return it in SKOS + format. + required: false + schema: + type: boolean + default: true + requestBody: + content: + application/json: + schema: + type: object + properties: + file: + type: string + description: "If set, do a file upload." + format: binary + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Thesaurus converted and imported in SKOS format. + "200": + description: Thesaurus converted and returned in response in SKOS format. + "403": + description: Operation not allowed. Only Reviewvers can access it. + /registries/vocabularies/search: + get: + tags: + - registries + summary: Search keywords + operationId: searchKeywords + parameters: + - name: q + in: query + description: Query + required: false + schema: + type: string + - name: lang + in: query + description: Query in that language + required: false + schema: + type: string + default: eng + - name: rows + in: query + description: Number of rows + required: false + schema: + type: integer + format: int32 + default: 1000 + - name: start + in: query + description: Start from + required: false + schema: + type: integer + format: int32 + default: 0 + - name: pLang + in: query + description: Return keyword information in one or more languages + required: false + schema: + type: array + items: + type: string + - name: thesaurus + in: query + description: Thesaurus identifier + required: false + schema: + type: array + items: + type: string + - name: type + in: query + description: Type of search + required: false + schema: + type: string + enum: + - STARTS_WITH + - CONTAINS + - MATCH + default: CONTAINS + - name: uri + in: query + description: URI query + required: false + schema: + type: string + - name: sort + in: query + description: Sort by + required: false + schema: + type: string + default: DESC + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + application/xml: + schema: + type: object + /related: + get: + tags: + - related + summary: Get record related resources for all requested metadatas + description: "Retrieve related services, datasets, onlines, thumbnails, sources,\ + \ ... to all requested records.
More\ + \ info" + operationId: getAssociatedResourcesForRecords + parameters: + - name: type + in: query + description: "Type of related resource. If none, all resources are returned." + required: false + schema: + type: array + items: + type: string + enum: + - children + - parent + - brothersAndSisters + - siblings + - associated + - services + - datasets + - fcats + - hasfeaturecats + - sources + - hassources + - related + - onlines + - thumbnails + default: [] + - name: uuid + in: query + description: Uuids of the metadatas you request the relations from. + required: false + schema: + type: array + items: + type: string + default: [] + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Return the associated resources. + content: + application/xml: + schema: + type: object + additionalProperties: + $ref: '#/components/schemas/RelatedResponse' + application/json: + schema: + type: object + additionalProperties: + $ref: '#/components/schemas/RelatedResponse' + "403": + description: Operation not allowed. User needs to be able to view the resource. + content: + application/xml: + schema: + type: object + additionalProperties: + $ref: '#/components/schemas/RelatedResponse' + application/json: + schema: + type: object + additionalProperties: + $ref: '#/components/schemas/RelatedResponse' + /reports/users: + get: + tags: + - records + summary: Get the list of users "active" during a time period. + operationId: getActiveUsers + parameters: + - name: dateFrom + in: query + description: From date of users login date + required: true + schema: + type: string + - name: dateTo + in: query + description: To date of users login date + required: true + schema: + type: string + - name: groups + in: query + description: Group(s) for the users + required: false + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of users "active" during a time period. + /reports/datadownloads: + get: + tags: + - records + summary: Get list of metadata file downloads + operationId: getReportDataDownloads + parameters: + - name: dateFrom + in: query + description: From date of the metadata downloads + required: true + schema: + type: string + - name: dateTo + in: query + description: To date of the metadata downloads + required: true + schema: + type: string + - name: groups + in: query + description: Metadata group(s) + required: false + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of metadata file downloads. + /reports/datauploads: + get: + tags: + - records + summary: Get uploaded files to metadata records during a period. + operationId: getReportDataUploads + parameters: + - name: dateFrom + in: query + description: From date of the metadata uploads + required: true + schema: + type: string + - name: dateTo + in: query + description: To date of the metadata uploads + required: true + schema: + type: string + - name: groups + in: query + description: Metadata group(s) + required: false + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /reports/metadatainternal: + get: + tags: + - records + summary: Get the metadata not published during a period. + operationId: getReportInternalMetadata + parameters: + - name: dateFrom + in: query + description: From date of metadata change date + required: true + schema: + type: string + - name: dateTo + in: query + description: To date of metadata change date + required: true + schema: + type: string + - name: groups + in: query + description: Metadata group(s) + required: false + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Metadata not published during a period. + /reports/metadataupdated: + get: + tags: + - records + summary: Get the updated metadata during a period. + operationId: getReportUpdatedMetadata + parameters: + - name: dateFrom + in: query + description: From date of metadata change date + required: true + schema: + type: string + - name: dateTo + in: query + description: To date of metadata change date + required: true + schema: + type: string + - name: groups + in: query + description: Metadata group(s) + required: false + schema: + type: array + items: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Updated metadata during a period. + /selections/{bucket}: + get: + tags: + - selections + summary: Get current selection + operationId: get + parameters: + - name: bucket + in: path + description: Bucket name + required: true + schema: + type: string + example: metadata + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + uniqueItems: true + type: array + items: + type: string + put: + tags: + - selections + summary: Select one or more items + operationId: add + parameters: + - name: bucket + in: path + description: Bucket name + required: true + schema: + type: string + example: metadata + - name: uuid + in: query + description: "One or more record UUIDs. If null, select all in current search\ + \ if bucket name is 'metadata' (TODO: remove this limitation?)." + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: integer + format: int32 + delete: + tags: + - selections + summary: Clear selection or remove items + operationId: clear + parameters: + - name: bucket + in: path + description: Selection bucket name + required: true + schema: + type: string + example: metadata + - name: uuid + in: query + description: One or more record UUIDs + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: integer + format: int32 + /userselections: + get: + tags: + - userselections + summary: Get list of user selection sets + operationId: getSelectionList + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Selection' + put: + tags: + - userselections + summary: Add a user selection set + operationId: createPersistentSelectionType + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Selection' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: string + "201": + description: Selection created. + content: + application/json: + schema: + type: string + "400": + description: A selection with that id or name already exist. + content: + application/json: + schema: + type: string + /userselections/{selectionIdentifier}: + put: + tags: + - userselections + summary: Update a user selection set + operationId: updateUserSelection + parameters: + - name: selectionIdentifier + in: path + description: Selection identifier + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Selection' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "404": + description: Selection not found. + content: + '*/*': + schema: + type: string + "204": + description: Selection updated. + content: + '*/*': + schema: + type: string + delete: + tags: + - userselections + summary: Remove a user selection set + operationId: deleteUserSelection + parameters: + - name: selectionIdentifier + in: path + description: Selection identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "404": + description: Selection not found. + content: + '*/*': + schema: + type: string + "204": + description: Selection removed. + content: + '*/*': + schema: + type: string + /userselections/{selectionIdentifier}/{userIdentifier}: + get: + tags: + - userselections + summary: Get record in a user selection set + operationId: getSelectionRecords + parameters: + - name: selectionIdentifier + in: path + description: Selection identifier + required: true + schema: + type: integer + format: int32 + - name: userIdentifier + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + type: string + put: + tags: + - userselections + summary: Add items to a user selection set + operationId: addToUserSelection + parameters: + - name: selectionIdentifier + in: path + description: Selection identifier + required: true + schema: + type: integer + format: int32 + - name: userIdentifier + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: uuid + in: query + description: One or more record UUIDs. + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: string + "404": + description: Selection or user or at least one UUID not found. + content: + application/json: + schema: + type: string + "201": + description: Records added to selection set. + content: + application/json: + schema: + type: string + delete: + tags: + - userselections + summary: Remove items to a user selection set + operationId: deleteFromUserSelection + parameters: + - name: selectionIdentifier + in: path + description: Selection identifier + required: true + schema: + type: integer + format: int32 + - name: userIdentifier + in: path + description: User identifier + required: true + schema: + type: integer + format: int32 + - name: uuid + in: query + description: "One or more record UUIDs. If null, remove all." + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: string + "204": + description: Items removed from a set. + content: + application/json: + schema: + type: string + "404": + description: Selection or user not found. + content: + application/json: + schema: + type: string + /site/logging/activity: + get: + tags: + - site + summary: Get last activity + operationId: getLastActivity + parameters: + - name: lines + in: query + description: Number of lines to return + required: false + schema: + type: integer + format: int32 + default: 2000 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + text/plain: + schema: + type: string + /site/logging/activity/zip: + get: + tags: + - site + summary: Get last activity in a ZIP + operationId: getLastActivityInAZip + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /site/logging: + get: + tags: + - site + summary: Get log files + operationId: getLogFiles + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/LogFileResponse' + /logos: + get: + tags: + - logos + summary: Get all logos + description: "Logos are used for the catalog, the groups logos, and harvester\ + \ icons. Logos are stored in the data directory in /resources/images/harvesting.
\ + \ Records are attached to a source. A source can be the local catalog or a\ + \ harvester node. When a source is created, its logo is located in the images/logos\ + \ folder with the source UUID as filename. For some sources the logo can be\ + \ automatically retrieved (eg. when harvesting GeoNetwork catalogs). For others,\ + \ the logo is usually manually defined when configuring the harvester." + operationId: getLogos + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + uniqueItems: true + type: array + items: + type: string + post: + tags: + - logos + summary: Add a logo + operationId: addLogo + parameters: + - name: file + in: query + description: The logo image to upload + required: true + schema: + type: array + items: + type: string + format: binary + - name: overwrite + in: query + description: Overwrite if exists + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + application/json: + schema: + type: string + "201": + description: Logo added. + content: + application/json: + schema: + type: string + /logos/{file}: + delete: + tags: + - logos + summary: Remove a logo + operationId: deleteLogo + parameters: + - name: file + in: path + description: The logo filename to delete + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "403": + description: Operation not allowed. Only UserAdmins can access it. + "204": + description: Logo removed. + /site/logo: + put: + tags: + - site + summary: Set catalog logo + description: "Logos are stored in the data directory resources/images/harvesting\ + \ as PNG or GIF images. When a logo is assigned to the catalog, a new image\ + \ is created in images/logos/.png." + operationId: setLogo + parameters: + - name: file + in: query + description: Logo to use for the catalog + required: true + schema: + type: string + - name: asFavicon + in: query + description: Create favicon too + required: false + schema: + type: boolean + default: false + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + "204": + description: Logo set. + /site/indexing: + get: + tags: + - site + summary: Is indexing? + operationId: isIndexing + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: boolean + /site/info/isCasEnabled: + get: + tags: + - site + summary: Is CAS enabled? + operationId: isCasEnabled + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: boolean + /site/settings: + get: + tags: + - site + summary: Get settings + description: "Return public settings for anonymous users, internals are allowed\ + \ for authenticated." + operationId: getSettingsSet + parameters: + - name: set + in: query + description: Setting set. A common set of settings to retrieve. + required: false + schema: + type: array + items: + type: string + enum: + - INSPIRE + - CSW + - HARVESTER + - USER_GROUP_ONLY + - AUTH + - READ_ONLY + - INDEX + - SYSTEMINFO + - STAGING_PROFILE + - TYPE + - name: key + in: query + description: Setting key + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Settings. + content: + application/json: + schema: + $ref: '#/components/schemas/SettingsListResponse' + post: + tags: + - site + summary: Save settings + operationId: saveSettings + parameters: + - name: allRequestParams + in: query + required: true + schema: + type: object + additionalProperties: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Administrators can access it. + "204": + description: Settings saved. + /site/info/build: + get: + tags: + - site + summary: Get build details + description: To know when and how this version of the application was built. + operationId: getSystemInfo + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Build info. + content: + application/json: + schema: + $ref: '#/components/schemas/SystemInfo' + /site/settings/details: + get: + tags: + - site + summary: Get settings with details + description: Provides also setting properties. + operationId: getSettingsDetails + parameters: + - name: set + in: query + description: Setting set. A common set of settings to retrieve. + required: false + schema: + type: array + items: + type: string + enum: + - INSPIRE + - CSW + - HARVESTER + - USER_GROUP_ONLY + - AUTH + - READ_ONLY + - INDEX + - SYSTEMINFO + - STAGING_PROFILE + - TYPE + - name: key + in: query + description: Setting key + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Settings with details. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Setting' + /site/info: + get: + tags: + - site + summary: Get site informations + operationId: getInformation + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Site information. + content: + application/json: + schema: + $ref: '#/components/schemas/SiteInformation' + /site/info/staging/{profile}: + put: + tags: + - site + summary: Update staging profile + description: "TODO: Needs doc" + operationId: updateStagingProfile + parameters: + - name: profile + in: path + required: true + schema: + type: string + enum: + - testing + - development + - production + responses: + default: + description: default response + content: + application/json: {} + "204": + description: Staging profile saved. + "403": + description: Operation not allowed. Only Administrators can access it. + /site/index/commit: + get: + tags: + - site + summary: Index commit + operationId: indexCommit + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + put: + tags: + - site + summary: Force to commit pending documents in index. + description: May be used when indexing task is hanging. + operationId: commitIndexChanges + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Changes committed. + /site/index/status: + get: + tags: + - site + summary: Index status + operationId: indexStatus + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Status' + /site/index/synchronized: + get: + tags: + - site + summary: Index synchronized with database + operationId: indexAndDbSynchronizationStatus + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: object + /site/info/transforms: + get: + tags: + - site + summary: Get XSL tranformations available + description: XSL transformations may be applied while importing or harvesting + records. + operationId: getXslTransformations + responses: + default: + description: default response + content: + application/json: {} + "200": + description: XSLT available. + content: + application/json: + schema: + type: array + items: + type: string + /site: + get: + tags: + - site + summary: Get site (or portal) description + operationId: getSiteOrPortalDescription + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Site description. + content: + application/json: + schema: + $ref: '#/components/schemas/SettingsListResponse' + /site/index: + put: + tags: + - site + summary: Index + operationId: index_1 + parameters: + - name: reset + in: query + description: Drop and recreate index + required: false + schema: + type: boolean + default: true + - name: asynchronous + in: query + description: Asynchronous mode (only on all records. ie. no selection bucket) + required: false + schema: + type: boolean + default: false + - name: havingXlinkOnly + in: query + description: Records having only XLinks + required: false + schema: + type: boolean + default: false + - name: indices + in: query + description: Index. By default only remove record index. + required: false + schema: + type: array + items: + type: string + default: + - records + - name: bucket + in: query + description: Selection bucket name + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /site/info/readonly: + get: + tags: + - site + summary: Is in read-only mode? + operationId: isReadOnly + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: boolean + /robots.txt: + get: + tags: + - site + summary: robots.txt + operationId: getRobotsText + responses: + default: + description: default response + content: + application/json: {} + "200": + description: robots.txt file for SEO. + content: + text/plain: + schema: + type: string + /sitemap: + get: + tags: + - site + summary: Get sitemap + operationId: getSitemap + parameters: + - name: format + in: query + description: Format (xml or html). + required: false + schema: + type: string + default: html + - name: doc + in: query + description: page. + required: false + schema: + type: integer + format: int32 + default: 0 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Site map. + content: {} + /tools/ogc/sld/{id}.{extension}: + get: + tags: + - tools + summary: Download a SLD + operationId: downloadSLD + parameters: + - name: id + in: path + description: The SLD identifier + required: true + schema: + type: integer + format: int32 + - name: extension + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /tools/ogc/sld: + get: + tags: + - tools + summary: Get the list of SLD available + operationId: getSLD + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + type: string + post: + tags: + - tools + summary: Generate a SLD with a new filter + description: "Get the currend SLD for the requested layers, add new filters\ + \ in, save the SLD and return the new SLD URL." + operationId: buildSLD + parameters: + - name: url + in: query + description: The WMS server URL + required: true + schema: + type: string + - name: layers + in: query + description: The layers + required: true + schema: + type: string + - name: filters + in: query + description: The filters in JSON + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + text/plain: + schema: + type: string + delete: + tags: + - tools + summary: Remove all SLD files + description: Clean all SLD generated previously + operationId: deteleSLD + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /sources: + get: + tags: + - sources + summary: Get all sources + description: "Sources are the local catalogue, subportal, external catalogue\ + \ (when importing MEF files) or harvesters." + operationId: getSubPortals_1 + parameters: + - name: group + in: query + description: Group owner of the source (only applies to subportal). + required: false + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of source catalogues. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Source' + put: + tags: + - sources + summary: Add a source + operationId: addSource + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Source' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Source created. + content: + text/plain: + schema: + type: string + "403": + description: Operation not allowed. Only Administrators can access it. + content: + text/plain: + schema: + type: string + /sources/{type}: + get: + tags: + - sources + summary: Get all sources by type + description: "Sources are the local catalogue, subportal, external catalogue\ + \ (when importing MEF files) or harvesters." + operationId: getSourcesByType + parameters: + - name: type + in: path + required: true + schema: + type: string + enum: + - portal + - subportal + - externalportal + - harvester + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Source' + /sources/{sourceIdentifier}: + put: + tags: + - sources + summary: Update a source + operationId: updateSource + parameters: + - name: sourceIdentifier + in: path + description: Source identifier + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Source' + required: true + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Source not found. + content: + '*/*': + schema: + type: string + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "204": + description: Source updated. + content: + '*/*': + schema: + type: string + delete: + tags: + - sources + summary: Remove a source + operationId: deleteSource + parameters: + - name: sourceIdentifier + in: path + description: Source identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Administrators can access it. + content: + '*/*': + schema: + type: string + "201": + description: Source deleted. + content: + '*/*': + schema: + type: string + /standards: + get: + tags: + - standards + summary: Get standards + operationId: getStandardConfigurations + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of standards. + content: {} + /standards/{schema}/codelists: + get: + tags: + - standards + summary: Get multiple codelist translations + description: All translations are combined in the same object. No distinction + by codelist. This is useful if you need lots of codelists terms to be loaded. + operationId: getCodelistsTranslations + parameters: + - name: schema + in: path + description: Schema identifier + required: true + schema: + type: string + example: iso19139 + - name: codelist + in: query + description: Codelist element name or alias + required: true + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: string + /standards/{schema}/codelists/{codelist}: + get: + tags: + - standards + summary: Get codelist translations + operationId: getSchemaTranslations + parameters: + - name: schema + in: path + description: Schema identifier + required: true + schema: + type: string + example: iso19139 + - name: codelist + in: path + description: Codelist element name or alias + required: true + schema: + type: string + - name: parent + in: query + required: false + schema: + type: string + - name: displayIf + in: query + required: false + schema: + type: string + - name: xpath + in: query + required: false + schema: + type: string + - name: isoType + in: query + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: string + /standards/{schema}/codelists/{codelist}/details: + get: + tags: + - standards + summary: Get codelist details + operationId: getSchemaCodelistsWithDetails + parameters: + - name: schema + in: path + description: Schema identifier + required: true + schema: + type: string + example: iso19139 + - name: codelist + in: path + description: Codelist element name or alias + required: true + schema: + type: string + - name: parent + in: query + description: Parent name with namespace which may indicate a more precise + label as defined in context attribute. + required: false + schema: + type: string + - name: displayIf + in: query + description: Display if condition as defined in the codelist.xml file. Allows + to select a more precise codelist when more than one is defined for same + name. + required: false + schema: + type: string + - name: xpath + in: query + description: XPath of the element to target which may indicate a more precise + label as defined in context attribute. + required: false + schema: + type: string + - name: isoType + in: query + description: "ISO type of the element to target which may indicate a more\ + \ precise label as defined in context attribute. (Same as context. TODO:\ + \ Deprecate ?)" + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Codelist' + application/xml: + schema: + $ref: '#/components/schemas/Codelist' + /standards/{schema}/descriptors/{element}/details: + get: + tags: + - standards + summary: Get descriptor details + operationId: getElementDetails + parameters: + - name: schema + in: path + description: Schema identifier + required: true + schema: + type: string + example: iso19139 + - name: element + in: path + description: Descriptor name + required: true + schema: + type: string + - name: parent + in: query + required: false + schema: + type: string + - name: displayIf + in: query + required: false + schema: + type: string + - name: xpath + in: query + required: false + schema: + type: string + - name: isoType + in: query + required: false + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Element' + application/xml: + schema: + $ref: '#/components/schemas/Element' + /standards/{schema}/editor/associatedpanel/config/{name}.json: + get: + tags: + - standards + summary: Get editor associated resources panel configuration + operationId: getEditorAssociatedPanelConfiguration + parameters: + - name: schema + in: path + description: Schema identifier + required: true + schema: + type: string + example: iso19139 + - name: name + in: path + description: Configuration identifier + required: true + schema: + type: string + example: default + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /standards/{schema}/batchconfiguration: + get: + tags: + - standards + summary: Get batch editor configuration for a standard + operationId: getConfiguration + parameters: + - name: schema + in: path + description: Schema identifier + required: true + schema: + type: string + example: iso19139 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + $ref: '#/components/schemas/BatchEditing' + /standards/batchconfiguration: + get: + tags: + - standards + summary: Get batch editor configuration for standards + operationId: getConfigurations + parameters: + - name: schema + in: query + description: Schema identifiers + required: false + schema: + type: array + items: + type: string + example: iso19139 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Batch editor configuration. + content: + application/json: + schema: + type: object + additionalProperties: + $ref: '#/components/schemas/BatchEditing' + /standards/reload: + get: + tags: + - standards + summary: Reload standards + operationId: reloadSchema + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Standards reloaded. + /status: + get: + tags: + - status + summary: Get status + operationId: getStatusList + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/StatusValue' + delete: + tags: + - status + summary: Delete all record history and status + operationId: deleteAllHistoryAndStatus + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only Administrators can access it. + "204": + description: Status removed. + /status/{type}: + get: + tags: + - status + summary: Get status by type + operationId: getStatusByType + parameters: + - name: type + in: path + description: Type + required: true + schema: + type: string + enum: + - workflow + - task + - event + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/StatusValue' + /i18n/db: + get: + tags: + - tools + summary: List translations for database description table + operationId: getTranslations + parameters: + - name: type + in: query + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: string + /i18n/db/translations: + get: + tags: + - tools + summary: List database translations (used to overrides client application translations). + operationId: getDbTranslations + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: "{ < * >: string }" + example: + translationKey1: Translated Key One + translationKey2: Translated Key Two + translationKey3: Translated Key Two + put: + tags: + - tools + summary: Add or update all database translations. + operationId: addTranslations + parameters: + - name: replace + in: query + required: false + schema: + type: boolean + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Translations' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + type: string + delete: + tags: + - tools + summary: Remove all database translations. + operationId: removeAllTranslations + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + /i18n/db/custom: + get: + tags: + - tools + summary: List custom user translations + operationId: getCustomTranslations + parameters: + - name: type + in: query + required: false + schema: + type: array + items: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Translations' + /i18n/db/translations/{key}: + put: + tags: + - tools + summary: Add or update database translations for a key. + description: Database translations can be used to customize labels in the UI + for different languages. + operationId: addTranslationsFor + parameters: + - name: key + in: path + description: Untranslated key for which translations are provided. + required: true + schema: + type: string + - name: replace + in: query + description: Set to `true` to erase all existing translations for that key + required: false + schema: + type: boolean + requestBody: + description: An object where keys are valid 3-letter language codes (e.g. + `eng` or `fre`) and values are custom translations for the corresponding + language. + content: + application/json: + schema: + type: object + additionalProperties: + type: string + example: + eng: my translation + ger: meine Übersetzung + fre: ma traduction + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + type: string + delete: + tags: + - tools + summary: Delete database translations. + description: Delete custom translations stored in the database. + operationId: deleteTranslations + parameters: + - name: key + in: path + description: Untranslated key for which all translations will be deleted. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /i18n/packages: + get: + tags: + - tools + summary: Get list of translation packages. + operationId: getTranslationsPackage + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: array + items: + type: string + /i18n/packages/{pack}: + get: + tags: + - tools + summary: Get a translation package. + operationId: getTranslationsPackage_1 + parameters: + - name: pack + in: path + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: object + additionalProperties: + type: string + /i18n/cache: + delete: + tags: + - tools + summary: Clean translation packages cache. + operationId: cleanTranslationsPackagesCache + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /tools/mail/test: + get: + tags: + - tools + summary: Test mail configuration + description: Send an email to the catalog feedback email. + operationId: testMailConfiguration + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + text/plain: + schema: + type: string + /tools/migration/steps/{stepName}: + put: + tags: + - tools + summary: Call a migration step + operationId: callStep + parameters: + - name: stepName + in: path + description: Class name to execute corresponding to a migration step. See + DatabaseMigrationTask. + required: true + schema: + type: string + example: org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigration + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + text/plain: + schema: + type: string + /ui: + get: + tags: + - ui + summary: Get UI configuration + operationId: getUiConfigurations + responses: + default: + description: default response + content: + application/json: {} + "200": + description: List of configuration. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UiSetting' + put: + tags: + - ui + summary: Create a UI configuration + operationId: putUiConfiguration + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UiSetting' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + text/plain: + schema: + type: string + "201": + description: UI configuration created. Return the new UI configuration identifier. + content: + text/plain: + schema: + type: string + /ui/{uiIdentifier}: + get: + tags: + - ui + summary: Get a UI configuration + operationId: getUiConfiguration + parameters: + - name: uiIdentifier + in: path + description: UI identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: UI configuration. + content: + application/json: + schema: + $ref: '#/components/schemas/UiSetting' + put: + tags: + - ui + summary: Update a UI configuration + operationId: updateUiConfiguration + parameters: + - name: uiIdentifier + in: path + description: UI configuration identifier + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UiSetting' + required: true + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "204": + description: UI configuration updated. + content: + '*/*': + schema: + type: string + delete: + tags: + - ui + summary: Remove a UI Configuration + operationId: deleteUiConfiguration + parameters: + - name: uiIdentifier + in: path + description: UI configuration identifier + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + "204": + description: UI Configuration removed. + content: + '*/*': + schema: + type: string + "404": + description: UI Configuration not found. + content: + '*/*': + schema: + type: string + /userfeedback/ratingcriteria: + get: + tags: + - userfeedback + summary: Get list of rating criteria + operationId: getRatingCriteria + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RatingCriteria' + /userfeedback/{uuid}: + get: + tags: + - userfeedback + summary: Finds a specific user feedback + operationId: getUserComment + parameters: + - name: uuid + in: path + description: User feedback UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserFeedbackDTO' + delete: + tags: + - userfeedback + summary: Removes a user feedback + description: Removes a user feedback + operationId: deleteUserFeedback + parameters: + - name: uuid + in: path + description: User feedback UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "204": + description: User feedback removed. + content: + application/json: + schema: + type: string + "403": + description: Operation not allowed. Only Reviewvers can access it. + content: + application/json: + schema: + type: string + /records/{metadataUuid}/userfeedbackrating: + get: + tags: + - userfeedback + summary: Provides an average rating for a metadata record + operationId: getMetadataRating + parameters: + - name: metadataUuid + in: path + description: Metadata record UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/RatingAverage' + /records/{metadataUuid}/userfeedback: + get: + tags: + - userfeedback + summary: 'Finds a list of user feedback for a specific records. ' + description: ' This list will include also the draft user feedback if the client + is logged as reviewer.' + operationId: getUserCommentsOnARecord + parameters: + - name: metadataUuid + in: path + description: Metadata record UUID. + required: true + schema: + type: string + - name: size + in: query + description: Maximum number of feedback to return. + required: false + schema: + type: integer + format: int32 + default: -1 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserFeedbackDTO' + /userfeedback: + get: + tags: + - userfeedback + summary: 'Finds a list of user feedback records. ' + description: ' This list will include also the draft user feedback if the client + is logged as reviewer.' + operationId: getUserComments + parameters: + - name: metadataUuid + in: query + description: Metadata record UUID. + required: false + schema: + type: string + default: "" + - name: size + in: query + description: Maximum number of feedback to return. + required: false + schema: + type: integer + format: int32 + default: -1 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserFeedbackDTO' + post: + tags: + - userfeedback + summary: Creates a user feedback + description: Creates a user feedback in draft status if the user is not logged + in. + operationId: newUserFeedback + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserFeedbackDTO' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + type: string + /records/{metadataUuid}/alert: + post: + tags: + - userfeedback + summary: Send an email to catalogue administrator or record's contact + operationId: sendEmailToContact + parameters: + - name: metadataUuid + in: path + description: Metadata record UUID. + required: true + schema: + type: string + - name: recaptcha + in: query + description: Recaptcha validation key. + required: false + schema: + type: string + default: "" + - name: name + in: query + description: User name. + required: true + schema: + type: string + - name: org + in: query + description: User organisation. + required: true + schema: + type: string + - name: email + in: query + description: User email address. + required: true + schema: + type: string + - name: comments + in: query + description: A comment or question. + required: true + schema: + type: string + - name: phone + in: query + description: User phone number. + required: false + schema: + type: string + default: "" + - name: subject + in: query + description: Email subject. + required: false + schema: + type: string + default: User feedback + - name: function + in: query + description: User function. + required: false + schema: + type: string + default: "-" + - name: type + in: query + description: Comment type. + required: false + schema: + type: string + default: "-" + - name: category + in: query + description: Comment category. + required: false + schema: + type: string + default: "-" + - name: metadataEmail + in: query + description: List of record's contact to send this email. + required: false + schema: + type: string + default: "" + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + application/json: + schema: + type: string + /userfeedback/{uuid}/publish: + get: + tags: + - userfeedback + summary: Publishes a feedback + description: For reviewers + operationId: publishFeedback + parameters: + - name: uuid + in: path + description: User feedback UUID. + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + content: + application/json: + schema: + type: string + "204": + description: User feedback published. + content: + application/json: + schema: + type: string + "403": + description: Operation not allowed. Only Reviewvers can access it. + content: + application/json: + schema: + type: string + /me: + get: + tags: + - me + summary: Get information about me + description: "If not authenticated, return status 204 (NO_CONTENT), else return\ + \ basic user information. This operation is usually used to know if current\ + \ user is authenticated or not.It returns also info about groups and profiles." + operationId: getMe + responses: + default: + description: default response + content: + application/json: {} + "200": + description: Authenticated. Return user details. + content: + application/json: + schema: + $ref: '#/components/schemas/MeResponse' + "204": + description: Not authenticated. + content: + application/json: + schema: + $ref: '#/components/schemas/MeResponse' + /user/{username}: + patch: + tags: + - users + summary: Update user password + description: Get a valid changekey by email first and then update your password. + operationId: updatePassword + parameters: + - name: username + in: path + description: The user name + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordUpdateParameter' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + text/plain: + schema: + type: string + /user/actions/forgot-password: + put: + tags: + - users + summary: Send user password reminder by email + description: An email is sent to the requested user with a link to reset his + password. User MUST have an email to get the link. LDAP users will not be + able to retrieve their password using this service. + operationId: sendPasswordByEmail + parameters: + - name: username + in: query + description: The user name + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + text/plain: + schema: + type: string + /user/actions/register: + put: + tags: + - users + summary: Create user account + description: User is created with a registered user profile. username field + is ignored and the email is used as username. Password is sent by email. Catalog + administrator is also notified. + operationId: registerUser + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserRegisterDto' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: Created + content: + text/plain: + schema: + type: string + /users/{userIdentifier}.png: + get: + tags: + - users + summary: Get user identicon + operationId: getUserIdenticon + parameters: + - name: userIdentifier + in: path + description: User identifier. + required: true + schema: + type: integer + format: int32 + - name: size + in: query + description: Size. + required: false + schema: + type: integer + format: int32 + default: 18 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + /users: + get: + tags: + - users + summary: Get users + operationId: getUsers + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + put: + tags: + - users + summary: Creates a user + description: Creates a catalog user. + operationId: createUser + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserDto' + required: true + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /users/{userIdentifier}: + get: + tags: + - users + summary: Get user + operationId: getUser + parameters: + - name: userIdentifier + in: path + description: User identifier. + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/User' + put: + tags: + - users + summary: Update a user + description: Updates a catalog user. + operationId: updateUser + parameters: + - name: userIdentifier + in: path + description: User identifier. + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserDto' + required: true + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + delete: + tags: + - users + summary: Delete a user + description: Deletes a catalog user by identifier. + operationId: deleteUser + parameters: + - name: userIdentifier + in: path + description: User identifier. + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /users/properties/{property}: + get: + tags: + - users + summary: Check if a user property already exist + operationId: checkUserPropertyExist + parameters: + - name: property + in: path + description: The user property to check + required: true + schema: + type: string + - name: exist + in: query + description: The value to search + required: true + schema: + type: string + responses: + default: + description: default response + content: + application/json: {} + "403": + description: Operation not allowed. Only UserAdmins can access it. + content: + '*/*': + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + "404": + description: A property with that value already exist. + content: + '*/*': + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + "200": + description: Property does not exist. + content: + '*/*': + schema: + type: string + enum: + - 100 CONTINUE + - 101 SWITCHING_PROTOCOLS + - 102 PROCESSING + - 103 CHECKPOINT + - 200 OK + - 201 CREATED + - 202 ACCEPTED + - 203 NON_AUTHORITATIVE_INFORMATION + - 204 NO_CONTENT + - 205 RESET_CONTENT + - 206 PARTIAL_CONTENT + - 207 MULTI_STATUS + - 208 ALREADY_REPORTED + - 226 IM_USED + - 300 MULTIPLE_CHOICES + - 301 MOVED_PERMANENTLY + - 302 FOUND + - 302 MOVED_TEMPORARILY + - 303 SEE_OTHER + - 304 NOT_MODIFIED + - 305 USE_PROXY + - 307 TEMPORARY_REDIRECT + - 308 PERMANENT_REDIRECT + - 400 BAD_REQUEST + - 401 UNAUTHORIZED + - 402 PAYMENT_REQUIRED + - 403 FORBIDDEN + - 404 NOT_FOUND + - 405 METHOD_NOT_ALLOWED + - 406 NOT_ACCEPTABLE + - 407 PROXY_AUTHENTICATION_REQUIRED + - 408 REQUEST_TIMEOUT + - 409 CONFLICT + - 410 GONE + - 411 LENGTH_REQUIRED + - 412 PRECONDITION_FAILED + - 413 PAYLOAD_TOO_LARGE + - 413 REQUEST_ENTITY_TOO_LARGE + - 414 URI_TOO_LONG + - 414 REQUEST_URI_TOO_LONG + - 415 UNSUPPORTED_MEDIA_TYPE + - 416 REQUESTED_RANGE_NOT_SATISFIABLE + - 417 EXPECTATION_FAILED + - 418 I_AM_A_TEAPOT + - 419 INSUFFICIENT_SPACE_ON_RESOURCE + - 420 METHOD_FAILURE + - 421 DESTINATION_LOCKED + - 422 UNPROCESSABLE_ENTITY + - 423 LOCKED + - 424 FAILED_DEPENDENCY + - 425 TOO_EARLY + - 426 UPGRADE_REQUIRED + - 428 PRECONDITION_REQUIRED + - 429 TOO_MANY_REQUESTS + - 431 REQUEST_HEADER_FIELDS_TOO_LARGE + - 451 UNAVAILABLE_FOR_LEGAL_REASONS + - 500 INTERNAL_SERVER_ERROR + - 501 NOT_IMPLEMENTED + - 502 BAD_GATEWAY + - 503 SERVICE_UNAVAILABLE + - 504 GATEWAY_TIMEOUT + - 505 HTTP_VERSION_NOT_SUPPORTED + - 506 VARIANT_ALSO_NEGOTIATES + - 507 INSUFFICIENT_STORAGE + - 508 LOOP_DETECTED + - 509 BANDWIDTH_LIMIT_EXCEEDED + - 510 NOT_EXTENDED + - 511 NETWORK_AUTHENTICATION_REQUIRED + /users/{userIdentifier}/actions/forget-password: + post: + tags: + - users + summary: Resets user password + description: Resets the user password. + operationId: resetUserPassword + parameters: + - name: userIdentifier + in: path + description: User identifier. + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordResetDto' + required: true + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /users/{userIdentifier}/groups: + get: + tags: + - users + summary: Retrieve user groups + description: Retrieve the user groups. + operationId: retrieveUserGroups + parameters: + - name: userIdentifier + in: path + description: User identifier. + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserGroup' + /users/groups: + get: + tags: + - users + summary: Retrieve all user groups + operationId: retrieveAllUserGroups + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserGroupsResponse' + /users/owners: + get: + tags: + - users + summary: Get owners + description: Return users who actually owns one or more records. + operationId: getRecordOwners + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/OwnerResponse' + put: + tags: + - users + summary: Transfer privileges + operationId: saveOwners + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferRequest' + required: true + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /usersearches/all: + get: + tags: + - usersearches + summary: Get user custom searches for all users (no paginated) + operationId: getAllUserCustomSearches + parameters: + - name: featuredType + in: query + description: Featured type search. + required: false + schema: + type: string + enum: + - HOME + - EDITOR_BOARD + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserSearchDto' + /usersearches/allpaginated: + get: + tags: + - usersearches + summary: Get user custom searches for all users (paginated) + operationId: getAllUserCustomSearchesPage + parameters: + - name: featuredType + in: query + description: Featured type search. + required: false + schema: + type: string + enum: + - HOME + - EDITOR_BOARD + - name: search + in: query + required: false + schema: + type: string + default: "" + - name: offset + in: query + description: From page + required: false + schema: + type: integer + format: int32 + default: 0 + - name: limit + in: query + description: Number of records to return + required: false + schema: + type: integer + format: int32 + default: 10 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedUserSearchResponse' + /usersearches/featured: + get: + tags: + - usersearches + summary: Get featured user custom searches + operationId: getFeaturedUserCustomSearches + parameters: + - name: type + in: query + description: Number of records to return + required: false + schema: + type: string + enum: + - HOME + - EDITOR_BOARD + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserSearchDto' + /usersearches/{searchIdentifier}: + get: + tags: + - usersearches + summary: Get custom search + operationId: getUserCustomSearch + parameters: + - name: searchIdentifier + in: path + description: User search identifier + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserSearchDto' + put: + tags: + - usersearches + summary: Update a user search + operationId: updateCustomUserSearch + parameters: + - name: searchIdentifier + in: path + description: User search identifier + required: true + schema: + type: integer + format: int32 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserSearchDto' + required: true + responses: + default: + description: default response + content: + application/json: {} + "404": + description: Resource not found. + "204": + description: User search updated. + delete: + tags: + - usersearches + summary: Delete a user search + description: Deletes a user search by identifier. + operationId: deleteUserCustomSerach + parameters: + - name: searchIdentifier + in: path + description: Search identifier. + required: true + schema: + type: integer + format: int32 + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: string + /usersearches: + get: + tags: + - usersearches + summary: Get user custom searches + operationId: getUserCustomSearches + responses: + default: + description: default response + content: + application/json: {} + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UserSearchDto' + put: + tags: + - usersearches + summary: Creates a user search + description: Creates a user search. + operationId: createUserCustomSearch + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserSearchDto' + required: true + responses: + default: + description: default response + content: + application/json: {} + "201": + description: User search created. + content: + application/json: + schema: + type: integer + format: int32 +components: + schemas: + MetadataCategory: + type: object + properties: + id: + type: integer + format: int32 + name: + type: string + label: + type: object + additionalProperties: + type: string + Group: + type: object + properties: + logo: + type: string + website: + type: string + defaultCategory: + $ref: '#/components/schemas/MetadataCategory' + allowedCategories: + type: array + items: + $ref: '#/components/schemas/MetadataCategory' + enableAllowedCategories: + type: boolean + referrer: + type: integer + format: int32 + description: + type: string + id: + type: integer + format: int32 + email: + type: string + reserved: + type: boolean + name: + type: string + label: + type: object + additionalProperties: + type: string + description: Group details + Address: + type: object + properties: + city: + type: string + zip: + type: string + country: + type: string + state: + type: string + id: + type: integer + format: int32 + address: + type: string + GrantedAuthority: + type: object + properties: + authority: + type: string + User: + type: object + properties: + profile: + type: string + enum: + - Administrator + - UserAdmin + - Reviewer + - Editor + - RegisteredUser + - Guest + - Monitor + surname: + type: string + enabled: + type: boolean + id: + type: integer + format: int32 + username: + type: string + email: + type: string + kind: + type: string + emailAddresses: + uniqueItems: true + type: array + items: + type: string + addresses: + uniqueItems: true + type: array + items: + $ref: '#/components/schemas/Address' + primaryAddress: + $ref: '#/components/schemas/Address' + organisation: + type: string + security: + $ref: '#/components/schemas/UserSecurity' + lastLoginDate: + type: string + authorities: + type: array + items: + $ref: '#/components/schemas/GrantedAuthority' + accountNonExpired: + type: boolean + accountNonLocked: + type: boolean + credentialsNonExpired: + type: boolean + name: + type: string + UserSecurity: + type: object + properties: + nodeId: + type: string + securityNotifications: + uniqueItems: true + type: array + items: + type: string + enum: + - UPDATE_HASH_REQUIRED + - UNKNOWN + authType: + type: string + securityNotificationsString: + $ref: '#/components/schemas/UserSecurity' + MetadataIdentifierTemplate: + type: object + properties: + id: + type: integer + format: int32 + template: + type: string + systemDefault: + type: boolean + writeOnly: true + systemProvided_JPAWorkaround: + type: string + writeOnly: true + systemProvided: + type: boolean + name: + type: string + description: Identifier template details + IsoLanguage: + type: object + properties: + id: + type: integer + format: int32 + code: + type: string + shortCode: + type: string + label: + type: object + additionalProperties: + type: string + Language: + type: object + properties: + inspire_JPAWorkaround: + type: string + writeOnly: true + inspire: + type: boolean + id: + type: string + defaultLanguage_JPAWorkaround: + type: string + writeOnly: true + defaultLanguage: + type: boolean + name: + type: string + JSONObject: + type: object + InfoReport: + type: object + properties: + message: + type: string + uuid: + type: string + draft: + type: boolean + approved: + type: boolean + date: + type: string + Report: + type: object + properties: + message: + type: string + uuid: + type: string + draft: + type: boolean + approved: + type: boolean + date: + type: string + SimpleMetadataProcessingReport: + type: object + properties: + errors: + type: array + items: + $ref: '#/components/schemas/Report' + infos: + type: array + items: + $ref: '#/components/schemas/InfoReport' + uuid: + type: string + xml: + attribute: true + totalRecords: + type: integer + format: int32 + writeOnly: true + metadata: + uniqueItems: true + type: array + items: + type: integer + format: int32 + metadataErrors: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/Report' + xml: + name: errors + metadataInfos: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InfoReport' + xml: + name: infos + numberOfRecords: + type: integer + format: int32 + xml: + attribute: true + numberOfRecordNotFound: + type: integer + format: int32 + numberOfRecordsNotEditable: + type: integer + format: int32 + numberOfNullRecords: + type: integer + format: int32 + numberOfRecordsProcessed: + type: integer + format: int32 + numberOfRecordsWithErrors: + type: integer + format: int32 + startIsoDateTime: + type: string + xml: + attribute: true + endIsoDateTime: + type: string + xml: + attribute: true + ellapsedTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + totalTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + running: + type: boolean + type: + type: string + xml: + attribute: true + xml: + name: report + ISODate: + type: object + properties: + internalDateTime: + type: string + format: date-time + dateAndTime: + type: string + months: + type: integer + format: int32 + hours: + type: integer + format: int32 + minutes: + type: integer + format: int32 + seconds: + type: integer + format: int32 + days: + type: integer + format: int32 + years: + type: integer + format: int32 + dateAsString: + type: string + timeInSeconds: + type: integer + format: int64 + dateOnly: + type: boolean + dateYearOnly: + type: boolean + dateYearMonthOnly: + type: boolean + timeAsString: + type: string + dateAndTimeUtc: + type: string + Link: + type: object + properties: + records: + uniqueItems: true + type: array + items: + $ref: '#/components/schemas/MetadataLink' + linkStatus: + uniqueItems: true + type: array + items: + $ref: '#/components/schemas/LinkStatus' + lastState: + type: integer + format: int32 + lastCheck: + $ref: '#/components/schemas/ISODate' + linkType: + type: string + enum: + - HTTP + - METADATA + id: + type: integer + format: int32 + url: + type: string + protocol: + type: string + LinkStatus: + type: object + properties: + id: + type: integer + format: int32 + checkDate: + $ref: '#/components/schemas/ISODate' + statusValue: + type: string + statusInfo: + type: string + batchKey: + type: string + failing: + type: boolean + MetadataLink: + type: object + properties: + metadataId: + type: integer + format: int32 + metadataUuid: + type: string + PageLink: + type: object + properties: + totalPages: + type: integer + format: int32 + totalElements: + type: integer + format: int64 + numberOfElements: + type: integer + format: int32 + pageable: + $ref: '#/components/schemas/Pageable' + sort: + $ref: '#/components/schemas/Sort' + last: + type: boolean + first: + type: boolean + size: + type: integer + format: int32 + content: + type: array + items: + $ref: '#/components/schemas/Link' + number: + type: integer + format: int32 + empty: + type: boolean + Pageable: + type: object + properties: + unpaged: + type: boolean + paged: + type: boolean + pageNumber: + type: integer + format: int32 + pageSize: + type: integer + format: int32 + sort: + $ref: '#/components/schemas/Sort' + offset: + type: integer + format: int64 + Sort: + type: object + properties: + sorted: + type: boolean + unsorted: + type: boolean + empty: + type: boolean + AnonymousMapserver: + type: object + properties: + username: + type: string + password: + type: string + namespace: + type: string + description: + type: string + namespacePrefix: + type: string + id: + type: integer + format: int32 + configurl: + type: string + wmsurl: + type: string + wfsurl: + type: string + wcsurl: + type: string + stylerurl: + type: string + pushStyleInWorkspace_JpaWorkaround: + type: string + writeOnly: true + pushStyleInWorkspace: + $ref: '#/components/schemas/MapServer' + name: + type: string + MapServer: + type: object + properties: + namespace: + type: string + description: + type: string + namespacePrefix: + type: string + id: + type: integer + format: int32 + password: + type: string + username: + type: string + configurl: + type: string + wmsurl: + type: string + wfsurl: + type: string + wcsurl: + type: string + stylerurl: + type: string + pushStyleInWorkspace_JpaWorkaround: + type: string + writeOnly: true + pushStyleInWorkspace: + $ref: '#/components/schemas/MapServer' + name: + type: string + description: Mapserver details + Operation: + type: object + properties: + id: + type: integer + format: int32 + reserved: + type: boolean + reservedOperation: + type: string + enum: + - view + - download + - editing + - notify + - dynamic + - featured + name: + type: string + label: + type: object + additionalProperties: + type: string + PageJSONWrapper: + type: object + properties: + format: + type: string + enum: + - LINK + - HTML + - TEXT + - MARKDOWN + - WIKI + status: + type: string + enum: + - PUBLIC + - PUBLIC_ONLY + - PRIVATE + - HIDDEN + sections: + type: array + items: + type: string + enum: + - ALL + - TOP + - FOOTER + - MENU + - SUBMENU + - CUSTOM_MENU1 + - CUSTOM_MENU2 + - CUSTOM_MENU3 + - DRAFT + linkText: + type: string + link: + type: string + language: + type: string + XsltMetadataProcessingReport: + type: object + properties: + errors: + type: array + items: + $ref: '#/components/schemas/Report' + infos: + type: array + items: + $ref: '#/components/schemas/InfoReport' + uuid: + type: string + xml: + attribute: true + totalRecords: + type: integer + format: int32 + writeOnly: true + metadata: + uniqueItems: true + type: array + items: + type: integer + format: int32 + metadataErrors: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/Report' + xml: + name: errors + metadataInfos: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InfoReport' + xml: + name: infos + processId: + type: string + xml: + name: process + attribute: true + noProcessFoundCount: + type: integer + format: int32 + numberOfRecords: + type: integer + format: int32 + xml: + attribute: true + numberOfRecordNotFound: + type: integer + format: int32 + numberOfRecordsNotEditable: + type: integer + format: int32 + numberOfNullRecords: + type: integer + format: int32 + numberOfRecordsProcessed: + type: integer + format: int32 + numberOfRecordsWithErrors: + type: integer + format: int32 + startIsoDateTime: + type: string + xml: + attribute: true + endIsoDateTime: + type: string + xml: + attribute: true + ellapsedTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + totalTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + running: + type: boolean + type: + type: string + xml: + attribute: true + xml: + name: report + MetadataReplacementProcessingReport: + type: object + properties: + errors: + type: array + items: + $ref: '#/components/schemas/Report' + infos: + type: array + items: + $ref: '#/components/schemas/InfoReport' + uuid: + type: string + xml: + attribute: true + totalRecords: + type: integer + format: int32 + writeOnly: true + metadata: + uniqueItems: true + type: array + items: + type: integer + format: int32 + metadataErrors: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/Report' + xml: + name: errors + metadataInfos: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InfoReport' + xml: + name: infos + processId: + type: string + xml: + name: process + attribute: true + metadataChanges: + type: object + additionalProperties: + $ref: '#/components/schemas/ReplaceReport' + xml: + name: changes + numberOfRecordsChanged: + type: integer + format: int32 + numberOfRecordsNotChanged: + type: integer + format: int32 + noProcessFoundCount: + type: integer + format: int32 + numberOfRecords: + type: integer + format: int32 + xml: + attribute: true + numberOfRecordNotFound: + type: integer + format: int32 + numberOfRecordsNotEditable: + type: integer + format: int32 + numberOfNullRecords: + type: integer + format: int32 + numberOfRecordsProcessed: + type: integer + format: int32 + numberOfRecordsWithErrors: + type: integer + format: int32 + startIsoDateTime: + type: string + xml: + attribute: true + endIsoDateTime: + type: string + xml: + attribute: true + ellapsedTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + totalTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + running: + type: boolean + type: + type: string + xml: + attribute: true + xml: + name: report + ReplaceEntryChange: + type: object + properties: + originalVal: + type: string + changedVal: + type: string + fieldId: + type: string + ReplaceReport: + type: object + properties: + message: + type: string + uuid: + type: string + draft: + type: boolean + approved: + type: boolean + date: + type: string + elementChanges: + type: array + items: + $ref: '#/components/schemas/ReplaceEntryChange' + ProcessingReport: + type: object + properties: + errors: + type: array + items: + $ref: '#/components/schemas/Report' + infos: + type: array + items: + $ref: '#/components/schemas/InfoReport' + uuid: + type: string + xml: + attribute: true + startIsoDateTime: + type: string + xml: + attribute: true + endIsoDateTime: + type: string + xml: + attribute: true + ellapsedTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + totalTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + running: + type: boolean + type: + type: string + xml: + attribute: true + xml: + name: report + Associated: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/AssociatedSiblingMetadataItem' + AssociatedSiblingMetadataItem: + required: + - description + - mdType + - title + type: object + properties: + id: + type: string + url: + $ref: '#/components/schemas/MultilingualValue' + type: + type: string + title: + $ref: '#/components/schemas/MultilingualValue' + description: + $ref: '#/components/schemas/Description' + mdType: + type: array + items: + type: string + origin: + type: string + agg_isTemporalStatOf: + type: array + items: + type: string + agg_largerWorkCitation: + type: array + items: + type: string + agg_isDescriptionOf: + type: array + items: + type: string + AttributeTable: + type: object + properties: + element: + type: array + items: + $ref: '#/components/schemas/Element' + Children: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + Dataset: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + Description: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/LocalizedString' + Element: + type: object + properties: + name: + type: string + definition: + type: string + code: + type: string + link: + type: string + type: + type: string + values: + type: array + items: + $ref: '#/components/schemas/Values' + FCRelatedMetadataItem: + required: + - description + - featureType + - mdType + - title + type: object + properties: + id: + type: string + url: + $ref: '#/components/schemas/MultilingualValue' + type: + type: string + title: + $ref: '#/components/schemas/MultilingualValue' + description: + $ref: '#/components/schemas/Description' + mdType: + type: array + items: + type: string + origin: + type: string + featureType: + $ref: '#/components/schemas/FeatureType' + Fcat: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/FCRelatedMetadataItem' + FeatureType: + type: object + properties: + attributeTable: + $ref: '#/components/schemas/AttributeTable' + Hasfeaturecats: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + Hassource: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + LocalizedString: + type: object + properties: + value: + type: string + lang: + type: string + xml: + attribute: true + href: + type: string + xml: + attribute: true + MultilingualValue: + type: object + properties: + value: + type: array + items: + $ref: '#/components/schemas/LocalizedString' + Online: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedLinkItem' + Parent: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + Related: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + RelatedLinkItem: + required: + - description + - title + type: object + properties: + id: + type: string + url: + $ref: '#/components/schemas/MultilingualValue' + type: + type: string + title: + $ref: '#/components/schemas/MultilingualValue' + protocol: + type: string + description: + $ref: '#/components/schemas/Description' + function: + type: string + applicationProfile: + type: string + RelatedMetadataItem: + required: + - description + - mdType + - title + type: object + properties: + id: + type: string + url: + $ref: '#/components/schemas/MultilingualValue' + type: + type: string + title: + $ref: '#/components/schemas/MultilingualValue' + description: + $ref: '#/components/schemas/Description' + mdType: + type: array + items: + type: string + origin: + type: string + RelatedResponse: + type: object + properties: + children: + $ref: '#/components/schemas/Children' + parent: + $ref: '#/components/schemas/Parent' + siblings: + $ref: '#/components/schemas/Siblings' + associated: + $ref: '#/components/schemas/Associated' + services: + $ref: '#/components/schemas/Service' + datasets: + $ref: '#/components/schemas/Dataset' + fcats: + $ref: '#/components/schemas/Fcat' + hasfeaturecats: + $ref: '#/components/schemas/Hasfeaturecats' + sources: + $ref: '#/components/schemas/Source' + hassources: + $ref: '#/components/schemas/Hassource' + related: + $ref: '#/components/schemas/Related' + onlines: + $ref: '#/components/schemas/Online' + thumbnails: + $ref: '#/components/schemas/Thumbnail' + xml: + name: related + RelatedSiblingMetadataItem: + required: + - associationType + - description + - initiativeType + - mdType + - title + type: object + properties: + id: + type: string + url: + $ref: '#/components/schemas/MultilingualValue' + type: + type: string + title: + $ref: '#/components/schemas/MultilingualValue' + description: + $ref: '#/components/schemas/Description' + mdType: + type: array + items: + type: string + origin: + type: string + associationType: + type: string + initiativeType: + type: string + RelatedThumbnailItem: + required: + - title + type: object + properties: + id: + type: string + url: + $ref: '#/components/schemas/MultilingualValue' + type: + type: string + title: + $ref: '#/components/schemas/MultilingualValue' + Service: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + Siblings: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedSiblingMetadataItem' + Source: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedMetadataItem' + Thumbnail: + type: object + properties: + item: + type: array + items: + $ref: '#/components/schemas/RelatedThumbnailItem' + Values: + type: object + properties: + label: + type: string + code: + type: string + definition: + type: string + FeatureResponse: + type: object + properties: + decodeMap: + type: object + additionalProperties: + type: array + items: + type: string + xml: + name: related + SuggestionType: + required: + - name + - operational + type: object + properties: + name: + type: string + operational: + type: string + params: + type: string + process: + type: string + xml: + attribute: true + id: + type: string + xml: + attribute: true + category: + type: string + xml: + attribute: true + target: + type: string + xml: + attribute: true + SavedQuery: + type: object + properties: + id: + type: string + xpath: + type: string + label: + type: string + cleanValues: + type: string + parameters: + type: array + items: + type: string + GroupOperations: + type: object + properties: + operations: + type: object + additionalProperties: + type: boolean + group: + type: integer + format: int32 + SharingParameter: + type: object + properties: + privileges: + type: array + items: + $ref: '#/components/schemas/GroupOperations' + clear: + type: boolean + description: Privileges + MetadataProcessingReport: + type: object + properties: + errors: + type: array + items: + $ref: '#/components/schemas/Report' + infos: + type: array + items: + $ref: '#/components/schemas/InfoReport' + uuid: + type: string + xml: + attribute: true + totalRecords: + type: integer + format: int32 + writeOnly: true + metadata: + uniqueItems: true + type: array + items: + type: integer + format: int32 + metadataErrors: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/Report' + xml: + name: errors + metadataInfos: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/InfoReport' + xml: + name: infos + numberOfRecords: + type: integer + format: int32 + xml: + attribute: true + numberOfRecordNotFound: + type: integer + format: int32 + numberOfRecordsNotEditable: + type: integer + format: int32 + numberOfNullRecords: + type: integer + format: int32 + numberOfRecordsProcessed: + type: integer + format: int32 + numberOfRecordsWithErrors: + type: integer + format: int32 + startIsoDateTime: + type: string + xml: + attribute: true + endIsoDateTime: + type: string + xml: + attribute: true + ellapsedTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + totalTimeInSeconds: + type: integer + format: int64 + xml: + attribute: true + running: + type: boolean + type: + type: string + xml: + attribute: true + xml: + name: report + GroupPrivilege: + type: object + properties: + operations: + type: object + additionalProperties: + type: boolean + group: + type: integer + format: int32 + userProfiles: + type: array + items: + type: string + enum: + - Administrator + - UserAdmin + - Reviewer + - Editor + - RegisteredUser + - Guest + - Monitor + userGroup: + type: boolean + reserved: + type: boolean + userProfile: + type: array + writeOnly: true + items: + type: string + enum: + - Administrator + - UserAdmin + - Reviewer + - Editor + - RegisteredUser + - Guest + - Monitor + SharingResponse: + type: object + properties: + privileges: + type: array + items: + $ref: '#/components/schemas/GroupPrivilege' + owner: + type: string + groupOwner: + type: string + Reports: + type: object + properties: + report: + type: array + items: + $ref: '#/components/schemas/Report' + xml: + name: reports + MetadataStatusParameter: + type: object + properties: + type: + type: string + enum: + - workflow + - task + - event + status: + type: integer + format: int32 + changeMessage: + type: string + dueDate: + type: string + closeDate: + type: string + owner: + type: integer + format: int32 + description: Metadata status + MetadataResource: + type: object + properties: + metadataId: + type: integer + format: int32 + approved: + type: boolean + visibility: + type: string + enum: + - public + - private + metadataResourceExternalManagementProperties: + $ref: '#/components/schemas/MetadataResourceExternalManagementProperties' + lastModification: + type: string + format: date-time + version: + type: string + url: + type: string + metadataUuid: + type: string + filename: + type: string + id: + type: string + size: + type: integer + format: int64 + xml: + name: resource + MetadataResourceExternalManagementProperties: + type: object + properties: + id: + type: string + url: + type: string + xml: + name: metadataResourceExternalManagementProperties + BatchEditParameter: + required: + - value + - xpath + type: object + properties: + xpath: + type: string + value: + type: string + condition: + type: string + xml: + name: edit + IProcessingReport: + type: object + properties: + startIsoDateTime: + type: string + endIsoDateTime: + type: string + ellapsedTimeInSeconds: + type: integer + format: int64 + totalTimeInSeconds: + type: integer + format: int64 + running: + type: boolean + uuid: + type: string + type: + type: string + ExtentDto: + type: object + properties: + href: + type: string + type: + type: string + xpath: + type: string + description: + type: string + FormatterData: + type: object + properties: + schema: + type: string + id: + type: string + xml: + name: formatter + FormatterDataResponse: + type: object + properties: + formatters: + type: array + xml: + name: formatter + items: + $ref: '#/components/schemas/FormatterData' + xml: + name: formatters + CategoryResponse: + type: object + properties: + label: + type: object + additionalProperties: + type: string + ListRegionsResponse: + type: object + properties: + region: + type: array + items: + $ref: '#/components/schemas/RegionResponse' + categories: + type: object + additionalProperties: + $ref: '#/components/schemas/CategoryResponse' + regions: + type: array + items: + $ref: '#/components/schemas/RegionResponse' + count: + type: integer + format: int32 + xml: + attribute: true + xml: + name: response + RegionResponse: + type: object + properties: + north: + type: number + format: double + east: + type: number + format: double + south: + type: number + format: double + west: + type: number + format: double + label: + type: object + additionalProperties: + type: string + hasGeom: + type: boolean + xml: + attribute: true + categoryId: + type: string + xml: + attribute: true + id: + type: string + xml: + attribute: true + Category: + type: object + properties: + id: + type: string + xml: + attribute: true + label: + type: string + xml: + attribute: true + Crs: + type: object + properties: + code: + type: string + authority: + type: string + version: + type: string + codeSpace: + type: string + description: + type: string + Selection: + type: object + properties: + id: + type: integer + format: int32 + name: + type: string + watchable: + type: boolean + label: + type: object + additionalProperties: + type: string + LogFileResponse: + type: object + properties: + file: + type: string + xml: + attribute: true + name: + type: string + xml: + attribute: true + SystemInfo: + type: object + properties: + stagingProfile: + type: string + buildDate: + type: string + version: + type: string + subVersion: + type: string + buildOsInfo: + type: string + buildJavaVersion: + type: string + buildJavaVendor: + type: string + scmUrl: + type: string + scmRevision: + type: string + devMode: + type: boolean + Setting: + type: object + properties: + name: + type: string + storedValue: + type: string + value: + type: string + dataType: + type: string + enum: + - STRING + - INT + - BOOLEAN + - JSON + position: + type: integer + format: int32 + internal: + type: boolean + encrypted: + type: boolean + encrypted_JpaWorkaround: + type: string + writeOnly: true + internal_JpaWorkaround: + type: string + writeOnly: true + SiteInformation: + type: object + properties: + catalogue: + type: object + additionalProperties: + type: string + index: + type: object + additionalProperties: + type: string + main: + type: object + additionalProperties: + type: string + database: + type: object + additionalProperties: + type: string + version: + type: object + additionalProperties: + type: string + Status: + type: object + properties: + id: + type: string + state: + type: string + enum: + - RED + - UNINITIALIZED + - YELLOW + - GREEN + - DISABLED + date: + type: string + format: date-time + message: + type: string + SettingsListResponse: + type: object + properties: + settings: + type: array + items: + $ref: '#/components/schemas/Setting' + Codelist: + type: object + properties: + entry: + type: array + items: + $ref: '#/components/schemas/Entry' + name: + type: string + xml: + attribute: true + alias: + type: string + xml: + attribute: true + xml: + name: codelist + Entry: + required: + - code + - description + - label + type: object + properties: + code: + type: string + label: + type: string + description: + type: string + hideInEditMode: + type: string + xml: + attribute: true + xml: + name: entry + BatchEditing: + required: + - section + type: object + properties: + section: + type: array + items: + $ref: '#/components/schemas/Section' + xml: + name: batchEditing + Field: + type: object + properties: + template: + type: string + name: + type: string + xml: + attribute: true + xpath: + type: string + xml: + attribute: true + indexField: + type: string + xml: + attribute: true + use: + type: string + xml: + attribute: true + removable: + type: boolean + xml: + attribute: true + insertMode: + type: string + xml: + attribute: true + codelist: + type: string + xml: + attribute: true + Section: + required: + - field + type: object + properties: + field: + type: array + items: + $ref: '#/components/schemas/Field' + name: + type: string + xml: + attribute: true + StatusValue: + type: object + properties: + type: + type: string + enum: + - workflow + - task + - event + notificationLevel: + type: string + enum: + - statusUserOwner + - catalogueAdministrator + - catalogueProfileAdministrator + - catalogueProfileUserAdmin + - catalogueProfileReviewer + - catalogueProfileEditor + - catalogueProfileRegisteredUser + - catalogueProfileGuest + - recordProfileReviewer + - recordUserAuthor + displayOrder: + type: integer + format: int32 + id: + type: integer + format: int32 + reserved: + type: boolean + reserved_JpaWorkaround: + type: string + writeOnly: true + name: + type: string + label: + type: object + additionalProperties: + type: string + Translations: + type: object + properties: + fieldName: + type: string + id: + type: integer + format: int32 + langId: + type: string + value: + type: string + UiSetting: + type: object + properties: + id: + type: string + configuration: + type: string + RatingCriteria: + type: object + properties: + id: + type: integer + format: int32 + internal: + type: boolean + name: + type: string + label: + type: object + additionalProperties: + type: string + RatingAverage: + type: object + properties: + ratingCount: + type: integer + format: int32 + ratingAverages: + type: object + additionalProperties: + type: integer + format: int32 + userfeedbackCount: + type: integer + format: int32 + lastComment: + type: string + UserFeedbackDTO: + type: object + properties: + uuid: + type: string + comment: + type: string + rating: + type: object + additionalProperties: + type: integer + format: int32 + ratingAVG: + type: integer + format: int32 + metadataUUID: + type: string + metadataTitle: + type: string + authorUserId: + type: integer + format: int32 + authorName: + type: string + authorEmail: + type: string + authorOrganization: + type: string + approverName: + type: string + optionPrivacy: + type: boolean + published: + type: boolean + parentUuid: + type: string + captcha: + type: string + date: + type: string + showApproveButton: + type: boolean + keywords: + type: array + items: + type: string + MeResponse: + type: object + properties: + id: + type: string + profile: + type: string + username: + type: string + name: + type: string + surname: + type: string + email: + type: string + hash: + type: string + organisation: + type: string + admin: + type: boolean + groupsWithRegisteredUser: + type: array + items: + type: integer + format: int32 + groupsWithEditor: + type: array + items: + type: integer + format: int32 + groupsWithReviewer: + type: array + items: + type: integer + format: int32 + groupsWithUserAdmin: + type: array + items: + type: integer + format: int32 + PasswordUpdateParameter: + type: object + properties: + password: + type: string + changeKey: + type: string + description: The new password and a valid change key + UserRegisterDto: + type: object + properties: + profile: + type: string + username: + type: string + email: + type: string + name: + type: string + surname: + type: string + organisation: + type: string + address: + $ref: '#/components/schemas/Address' + captcha: + type: string + description: User details + UserDto: + type: object + properties: + id: + type: string + profile: + type: string + username: + type: string + name: + type: string + surname: + type: string + emailAddresses: + type: array + items: + type: string + organisation: + type: string + addresses: + type: array + items: + $ref: '#/components/schemas/Address' + kind: + type: string + password: + type: string + groupsRegisteredUser: + type: array + items: + type: string + groupsEditor: + type: array + items: + type: string + groupsReviewer: + type: array + items: + type: string + groupsUserAdmin: + type: array + items: + type: string + enabled: + type: boolean + email: + $ref: '#/components/schemas/UserDto' + PasswordResetDto: + type: object + properties: + passwordOld: + type: string + password: + type: string + password2: + type: string + UserGroup: + type: object + properties: + group: + $ref: '#/components/schemas/Group' + profile: + type: string + enum: + - Administrator + - UserAdmin + - Reviewer + - Editor + - RegisteredUser + - Guest + - Monitor + id: + $ref: '#/components/schemas/UserGroupId' + user: + $ref: '#/components/schemas/User' + UserGroupId: + type: object + properties: + profile: + type: string + enum: + - Administrator + - UserAdmin + - Reviewer + - Editor + - RegisteredUser + - Guest + - Monitor + groupId: + type: integer + format: int32 + userId: + type: integer + format: int32 + UserGroupsResponse: + type: object + properties: + userId: + type: integer + format: int32 + userName: + type: string + groupId: + type: integer + format: int32 + groupName: + type: string + userProfile: + type: string + TransferRequest: + type: object + properties: + sourceUser: + type: integer + format: int32 + sourceGroup: + type: integer + format: int32 + targetUser: + type: integer + format: int32 + targetGroup: + type: integer + format: int32 + OwnerResponse: + type: object + properties: + id: + type: integer + format: int32 + name: + type: string + records: + type: integer + format: int64 + UserSearchDto: + type: object + properties: + id: + type: integer + format: int32 + url: + type: string + featuredType: + type: string + creationDate: + type: string + creatorId: + type: integer + format: int32 + creator: + type: string + logo: + type: string + names: + type: object + additionalProperties: + type: string + groups: + type: array + items: + type: integer + format: int32 + description: User search details + PaginatedUserSearchResponse: + type: object + properties: + total: + type: integer + format: int64 + rows: + type: array + items: + $ref: '#/components/schemas/UserSearchDto' diff --git a/tools/generate-api.sh b/tools/generate-api.sh new file mode 100755 index 0000000..114708e --- /dev/null +++ b/tools/generate-api.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +libName=$1 +libRootPath="src/libs/$libName/src" +specPath="src/libs/$libName/src" +specFile=$specPath/spec.yaml + +rm -rf "$libRootPath" + +mkdir -p "$specPath" +curl -o "$specFile" -H 'Accept: text/yaml,*/*' http://localhost:8080/geonetwork/srv/api/doc.yml + + +./node_modules/.bin/openapi-generator-cli generate \ + -i "$specFile" \ + -g typescript-axios \ + -o "$libRootPath" \ + --skip-validate-spec +# -c tools/openapi-codegen-config.json \ + + +./node_modules/prettier/bin-prettier.js --write "$libRootPath/**/*.ts" diff --git a/tools/openapi-codegen-config.json b/tools/openapi-codegen-config.json new file mode 100644 index 0000000..4904cea --- /dev/null +++ b/tools/openapi-codegen-config.json @@ -0,0 +1,8 @@ +{ + "supportES6": true, + "withSeparateModelsAndApi": true, + "modelPackage": ".geonetwork-openapi.model", + "apiPackage": ".geonetwork-openapi.service", + "npmName": "geonetwork-openapi", + "npmVersion": "4.0.6" +} diff --git a/tsconfig.json b/tsconfig.json index 9d379a3..a841e1d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "target": "es6", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -16,5 +20,7 @@ "noEmit": true, "jsx": "react-jsx" }, - "include": ["src"] + "include": [ + "src" + ] }