diff --git a/package-lock.json b/package-lock.json index 5e785ded..f04156ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -146,46 +146,46 @@ } }, "node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.431.0.tgz", - "integrity": "sha512-Xf8MYs7CDEao+0BFRXueoSJswwRAfBB7AKaXs0cK3CWA9d147Gf4MhqK/qtJkoqLkN6Cz9B6cuvF74SymM9qbA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.433.0.tgz", + "integrity": "sha512-42znkBhcLweedtcp+k0Vz4As9FavThrYYGtvuleW82GQqtwyOXSifinXw7xfY2JngqCuCEenFQPsf1hudOWzyw==", "optional": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.431.0", - "@aws-sdk/credential-provider-node": "3.431.0", - "@aws-sdk/middleware-host-header": "3.431.0", - "@aws-sdk/middleware-logger": "3.428.0", - "@aws-sdk/middleware-recursion-detection": "3.428.0", - "@aws-sdk/middleware-signing": "3.428.0", - "@aws-sdk/middleware-user-agent": "3.428.0", - "@aws-sdk/region-config-resolver": "3.430.0", - "@aws-sdk/types": "3.428.0", - "@aws-sdk/util-endpoints": "3.428.0", - "@aws-sdk/util-user-agent-browser": "3.428.0", - "@aws-sdk/util-user-agent-node": "3.430.0", - "@smithy/config-resolver": "^2.0.15", - "@smithy/fetch-http-handler": "^2.2.3", - "@smithy/hash-node": "^2.0.11", - "@smithy/invalid-dependency": "^2.0.11", - "@smithy/middleware-content-length": "^2.0.13", - "@smithy/middleware-endpoint": "^2.1.2", - "@smithy/middleware-retry": "^2.0.17", - "@smithy/middleware-serde": "^2.0.11", - "@smithy/middleware-stack": "^2.0.5", - "@smithy/node-config-provider": "^2.1.2", - "@smithy/node-http-handler": "^2.1.7", - "@smithy/protocol-http": "^3.0.7", - "@smithy/smithy-client": "^2.1.11", - "@smithy/types": "^2.3.5", - "@smithy/url-parser": "^2.0.11", + "@aws-sdk/client-sts": "3.433.0", + "@aws-sdk/credential-provider-node": "3.433.0", + "@aws-sdk/middleware-host-header": "3.433.0", + "@aws-sdk/middleware-logger": "3.433.0", + "@aws-sdk/middleware-recursion-detection": "3.433.0", + "@aws-sdk/middleware-signing": "3.433.0", + "@aws-sdk/middleware-user-agent": "3.433.0", + "@aws-sdk/region-config-resolver": "3.433.0", + "@aws-sdk/types": "3.433.0", + "@aws-sdk/util-endpoints": "3.433.0", + "@aws-sdk/util-user-agent-browser": "3.433.0", + "@aws-sdk/util-user-agent-node": "3.433.0", + "@smithy/config-resolver": "^2.0.16", + "@smithy/fetch-http-handler": "^2.2.4", + "@smithy/hash-node": "^2.0.12", + "@smithy/invalid-dependency": "^2.0.12", + "@smithy/middleware-content-length": "^2.0.14", + "@smithy/middleware-endpoint": "^2.1.3", + "@smithy/middleware-retry": "^2.0.18", + "@smithy/middleware-serde": "^2.0.12", + "@smithy/middleware-stack": "^2.0.6", + "@smithy/node-config-provider": "^2.1.3", + "@smithy/node-http-handler": "^2.1.8", + "@smithy/protocol-http": "^3.0.8", + "@smithy/smithy-client": "^2.1.12", + "@smithy/types": "^2.4.0", + "@smithy/url-parser": "^2.0.12", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.15", - "@smithy/util-defaults-mode-node": "^2.0.20", - "@smithy/util-retry": "^2.0.4", + "@smithy/util-defaults-mode-browser": "^2.0.16", + "@smithy/util-defaults-mode-node": "^2.0.21", + "@smithy/util-retry": "^2.0.5", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.5.0" }, @@ -200,43 +200,43 @@ "optional": true }, "node_modules/@aws-sdk/client-sso": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.431.0.tgz", - "integrity": "sha512-iK8RxdBHFj1HtWpdTVfFdljZHXLWFv62SuIdkDswGE7L0zNbZIqBDGfEBnbagiQuxkz5D2YtnasydC5R3BcwVw==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.433.0.tgz", + "integrity": "sha512-L7ksMP7UnYH+w52ly+m+s5vk8662VtyqJ+UduFEMPqKUHTFEm7w+CCw4Xfk3hl5GlVvqPvYWqBqv8eLKSHpCEQ==", "optional": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.431.0", - "@aws-sdk/middleware-logger": "3.428.0", - "@aws-sdk/middleware-recursion-detection": "3.428.0", - "@aws-sdk/middleware-user-agent": "3.428.0", - "@aws-sdk/region-config-resolver": "3.430.0", - "@aws-sdk/types": "3.428.0", - "@aws-sdk/util-endpoints": "3.428.0", - "@aws-sdk/util-user-agent-browser": "3.428.0", - "@aws-sdk/util-user-agent-node": "3.430.0", - "@smithy/config-resolver": "^2.0.15", - "@smithy/fetch-http-handler": "^2.2.3", - "@smithy/hash-node": "^2.0.11", - "@smithy/invalid-dependency": "^2.0.11", - "@smithy/middleware-content-length": "^2.0.13", - "@smithy/middleware-endpoint": "^2.1.2", - "@smithy/middleware-retry": "^2.0.17", - "@smithy/middleware-serde": "^2.0.11", - "@smithy/middleware-stack": "^2.0.5", - "@smithy/node-config-provider": "^2.1.2", - "@smithy/node-http-handler": "^2.1.7", - "@smithy/protocol-http": "^3.0.7", - "@smithy/smithy-client": "^2.1.11", - "@smithy/types": "^2.3.5", - "@smithy/url-parser": "^2.0.11", + "@aws-sdk/middleware-host-header": "3.433.0", + "@aws-sdk/middleware-logger": "3.433.0", + "@aws-sdk/middleware-recursion-detection": "3.433.0", + "@aws-sdk/middleware-user-agent": "3.433.0", + "@aws-sdk/region-config-resolver": "3.433.0", + "@aws-sdk/types": "3.433.0", + "@aws-sdk/util-endpoints": "3.433.0", + "@aws-sdk/util-user-agent-browser": "3.433.0", + "@aws-sdk/util-user-agent-node": "3.433.0", + "@smithy/config-resolver": "^2.0.16", + "@smithy/fetch-http-handler": "^2.2.4", + "@smithy/hash-node": "^2.0.12", + "@smithy/invalid-dependency": "^2.0.12", + "@smithy/middleware-content-length": "^2.0.14", + "@smithy/middleware-endpoint": "^2.1.3", + "@smithy/middleware-retry": "^2.0.18", + "@smithy/middleware-serde": "^2.0.12", + "@smithy/middleware-stack": "^2.0.6", + "@smithy/node-config-provider": "^2.1.3", + "@smithy/node-http-handler": "^2.1.8", + "@smithy/protocol-http": "^3.0.8", + "@smithy/smithy-client": "^2.1.12", + "@smithy/types": "^2.4.0", + "@smithy/url-parser": "^2.0.12", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.15", - "@smithy/util-defaults-mode-node": "^2.0.20", - "@smithy/util-retry": "^2.0.4", + "@smithy/util-defaults-mode-browser": "^2.0.16", + "@smithy/util-defaults-mode-node": "^2.0.21", + "@smithy/util-retry": "^2.0.5", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.5.0" }, @@ -251,46 +251,46 @@ "optional": true }, "node_modules/@aws-sdk/client-sts": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.431.0.tgz", - "integrity": "sha512-IM/Fg3H1WuM9fnVriEoM6+sZ9LNUExxklxAnHwjLnprPRTDGbUXUfYjSry52LaQsZffP3RgWP11CYyjCYC8CfQ==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.433.0.tgz", + "integrity": "sha512-hQ+NLIcA1KRJ2qPdrtkJ3fOEVnehLLMlnB/I5mjg9K2UKjuiOufLao6tc5SyW9fseIL9AdX3fjJ8Unhg+y1RWg==", "optional": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.431.0", - "@aws-sdk/middleware-host-header": "3.431.0", - "@aws-sdk/middleware-logger": "3.428.0", - "@aws-sdk/middleware-recursion-detection": "3.428.0", - "@aws-sdk/middleware-sdk-sts": "3.428.0", - "@aws-sdk/middleware-signing": "3.428.0", - "@aws-sdk/middleware-user-agent": "3.428.0", - "@aws-sdk/region-config-resolver": "3.430.0", - "@aws-sdk/types": "3.428.0", - "@aws-sdk/util-endpoints": "3.428.0", - "@aws-sdk/util-user-agent-browser": "3.428.0", - "@aws-sdk/util-user-agent-node": "3.430.0", - "@smithy/config-resolver": "^2.0.15", - "@smithy/fetch-http-handler": "^2.2.3", - "@smithy/hash-node": "^2.0.11", - "@smithy/invalid-dependency": "^2.0.11", - "@smithy/middleware-content-length": "^2.0.13", - "@smithy/middleware-endpoint": "^2.1.2", - "@smithy/middleware-retry": "^2.0.17", - "@smithy/middleware-serde": "^2.0.11", - "@smithy/middleware-stack": "^2.0.5", - "@smithy/node-config-provider": "^2.1.2", - "@smithy/node-http-handler": "^2.1.7", - "@smithy/protocol-http": "^3.0.7", - "@smithy/smithy-client": "^2.1.11", - "@smithy/types": "^2.3.5", - "@smithy/url-parser": "^2.0.11", + "@aws-sdk/credential-provider-node": "3.433.0", + "@aws-sdk/middleware-host-header": "3.433.0", + "@aws-sdk/middleware-logger": "3.433.0", + "@aws-sdk/middleware-recursion-detection": "3.433.0", + "@aws-sdk/middleware-sdk-sts": "3.433.0", + "@aws-sdk/middleware-signing": "3.433.0", + "@aws-sdk/middleware-user-agent": "3.433.0", + "@aws-sdk/region-config-resolver": "3.433.0", + "@aws-sdk/types": "3.433.0", + "@aws-sdk/util-endpoints": "3.433.0", + "@aws-sdk/util-user-agent-browser": "3.433.0", + "@aws-sdk/util-user-agent-node": "3.433.0", + "@smithy/config-resolver": "^2.0.16", + "@smithy/fetch-http-handler": "^2.2.4", + "@smithy/hash-node": "^2.0.12", + "@smithy/invalid-dependency": "^2.0.12", + "@smithy/middleware-content-length": "^2.0.14", + "@smithy/middleware-endpoint": "^2.1.3", + "@smithy/middleware-retry": "^2.0.18", + "@smithy/middleware-serde": "^2.0.12", + "@smithy/middleware-stack": "^2.0.6", + "@smithy/node-config-provider": "^2.1.3", + "@smithy/node-http-handler": "^2.1.8", + "@smithy/protocol-http": "^3.0.8", + "@smithy/smithy-client": "^2.1.12", + "@smithy/types": "^2.4.0", + "@smithy/url-parser": "^2.0.12", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.15", - "@smithy/util-defaults-mode-node": "^2.0.20", - "@smithy/util-retry": "^2.0.4", + "@smithy/util-defaults-mode-browser": "^2.0.16", + "@smithy/util-defaults-mode-node": "^2.0.21", + "@smithy/util-retry": "^2.0.5", "@smithy/util-utf8": "^2.0.0", "fast-xml-parser": "4.2.5", "tslib": "^2.5.0" @@ -306,15 +306,15 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.431.0.tgz", - "integrity": "sha512-iDYwfn+RPuGz4Dxbr+KbgsfcAXs2HJpgJ33Q8QsCRzESpIAyn3BpDVLB3m9Cd/d++33OKt0tTaX4i6z/heCwMQ==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.433.0.tgz", + "integrity": "sha512-zBTrVbruYkPY4/YrUNP11mHbuVwGx7lxfo/Hlul7iUFhRbVhd/Xg3EYi6fgdTojEWEhY4SltFwVFUrzVAm8V5g==", "optional": true, "dependencies": { - "@aws-sdk/client-cognito-identity": "3.431.0", - "@aws-sdk/types": "3.428.0", + "@aws-sdk/client-cognito-identity": "3.433.0", + "@aws-sdk/types": "3.433.0", "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -328,14 +328,14 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.428.0.tgz", - "integrity": "sha512-e6fbY174Idzw0r5ZMT1qkDh+dpOp1DX3ickhr7J6ipo3cUGLI45Y5lnR9nYXWfB5o/wiNv4zXgN+Y3ORJJHzyA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.433.0.tgz", + "integrity": "sha512-Vl7Qz5qYyxBurMn6hfSiNJeUHSqfVUlMt0C1Bds3tCkl3IzecRWwyBOlxtxO3VCrgVeW3HqswLzCvhAFzPH6nQ==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", + "@aws-sdk/types": "3.433.0", "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -349,17 +349,18 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.428.0.tgz", - "integrity": "sha512-aLrsmLVRTuO/Gx8AYxIUkZ12DdsFnVK9lbfNpeNOisVjM6ZvjCHqMgDsh12ydkUpmb7C0v+ALj8bHzwKcpyMdA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.433.0.tgz", + "integrity": "sha512-HA3Op+tT/EvJnRTzeURFbygNUX5wx5wlD84h4RgWpDa6x3G0lhI1wxCUR5/+qzIpF5vC7E3Q9/yu7ln07RmZlg==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@smithy/fetch-http-handler": "^2.2.3", - "@smithy/node-http-handler": "^2.1.7", + "@aws-sdk/types": "3.433.0", + "@smithy/fetch-http-handler": "^2.2.4", + "@smithy/node-http-handler": "^2.1.8", "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.7", - "@smithy/types": "^2.3.5", + "@smithy/protocol-http": "^3.0.8", + "@smithy/smithy-client": "^2.1.12", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -373,20 +374,20 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.431.0.tgz", - "integrity": "sha512-SILMZuscwxeqB4kuZjWiu24wfvmvN3Tx7/j5n0t0Ob+cdpweK0IqkBQ/QkTbTiG0M1l8trMtMkrTb5510fupcQ==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.433.0.tgz", + "integrity": "sha512-T+YhCOORyA4+i4T86FfFCmi/jPsmLOP6GAtScHp/K8XzB9XuVvJSZ+T8SUKeW6/9G9z3Az7dqeBVLcMdC6fFDA==", "optional": true, "dependencies": { - "@aws-sdk/credential-provider-env": "3.428.0", - "@aws-sdk/credential-provider-process": "3.428.0", - "@aws-sdk/credential-provider-sso": "3.431.0", - "@aws-sdk/credential-provider-web-identity": "3.428.0", - "@aws-sdk/types": "3.428.0", + "@aws-sdk/credential-provider-env": "3.433.0", + "@aws-sdk/credential-provider-process": "3.433.0", + "@aws-sdk/credential-provider-sso": "3.433.0", + "@aws-sdk/credential-provider-web-identity": "3.433.0", + "@aws-sdk/types": "3.433.0", "@smithy/credential-provider-imds": "^2.0.0", "@smithy/property-provider": "^2.0.0", "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -400,21 +401,21 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.431.0.tgz", - "integrity": "sha512-jj2gm92nfsFw5e48+7OCYM5PfiW3pd9FvhEoBfvKANwM6ztXzmNpQcz3iWsGVfzd+MUooVBoO2exhH9M8t+VDg==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.433.0.tgz", + "integrity": "sha512-uOTBJszqGJIX5SrH2YdN501cv9rW4ghuSkasxI9DL+sVV5YRMd/bwu6I3PphRyK7z4dosDEbJ1xoIuVR/W04HQ==", "optional": true, "dependencies": { - "@aws-sdk/credential-provider-env": "3.428.0", - "@aws-sdk/credential-provider-ini": "3.431.0", - "@aws-sdk/credential-provider-process": "3.428.0", - "@aws-sdk/credential-provider-sso": "3.431.0", - "@aws-sdk/credential-provider-web-identity": "3.428.0", - "@aws-sdk/types": "3.428.0", + "@aws-sdk/credential-provider-env": "3.433.0", + "@aws-sdk/credential-provider-ini": "3.433.0", + "@aws-sdk/credential-provider-process": "3.433.0", + "@aws-sdk/credential-provider-sso": "3.433.0", + "@aws-sdk/credential-provider-web-identity": "3.433.0", + "@aws-sdk/types": "3.433.0", "@smithy/credential-provider-imds": "^2.0.0", "@smithy/property-provider": "^2.0.0", "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -428,15 +429,15 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.428.0.tgz", - "integrity": "sha512-UG2S2/4Wrskbkbgt9fBlnzwQ2hfTXvLJwUgGOluSOf6+mGCcoDku4zzc9EQdk1MwN5Us+ziyMrIMNY5sbdLg6g==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.433.0.tgz", + "integrity": "sha512-W7FcGlQjio9Y/PepcZGRyl5Bpwb0uWU7qIUCh+u4+q2mW4D5ZngXg8V/opL9/I/p4tUH9VXZLyLGwyBSkdhL+A==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", + "@aws-sdk/types": "3.433.0", "@smithy/property-provider": "^2.0.0", "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -450,17 +451,17 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.431.0.tgz", - "integrity": "sha512-fh/yWKJtgEpxfuzd/KTVPQz0FjykbiPnU0OLm1wKgNZAyKTE9EyNvWR6P57TWv/sU8faa5uLaxdD0TBPxWReDA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.433.0.tgz", + "integrity": "sha512-vuc2X7q/1HUAO/NowfnNMpRDoHw8H2lyZZzUc0lmamy6PDrEFBi/VTm1nStGPuS9egCFrYlkRHsfp50ukYGa5w==", "optional": true, "dependencies": { - "@aws-sdk/client-sso": "3.431.0", - "@aws-sdk/token-providers": "3.431.0", - "@aws-sdk/types": "3.428.0", + "@aws-sdk/client-sso": "3.433.0", + "@aws-sdk/token-providers": "3.433.0", + "@aws-sdk/types": "3.433.0", "@smithy/property-provider": "^2.0.0", "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -474,14 +475,14 @@ "optional": true }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.428.0.tgz", - "integrity": "sha512-ueuUPPlrJFvtDUVTGnClUGt1wxCbEiKArknah/w9cfcc/c1HtFd/M7x/z2Sm0gSItR45sVcK54qjzmhm29DMzg==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.433.0.tgz", + "integrity": "sha512-RlwjP1I5wO+aPpwyCp23Mk8nmRbRL33hqRASy73c4JA2z2YiRua+ryt6MalIxehhwQU6xvXUKulJnPG9VaMFZg==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", + "@aws-sdk/types": "3.433.0", "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -495,26 +496,26 @@ "optional": true }, "node_modules/@aws-sdk/credential-providers": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.431.0.tgz", - "integrity": "sha512-ZcNX197W9c7NRhNF7Do+2hHq8BjTqYSpzVzmAb1FVi/kTifCj7j3Y8r2jJoYwER1bT+bH9T+O4vGVoCaMabNDw==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.433.0.tgz", + "integrity": "sha512-GKsdnFiab+uiwUCzEZKRVa0/h2Ov/Lft/69DJQtFqkM+RHT/XXhAOA9noZmCOyta6UlRbj3P5ep28oQOTc1czw==", "optional": true, "dependencies": { - "@aws-sdk/client-cognito-identity": "3.431.0", - "@aws-sdk/client-sso": "3.431.0", - "@aws-sdk/client-sts": "3.431.0", - "@aws-sdk/credential-provider-cognito-identity": "3.431.0", - "@aws-sdk/credential-provider-env": "3.428.0", - "@aws-sdk/credential-provider-http": "3.428.0", - "@aws-sdk/credential-provider-ini": "3.431.0", - "@aws-sdk/credential-provider-node": "3.431.0", - "@aws-sdk/credential-provider-process": "3.428.0", - "@aws-sdk/credential-provider-sso": "3.431.0", - "@aws-sdk/credential-provider-web-identity": "3.428.0", - "@aws-sdk/types": "3.428.0", + "@aws-sdk/client-cognito-identity": "3.433.0", + "@aws-sdk/client-sso": "3.433.0", + "@aws-sdk/client-sts": "3.433.0", + "@aws-sdk/credential-provider-cognito-identity": "3.433.0", + "@aws-sdk/credential-provider-env": "3.433.0", + "@aws-sdk/credential-provider-http": "3.433.0", + "@aws-sdk/credential-provider-ini": "3.433.0", + "@aws-sdk/credential-provider-node": "3.433.0", + "@aws-sdk/credential-provider-process": "3.433.0", + "@aws-sdk/credential-provider-sso": "3.433.0", + "@aws-sdk/credential-provider-web-identity": "3.433.0", + "@aws-sdk/types": "3.433.0", "@smithy/credential-provider-imds": "^2.0.0", "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -528,14 +529,14 @@ "optional": true }, "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.431.0.tgz", - "integrity": "sha512-j+OBsCDDRXlMEQ4GCtTxVaMwxIHNKiwbDIZVyB6CDor8AFflKxWbO3cPSpUuGKlUN9OEexMR+XgwsjmaI6AGwg==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.433.0.tgz", + "integrity": "sha512-mBTq3UWv1UzeHG+OfUQ2MB/5GEkt5LTKFaUqzL7ESwzW8XtpBgXnjZvIwu3Vcd3sEetMwijwaGiJhY0ae/YyaA==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@smithy/protocol-http": "^3.0.7", - "@smithy/types": "^2.3.5", + "@aws-sdk/types": "3.433.0", + "@smithy/protocol-http": "^3.0.8", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -549,13 +550,13 @@ "optional": true }, "node_modules/@aws-sdk/middleware-logger": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.428.0.tgz", - "integrity": "sha512-1P0V0quL9u2amdNOn6yYT7/ToQUmkLJqCKHPxsRyDB829vBThWndvvH5MkoItj/VgE1zWqMtrzN3xtzD7zx6Qg==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.433.0.tgz", + "integrity": "sha512-We346Fb5xGonTGVZC9Nvqtnqy74VJzYuTLLiuuftA5sbNzftBDy/22QCfvYSTOAl3bvif+dkDUzQY2ihc5PwOQ==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@smithy/types": "^2.3.5", + "@aws-sdk/types": "3.433.0", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -569,14 +570,14 @@ "optional": true }, "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.428.0.tgz", - "integrity": "sha512-xC0OMduCByyRdiQz324RXy4kunnCG4LUJCfvdoegM33Elp9ex0D3fcfO1mUgV8qiLwSennIsSRVXHuhNxE2HZA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.433.0.tgz", + "integrity": "sha512-HEvYC9PQlWY/ccUYtLvAlwwf1iCif2TSAmLNr3YTBRVa98x6jKL0hlCrHWYklFeqOGSKy6XhE+NGJMUII0/HaQ==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@smithy/protocol-http": "^3.0.7", - "@smithy/types": "^2.3.5", + "@aws-sdk/types": "3.433.0", + "@smithy/protocol-http": "^3.0.8", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -590,14 +591,14 @@ "optional": true }, "node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.428.0.tgz", - "integrity": "sha512-Uutl2niYXTnNP8v84v6umWDHD5no7d5/OqkZE1DsmeKR/dje90J5unJWf7MOsqvYm0JGDEWF4lk9xGVyqsw+Aw==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.433.0.tgz", + "integrity": "sha512-ORYbJnBejUyonFl5FwIqhvI3Cq6sAp9j+JpkKZtFNma9tFPdrhmYgfCeNH32H/wGTQV/tUoQ3luh0gA4cuk6DA==", "optional": true, "dependencies": { - "@aws-sdk/middleware-signing": "3.428.0", - "@aws-sdk/types": "3.428.0", - "@smithy/types": "^2.3.5", + "@aws-sdk/middleware-signing": "3.433.0", + "@aws-sdk/types": "3.433.0", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -611,17 +612,17 @@ "optional": true }, "node_modules/@aws-sdk/middleware-signing": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.428.0.tgz", - "integrity": "sha512-oMSerTPwtsQAR7fIU/G0b0BA30wF+MC4gZSrJjbypF8MK8nPC2yMfKLR8+QavGOGEW7rUMQ0uklThMTTwQEXNQ==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.433.0.tgz", + "integrity": "sha512-jxPvt59NZo/epMNLNTu47ikmP8v0q217I6bQFGJG7JVFnfl36zDktMwGw+0xZR80qiK47/2BWrNpta61Zd2FxQ==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", + "@aws-sdk/types": "3.433.0", "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.7", + "@smithy/protocol-http": "^3.0.8", "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.3.5", - "@smithy/util-middleware": "^2.0.4", + "@smithy/types": "^2.4.0", + "@smithy/util-middleware": "^2.0.5", "tslib": "^2.5.0" }, "engines": { @@ -635,15 +636,15 @@ "optional": true }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.428.0.tgz", - "integrity": "sha512-+GAhObeHRick2D5jr3YkPckjcggt5v6uUVtEUQW2AdD65cE5PjIvmksv6FuM/mME/9nNA+wufQnHbLI8teLeaw==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.433.0.tgz", + "integrity": "sha512-jMgA1jHfisBK4oSjMKrtKEZf0sl2vzADivkFmyZFzORpSZxBnF6hC21RjaI+70LJLcc9rSCzLgcoz5lHb9LLDg==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@aws-sdk/util-endpoints": "3.428.0", - "@smithy/protocol-http": "^3.0.7", - "@smithy/types": "^2.3.5", + "@aws-sdk/types": "3.433.0", + "@aws-sdk/util-endpoints": "3.433.0", + "@smithy/protocol-http": "^3.0.8", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -657,15 +658,15 @@ "optional": true }, "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.430.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.430.0.tgz", - "integrity": "sha512-9lqgtkcd4dqsQ2yN6V/i06blyDh4yLmS+fAS7LwEZih/NZZ2cBIR+5kb9c236auvTcuMcL1zFxVRloWwesYZjA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.433.0.tgz", + "integrity": "sha512-xpjRjCZW+CDFdcMmmhIYg81ST5UAnJh61IHziQEk0FXONrg4kjyYPZAOjEdzXQ+HxJQuGQLKPhRdzxmQnbX7pg==", "optional": true, "dependencies": { - "@smithy/node-config-provider": "^2.1.2", - "@smithy/types": "^2.3.5", + "@smithy/node-config-provider": "^2.1.3", + "@smithy/types": "^2.4.0", "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.4", + "@smithy/util-middleware": "^2.0.5", "tslib": "^2.5.0" }, "engines": { @@ -679,44 +680,44 @@ "optional": true }, "node_modules/@aws-sdk/token-providers": { - "version": "3.431.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.431.0.tgz", - "integrity": "sha512-0ksZogF3Gy2i+yBb7T2g2e7QXzwZeQHmf09ihR1cwXwg7UIjsap6P3gPtC085bDkOD9iY8OdpL0Esp06N6xmCg==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.433.0.tgz", + "integrity": "sha512-Q6aYVaQKB+CkBLHQQlN8MHVpOzZv9snRfVz7SxIpdbHkRuGEHiLliCY3fg6Sonvu3AKEPERPuHcaC75tnNpOBw==", "optional": true, "dependencies": { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.431.0", - "@aws-sdk/middleware-logger": "3.428.0", - "@aws-sdk/middleware-recursion-detection": "3.428.0", - "@aws-sdk/middleware-user-agent": "3.428.0", - "@aws-sdk/types": "3.428.0", - "@aws-sdk/util-endpoints": "3.428.0", - "@aws-sdk/util-user-agent-browser": "3.428.0", - "@aws-sdk/util-user-agent-node": "3.430.0", - "@smithy/config-resolver": "^2.0.15", - "@smithy/fetch-http-handler": "^2.2.3", - "@smithy/hash-node": "^2.0.11", - "@smithy/invalid-dependency": "^2.0.11", - "@smithy/middleware-content-length": "^2.0.13", - "@smithy/middleware-endpoint": "^2.1.2", - "@smithy/middleware-retry": "^2.0.17", - "@smithy/middleware-serde": "^2.0.11", - "@smithy/middleware-stack": "^2.0.5", - "@smithy/node-config-provider": "^2.1.2", - "@smithy/node-http-handler": "^2.1.7", + "@aws-sdk/middleware-host-header": "3.433.0", + "@aws-sdk/middleware-logger": "3.433.0", + "@aws-sdk/middleware-recursion-detection": "3.433.0", + "@aws-sdk/middleware-user-agent": "3.433.0", + "@aws-sdk/types": "3.433.0", + "@aws-sdk/util-endpoints": "3.433.0", + "@aws-sdk/util-user-agent-browser": "3.433.0", + "@aws-sdk/util-user-agent-node": "3.433.0", + "@smithy/config-resolver": "^2.0.16", + "@smithy/fetch-http-handler": "^2.2.4", + "@smithy/hash-node": "^2.0.12", + "@smithy/invalid-dependency": "^2.0.12", + "@smithy/middleware-content-length": "^2.0.14", + "@smithy/middleware-endpoint": "^2.1.3", + "@smithy/middleware-retry": "^2.0.18", + "@smithy/middleware-serde": "^2.0.12", + "@smithy/middleware-stack": "^2.0.6", + "@smithy/node-config-provider": "^2.1.3", + "@smithy/node-http-handler": "^2.1.8", "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.7", + "@smithy/protocol-http": "^3.0.8", "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.11", - "@smithy/types": "^2.3.5", - "@smithy/url-parser": "^2.0.11", + "@smithy/smithy-client": "^2.1.12", + "@smithy/types": "^2.4.0", + "@smithy/url-parser": "^2.0.12", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.15", - "@smithy/util-defaults-mode-node": "^2.0.20", - "@smithy/util-retry": "^2.0.4", + "@smithy/util-defaults-mode-browser": "^2.0.16", + "@smithy/util-defaults-mode-node": "^2.0.21", + "@smithy/util-retry": "^2.0.5", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.5.0" }, @@ -731,12 +732,12 @@ "optional": true }, "node_modules/@aws-sdk/types": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.428.0.tgz", - "integrity": "sha512-4T0Ps2spjg3qbWE6ZK13Vd3FnzpfliaiotqjxUK5YhjDrKXeT36HJp46JhDupElQuHtTkpdiJOSYk2lvY2H4IA==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.433.0.tgz", + "integrity": "sha512-0jEE2mSrNDd8VGFjTc1otYrwYPIkzZJEIK90ZxisKvQ/EURGBhNzWn7ejWB9XCMFT6XumYLBR0V9qq5UPisWtA==", "optional": true, "dependencies": { - "@smithy/types": "^2.3.5", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -750,12 +751,12 @@ "optional": true }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.428.0.tgz", - "integrity": "sha512-ToKMhYlUWJ0YrbggpJLZeyZZNDXtQ4NITxqo/oeGltTT9KG4o/LqVY59EveV0f8P32ObDyj9Vh1mnjxeo3DxGw==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.433.0.tgz", + "integrity": "sha512-LFNUh9FH7RMtYjSjPGz9lAJQMzmJ3RcXISzc5X5k2R/9mNwMK7y1k2VAfvx+RbuDbll6xwsXlgv6QHcxVdF2zw==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", + "@aws-sdk/types": "3.433.0", "tslib": "^2.5.0" }, "engines": { @@ -787,13 +788,13 @@ "optional": true }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.428.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.428.0.tgz", - "integrity": "sha512-qlc2UoGsmCpuh1ErY3VayZuAGl74TWWcLmhhQMkeByFSb6KooBlwOmDpDzJRtgwJoe0KXnyHBO6lzl9iczcozg==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.433.0.tgz", + "integrity": "sha512-2Cf/Lwvxbt5RXvWFXrFr49vXv0IddiUwrZoAiwhDYxvsh+BMnh+NUFot+ZQaTrk/8IPZVDeLPWZRdVy00iaVXQ==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@smithy/types": "^2.3.5", + "@aws-sdk/types": "3.433.0", + "@smithy/types": "^2.4.0", "bowser": "^2.11.0", "tslib": "^2.5.0" } @@ -805,14 +806,14 @@ "optional": true }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.430.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.430.0.tgz", - "integrity": "sha512-DPpFPL3mFMPtipFxjY7TKQBjnhmsPzYCr4Y+qna0oR6ij8jZOz2ILQDK33GxTRNh3+bV9YYbx+ZGDOnxoK5Mhw==", + "version": "3.433.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.433.0.tgz", + "integrity": "sha512-yT1tO4MbbsUBLl5+S+jVv8wxiAtP5TKjKib9B2KQ2x0OtWWTrIf2o+IZK8va+zQqdV4MVMjezdxdE20hOdB4yQ==", "optional": true, "dependencies": { - "@aws-sdk/types": "3.428.0", - "@smithy/node-config-provider": "^2.1.2", - "@smithy/types": "^2.3.5", + "@aws-sdk/types": "3.433.0", + "@smithy/node-config-provider": "^2.1.3", + "@smithy/types": "^2.4.0", "tslib": "^2.5.0" }, "engines": { @@ -2672,21 +2673,21 @@ } }, "node_modules/@eslint/js": { - "version": "8.51.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", - "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", + "version": "8.52.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz", + "integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.12", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.12.tgz", - "integrity": "sha512-NlGesA1usRNn6ctHCZ21M4/dKPgW9Nn1FypRdIKKgZOKzkVV4T1FlK5mBiLhHBCDmEbdQG0idrcXlbZfksJ+RA==", + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^2.0.0", + "@humanwhocodes/object-schema": "^2.0.1", "debug": "^4.1.1", "minimatch": "^3.0.5" }, @@ -2708,9 +2709,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.0.tgz", - "integrity": "sha512-9S9QrXY2K0L4AGDcSgTi9vgiCcG8VcBv4Mp7/1hDPYoswIy6Z6KO5blYto82BT8M0MZNRWmCFLpCs3HlpYGGdw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, "node_modules/@istanbuljs/load-nyc-config": { @@ -2854,9 +2855,9 @@ } }, "node_modules/@natlibfi/fixura-mongo/node_modules/mongodb": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.0.tgz", - "integrity": "sha512-g+GCMHN1CoRUA+wb1Agv0TI4YTSiWr42B5ulkiAfLLHitGK1R+PkSAf3Lr5rPZwi/3F04LiaZEW0Kxro9Fi2TA==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.1.tgz", + "integrity": "sha512-NBGA8AfJxGPeB12F73xXwozt8ZpeIPmCUeWRwl9xejozTXFes/3zaep9zhzs1B/nKKsw4P3I4iPfXl3K7s6g+Q==", "dev": true, "dependencies": { "bson": "^5.5.0", @@ -2942,18 +2943,18 @@ } }, "node_modules/@natlibfi/marc-record-validators-melinda": { - "version": "10.14.0", - "resolved": "https://registry.npmjs.org/@natlibfi/marc-record-validators-melinda/-/marc-record-validators-melinda-10.14.0.tgz", - "integrity": "sha512-PiGH5PzQPPybO/qmVxFVT3QqCsP0u6KxeSEEub1l8jtPvpFKSqxzye7vSUlVovYAf/TQyoKQXpqYInTzertOJA==", + "version": "10.15.0", + "resolved": "https://registry.npmjs.org/@natlibfi/marc-record-validators-melinda/-/marc-record-validators-melinda-10.15.0.tgz", + "integrity": "sha512-KsZq5NkR8khwInsX8rnBhmj3fut/ilDLiN2UrAE9vQojitZopXnDlcUymSy2Y92bXja4LYq50/Jao/iyPZU3iA==", "dependencies": { "@babel/register": "^7.22.15", "@natlibfi/issn-verify": "^1.0.3", - "@natlibfi/marc-record": "^7.3.1", - "@natlibfi/marc-record-validate": "^8.0.1", + "@natlibfi/marc-record": "^8.0.0", + "@natlibfi/marc-record-validate": "^8.0.3", "cld3-asm": "^3.1.1", "clone": "^2.1.2", "debug": "^4.3.4", - "isbn3": "^1.1.41", + "isbn3": "^1.1.42", "langs": "^2.0.0", "node-fetch": "^2.7.0", "xml2js": "^0.6.2" @@ -2962,21 +2963,33 @@ "node": ">=18" }, "peerDependencies": { - "@natlibfi/marc-record-validate": "^8.0.1" + "@natlibfi/marc-record-validate": "^8.0.3" + } + }, + "node_modules/@natlibfi/marc-record-validators-melinda/node_modules/@natlibfi/marc-record": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@natlibfi/marc-record/-/marc-record-8.0.0.tgz", + "integrity": "sha512-dU/5tt0zXe2ynuugNRQybKhn3tCvL7ClXmOEdFNY7fR+bStqFuEI+gq2gWSzaT2lywhIAByTo1Y5m+uY09eEnA==", + "dependencies": { + "debug": "^4.3.4", + "jsonschema": "^1.4.1" + }, + "engines": { + "node": ">=14" } }, "node_modules/@natlibfi/melinda-backend-commons": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@natlibfi/melinda-backend-commons/-/melinda-backend-commons-2.2.1.tgz", - "integrity": "sha512-Qofe5QQ/JuW9LJEBF41ZBrM5B3/mARoO0i7PsIad5K7S9LQaxl4vHxnNzQOgBQSUcecYagu0cWRxBzL6sjm0nQ==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@natlibfi/melinda-backend-commons/-/melinda-backend-commons-2.2.2.tgz", + "integrity": "sha512-zjN5mOEozY+MQ13meQS3rYQ/ZHxBsAceq5+AKZufHBPtM7N+2IW+8Jxhb5OUwvhF7sAAEThafCDpCKkdX/N3xg==", "dependencies": { "base64-url": "^2.3.3", "debug": "^4.3.4", "express-winston": "^4.2.0", "moment": "^2.29.4", "pretty-print-ms": "^1.0.5", - "uuid": "^9.0.0", - "winston": "^3.10.0" + "uuid": "^9.0.1", + "winston": "^3.11.0" }, "bin": { "gen-encryption-key": "dist/gen-encryption-key.js", @@ -3834,9 +3847,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.8.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", - "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "version": "20.8.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz", + "integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==", "dependencies": { "undici-types": "~5.25.1" } @@ -3867,13 +3880,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", - "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.0.tgz", + "integrity": "sha512-1R8A9Mc39n4pCCz9o79qRO31HGNDvC7UhPhv26TovDsWPBDx+Sg3rOZdCELIA3ZmNoWAuxaMOT7aWtGRSYkQxw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0" + "@typescript-eslint/types": "6.9.0", + "@typescript-eslint/visitor-keys": "6.9.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -3884,13 +3897,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.8.0.tgz", - "integrity": "sha512-RYOJdlkTJIXW7GSldUIHqc/Hkto8E+fZN96dMIFhuTJcQwdRoGN2rEWA8U6oXbLo0qufH7NPElUb+MceHtz54g==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.0.tgz", + "integrity": "sha512-XXeahmfbpuhVbhSOROIzJ+b13krFmgtc4GlEuu1WBT+RpyGPIA4Y/eGnXzjbDj5gZLzpAXO/sj+IF/x2GtTMjQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.8.0", - "@typescript-eslint/utils": "6.8.0", + "@typescript-eslint/typescript-estree": "6.9.0", + "@typescript-eslint/utils": "6.9.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -3911,9 +3924,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.8.0.tgz", - "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.0.tgz", + "integrity": "sha512-+KB0lbkpxBkBSiVCuQvduqMJy+I1FyDbdwSpM3IoBS7APl4Bu15lStPjgBIdykdRqQNYqYNMa8Kuidax6phaEw==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -3924,13 +3937,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.8.0.tgz", - "integrity": "sha512-ISgV0lQ8XgW+mvv5My/+iTUdRmGspducmQcDw5JxznasXNnZn3SKNrTRuMsEXv+V/O+Lw9AGcQCfVaOPCAk/Zg==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.0.tgz", + "integrity": "sha512-NJM2BnJFZBEAbCfBP00zONKXvMqihZCrmwCaik0UhLr0vAgb6oguXxLX1k00oQyD+vZZ+CJn3kocvv2yxm4awQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/visitor-keys": "6.8.0", + "@typescript-eslint/types": "6.9.0", + "@typescript-eslint/visitor-keys": "6.9.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -3984,17 +3997,17 @@ "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.8.0.tgz", - "integrity": "sha512-dKs1itdE2qFG4jr0dlYLQVppqTE+Itt7GmIf/vX6CSvsW+3ov8PbWauVKyyfNngokhIO9sKZeRGCUo1+N7U98Q==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.0.tgz", + "integrity": "sha512-5Wf+Jsqya7WcCO8me504FBigeQKVLAMPmUzYgDbWchINNh1KJbxCgVya3EQ2MjvJMVeXl3pofRmprqX6mfQkjQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.8.0", - "@typescript-eslint/types": "6.8.0", - "@typescript-eslint/typescript-estree": "6.8.0", + "@typescript-eslint/scope-manager": "6.9.0", + "@typescript-eslint/types": "6.9.0", + "@typescript-eslint/typescript-estree": "6.9.0", "semver": "^7.5.4" }, "engines": { @@ -4042,12 +4055,12 @@ "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", - "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.0.tgz", + "integrity": "sha512-dGtAfqjV6RFOtIP8I0B4ZTBRrlTT8NHHlZZSchQx3qReaoDeXhYM++M4So2AgFK9ZB0emRPA6JI1HkafzA2Ibg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.8.0", + "@typescript-eslint/types": "6.9.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -4070,6 +4083,12 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "node_modules/@xmldom/xmldom": { "version": "0.8.10", "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", @@ -4303,13 +4322,13 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz", - "integrity": "sha512-Q6CdATeAvbScWPNLB8lzSO7fgUVBkQt6zLgNlfyeCr/EQaEQR+bWiBYYPYAFyE528BMjRhL+1QBMOI4jc/c5TA==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz", + "integrity": "sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==", "dev": true, "dependencies": { "@babel/helper-define-polyfill-provider": "^0.4.3", - "core-js-compat": "^3.32.2" + "core-js-compat": "^3.33.1" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -4542,9 +4561,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001551", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz", - "integrity": "sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==", + "version": "1.0.30001553", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001553.tgz", + "integrity": "sha512-N0ttd6TrFfuqKNi+pMgWJTb9qrdJu4JSpgPFLe/lrD19ugC6fZgF0pUewRowDwzdDnb9V41mFcdlYgl/PyKf4A==", "funding": [ { "type": "opencollective", @@ -4750,9 +4769,9 @@ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" }, "node_modules/core-js-compat": { - "version": "3.33.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.0.tgz", - "integrity": "sha512-0w4LcLXsVEuNkIqwjjf9rjCoPhK8uqA4tMRh4Ge26vfLtUutshn+aRJU21I9LCJlh2QQHfisNToLjw1XEJLTWw==", + "version": "3.33.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.1.tgz", + "integrity": "sha512-6pYKNOgD/j/bkC5xS5IIg6bncid3rfrI42oBH1SQJbsmYPKF7rhzcFzYCcxYMmNQQ0rCEB8WqpW7QHndOggaeQ==", "dev": true, "dependencies": { "browserslist": "^4.22.1" @@ -4899,9 +4918,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.561", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.561.tgz", - "integrity": "sha512-eS5t4ulWOBfVHdq9SW2dxEaFarj1lPjvJ8PaYMOjY0DecBaj/t4ARziL2IPpDr4atyWwjLFGQ2vo/VCgQFezVQ==" + "version": "1.4.565", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.565.tgz", + "integrity": "sha512-XbMoT6yIvg2xzcbs5hCADi0dXBh4//En3oFXmtPX+jiyyiCTiM9DGFT2SLottjpEs9Z8Mh8SqahbR96MaHfuSg==" }, "node_modules/emoji-regex": { "version": "8.0.0", @@ -4949,18 +4968,19 @@ } }, "node_modules/eslint": { - "version": "8.51.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", - "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", + "version": "8.52.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz", + "integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.51.0", - "@humanwhocodes/config-array": "^0.11.11", + "@eslint/js": "8.52.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -5842,6 +5862,15 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -5969,15 +5998,6 @@ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "node_modules/has": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", - "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -6002,6 +6022,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -6153,12 +6185,12 @@ } }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dev": true, "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -7390,9 +7422,9 @@ } }, "node_modules/mongodb-memory-server-core/node_modules/mongodb": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.0.tgz", - "integrity": "sha512-g+GCMHN1CoRUA+wb1Agv0TI4YTSiWr42B5ulkiAfLLHitGK1R+PkSAf3Lr5rPZwi/3F04LiaZEW0Kxro9Fi2TA==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.1.tgz", + "integrity": "sha512-NBGA8AfJxGPeB12F73xXwozt8ZpeIPmCUeWRwl9xejozTXFes/3zaep9zhzs1B/nKKsw4P3I4iPfXl3K7s6g+Q==", "dev": true, "dependencies": { "bson": "^5.5.0", diff --git a/src/mongoLog.js b/src/mongoLog.js index 88c031d9..85be8050 100644 --- a/src/mongoLog.js +++ b/src/mongoLog.js @@ -42,7 +42,7 @@ export default async function (MONGO_URI, dbName = 'rest-api') { const client = await MongoClient.connect(MONGO_URI, {useNewUrlParser: true, useUnifiedTopology: true}); const db = client.db(dbName); const collection = 'logs'; - return {addLogItem, query, queryById, getListOfLogs, getCatalogersListOfLogs, getExpandedListOfLogs, protect, remove, removeBySequences}; + return {addLogItem, query, queryById, getListOfLogs, getListOfCatalogers, getExpandedListOfLogs, protect, remove, removeBySequences}; async function addLogItem(logItem) { const time = moment().toDate(); @@ -52,14 +52,14 @@ export default async function (MONGO_URI, dbName = 'rest-api') { protected: false }; try { - console.log(newLogItem); // eslint-disable-line + // console.log(newLogItem); // eslint-disable-line checkLogItemType(logItem.logItemType, false); const result = await db.collection(collection).insertOne(newLogItem); if (result.acknowledged) { const {blobSequence, blobSequenceStart, blobSequenceEnd} = logItem; const itemString = blobSequenceStart && blobSequenceEnd ? `${blobSequenceStart} - ${blobSequenceEnd}` : `${blobSequence}`; logger.info(`*** New ${logItem.logItemType} added for ${logItem.correlationId}, blobSequence(s): ${itemString}. ***`); - console.log('addLogItem done', result); // eslint-disable-line + // console.log('addLogItem done', result); // eslint-disable-line return; } throw new ApiError(httpStatus.INTERNAL_SERVER_ERROR); @@ -109,8 +109,8 @@ export default async function (MONGO_URI, dbName = 'rest-api') { return {status: result.length > 0 ? httpStatus.OK : httpStatus.NOT_FOUND, payload: result.length > 0 ? result : 'No logs found'}; } - async function getCatalogersListOfLogs() { - logger.debug(`Getting expanded list of logs`); + async function getListOfCatalogers() { + logger.debug(`Getting list of Catalogers`); const result = await db.collection(collection) // eslint-disable-line functional/immutable-data .distinct('cataloger'); @@ -163,13 +163,15 @@ export default async function (MONGO_URI, dbName = 'rest-api') { return {status: fixedResult.length > 0 ? httpStatus.OK : httpStatus.NOT_FOUND, payload: fixedResult.length > 0 ? fixedResult : 'No logs found'}; function generateMatchObject(logItemTypes, catalogers, dateBefore, dateAfter) { + const dateBeforeIso = new Date(dateBefore).toISOString(); + const dateAfterIso = new Date(dateAfter).toISOString(); const matchOptions = { '$match': { 'logItemType': logItemTypes.length > 0 ? {'$in': logItemTypes} : /.*/ui, 'cataloger': catalogers.length > 0 ? {'$in': catalogers} : /.*/ui, 'creationTime': { - '$gte': new Date(dateAfter).toISOString(), - '$lte': new Date(dateBefore).toISOString() + '$gte': dateAfterIso, + '$lte': dateBeforeIso } } }; diff --git a/src/mongoLog.spec.js b/src/mongoLog.spec.js index b965e356..d465efcb 100644 --- a/src/mongoLog.spec.js +++ b/src/mongoLog.spec.js @@ -64,14 +64,14 @@ async function callback({ if (functionName === 'getCatalogersListOfLogs') { const result = await mongoLogOperator.getCatalogersListOfLogs(); - console.log(result); // eslint-disable-line + // console.log(result); // eslint-disable-line return expect(result).to.eql(expectedResult); } if (functionName === 'getExpandedListOfLogs') { const result = await mongoLogOperator.getExpandedListOfLogs(params); - console.log(result); // eslint-disable-line + // console.log(result); // eslint-disable-line return expect(result).to.eql(expectedResult); } diff --git a/test-fixtures/mongoLog/02/metadata.json b/test-fixtures/mongoLog/02/metadata.json index 39f2e934..73bc0216 100644 --- a/test-fixtures/mongoLog/02/metadata.json +++ b/test-fixtures/mongoLog/02/metadata.json @@ -1,8 +1,8 @@ { - "description": "Function: getCatalogersListOfLogs, gets 3 uniq catalogers from 3 logs (MATCH_LOG and MERGE_LOG)", + "description": "Function: getListOfCatalogers, gets 3 uniq catalogers from 3 logs (MATCH_LOG and MERGE_LOG)", "only": false, "skip": false, - "functionName": "getCatalogersListOfLogs", + "functionName": "getListOfCatalogers", "preFillDb": true, "params": [] } \ No newline at end of file diff --git a/test-fixtures/mongoLog/04/expectedResult.json b/test-fixtures/mongoLog/04/expectedResult.json index a5d8efac..a01a74de 100644 --- a/test-fixtures/mongoLog/04/expectedResult.json +++ b/test-fixtures/mongoLog/04/expectedResult.json @@ -13,6 +13,13 @@ "creationTime": "2023-08-08T01:25:59.348Z", "logCount": 1, "logItemType": "MERGE_LOG" + }, + { + "cataloger": "IMP_TEST3", + "correlationId": "7207c1f2-cbc4-4a0c-bd64-344a746ee605", + "creationTime": "2023-09-21T01:07:26.693Z", + "logCount": 1, + "logItemType": "MATCH_LOG" } ], "status": 200 diff --git a/test-fixtures/mongoLog/04/metadata.json b/test-fixtures/mongoLog/04/metadata.json index b339fa80..e7dd0c58 100644 --- a/test-fixtures/mongoLog/04/metadata.json +++ b/test-fixtures/mongoLog/04/metadata.json @@ -1,8 +1,8 @@ { - "description": "Function: getExpandedListOfLogs - Empty params get all 3", + "description": "Function: getExpandedListOfLogs - params {logItemTypes: [MERGE_LOG, MATCH_LOG]} get all 3", "only": false, "skip": false, "functionName": "getExpandedListOfLogs", "preFillDb": true, - "params": {"logItemTypes": ["MERGE_LOG"]} + "params": {"logItemTypes": ["MERGE_LOG", "MATCH_LOG"]} } \ No newline at end of file diff --git a/test-fixtures/mongoLog/05/metadata.json b/test-fixtures/mongoLog/05/metadata.json index 920872e0..b7654c72 100644 --- a/test-fixtures/mongoLog/05/metadata.json +++ b/test-fixtures/mongoLog/05/metadata.json @@ -1,8 +1,8 @@ { - "description": "Function: getExpandedListOfLogs - logItemType and default dates - get 2/3", - "only": true, + "description": "Function: getExpandedListOfLogs - params {logItemTypes: [MERGE_LOG]} get 2", + "only": false, "skip": false, "functionName": "getExpandedListOfLogs", "preFillDb": true, - "params": {"logItemTypes": ["MERGE_LOG"], "dateAfter": "Sat Jan 01 2000 02:00:00 GMT+0200 (Eastern European Standard Time)", "dateBefore": "Fri Oct 20 2023 16:37:00 GMT+0300 (Eastern European Summer Time)"} + "params": {"logItemTypes": ["MERGE_LOG"]} } \ No newline at end of file diff --git a/test-fixtures/mongoLog/06/expectedResult.json b/test-fixtures/mongoLog/06/expectedResult.json index 61cf16b7..81be6473 100644 --- a/test-fixtures/mongoLog/06/expectedResult.json +++ b/test-fixtures/mongoLog/06/expectedResult.json @@ -1,9 +1,9 @@ { "payload": [ { - "cataloger": "IMP_TEST2", - "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", - "creationTime": "2023-08-08T01:25:59.348Z", + "cataloger": "IMP_TEST1", + "correlationId": "bdce85eb-0ca2-4525-b00e-ae67d43b68ec", + "creationTime": "2023-08-07T01:21:38.392Z", "logCount": 1, "logItemType": "MERGE_LOG" } diff --git a/test-fixtures/mongoLog/06/metadata.json b/test-fixtures/mongoLog/06/metadata.json index 6d2eb4c7..54ae797f 100644 --- a/test-fixtures/mongoLog/06/metadata.json +++ b/test-fixtures/mongoLog/06/metadata.json @@ -1,8 +1,8 @@ { - "description": "Function: getExpandedListOfLogs - logItemType and default dates - get 2/3", - "only": true, + "description": "Function: getExpandedListOfLogs - params {catalogers: [IMP_TEST1]} get 1", + "only": false, "skip": false, "functionName": "getExpandedListOfLogs", "preFillDb": true, - "params": {"logItemTypes": ["MERGE_LOG"], "dateAfter": "2023-08-07T01:24:00", "dateBefore": "Fri Oct 20 2023 16:37:00 GMT+0300 (Eastern European Summer Time)"} + "params": {"catalogers": ["IMP_TEST1"]} } \ No newline at end of file diff --git a/test-fixtures/mongoLog/07/dbContents.json b/test-fixtures/mongoLog/07/dbContents.json new file mode 100644 index 00000000..d638ee89 --- /dev/null +++ b/test-fixtures/mongoLog/07/dbContents.json @@ -0,0 +1,418 @@ +{ + "logs": [ + { + "_id": "64d047221f61fa986baf465a", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST1", + "correlationId": "bdce85eb-0ca2-4525-b00e-ae67d43b68ec", + "blobSequence": 19, + "sourceIds": [ + "(FI-KV)VER2609057" + ], + "title": "Test title 1", + "standardIdentifiers": [ + "978-952-00-0000-0" + ], + "databaseId": "000000001", + "preference": { + "name": "B won leader (validation and preference)", + "value": "B", + "recordName": "databaseRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000nam a22000008i 4500", + "fields": [ + { + "tag": "008", + "value": "230807s2020 fi |||||||||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "creationTime": "2023-07-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-07T19:21:54.534Z" + }, + { + "_id": "64d199a71f61fa986baf5a45", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 2", + "standardIdentifiers": [ + "978-87-00-00000-0" + ], + "databaseId": "000000002", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230808s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01547cim a22004578i 4500", + "fields": [ + { + "tag": "001", + "value": "000000002" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230607044137.0" + }, + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "creationTime": "2023-08-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-15T06:51:30.558Z" + }, + { + "_id": "650b974eaf2b011f1349100f", + "logItemType": "MATCH_LOG", + "cataloger": "IMP_TEST3", + "correlationId": "7207c1f2-cbc4-4a0c-bd64-344a746ee605", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 3", + "standardIdentifiers": [ + "978-951-00-0000-0" + ], + "databaseId": "000000003", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": {}, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230921s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01384cam a22004338i 4500", + "fields": [ + { + "tag": "001", + "value": "000000003" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230606044708.0" + }, + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "creationTime": "2023-09-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-09-21T08:19:32.545Z" + } + ] +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/07/expectedResult.json b/test-fixtures/mongoLog/07/expectedResult.json new file mode 100644 index 00000000..a4c603fc --- /dev/null +++ b/test-fixtures/mongoLog/07/expectedResult.json @@ -0,0 +1,19 @@ + { + "payload": [ + { + "cataloger": "IMP_TEST1", + "correlationId": "bdce85eb-0ca2-4525-b00e-ae67d43b68ec", + "creationTime": "2023-07-08T00:00:01.000Z", + "logCount": 1, + "logItemType": "MERGE_LOG" + }, + { + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "creationTime": "2023-08-08T00:00:01.000Z", + "logCount": 1, + "logItemType": "MERGE_LOG" + } + ], + "status": 200 + } \ No newline at end of file diff --git a/test-fixtures/mongoLog/07/metadata.json b/test-fixtures/mongoLog/07/metadata.json new file mode 100644 index 00000000..126a0ee5 --- /dev/null +++ b/test-fixtures/mongoLog/07/metadata.json @@ -0,0 +1,8 @@ +{ + "description": "Function: getExpandedListOfLogs - params {dateBefore: 2023-08-09} get 2", + "only": false, + "skip": false, + "functionName": "getExpandedListOfLogs", + "preFillDb": true, + "params": {"dateBefore": "2023-08-09"} +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/08/dbContents.json b/test-fixtures/mongoLog/08/dbContents.json new file mode 100644 index 00000000..d638ee89 --- /dev/null +++ b/test-fixtures/mongoLog/08/dbContents.json @@ -0,0 +1,418 @@ +{ + "logs": [ + { + "_id": "64d047221f61fa986baf465a", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST1", + "correlationId": "bdce85eb-0ca2-4525-b00e-ae67d43b68ec", + "blobSequence": 19, + "sourceIds": [ + "(FI-KV)VER2609057" + ], + "title": "Test title 1", + "standardIdentifiers": [ + "978-952-00-0000-0" + ], + "databaseId": "000000001", + "preference": { + "name": "B won leader (validation and preference)", + "value": "B", + "recordName": "databaseRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000nam a22000008i 4500", + "fields": [ + { + "tag": "008", + "value": "230807s2020 fi |||||||||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "creationTime": "2023-07-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-07T19:21:54.534Z" + }, + { + "_id": "64d199a71f61fa986baf5a45", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 2", + "standardIdentifiers": [ + "978-87-00-00000-0" + ], + "databaseId": "000000002", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230808s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01547cim a22004578i 4500", + "fields": [ + { + "tag": "001", + "value": "000000002" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230607044137.0" + }, + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "creationTime": "2023-08-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-15T06:51:30.558Z" + }, + { + "_id": "650b974eaf2b011f1349100f", + "logItemType": "MATCH_LOG", + "cataloger": "IMP_TEST3", + "correlationId": "7207c1f2-cbc4-4a0c-bd64-344a746ee605", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 3", + "standardIdentifiers": [ + "978-951-00-0000-0" + ], + "databaseId": "000000003", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": {}, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230921s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01384cam a22004338i 4500", + "fields": [ + { + "tag": "001", + "value": "000000003" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230606044708.0" + }, + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "creationTime": "2023-09-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-09-21T08:19:32.545Z" + } + ] +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/08/expectedResult.json b/test-fixtures/mongoLog/08/expectedResult.json new file mode 100644 index 00000000..410b122f --- /dev/null +++ b/test-fixtures/mongoLog/08/expectedResult.json @@ -0,0 +1,19 @@ + { + "payload": [ + { + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "creationTime": "2023-08-08T00:00:01.000Z", + "logCount": 1, + "logItemType": "MERGE_LOG" + }, + { + "cataloger": "IMP_TEST3", + "correlationId": "7207c1f2-cbc4-4a0c-bd64-344a746ee605", + "creationTime": "2023-09-08T00:00:01.000Z", + "logCount": 1, + "logItemType": "MATCH_LOG" + } + ], + "status": 200 + } \ No newline at end of file diff --git a/test-fixtures/mongoLog/08/metadata.json b/test-fixtures/mongoLog/08/metadata.json new file mode 100644 index 00000000..caaee5a3 --- /dev/null +++ b/test-fixtures/mongoLog/08/metadata.json @@ -0,0 +1,8 @@ +{ + "description": "Function: getExpandedListOfLogs - params {dateAfter: 2023-08-07} get 2", + "only": false, + "skip": false, + "functionName": "getExpandedListOfLogs", + "preFillDb": true, + "params": {"dateAfter": "2023-08-07"} +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/09/dbContents.json b/test-fixtures/mongoLog/09/dbContents.json new file mode 100644 index 00000000..d638ee89 --- /dev/null +++ b/test-fixtures/mongoLog/09/dbContents.json @@ -0,0 +1,418 @@ +{ + "logs": [ + { + "_id": "64d047221f61fa986baf465a", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST1", + "correlationId": "bdce85eb-0ca2-4525-b00e-ae67d43b68ec", + "blobSequence": 19, + "sourceIds": [ + "(FI-KV)VER2609057" + ], + "title": "Test title 1", + "standardIdentifiers": [ + "978-952-00-0000-0" + ], + "databaseId": "000000001", + "preference": { + "name": "B won leader (validation and preference)", + "value": "B", + "recordName": "databaseRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000nam a22000008i 4500", + "fields": [ + { + "tag": "008", + "value": "230807s2020 fi |||||||||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "creationTime": "2023-07-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-07T19:21:54.534Z" + }, + { + "_id": "64d199a71f61fa986baf5a45", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 2", + "standardIdentifiers": [ + "978-87-00-00000-0" + ], + "databaseId": "000000002", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230808s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01547cim a22004578i 4500", + "fields": [ + { + "tag": "001", + "value": "000000002" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230607044137.0" + }, + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "creationTime": "2023-08-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-15T06:51:30.558Z" + }, + { + "_id": "650b974eaf2b011f1349100f", + "logItemType": "MATCH_LOG", + "cataloger": "IMP_TEST3", + "correlationId": "7207c1f2-cbc4-4a0c-bd64-344a746ee605", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 3", + "standardIdentifiers": [ + "978-951-00-0000-0" + ], + "databaseId": "000000003", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": {}, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230921s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01384cam a22004338i 4500", + "fields": [ + { + "tag": "001", + "value": "000000003" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230606044708.0" + }, + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "creationTime": "2023-09-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-09-21T08:19:32.545Z" + } + ] +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/09/expectedResult.json b/test-fixtures/mongoLog/09/expectedResult.json new file mode 100644 index 00000000..5e9c910e --- /dev/null +++ b/test-fixtures/mongoLog/09/expectedResult.json @@ -0,0 +1,12 @@ + { + "payload": [ + { + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "creationTime": "2023-08-08T00:00:01.000Z", + "logCount": 1, + "logItemType": "MERGE_LOG" + } + ], + "status": 200 + } \ No newline at end of file diff --git a/test-fixtures/mongoLog/09/metadata.json b/test-fixtures/mongoLog/09/metadata.json new file mode 100644 index 00000000..a2851d5e --- /dev/null +++ b/test-fixtures/mongoLog/09/metadata.json @@ -0,0 +1,8 @@ +{ + "description": "Function: getExpandedListOfLogs - params {dateBefore: 2023-08-09, dateAfter: 2023-08-07} get 1", + "only": false, + "skip": false, + "functionName": "getExpandedListOfLogs", + "preFillDb": true, + "params": {"dateBefore": "2023-08-09", "dateAfter": "2023-08-07"} +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/10/dbContents.json b/test-fixtures/mongoLog/10/dbContents.json new file mode 100644 index 00000000..d638ee89 --- /dev/null +++ b/test-fixtures/mongoLog/10/dbContents.json @@ -0,0 +1,418 @@ +{ + "logs": [ + { + "_id": "64d047221f61fa986baf465a", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST1", + "correlationId": "bdce85eb-0ca2-4525-b00e-ae67d43b68ec", + "blobSequence": 19, + "sourceIds": [ + "(FI-KV)VER2609057" + ], + "title": "Test title 1", + "standardIdentifiers": [ + "978-952-00-0000-0" + ], + "databaseId": "000000001", + "preference": { + "name": "B won leader (validation and preference)", + "value": "B", + "recordName": "databaseRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000nam a22000008i 4500", + "fields": [ + { + "tag": "008", + "value": "230807s2020 fi |||||||||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "02634cam a22005894i 4500", + "fields": [ + { + "tag": "001", + "value": "000000001" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230331062218.0" + }, + { + "tag": "008", + "value": "200409t20202020fi |||| |0| f|fin|c" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-952-00-0000-0" + }, + { + "code": "q", + "value": "kovakantinen" + } + ] + } + ] + }, + "creationTime": "2023-07-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-07T19:21:54.534Z" + }, + { + "_id": "64d199a71f61fa986baf5a45", + "logItemType": "MERGE_LOG", + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 2", + "standardIdentifiers": [ + "978-87-00-00000-0" + ], + "databaseId": "000000002", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230808s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01547cim a22004578i 4500", + "fields": [ + { + "tag": "001", + "value": "000000002" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230607044137.0" + }, + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cim a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||h||||||||" + }, + { + "tag": "007", + "value": "sr|uunnnnnuneu" + }, + { + "tag": "007", + "value": "cr|nnannnuuuuu" + }, + { + "tag": "008", + "value": "230518s2023 dk |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-87-00-00000-0" + }, + { + "code": "q", + "value": "MP3" + } + ] + } + ] + }, + "creationTime": "2023-08-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-08-15T06:51:30.558Z" + }, + { + "_id": "650b974eaf2b011f1349100f", + "logItemType": "MATCH_LOG", + "cataloger": "IMP_TEST3", + "correlationId": "7207c1f2-cbc4-4a0c-bd64-344a746ee605", + "blobSequence": 2, + "sourceIds": [], + "title": "Test title 3", + "standardIdentifiers": [ + "978-951-00-0000-0" + ], + "databaseId": "000000003", + "preference": { + "name": "A won leader (validation and preference)", + "value": "A", + "recordName": "incomingRecord" + }, + "incomingRecord": { + "_validationOptions": {}, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230921s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "databaseRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "01384cam a22004338i 4500", + "fields": [ + { + "tag": "001", + "value": "000000003" + }, + { + "tag": "003", + "value": "FI-MELINDA" + }, + { + "tag": "005", + "value": "20230606044708.0" + }, + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "ind1": " ", + "ind2": " ", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ] + } + ] + }, + "mergedRecord": { + "_validationOptions": { + "subfieldValues": false + }, + "leader": "00000cam a22000002i 4500", + "fields": [ + { + "tag": "006", + "value": "m|||||o||d||||||||" + }, + { + "tag": "007", + "value": "cr||||||||||||" + }, + { + "tag": "008", + "value": "230606s2023 fi |||||o|||||||||||fin||" + }, + { + "tag": "020", + "subfields": [ + { + "code": "a", + "value": "978-951-00-0000-0" + }, + { + "code": "q", + "value": "EPUB" + } + ], + "ind1": " ", + "ind2": " " + } + ] + }, + "creationTime": "2023-09-08T00:00:01.000Z", + "protected": true, + "modificationTime": "2023-09-21T08:19:32.545Z" + } + ] +} \ No newline at end of file diff --git a/test-fixtures/mongoLog/10/expectedResult.json b/test-fixtures/mongoLog/10/expectedResult.json new file mode 100644 index 00000000..5e9c910e --- /dev/null +++ b/test-fixtures/mongoLog/10/expectedResult.json @@ -0,0 +1,12 @@ + { + "payload": [ + { + "cataloger": "IMP_TEST2", + "correlationId": "f63bad0b-8820-428a-b570-c172f209ee94", + "creationTime": "2023-08-08T00:00:01.000Z", + "logCount": 1, + "logItemType": "MERGE_LOG" + } + ], + "status": 200 + } \ No newline at end of file diff --git a/test-fixtures/mongoLog/10/metadata.json b/test-fixtures/mongoLog/10/metadata.json new file mode 100644 index 00000000..c0cc5eb2 --- /dev/null +++ b/test-fixtures/mongoLog/10/metadata.json @@ -0,0 +1,8 @@ +{ + "description": "Function: getExpandedListOfLogs - params {dateBefore: Wed Aug 09 2023 00:00:01 GMT+0300 (Eastern European Summer Time), dateAfter: Mon Aug 07 2023 00:00:01 GMT+0300 (Eastern European Summer Time)} get 1", + "only": false, + "skip": false, + "functionName": "getExpandedListOfLogs", + "preFillDb": true, + "params": {"dateBefore": "Wed Aug 09 2023 00:00:01 GMT+0300 (Eastern European Summer Time)", "dateAfter": "Mon Aug 07 2023 00:00:01 GMT+0300 (Eastern European Summer Time)"} +} \ No newline at end of file