From b6e0588c637789815a3ccaefb598d8f5c9243f15 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 11:12:20 +0000 Subject: [PATCH 01/27] partially able to generate opportunity data. WIP --- .../package-lock.json | 1 + .../package-lock.json | 1 + packages/test-interface-criteria/.eslintrc.js | 1 + .../test-interface-criteria/package-lock.json | 5635 +++++++++++++---- packages/test-interface-criteria/package.json | 5 + .../criteria/TestOpportunityBookable.test.js | 124 + 6 files changed, 4550 insertions(+), 1217 deletions(-) create mode 100644 packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js diff --git a/packages/openactive-broker-microservice/package-lock.json b/packages/openactive-broker-microservice/package-lock.json index a044dcb817..f198c59869 100644 --- a/packages/openactive-broker-microservice/package-lock.json +++ b/packages/openactive-broker-microservice/package-lock.json @@ -117,6 +117,7 @@ "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "rimraf": "^5.0.5", "typescript": "^5.1.6" }, "engines": { diff --git a/packages/openactive-integration-tests/package-lock.json b/packages/openactive-integration-tests/package-lock.json index 0e36283ab4..e79bfacd76 100644 --- a/packages/openactive-integration-tests/package-lock.json +++ b/packages/openactive-integration-tests/package-lock.json @@ -108,6 +108,7 @@ "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "rimraf": "^5.0.5", "typescript": "^5.1.6" }, "engines": { diff --git a/packages/test-interface-criteria/.eslintrc.js b/packages/test-interface-criteria/.eslintrc.js index 12e1d8b0b3..229245ef29 100644 --- a/packages/test-interface-criteria/.eslintrc.js +++ b/packages/test-interface-criteria/.eslintrc.js @@ -2,6 +2,7 @@ module.exports = { extends: 'airbnb-base', env: { node: true, + 'jest/globals': true, }, globals: { expectAsync: true, diff --git a/packages/test-interface-criteria/package-lock.json b/packages/test-interface-criteria/package-lock.json index b24e2a6e46..28652350ae 100644 --- a/packages/test-interface-criteria/package-lock.json +++ b/packages/test-interface-criteria/package-lock.json @@ -15,10 +15,15 @@ "ramda": "^0.27.1" }, "devDependencies": { + "@faker-js/faker": "^8.4.1", + "@types/jest": "^29.5.12", + "@types/luxon": "^3.4.2", "copyfiles": "^2.3.0", "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "fast-check": "^3.15.1", + "jest": "^29.7.0", "rimraf": "^5.0.5", "typescript": "^5.1.6" }, @@ -35,6 +40,19 @@ "node": ">=0.10.0" } }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", @@ -44,30 +62,59 @@ "@babel/highlight": "^7.10.4" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", "dev": true, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.10.tgz", - "integrity": "sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==", + "node_modules/@babel/core": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.9.tgz", + "integrity": "sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.9", + "@babel/parser": "^7.23.9", + "@babel/template": "^7.23.9", + "@babel/traverse": "^7.23.9", + "@babel/types": "^7.23.9", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { + "node_modules/@babel/core/node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/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==", @@ -79,7 +126,7 @@ "node": ">=4" } }, - "node_modules/@babel/highlight/node_modules/chalk": { + "node_modules/@babel/core/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==", @@ -93,7 +140,7 @@ "node": ">=4" } }, - "node_modules/@babel/highlight/node_modules/color-convert": { + "node_modules/@babel/core/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==", @@ -102,13 +149,13 @@ "color-name": "1.1.3" } }, - "node_modules/@babel/highlight/node_modules/color-name": { + "node_modules/@babel/core/node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, - "node_modules/@babel/highlight/node_modules/has-flag": { + "node_modules/@babel/core/node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", @@ -117,7 +164,28 @@ "node": ">=4" } }, - "node_modules/@babel/highlight/node_modules/supports-color": { + "node_modules/@babel/core/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/core/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==", @@ -129,1844 +197,4398 @@ "node": ">=4" } }, - "node_modules/@babel/runtime": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz", - "integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==", + "node_modules/@babel/generator": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, - "peer": true, "dependencies": { - "regenerator-runtime": "^0.14.0" + "@babel/types": "^7.23.6", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", "dev": true, "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=6.9.0" } }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" + "yallist": "^3.0.2" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=6.9.0" } }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6.9.0" } }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "dependencies": { - "ansi-regex": "^6.0.1" + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=12" + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15" }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" }, "engines": { - "node": ">=12" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true, - "optional": true, "engines": { - "node": ">=14" + "node": ">=6.9.0" } }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "@babel/types": "^7.22.5" }, "engines": { - "node": ">=0.4.0" + "node": ">=6.9.0" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "dev": true, "engines": { - "node": ">=6" + "node": ">=6.9.0" } }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "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/@babel/helpers": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.9.tgz", + "integrity": "sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@babel/template": "^7.23.9", + "@babel/traverse": "^7.23.9", + "@babel/types": "^7.23.9" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=6.9.0" } }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { - "sprintf-js": "~1.0.2" + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/aria-query": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", - "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "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==", "dev": true, - "peer": true, "dependencies": { - "dequal": "^2.0.3" + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "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==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=4" } }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "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==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, + "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": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "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": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/array.prototype.findlastindex": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.2.tgz", - "integrity": "sha512-tb5thFFlUcp7NdNF6/MpDk/1r/4awWG1FIz3YqDf+/zJSTezBb+/5WViH41obXULHVpDzoiCLpJ/ZO9YbJMsdw==", + "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==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" + "has-flag": "^3.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "node_modules/@babel/parser": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz", + "integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==", "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" + "bin": { + "parser": "bin/babel-parser.js" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=6.0.0" } }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" + "@babel/helper-plugin-utils": "^7.8.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "peer": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", - "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "get-intrinsic": "^1.2.1", - "is-array-buffer": "^3.0.2", - "is-shared-array-buffer": "^1.0.2" + "@babel/helper-plugin-utils": "^7.12.13" }, - "engines": { - "node": ">= 0.4" + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "peer": true + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "engines": { - "node": ">= 0.4" + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/axe-core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", - "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "peer": true, - "engines": { - "node": ">=4" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/axobject-query": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", - "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "peer": true, "dependencies": { - "dequal": "^2.0.3" + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "@babel/helper-plugin-utils": "^7.8.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, "engines": { - "node": ">=6" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "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/@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "node_modules/@babel/runtime": { + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz", + "integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==", "dev": true, + "peer": true, "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "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/template": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.23.9.tgz", + "integrity": "sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.23.9", + "@babel/types": "^7.23.9" }, "engines": { - "node": ">=7.0.0" + "node": ">=6.9.0" } }, - "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==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "node_modules/copyfiles": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/copyfiles/-/copyfiles-2.4.1.tgz", - "integrity": "sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==", + "node_modules/@babel/template/node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "glob": "^7.0.5", - "minimatch": "^3.0.3", - "mkdirp": "^1.0.4", - "noms": "0.0.0", - "through2": "^2.0.1", - "untildify": "^4.0.0", - "yargs": "^16.1.0" + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" }, - "bin": { - "copyfiles": "copyfiles", - "copyup": "copyfiles" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true - }, - "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==", + "node_modules/@babel/template/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==", "dev": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "color-convert": "^1.9.0" }, "engines": { - "node": ">= 8" + "node": ">=4" } }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true, - "peer": true - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/@babel/template/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==", "dev": true, "dependencies": { - "ms": "2.1.2" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">=4" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "node_modules/@babel/template/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==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/template/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "node_modules/@babel/template/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "node_modules/@babel/template/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==", "dev": true, - "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "node_modules/@babel/traverse": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.9.tgz", + "integrity": "sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==", "dev": true, "dependencies": { - "esutils": "^2.0.2" + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.9", + "@babel/types": "^7.23.9", + "debug": "^4.3.1", + "globals": "^11.1.0" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/enquirer": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", - "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "node_modules/@babel/traverse/node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "ansi-colors": "^4.1.1", - "strip-ansi": "^6.0.1" + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" }, "engines": { - "node": ">=8.6" + "node": ">=6.9.0" } }, - "node_modules/es-abstract": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", - "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", + "node_modules/@babel/traverse/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==", "dev": true, "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "arraybuffer.prototype.slice": "^1.0.1", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.1", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "safe-array-concat": "^1.0.0", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-buffer": "^1.0.0", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.10" + "color-convert": "^1.9.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "node_modules/@babel/traverse/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==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">= 0.4" + "node": ">=4" } }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "node_modules/@babel/traverse/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==", "dev": true, "dependencies": { - "has": "^1.0.3" + "color-name": "1.1.3" } }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "node_modules/@babel/traverse/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "node_modules/@babel/traverse/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, "engines": { - "node": ">=6" + "node": ">=4" } }, - "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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "node_modules/@babel/traverse/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==", "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, "engines": { - "node": ">=0.8.0" + "node": ">=4" } }, - "node_modules/eslint": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.24.0.tgz", - "integrity": "sha512-k9gaHeHiFmGCDQ2rEfvULlSLruz6tgfA8DEn+rY9/oYPFFTlz55mM/Q/Rij1b2Y42jwZiK3lXvNTw6w6TXzcKQ==", + "node_modules/@babel/types": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz", + "integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==", "dev": true, "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.0", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", + "import-fresh": "^3.2.1", "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash": "^4.17.21", "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.4", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "bin": { - "eslint": "bin/eslint.js" + "strip-json-comments": "^3.1.1" }, "engines": { "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/@faker-js/faker": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.4.1.tgz", + "integrity": "sha512-XQ3cU+Q8Uqmrbf2e0cIC/QN43sTBSC8KF12u29Mb47tWrt2hAgBXSgpZMj4Ao8Uk0iJcU99QsOCaIL8934obCg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/fakerjs" + } + ], + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0", + "npm": ">=6.14.13" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/eslint-config-airbnb": { - "version": "18.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-18.2.1.tgz", - "integrity": "sha512-glZNDEZ36VdlZWoxn/bUR1r/sdFKPd1mHPbqUtkctgNG4yT2DLLtJ3D+yCV+jzZCc2V1nBVkmdknOJBZ5Hc0fg==", + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, "dependencies": { - "eslint-config-airbnb-base": "^14.2.1", - "object.assign": "^4.1.2", - "object.entries": "^1.1.2" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">= 6" + "node": ">=12" }, - "peerDependencies": { - "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-react": "^7.21.5", - "eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-config-airbnb-base": { - "version": "14.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", - "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.2" + "ansi-regex": "^6.0.1" }, "engines": { - "node": ">= 6" + "node": ">=12" }, - "peerDependencies": { - "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", - "eslint-plugin-import": "^2.22.1" + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", - "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, "dependencies": { - "ms": "^2.1.1" + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, "dependencies": { - "debug": "^3.2.7" + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" }, "engines": { - "node": ">=4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, "peerDependenciesMeta": { - "eslint": { + "node-notifier": { "optional": true } } }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, "dependencies": { - "ms": "^2.1.1" + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/eslint-plugin-import": { - "version": "2.28.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz", - "integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==", + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.findlastindex": "^1.2.2", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.8.0", - "has": "^1.0.3", - "is-core-module": "^2.12.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.6", - "object.groupby": "^1.0.0", - "object.values": "^1.1.6", - "resolve": "^1.22.3", - "semver": "^6.3.1", - "tsconfig-paths": "^3.14.2" + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, "dependencies": { - "ms": "^2.1.1" + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, "dependencies": { - "esutils": "^2.0.2" + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, - "peer": true, "dependencies": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", + "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/luxon": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-3.4.2.tgz", + "integrity": "sha512-TifLZlFudklWlMBfhubvgqTXRzLDI5pCbGa4P8a3wPyUQSW+1xQ5eDsreP9DWHX3tjq1ke96uYG/nwundroWcA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.11.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", + "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "peer": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.2.tgz", + "integrity": "sha512-tb5thFFlUcp7NdNF6/MpDk/1r/4awWG1FIz3YqDf+/zJSTezBb+/5WViH41obXULHVpDzoiCLpJ/ZO9YbJMsdw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", + "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true, + "peer": true + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "dev": true, + "peer": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001587", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz", + "integrity": "sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": 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/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/cliui": { + "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": "^7.0.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "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==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "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==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/copyfiles": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/copyfiles/-/copyfiles-2.4.1.tgz", + "integrity": "sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==", + "dev": true, + "dependencies": { + "glob": "^7.0.5", + "minimatch": "^3.0.3", + "mkdirp": "^1.0.4", + "noms": "0.0.0", + "through2": "^2.0.1", + "untildify": "^4.0.0", + "yargs": "^16.1.0" + }, + "bin": { + "copyfiles": "copyfiles", + "copyup": "copyfiles" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.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==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true, + "peer": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.672", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.672.tgz", + "integrity": "sha512-YYCy+goe3UqZqa3MOQCI5Mx/6HdBLzXL/mkbGCEWL3sP3Z1BP9zqAzeD3YEmLZlespYGFtyM8tRp5i2vfaUGCA==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", + "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.1", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.24.0.tgz", + "integrity": "sha512-k9gaHeHiFmGCDQ2rEfvULlSLruz6tgfA8DEn+rY9/oYPFFTlz55mM/Q/Rij1b2Y42jwZiK3lXvNTw6w6TXzcKQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.0", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.0.0", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash": "^4.17.21", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.4", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-airbnb": { + "version": "18.2.1", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-18.2.1.tgz", + "integrity": "sha512-glZNDEZ36VdlZWoxn/bUR1r/sdFKPd1mHPbqUtkctgNG4yT2DLLtJ3D+yCV+jzZCc2V1nBVkmdknOJBZ5Hc0fg==", + "dev": true, + "dependencies": { + "eslint-config-airbnb-base": "^14.2.1", + "object.assign": "^4.1.2", + "object.entries": "^1.1.2" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-react": "^7.21.5", + "eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0" + } + }, + "node_modules/eslint-config-airbnb-base": { + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", + "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.2" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", + "eslint-plugin-import": "^2.22.1" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.28.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz", + "integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.findlastindex": "^1.2.2", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.8.0", + "has": "^1.0.3", + "is-core-module": "^2.12.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.6", + "object.groupby": "^1.0.0", + "object.values": "^1.1.6", + "resolve": "^1.22.3", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", "ast-types-flow": "^0.0.7", "axe-core": "^4.6.2", "axobject-query": "^3.1.1", "damerau-levenshtein": "^1.0.8", "emoji-regex": "^9.2.2", "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.33.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.1.tgz", + "integrity": "sha512-L093k0WAMvr6VhNwReB8VgOq5s2LesZmrpPdKz/kZElQDzqS7G7+DnKoqT+w4JwuiGeAhAvHO0fvy0Eyk4ejDA==", + "dev": true, + "peer": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "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": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dev": true, + "peer": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-scope/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "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==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "dependencies": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "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==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-check": { + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.15.1.tgz", + "integrity": "sha512-GutOXZ+SCxGaFWfHe0Pbeq8PrkpGtPxA9/hdkI3s9YzqeMlrq5RdJ+QfYZ/S93jMX+tAyqgW0z5c9ppD+vkGUw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "dependencies": { + "pure-rand": "^6.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "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", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "13.21.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", + "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, "engines": { - "node": ">=4.0" + "node": ">= 0.4" }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "dev": true, - "peer": true, - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-react": { - "version": "7.33.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.1.tgz", - "integrity": "sha512-L093k0WAMvr6VhNwReB8VgOq5s2LesZmrpPdKz/kZElQDzqS7G7+DnKoqT+w4JwuiGeAhAvHO0fvy0Eyk4ejDA==", + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", "dev": true, - "peer": true, "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.8" + "has-symbols": "^1.0.2" }, "engines": { - "node": ">=4" + "node": ">= 0.4" }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-react-hooks": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", - "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "peer": true, "engines": { - "node": ">=10" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + "node": ">=10.17.0" } }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "peer": true, "dependencies": { - "esutils": "^2.0.2" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, - "peer": true, "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" }, "bin": { - "resolve": "bin/resolve" + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "dev": true, - "peer": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "dev": true, "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=8.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-scope/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, "engines": { - "node": ">=4.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "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==", "dev": true, "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=6" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "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==", + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, "engines": { - "node": ">=4" + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/eslint-visitor-keys": { + "node_modules/is-generator-fn": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, "engines": { - "node": ">=10" + "node": ">=6" } }, - "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "is-extglob": "^2.1.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=0.10.0" } }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "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==", + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", "dev": true, "engines": { - "node": ">=4" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, "engines": { - "node": ">=4" + "node": ">=0.12.0" } }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "dev": true, "dependencies": { - "estraverse": "^5.1.0" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=0.10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "dev": true, "dependencies": { - "estraverse": "^5.2.0" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=4.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", "dev": true, - "engines": { - "node": ">=4.0" + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "dev": true, "dependencies": { - "flat-cache": "^3.0.4" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", "dev": true, "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "has-symbols": "^1.0.2" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/flat-cache/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", "dev": true, "dependencies": { - "glob": "^7.1.3" + "which-typed-array": "^1.1.11" }, - "bin": { - "rimraf": "bin.js" + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" + "call-bind": "^1.0.2" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", "dev": true }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "node_modules/istanbul-lib-instrument": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", + "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" } }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">=10" } }, - "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "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", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=10" } }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "node_modules/istanbul-reports": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@isaacs/cliui": "^8.0.2" }, "engines": { - "node": "*" + "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, "dependencies": { - "is-glob": "^4.0.1" + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" }, "engines": { - "node": ">= 6" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/globals": { - "version": "13.21.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", - "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, "dependencies": { - "define-properties": "^1.1.3" + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" }, "engines": { - "node": ">= 0.4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "node_modules/jest-cli/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=12" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/jest-cli/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "dependencies": { - "function-bind": "^1.1.1" + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" }, "engines": { - "node": ">= 0.4.0" + "node": ">=12" } }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=12" } }, - "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-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } } }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.1" + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, - "engines": { - "node": ">= 0.4" + "dependencies": { + "detect-newline": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, - "engines": { - "node": ">= 0.4" + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, "dependencies": { - "has-symbols": "^1.0.2" + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, "engines": { - "node": ">= 4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" }, "engines": { - "node": ">=6" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "optionalDependencies": { + "fsevents": "^2.3.2" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, "engines": { - "node": ">=0.8.19" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "engines": { - "node": ">= 0.4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "node_modules/jest-message-util/node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "node_modules/jest-message-util/node_modules/@babel/code-frame/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==", "dev": true, "dependencies": { - "has-bigints": "^1.0.1" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=4" } }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "node_modules/jest-message-util/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==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "color-convert": "^1.9.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" + } + }, + "node_modules/jest-message-util/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==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" } }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "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==", + "node_modules/jest-message-util/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==", "dev": true, "dependencies": { - "has": "^1.0.3" + "has-flag": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=4" } }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } } }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, "dependencies": { - "is-extglob": "^2.1.1" + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, - "engines": { - "node": ">= 0.4" + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "node_modules/jest-runtime/node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, "dependencies": { - "has-symbols": "^1.0.2" + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" }, "engines": { - "node": ">= 0.4" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, "dependencies": { - "which-typed-array": "^1.1.11" + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "node_modules/jest-worker/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": { - "@isaacs/cliui": "^8.0.2" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=14" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/js-tokens": { @@ -1988,6 +4610,24 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -2028,6 +4668,15 @@ "node": ">=4.0" } }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/language-subtag-registry": { "version": "0.3.22", "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", @@ -2045,6 +4694,15 @@ "language-subtag-registry": "~0.3.2" } }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -2058,6 +4716,24 @@ "node": ">= 0.8.0" } }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", @@ -2102,6 +4778,58 @@ "node": "*" } }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2164,14 +4892,47 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, "node_modules/noms": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/noms/-/noms-0.0.0.tgz", "integrity": "sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==", "dev": true, "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "~1.0.31" + "inherits": "^2.0.1", + "readable-stream": "~1.0.31" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/object-assign": { @@ -2303,6 +5064,21 @@ "wrappy": "1" } }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -2320,6 +5096,57 @@ "node": ">= 0.8.0" } }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -2332,6 +5159,33 @@ "node": ">=6" } }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -2381,6 +5235,45 @@ "node": "14 || >=16.14" } }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -2390,6 +5283,38 @@ "node": ">= 0.8.0" } }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/pretty-format/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -2405,6 +5330,19 @@ "node": ">=0.4.0" } }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -2426,6 +5364,22 @@ "node": ">=6" } }, + "node_modules/pure-rand": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz", + "integrity": "sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, "node_modules/ramda": { "version": "0.27.2", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.2.tgz", @@ -2521,6 +5475,27 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -2530,6 +5505,15 @@ "node": ">=4" } }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/rimraf": { "version": "5.0.5", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", @@ -2700,6 +5684,21 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/slice-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", @@ -2717,18 +5716,71 @@ "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, + "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==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-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", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", "dev": true }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -2869,6 +5921,15 @@ "node": ">=4" } }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -2943,6 +6004,20 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -2989,6 +6064,33 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", @@ -3013,6 +6115,15 @@ "node": ">= 0.8.0" } }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", @@ -3118,6 +6229,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/untildify": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", @@ -3127,6 +6244,36 @@ "node": ">=8" } }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -3148,6 +6295,29 @@ "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -3239,6 +6409,25 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -3289,6 +6478,18 @@ "engines": { "node": ">=10" } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index ced27b8f41..648b7c611a 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -24,10 +24,15 @@ "node": "18.17.1" }, "devDependencies": { + "@faker-js/faker": "^8.4.1", + "@types/jest": "^29.5.12", + "@types/luxon": "^3.4.2", "copyfiles": "^2.3.0", "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "fast-check": "^3.15.1", + "jest": "^29.7.0", "rimraf": "^5.0.5", "typescript": "^5.1.6" } diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js new file mode 100644 index 0000000000..d068402691 --- /dev/null +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -0,0 +1,124 @@ +// TODO make this enumerate all criteria +const { faker } = require('@faker-js/faker'); +const fc = require('fast-check'); +const { DateTime } = require('luxon'); +const { TestOpportunityBookable } = require('./TestOpportunityBookable'); +const { getTestDataShapeExpressions } = require('..'); + +test('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { + // const shape = TestOpportunityBookable.testDataShape({ + // harvestStartTime: DateTime.now(), + // harvestStartTimeTwoHoursLater: DateTime.now().plus({ hours: 2 }), + // }); + const shapeExpressions = getTestDataShapeExpressions('TestOpportunityBookable', 'OpenBookingSimpleFlow', 'ScheduledSession', { + harvestStartTime: DateTime.now().toUTC().toISO(), + }); + console.log('shapeExpressions:', shapeExpressions); + const generated = generateOpportunityConstraints(shapeExpressions['test:testOpportunityDataShapeExpression']); + console.log('generated:', generated); + // shape.opportunityConstraints. +}); + +const generatorsByType = { + /** + * @param {import('../types/TestDataShape').DateRangeNodeConstraint} constraint + * @returns {fc.Arbitrary} + */ + 'test:DateRangeNodeConstraint'(constraint) { + const minDate = constraint.minDate + ? DateTime.fromISO(constraint.minDate).toJSDate() + : undefined; + const maxDate = constraint.maxDate + ? DateTime.fromISO(constraint.maxDate).toJSDate() + : undefined; + const dateArbitrary = fc.date({ + max: maxDate, + min: minDate, + }); + if (constraint.allowNull) { + return fc.oneof(dateArbitrary, fc.constant(null), fc.constant(undefined)); + } + return dateArbitrary; + // fc.oneof + }, + /** + * @param {import('../types/TestDataShape').NumericNodeConstraint} constraint + * @returns {fc.Arbitrary} + */ + NumericNodeConstraint(constraint) { + const min = constraint.mininclusive ?? undefined; + const max = constraint.maxinclusive ?? undefined; + return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); + }, + /** + * @param {import('../types/TestDataShape').BooleanNodeConstraint} constraint + * @returns {fc.Arbitrary} + */ + 'test:BooleanNodeConstraint'(constraint) { + return fc.constant(constraint.value); + }, + /** + * @param {import('../types/TestDataShape').OptionNodeConstraint} constraint + */ + 'test:OptionNodeConstraint'(constraint) { + // TODO3 not sure what to do here yet + return fc.constant('TODO'); + }, + /** + * @param {import('../types/TestDataShape').ArrayConstraint} constraint + */ + 'test:ArrayConstraint'(constraint) { + // TODO3 not sure what to do here yet + return fc.constant('TODO'); + }, + /** + * @param {import('../testDataShape').NullNodeConstraint} constraint + */ + 'test:NullNodeConstraint'(constraint) { + return fc.oneof(fc.constant(null), fc.constant(undefined)); + } + // TODO3 here i am + // ValueType +}; + +/** + * @param {ReturnType['test:testOpportunityDataShapeExpression']} opportunityDataShapeExpression + */ +function generateOpportunityConstraints(opportunityDataShapeExpression) { + const result = {}; + for (const tripleConstraint of opportunityDataShapeExpression) { + if (tripleConstraint['@type'] !== 'test:TripleConstraint') { + throw new Error(`Expected test:TripleConstraint but got ${tripleConstraint['@type']}`); + } + const fieldNameRegexResult = /^https:\/\/[^/]+\/(.+)$/.exec(tripleConstraint.predicate); + if (!fieldNameRegexResult) { + throw new Error(`Not able to extract field name from ${tripleConstraint.predicate}`); + } + const fieldName = fieldNameRegexResult[1]; + const constraint = tripleConstraint.valueExpr; + const generator = generatorsByType[constraint['@type']]; + if (!generator) { + throw new Error(`No generator for type ${constraint['@type']}`); + } + const arbitrary = generator(/** @type {any} */(constraint)); + const generated = fc.sample(/** @type {any} */(arbitrary), 1); + result[fieldName] = generated; + } + return result; + // for (const [key, constraint] of Object.entries(opportunityDataShapeExpression)) { + // const generator = generatorsByType[constraint['@type']]; + // if (!generator) { + // throw new Error(`No generator for type ${constraint['@type']}`); + // } + // const arbitrary = generator(/** @type {any} */(constraint)); + // const generated = fc.sample(/** @type {any} */(arbitrary), 1); + // const nonNamespacedField = /^(^:)+:(.+)$/.exec(key)[2]; + // result[nonNamespacedField] = generated; + // } + // if (opportunityConstraints['schema:startDate']) { + // result.startDate = fc.sample( + // generatorsByType['test:DateRangeNodeConstraint'](opportunityConstraints['schema:startDate']), + // 1, + // ); + // } +} From 5696e70bfa69eedeea2f33dcf7557706534a52c5 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 12:12:42 +0000 Subject: [PATCH 02/27] much progress. Still not there --- .../criteria/TestOpportunityBookable.test.js | 125 +++++++++++++++--- .../src/testDataShape.js | 23 ++++ .../src/types/TestDataShape.d.ts | 10 ++ 3 files changed, 143 insertions(+), 15 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index d068402691..404e2c56c5 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -3,19 +3,31 @@ const { faker } = require('@faker-js/faker'); const fc = require('fast-check'); const { DateTime } = require('luxon'); const { TestOpportunityBookable } = require('./TestOpportunityBookable'); -const { getTestDataShapeExpressions } = require('..'); +const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); +// TODO many samples test('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // const shape = TestOpportunityBookable.testDataShape({ // harvestStartTime: DateTime.now(), // harvestStartTimeTwoHoursLater: DateTime.now().plus({ hours: 2 }), // }); + const harvestStartTime = DateTime.now().toUTC().toISO(); const shapeExpressions = getTestDataShapeExpressions('TestOpportunityBookable', 'OpenBookingSimpleFlow', 'ScheduledSession', { - harvestStartTime: DateTime.now().toUTC().toISO(), + harvestStartTime, }); console.log('shapeExpressions:', shapeExpressions); - const generated = generateOpportunityConstraints(shapeExpressions['test:testOpportunityDataShapeExpression']); - console.log('generated:', generated); + const generatedOpportunityPart = generateForShapeDataExpressions(shapeExpressions['test:testOpportunityDataShapeExpression']); + console.log('generatedOpportunityPart:', generatedOpportunityPart); + const generatedOffer = generateForShapeDataExpressions(shapeExpressions['test:testOfferDataShapeExpression']); + console.log('generatedOffer:', generatedOffer); + const generatedOpportunity = { + ...generatedOpportunityPart, + offers: generatedOffer, + }; + const result = testMatch(criteriaMap.get('TestOpportunityBookable'), generatedOpportunity, { + harvestStartTime, + }); + console.log('result:', result); // shape.opportunityConstraints. }); @@ -36,7 +48,7 @@ const generatorsByType = { min: minDate, }); if (constraint.allowNull) { - return fc.oneof(dateArbitrary, fc.constant(null), fc.constant(undefined)); + return fc.oneof(dateArbitrary, fc.constantFrom(null, undefined)); } return dateArbitrary; // fc.oneof @@ -61,15 +73,54 @@ const generatorsByType = { * @param {import('../types/TestDataShape').OptionNodeConstraint} constraint */ 'test:OptionNodeConstraint'(constraint) { - // TODO3 not sure what to do here yet - return fc.constant('TODO'); + if (constraint.allowlist) { + if (constraint.allowNull) { + return fc.constantFrom(...constraint.allowlist, null, undefined); + } + return fc.constantFrom(...constraint.allowlist); + } + const optionsPool = new Set(getDataTypeOptions(constraint.datatype)); + if (constraint.allowNull) { + optionsPool.add(null); + optionsPool.add(undefined); + } + if (constraint.blocklist) { + for (const blocklisted of constraint.blocklist) { + optionsPool.delete(blocklisted); + } + } + return fc.constantFrom(...optionsPool); }, /** * @param {import('../types/TestDataShape').ArrayConstraint} constraint */ 'test:ArrayConstraint'(constraint) { - // TODO3 not sure what to do here yet - return fc.constant('TODO'); + if (constraint.includesAll) { + return fc.array(fc.constantFrom(...constraint.includesAll), { minLength: constraint.minLength ?? 0 }); + } + if (constraint.datatype === 'oa:Terms') { + // special handling because oa:Terms is not an enum constraint + return fc.array( + fc.record({ + '@type': fc.constant('Terms'), + name: fc.string({ minLength: 1}), + url: fc.webUrl(), + requiresExplicitConsent: fc.boolean(), + dateModified: fc.date().map(date => date.toISOString()), + }, { + requiredKeys: ['@type', 'name', 'url', 'requiresExplicitConsent'], + }), + { minLength: constraint.minLength ?? 0 } + ) + } + const optionsPool = new Set(getDataTypeOptions(constraint.datatype)); + if (constraint.excludesAll) { + for (const excluded of constraint.excludesAll) { + optionsPool.delete(excluded); + } + } + // TODO this might need to have no duplicates + return fc.array(fc.constantFrom(...optionsPool), { minLength: constraint.minLength ?? 0 }); }, /** * @param {import('../testDataShape').NullNodeConstraint} constraint @@ -77,16 +128,14 @@ const generatorsByType = { 'test:NullNodeConstraint'(constraint) { return fc.oneof(fc.constant(null), fc.constant(undefined)); } - // TODO3 here i am - // ValueType }; /** - * @param {ReturnType['test:testOpportunityDataShapeExpression']} opportunityDataShapeExpression + * @param {ReturnType['test:testOpportunityDataShapeExpression']} shapeExpressions */ -function generateOpportunityConstraints(opportunityDataShapeExpression) { +function generateForShapeDataExpressions(shapeExpressions) { const result = {}; - for (const tripleConstraint of opportunityDataShapeExpression) { + for (const tripleConstraint of shapeExpressions) { if (tripleConstraint['@type'] !== 'test:TripleConstraint') { throw new Error(`Expected test:TripleConstraint but got ${tripleConstraint['@type']}`); } @@ -101,7 +150,7 @@ function generateOpportunityConstraints(opportunityDataShapeExpression) { throw new Error(`No generator for type ${constraint['@type']}`); } const arbitrary = generator(/** @type {any} */(constraint)); - const generated = fc.sample(/** @type {any} */(arbitrary), 1); + const [generated] = fc.sample(/** @type {any} */(arbitrary), 1); result[fieldName] = generated; } return result; @@ -122,3 +171,49 @@ function generateOpportunityConstraints(opportunityDataShapeExpression) { // ); // } } + +/** + * @param {string} datatype + * @returns {string[]} + */ +function getDataTypeOptions(datatype) { + switch (datatype) { + case 'schema:EventStatusType': + return [ + 'https://schema.org/EventCancelled', + 'https://schema.org/EventPostponed', + 'https://schema.org/EventScheduled' + ]; + case 'schema:EventAttendanceModeEnumeration': + return [ + 'https://schema.org/MixedEventAttendanceMode', + 'https://schema.org/OfflineEventAttendanceMode', + 'https://schema.org/OnlineEventAttendanceMode', + ]; + case 'oa:RequiredStatusType': + return [ + 'https://openactive.io/Required', + 'https://openactive.io/Optional', + 'https://openactive.io/Unavailable', + ]; + case 'oa:TaxMode': + return [ + 'https://openactive.io/TaxGross', + 'https://openactive.io/TaxNet', + ] + case 'oa:OpenBookingFlowRequirement': + return [ + 'https://openactive.io/OpenBookingIntakeForm', + 'https://openactive.io/OpenBookingAttendeeDetails', + 'https://openactive.io/OpenBookingApproval', + 'https://openactive.io/OpenBookingNegotiation', + 'https://openactive.io/OpenBookingMessageExchange', + ]; + // case 'oa:Terms': + // return [ + + // ]; + default: + throw new Error(`Unexpected datatype ${datatype}`); + } +} diff --git a/packages/test-interface-criteria/src/testDataShape.js b/packages/test-interface-criteria/src/testDataShape.js index a5a23d6f43..7164385934 100644 --- a/packages/test-interface-criteria/src/testDataShape.js +++ b/packages/test-interface-criteria/src/testDataShape.js @@ -174,6 +174,29 @@ function openBookingFlowRequirementArrayConstraint(requirements) { }); } +/* TODO this is not a good match for an ArrayConstraint as they presently +are defined and used. Currently, ArrayConstraint is used for things like +oa:OpenBookingFlowRequirement, where the constrained value is an array of +items from the oa:OpenBookingFlowRequirement enum. + +`oa:Terms`, on the other hand, is a data structure, not an enum. + +This means that, presently, any implementation which uses these Shape +Expressions must have custom handling for `oa:Terms` ArrayConstraints. + +One possible solution: + +- Make ArrayConstraint a meta-constraint which takes a constraint, applies + it to items within an array, and adds special array-specific constraints + like minLength. + In this way, the `oa:OpenBookingFlowRequirement` constraint would be + something like: `ArrayConstraint(OptionNodeConstraint(datatype='oa:OpenBookingFlowRequirement'))`. + And then, the terms constraint would apply `ArrayConstraint(..)` to a + single-oa:Term constraint. (possibly a RecordConstraint meta-constraint?). + + One consideration here would be that we don't presently have any + meta-constraints. +*/ /** * @param {number} minLength * @returns {import('./types/TestDataShape').ArrayConstraint} diff --git a/packages/test-interface-criteria/src/types/TestDataShape.d.ts b/packages/test-interface-criteria/src/types/TestDataShape.d.ts index f46d94e37d..f2143c9fb1 100644 --- a/packages/test-interface-criteria/src/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/src/types/TestDataShape.d.ts @@ -45,6 +45,12 @@ export type ValueType = | 'schema:EventStatusType' | 'schema:EventAttendanceModeEnumeration'; +/** + * Specifies a value that must be one of a set of options. + * For example, an `eventStatus` field would be set up to only have + * one of the `schema:EventStatusType` options (e.g. + * `https://schema.org/EventCancelled`, etc) + */ export interface OptionNodeConstraint< /** TypeScript union of the types that this option can take */ TOptionType, @@ -70,6 +76,10 @@ export interface OptionNodeConstraint< allowNull?: true; } +/** + * Similar to OptionNodeConstraint, but where the value must be an + * array. Each item in the array must be from the same set of options. + */ export interface ArrayConstraint< TArrayOf, TValueType extends ValueType From 5dee3d43887840cc6084cba830f3102ab9f55648 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 14:30:27 +0000 Subject: [PATCH 03/27] test passes in some instances, though found an issue with validFromBeforeStartDate --- .../test-interface-criteria/package-lock.json | 7 ++ packages/test-interface-criteria/package.json | 1 + .../criteria/TestOpportunityBookable.test.js | 92 ++++++++++++++++--- 3 files changed, 86 insertions(+), 14 deletions(-) diff --git a/packages/test-interface-criteria/package-lock.json b/packages/test-interface-criteria/package-lock.json index 28652350ae..301134b4d2 100644 --- a/packages/test-interface-criteria/package-lock.json +++ b/packages/test-interface-criteria/package-lock.json @@ -17,6 +17,7 @@ "devDependencies": { "@faker-js/faker": "^8.4.1", "@types/jest": "^29.5.12", + "@types/lodash": "^4.14.202", "@types/luxon": "^3.4.2", "copyfiles": "^2.3.0", "eslint": "7.24.0", @@ -1493,6 +1494,12 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, + "node_modules/@types/lodash": { + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true + }, "node_modules/@types/luxon": { "version": "3.4.2", "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-3.4.2.tgz", diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index 648b7c611a..552c34e0a1 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -26,6 +26,7 @@ "devDependencies": { "@faker-js/faker": "^8.4.1", "@types/jest": "^29.5.12", + "@types/lodash": "^4.14.202", "@types/luxon": "^3.4.2", "copyfiles": "^2.3.0", "eslint": "7.24.0", diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 404e2c56c5..8e56ba03b3 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -1,6 +1,6 @@ // TODO make this enumerate all criteria -const { faker } = require('@faker-js/faker'); const fc = require('fast-check'); +const _ = require('lodash'); const { DateTime } = require('luxon'); const { TestOpportunityBookable } = require('./TestOpportunityBookable'); const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); @@ -12,46 +12,59 @@ test('Data generated via the testDataShape satisfies the opportunityConstraints // harvestStartTimeTwoHoursLater: DateTime.now().plus({ hours: 2 }), // }); const harvestStartTime = DateTime.now().toUTC().toISO(); - const shapeExpressions = getTestDataShapeExpressions('TestOpportunityBookable', 'OpenBookingSimpleFlow', 'ScheduledSession', { - harvestStartTime, - }); + const opportunityType = /** @type {const} */('ScheduledSession'); + const shapeExpressions = getTestDataShapeExpressions( + // TODO iterate through all the options for these three. + 'TestOpportunityBookable', + 'OpenBookingSimpleFlow', + opportunityType, + { + harvestStartTime, + } + ); console.log('shapeExpressions:', shapeExpressions); - const generatedOpportunityPart = generateForShapeDataExpressions(shapeExpressions['test:testOpportunityDataShapeExpression']); + const generatedOpportunityPart = generateForShapeDataExpressions( + shapeExpressions['test:testOpportunityDataShapeExpression'], + opportunityType, + ); console.log('generatedOpportunityPart:', generatedOpportunityPart); const generatedOffer = generateForShapeDataExpressions(shapeExpressions['test:testOfferDataShapeExpression']); console.log('generatedOffer:', generatedOffer); const generatedOpportunity = { ...generatedOpportunityPart, - offers: generatedOffer, + offers: [generatedOffer], }; const result = testMatch(criteriaMap.get('TestOpportunityBookable'), generatedOpportunity, { harvestStartTime, }); console.log('result:', result); + expect(result).toHaveProperty('matchesCriteria', true); // shape.opportunityConstraints. }); const generatorsByType = { /** * @param {import('../types/TestDataShape').DateRangeNodeConstraint} constraint - * @returns {fc.Arbitrary} + * @returns {fc.Arbitrary} */ 'test:DateRangeNodeConstraint'(constraint) { const minDate = constraint.minDate ? DateTime.fromISO(constraint.minDate).toJSDate() - : undefined; + // Reasonable min date so that we don't need to worry about like 10,000 BCE, etc + : DateTime.fromISO('2000-01-01T00:00:00Z').toJSDate(); const maxDate = constraint.maxDate ? DateTime.fromISO(constraint.maxDate).toJSDate() - : undefined; + // Reasonable max date so that we don't need to worry about like 999,999 CE, etc + : DateTime.fromISO('3000-01-01T00:00:00Z').toJSDate(); const dateArbitrary = fc.date({ max: maxDate, min: minDate, - }); + }).map(date => date.toISOString()); + console.log('test:DateRangeNodeConstraint', { constraint, minDate, maxDate }); if (constraint.allowNull) { return fc.oneof(dateArbitrary, fc.constantFrom(null, undefined)); } return dateArbitrary; - // fc.oneof }, /** * @param {import('../types/TestDataShape').NumericNodeConstraint} constraint @@ -103,7 +116,7 @@ const generatorsByType = { return fc.array( fc.record({ '@type': fc.constant('Terms'), - name: fc.string({ minLength: 1}), + name: fc.string({ minLength: 1 }), url: fc.webUrl(), requiresExplicitConsent: fc.boolean(), dateModified: fc.date().map(date => date.toISOString()), @@ -130,10 +143,37 @@ const generatorsByType = { } }; +const fieldParentPathSpecHelpers = { + organizerOrProvider: { + byType: { + ScheduledSession: ['superEvent', 'organizer'], + FacilityUseSlot: ['facilityUse', 'provider'], + IndividualFacilityUseSlot: ['facilityUse', 'aggregateFacilityUse', 'provider'], + }, + }, +}; + +/** + * @type {{ + * [fieldName: string]: { + * byType: Record<'ScheduledSession' | 'FacilityUseSlot' | 'IndividualFacilityUseSlot', string[]> + * } + * }} + */ +const fieldParentPathSpecs = { + taxMode: fieldParentPathSpecHelpers.organizerOrProvider, + isOpenBookingAllowed: fieldParentPathSpecHelpers.organizerOrProvider, + // ScheduledSession: { + // 'oa:taxMode': ['superEvent', 'organizer'], + // } +} + /** * @param {ReturnType['test:testOpportunityDataShapeExpression']} shapeExpressions + * @param {'ScheduledSession' | 'FacilityUseSlot' | 'IndividualFacilityUseSlot'} [opportunityType] + * Exclude if generating for an offer */ -function generateForShapeDataExpressions(shapeExpressions) { +function generateForShapeDataExpressions(shapeExpressions, opportunityType) { const result = {}; for (const tripleConstraint of shapeExpressions) { if (tripleConstraint['@type'] !== 'test:TripleConstraint') { @@ -144,6 +184,29 @@ function generateForShapeDataExpressions(shapeExpressions) { throw new Error(`Not able to extract field name from ${tripleConstraint.predicate}`); } const fieldName = fieldNameRegexResult[1]; + const fieldPath = (() => { + const fieldParentPathSpec = fieldParentPathSpecs[fieldName]; + if (fieldParentPathSpec) { + if (fieldParentPathSpec.byType) { + if (!opportunityType) { + throw new Error( + `opportunityType must be specified when generating data for field: ${tripleConstraint.predicate}` + ); + } + const byType = fieldParentPathSpec.byType[opportunityType]; + if (!byType) { + throw new Error( + `fieldParentPathSpecs[${fieldName}].byType[${opportunityType}] not found` + ); + } + return [...byType, fieldName]; + } + throw new Error( + `No known parent path strategy found for fieldParentPathSpecs[${fieldName}]` + ); + } + return [fieldName]; + })(); const constraint = tripleConstraint.valueExpr; const generator = generatorsByType[constraint['@type']]; if (!generator) { @@ -151,7 +214,8 @@ function generateForShapeDataExpressions(shapeExpressions) { } const arbitrary = generator(/** @type {any} */(constraint)); const [generated] = fc.sample(/** @type {any} */(arbitrary), 1); - result[fieldName] = generated; + _.set(result, fieldPath, generated); + // result[fieldName] = generated; } return result; // for (const [key, constraint] of Object.entries(opportunityDataShapeExpression)) { From c593527e4304f20e50737ab29254f268a7d9031b Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 15:01:54 +0000 Subject: [PATCH 04/27] weve got a consistent pass for TestOpportunityBookable --- .../criteria/TestOpportunityBookable.test.js | 46 ++++++++++--------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 8e56ba03b3..5df7a7d9f7 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -25,10 +25,13 @@ test('Data generated via the testDataShape satisfies the opportunityConstraints console.log('shapeExpressions:', shapeExpressions); const generatedOpportunityPart = generateForShapeDataExpressions( shapeExpressions['test:testOpportunityDataShapeExpression'], - opportunityType, + { opportunityType }, ); console.log('generatedOpportunityPart:', generatedOpportunityPart); - const generatedOffer = generateForShapeDataExpressions(shapeExpressions['test:testOfferDataShapeExpression']); + const generatedOffer = generateForShapeDataExpressions( + shapeExpressions['test:testOfferDataShapeExpression'], + { startDate: generatedOpportunityPart.startDate }, + ); console.log('generatedOffer:', generatedOffer); const generatedOpportunity = { ...generatedOpportunityPart, @@ -60,7 +63,7 @@ const generatorsByType = { max: maxDate, min: minDate, }).map(date => date.toISOString()); - console.log('test:DateRangeNodeConstraint', { constraint, minDate, maxDate }); + // console.log('test:DateRangeNodeConstraint', { constraint, minDate, maxDate }); if (constraint.allowNull) { return fc.oneof(dateArbitrary, fc.constantFrom(null, undefined)); } @@ -170,10 +173,16 @@ const fieldParentPathSpecs = { /** * @param {ReturnType['test:testOpportunityDataShapeExpression']} shapeExpressions - * @param {'ScheduledSession' | 'FacilityUseSlot' | 'IndividualFacilityUseSlot'} [opportunityType] + * @param {object} options + * @param {'ScheduledSession' | 'FacilityUseSlot' | 'IndividualFacilityUseSlot'} [options.opportunityType] * Exclude if generating for an offer + * @param {string} [options.startDate] Include if startDate has already been + * generated. Used to derive validFromBeforeStartDate */ -function generateForShapeDataExpressions(shapeExpressions, opportunityType) { +function generateForShapeDataExpressions(shapeExpressions, { + opportunityType, + startDate, +}) { const result = {}; for (const tripleConstraint of shapeExpressions) { if (tripleConstraint['@type'] !== 'test:TripleConstraint') { @@ -217,23 +226,18 @@ function generateForShapeDataExpressions(shapeExpressions, opportunityType) { _.set(result, fieldPath, generated); // result[fieldName] = generated; } + /* This is a special case in which the generated value is supposed to be a derived + value i.e. startDate - validFromBeforeStartDate */ + if (result.validFromBeforeStartDate) { + if (!startDate) { + throw new Error('startDate must be set in order to derive validFromBeforeStartDate'); + } + const startDateAsDate = DateTime.fromISO(startDate); + const validFromBeforeStartDateAsDate = DateTime.fromISO(result.validFromBeforeStartDate); + const validFromBeforeStartDateAsDuration = startDateAsDate.diff(validFromBeforeStartDateAsDate); + result.validFromBeforeStartDate = validFromBeforeStartDateAsDuration.toISO(); + } return result; - // for (const [key, constraint] of Object.entries(opportunityDataShapeExpression)) { - // const generator = generatorsByType[constraint['@type']]; - // if (!generator) { - // throw new Error(`No generator for type ${constraint['@type']}`); - // } - // const arbitrary = generator(/** @type {any} */(constraint)); - // const generated = fc.sample(/** @type {any} */(arbitrary), 1); - // const nonNamespacedField = /^(^:)+:(.+)$/.exec(key)[2]; - // result[nonNamespacedField] = generated; - // } - // if (opportunityConstraints['schema:startDate']) { - // result.startDate = fc.sample( - // generatorsByType['test:DateRangeNodeConstraint'](opportunityConstraints['schema:startDate']), - // 1, - // ); - // } } /** From 34224bd469ab45b43cc69d551448616ba0461fd7 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 15:20:00 +0000 Subject: [PATCH 05/27] about half of the test space passes --- packages/test-interface-criteria/package.json | 2 +- .../criteria/TestOpportunityBookable.test.js | 90 +++++++++++-------- 2 files changed, 54 insertions(+), 38 deletions(-) diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index 552c34e0a1..227f092154 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -8,7 +8,7 @@ "gen-types-clean": "rimraf \"built-types/*\"", "gen-types-copy-d-ts-files": "copyfiles --up 1 \"src/**/*.d.ts\" built-types/", "gen-types": "npm run gen-types-clean && tsc && npm run gen-types-copy-d-ts-files", - "test": "npm run lint && tsc", + "test": "npm run lint && tsc && jest", "lint": "eslint \"src/**/*.js\"", "lint-fix": "npm run lint -- --fix" }, diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 5df7a7d9f7..91300ce219 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -6,43 +6,57 @@ const { TestOpportunityBookable } = require('./TestOpportunityBookable'); const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); // TODO many samples -test('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { - // const shape = TestOpportunityBookable.testDataShape({ - // harvestStartTime: DateTime.now(), - // harvestStartTimeTwoHoursLater: DateTime.now().plus({ hours: 2 }), - // }); - const harvestStartTime = DateTime.now().toUTC().toISO(); - const opportunityType = /** @type {const} */('ScheduledSession'); - const shapeExpressions = getTestDataShapeExpressions( - // TODO iterate through all the options for these three. - 'TestOpportunityBookable', - 'OpenBookingSimpleFlow', - opportunityType, - { - harvestStartTime, +describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { + // test ('hi', () => {}); + // TODO3 + const allCriteriaNames = [...criteriaMap.keys()]; + // const allCriteriaNames = ['TestOpportunityBookableNonFreePrepaymentRequired']; + const allOpportunityTypes = /** @type {const} */([ + 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + // 'ScheduledSession', + ]); + const allBookingFlows = /** @type {const} */([ + 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + // 'OpenBookingApprovalFlow', + ]); + for (const opportunityType of allOpportunityTypes) { + for (const bookingFlow of allBookingFlows) { + for (const criteriaName of allCriteriaNames) { + test(`For opportunityType: ${opportunityType}; bookingFlow: ${bookingFlow}; criteria: ${criteriaName}`, () => { + const harvestStartTime = DateTime.now().toUTC().toISO(); + const shapeExpressions = getTestDataShapeExpressions( + criteriaName, + bookingFlow, + opportunityType, + { + harvestStartTime, + } + ); + console.log('shapeExpressions:', shapeExpressions); + const generatedOpportunityPart = generateForShapeDataExpressions( + shapeExpressions['test:testOpportunityDataShapeExpression'], + { opportunityType }, + ); + console.log('generatedOpportunityPart:', generatedOpportunityPart); + const generatedOffer = generateForShapeDataExpressions( + shapeExpressions['test:testOfferDataShapeExpression'], + { startDate: generatedOpportunityPart.startDate }, + ); + console.log('generatedOffer:', generatedOffer); + const generatedOpportunity = { + ...generatedOpportunityPart, + offers: [generatedOffer], + }; + const result = testMatch(criteriaMap.get(criteriaName), generatedOpportunity, { + harvestStartTime, + }); + console.log('result:', result); + expect(result).toHaveProperty('matchesCriteria', true); + // shape.opportunityConstraints. + }); + } } - ); - console.log('shapeExpressions:', shapeExpressions); - const generatedOpportunityPart = generateForShapeDataExpressions( - shapeExpressions['test:testOpportunityDataShapeExpression'], - { opportunityType }, - ); - console.log('generatedOpportunityPart:', generatedOpportunityPart); - const generatedOffer = generateForShapeDataExpressions( - shapeExpressions['test:testOfferDataShapeExpression'], - { startDate: generatedOpportunityPart.startDate }, - ); - console.log('generatedOffer:', generatedOffer); - const generatedOpportunity = { - ...generatedOpportunityPart, - offers: [generatedOffer], - }; - const result = testMatch(criteriaMap.get('TestOpportunityBookable'), generatedOpportunity, { - harvestStartTime, - }); - console.log('result:', result); - expect(result).toHaveProperty('matchesCriteria', true); - // shape.opportunityConstraints. + } }); const generatorsByType = { @@ -76,7 +90,9 @@ const generatorsByType = { NumericNodeConstraint(constraint) { const min = constraint.mininclusive ?? undefined; const max = constraint.maxinclusive ?? undefined; - return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); + // TODO2 address + // return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); + return fc.double({ min, max }); }, /** * @param {import('../types/TestDataShape').BooleanNodeConstraint} constraint From 369704691233883f82189b42443901005aaf5ca6 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 15:55:39 +0000 Subject: [PATCH 06/27] fix(criteria): Move termsOfService to opportunityConstraints in TestOpportunityBookableSellerTermsOfService --- .../criteria/TestOpportunityBookable.test.js | 27 ++++++++++++------- ...OpportunityBookableSellerTermsOfService.js | 2 +- .../src/types/TestDataShape.d.ts | 6 ++--- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 91300ce219..af40387c2c 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -9,15 +9,15 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - const allCriteriaNames = [...criteriaMap.keys()]; - // const allCriteriaNames = ['TestOpportunityBookableNonFreePrepaymentRequired']; + // const allCriteriaNames = [...criteriaMap.keys()]; + const allCriteriaNames = ['TestOpportunityBookableSellerTermsOfService']; const allOpportunityTypes = /** @type {const} */([ - 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - // 'ScheduledSession', + // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - // 'OpenBookingApprovalFlow', + // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { @@ -51,7 +51,16 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai harvestStartTime, }); console.log('result:', result); - expect(result).toHaveProperty('matchesCriteria', true); + // expect(result.matchesCriteria).toEqual(tr) + // expect(result).toHaveProperty('matchesCriteria', true); + expect(result).toEqual({ + matchesCriteria: true, + unmetCriteriaDetails: [], + }); + // expect(result).to.deep.equal({ + // matchesCriteria: true, + // unmetCriteriaDetails: [], + // }); // shape.opportunityConstraints. }); } @@ -182,9 +191,7 @@ const fieldParentPathSpecHelpers = { const fieldParentPathSpecs = { taxMode: fieldParentPathSpecHelpers.organizerOrProvider, isOpenBookingAllowed: fieldParentPathSpecHelpers.organizerOrProvider, - // ScheduledSession: { - // 'oa:taxMode': ['superEvent', 'organizer'], - // } + termsOfService: fieldParentPathSpecHelpers.organizerOrProvider, } /** diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableSellerTermsOfService.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableSellerTermsOfService.js index cd72a816ec..46fc80c3c8 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableSellerTermsOfService.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableSellerTermsOfService.js @@ -27,7 +27,7 @@ const TestOpportunityBookableSellerTermsOfService = createCriteria({ ], offerConstraints: [], testDataShape: () => ({ - offerConstraints: { + opportunityConstraints: { // hasTermsOfService 'schema:termsOfService': termsOfServiceArrayConstraint(1), }, diff --git a/packages/test-interface-criteria/src/types/TestDataShape.d.ts b/packages/test-interface-criteria/src/types/TestDataShape.d.ts index f2143c9fb1..1d37a04b64 100644 --- a/packages/test-interface-criteria/src/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/src/types/TestDataShape.d.ts @@ -130,6 +130,9 @@ export type TestDataShapeOpportunityConstraints = { 'oa:taxMode'?: OptionNodeConstraint; 'oa:isOpenBookingAllowed'?: BooleanNodeConstraint; 'schema:eventAttendanceMode'?: OptionNodeConstraint; + // note that the type isn't specified yet (it's a '@type': 'Terms' object) as + // we don't use includes/excludes rules for this field, so it's irrelevant. + 'schema:termsOfService'?: ArrayConstraint; }; /** @@ -152,8 +155,5 @@ export type TestDataShape = { 'oa:openBookingFlowRequirement'?: ArrayConstraint; 'oa:latestCancellationBeforeStartDate'?: NullNodeConstraint | DateRangeNodeConstraint; 'oa:allowCustomerCancellationFullRefund'?: BooleanNodeConstraint; - // note that the type isn't specified yet (it's a '@type': 'Terms' object) as - // we don't use includes/excludes rules for this field, so it's irrelevant. - 'schema:termsOfService'?: ArrayConstraint; }; } From 4f705c0d25475204a3c6e4b3ec53c3a8285a1c45 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:08:03 +0000 Subject: [PATCH 07/27] fix negative prices being set for free offers --- .../criteria/TestOpportunityBookable.test.js | 19 ++++++++++++------- .../src/testDataShape.js | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index af40387c2c..a32d0bc8a1 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -2,6 +2,7 @@ const fc = require('fast-check'); const _ = require('lodash'); const { DateTime } = require('luxon'); +const util = require('util'); const { TestOpportunityBookable } = require('./TestOpportunityBookable'); const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); @@ -9,15 +10,15 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableSellerTermsOfService']; + const allCriteriaNames = [...criteriaMap.keys()]; + // const allCriteriaNames = ['TestOpportunityBookableFreePrepaymentRequired']; const allOpportunityTypes = /** @type {const} */([ - // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - 'IndividualFacilityUseSlot', + 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + // 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - 'OpenBookingSimpleFlow', + 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + // 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { @@ -32,7 +33,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai harvestStartTime, } ); - console.log('shapeExpressions:', shapeExpressions); + console.log('shapeExpressions:', util.inspect(shapeExpressions, false, null, true)); const generatedOpportunityPart = generateForShapeDataExpressions( shapeExpressions['test:testOpportunityDataShapeExpression'], { opportunityType }, @@ -101,6 +102,10 @@ const generatorsByType = { const max = constraint.maxinclusive ?? undefined; // TODO2 address // return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); + if (min === max) { + // fast-check otherwise produces NaN + return fc.constant(min); + } return fc.double({ min, max }); }, /** diff --git a/packages/test-interface-criteria/src/testDataShape.js b/packages/test-interface-criteria/src/testDataShape.js index 7164385934..d3e318e265 100644 --- a/packages/test-interface-criteria/src/testDataShape.js +++ b/packages/test-interface-criteria/src/testDataShape.js @@ -58,6 +58,7 @@ function quantitativeValue(requirements) { const FREE_PRICE_QUANTITATIVE_VALUE = quantitativeValue({ maxinclusive: 0, + mininclusive: 0, }); const NON_FREE_PRICE_QUANTITATIVE_VALUE = quantitativeValue({ From 5630cf82c779a26580ade1d7a731294ca3ece2dc Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:19:54 +0000 Subject: [PATCH 08/27] feat(criteria) Add testDataShape for TestOpportunityBookableNonFreePrepaymentUnavailable --- .../criteria/TestOpportunityBookable.test.js | 2 +- ...ityBookableNonFreePrepaymentUnavailable.js | 25 +++++++++++++++++-- ...ernalCriteriaFutureScheduledOpportunity.js | 11 +++----- .../src/testDataShape.js | 13 ++++++++++ 4 files changed, 40 insertions(+), 11 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index a32d0bc8a1..8740786758 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -11,7 +11,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai // test ('hi', () => {}); // TODO3 const allCriteriaNames = [...criteriaMap.keys()]; - // const allCriteriaNames = ['TestOpportunityBookableFreePrepaymentRequired']; + // const allCriteriaNames = ['TestOpportunityBookableNonFreePrepaymentUnavailable']; const allOpportunityTypes = /** @type {const} */([ 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' // 'IndividualFacilityUseSlot', diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js index 292aa65614..c98ceaf727 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js @@ -1,3 +1,4 @@ +const { shapeConstraintRecipes, NON_FREE_PRICE_QUANTITATIVE_VALUE, prepaymentOptionNodeConstraint, openBookingFlowRequirementArrayConstraint } = require('../testDataShape'); const { createCriteria, remainingCapacityMustBeAtLeastTwo, @@ -66,8 +67,28 @@ const TestOpportunityBookableNonFreePrepaymentUnavailable = createCriteria({ mustNotRequireAdditionalDetails, ], ], - testDataShape: () => ({ - // TODO: Add data shape + testDataShape: (options) => ({ + opportunityConstraints: { + ...shapeConstraintRecipes.remainingCapacityMustBeAtLeast(2), + ...shapeConstraintRecipes.sellerMustAllowOpenBooking(), + ...shapeConstraintRecipes.startDateMustBe2HrsInAdvance(options), + ...shapeConstraintRecipes.eventStatusMustNotBeCancelledOrPostponed(), + }, + offerConstraints: { + ...shapeConstraintRecipes.mustHaveBookableOffer(options), + // onlyPaidBookableOffersWithPrepaymentUnavailable + 'schema:price': NON_FREE_PRICE_QUANTITATIVE_VALUE, + 'oa:openBookingPrepayment': prepaymentOptionNodeConstraint({ + allowlist: ['https://openactive.io/Unavailable'], + }), + // mustNotRequireAttendeeDetails, mustNotRequireAdditionalDetails + 'oa:openBookingFlowRequirement': openBookingFlowRequirementArrayConstraint({ + excludesAll: [ + 'https://openactive.io/OpenBookingAttendeeDetails', + 'https://openactive.io/OpenBookingIntakeForm', + ], + }), + }, }), }); diff --git a/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js b/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js index bab203e864..0cdb4c908c 100644 --- a/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js +++ b/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js @@ -1,6 +1,7 @@ const { dateRange, eventStatusOptionNodeConstraint, + shapeConstraintRecipes, } = require('../../testDataShape'); /** @@ -41,14 +42,8 @@ const InternalCriteriaFutureScheduledOpportunity = createCriteria({ ], testDataShape: (options) => ({ opportunityConstraints: ({ - // startDateMustBe2HrsInAdvance - 'schema:startDate': dateRange({ - minDate: options.harvestStartTimeTwoHoursLater.toISO(), - }), - // eventStatusMustNotBeCancelledOrPostponed - 'schema:eventStatus': eventStatusOptionNodeConstraint({ - blocklist: ['https://schema.org/EventCancelled', 'https://schema.org/EventPostponed'], - }), + ...shapeConstraintRecipes.startDateMustBe2HrsInAdvance(options), + ...shapeConstraintRecipes.eventStatusMustNotBeCancelledOrPostponed(), }), }), }); diff --git a/packages/test-interface-criteria/src/testDataShape.js b/packages/test-interface-criteria/src/testDataShape.js index d3e318e265..fd6b543f3a 100644 --- a/packages/test-interface-criteria/src/testDataShape.js +++ b/packages/test-interface-criteria/src/testDataShape.js @@ -256,6 +256,19 @@ const shapeConstraintRecipes = { allowNull: true, }), }), + /** + * @param {Options} options + */ + startDateMustBe2HrsInAdvance: (options) => ({ + 'schema:startDate': dateRange({ + minDate: options.harvestStartTimeTwoHoursLater.toISO(), + }), + }), + eventStatusMustNotBeCancelledOrPostponed: () => ({ + 'schema:eventStatus': eventStatusOptionNodeConstraint({ + blocklist: ['https://schema.org/EventCancelled', 'https://schema.org/EventPostponed'], + }), + }), }; module.exports = { From bc31993021fb3657a5541bc510319044c2f56ab0 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:29:18 +0000 Subject: [PATCH 09/27] feat(criteria) Add testDataShape for TestOpportunityBookableInPast --- .../criteria/TestOpportunityBookable.test.js | 12 ++++----- .../criteria/TestOpportunityBookableInPast.js | 26 +++++++++++++++++-- .../src/types/TestDataShape.d.ts | 1 + 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 8740786758..176a04c7f9 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -10,15 +10,15 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - const allCriteriaNames = [...criteriaMap.keys()]; - // const allCriteriaNames = ['TestOpportunityBookableNonFreePrepaymentUnavailable']; + // const allCriteriaNames = [...criteriaMap.keys()]; + const allCriteriaNames = ['TestOpportunityBookableInPast']; const allOpportunityTypes = /** @type {const} */([ - 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - // 'IndividualFacilityUseSlot', + // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - // 'OpenBookingSimpleFlow', + // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js index 60d64fe411..3a7357613d 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js @@ -1,3 +1,4 @@ +const { shapeConstraintRecipes, advanceBookingOptionNodeConstraint, openBookingFlowRequirementArrayConstraint, dateRange } = require('../testDataShape'); const { createCriteria, remainingCapacityMustBeAtLeastTwo, @@ -55,8 +56,29 @@ const TestOpportunityBookableInPast = createCriteria({ excludePaidBookableOffersWithPrepaymentUnavailable, ], ], - testDataShape: () => ({ - // TODO: Add data shape + testDataShape: (options) => ({ + opportunityConstraints: { + ...shapeConstraintRecipes.remainingCapacityMustBeAtLeast(2), + ...shapeConstraintRecipes.sellerMustAllowOpenBooking(), + // TODO endDateMustBeInThePast + 'schema:endDate': dateRange({ + maxDate: options.harvestStartTime.toISO(), + }), + ...shapeConstraintRecipes.eventStatusMustNotBeCancelledOrPostponed(), + }, + offerConstraints: { + // mustNotBeOpenBookingInAdvanceUnavailable + 'oa:openBookingInAdvance': advanceBookingOptionNodeConstraint({ + blocklist: ['https://openactive.io/Unavailable'], + }), + // mustNotRequireAttendeeDetails, mustNotRequireAdditionalDetails + 'oa:openBookingFlowRequirement': openBookingFlowRequirementArrayConstraint({ + excludesAll: [ + 'https://openactive.io/OpenBookingAttendeeDetails', + 'https://openactive.io/OpenBookingIntakeForm', + ], + }), + }, }), }); diff --git a/packages/test-interface-criteria/src/types/TestDataShape.d.ts b/packages/test-interface-criteria/src/types/TestDataShape.d.ts index 1d37a04b64..3edd4039f4 100644 --- a/packages/test-interface-criteria/src/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/src/types/TestDataShape.d.ts @@ -116,6 +116,7 @@ export type TestDataNodeConstraint = export type TestDataShapeOpportunityConstraints = { 'schema:startDate'?: DateRangeNodeConstraint; + 'schema:endDate'?: DateRangeNodeConstraint; /** * "placeholder:remainingCapacity" is a stand-in for either remainingAttendeeCapacity (sessions) * or remainingUses (facilities) From 542686abb7d903d29745ab01f409dd0173d15e20 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:33:35 +0000 Subject: [PATCH 10/27] fix TestOpportunityBookableAttendeeDetails issue --- .../src/criteria/TestOpportunityBookable.test.js | 16 ++++++++-------- .../TestOpportunityBookableAttendeeDetails.js | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 176a04c7f9..79bc00db46 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -1,4 +1,3 @@ -// TODO make this enumerate all criteria const fc = require('fast-check'); const _ = require('lodash'); const { DateTime } = require('luxon'); @@ -10,15 +9,15 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableInPast']; + const allCriteriaNames = [...criteriaMap.keys()]; + // const allCriteriaNames = ['TestOpportunityBookableAttendeeDetails']; const allOpportunityTypes = /** @type {const} */([ - // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - 'IndividualFacilityUseSlot', + 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + // 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - 'OpenBookingSimpleFlow', + 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + // 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { @@ -142,7 +141,8 @@ const generatorsByType = { */ 'test:ArrayConstraint'(constraint) { if (constraint.includesAll) { - return fc.array(fc.constantFrom(...constraint.includesAll), { minLength: constraint.minLength ?? 0 }); + return fc.constant(constraint.includesAll); + // return fc.array(fc.constantFrom(...constraint.includesAll), { minLength: constraint.minLength ?? 0 }); } if (constraint.datatype === 'oa:Terms') { // special handling because oa:Terms is not an enum constraint diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js index 6d1d50ada4..5341ee95eb 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js @@ -51,6 +51,7 @@ const TestOpportunityBookableAttendeeDetails = createCriteria({ 'oa:openBookingFlowRequirement': openBookingFlowRequirementArrayConstraint({ includesAll: ['https://openactive.io/OpenBookingAttendeeDetails'], excludesAll: ['https://openactive.io/OpenBookingIntakeForm'], + // minLength: 1, }), }, }), From 5e9dafb7659cf1b53c83ecceddb560395f8d83b5 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:39:19 +0000 Subject: [PATCH 11/27] fix latestCancellationBeforeStartDate issue --- .../criteria/TestOpportunityBookable.test.js | 44 +++++++++++++------ .../src/types/TestDataShape.d.ts | 5 +++ 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 79bc00db46..9428497ec2 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -9,15 +9,15 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - const allCriteriaNames = [...criteriaMap.keys()]; - // const allCriteriaNames = ['TestOpportunityBookableAttendeeDetails']; + // const allCriteriaNames = [...criteriaMap.keys()]; + const allCriteriaNames = ['TestOpportunityBookableCancellableOutsideWindow']; const allOpportunityTypes = /** @type {const} */([ - 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - // 'IndividualFacilityUseSlot', + // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - // 'OpenBookingSimpleFlow', + // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { @@ -257,17 +257,35 @@ function generateForShapeDataExpressions(shapeExpressions, { /* This is a special case in which the generated value is supposed to be a derived value i.e. startDate - validFromBeforeStartDate */ if (result.validFromBeforeStartDate) { - if (!startDate) { - throw new Error('startDate must be set in order to derive validFromBeforeStartDate'); - } - const startDateAsDate = DateTime.fromISO(startDate); - const validFromBeforeStartDateAsDate = DateTime.fromISO(result.validFromBeforeStartDate); - const validFromBeforeStartDateAsDuration = startDateAsDate.diff(validFromBeforeStartDateAsDate); - result.validFromBeforeStartDate = validFromBeforeStartDateAsDuration.toISO(); + result.validFromBeforeStartDate = deriveDurationForDateBeforeStart( + result.validFromBeforeStartDate, + startDate + ); + } + // Same situation as for validFromBeforeStartDate + if (result.latestCancellationBeforeStartDate) { + result.latestCancellationBeforeStartDate = deriveDurationForDateBeforeStart( + result.latestCancellationBeforeStartDate, + startDate + ); } return result; } +/** + * @param {string} dateBeforeStart + * @param {string} [startDate] + */ +function deriveDurationForDateBeforeStart(dateBeforeStart, startDate) { + if (!startDate) { + throw new Error('startDate must be set in order to derive validFromBeforeStartDate/latestCancellationBeforeStartDate'); + } + const startDateAsDate = DateTime.fromISO(startDate); + const validFromBeforeStartDateAsDate = DateTime.fromISO(dateBeforeStart); + const validFromBeforeStartDateAsDuration = startDateAsDate.diff(validFromBeforeStartDateAsDate); + return validFromBeforeStartDateAsDuration.toISO(); +} + /** * @param {string} datatype * @returns {string[]} diff --git a/packages/test-interface-criteria/src/types/TestDataShape.d.ts b/packages/test-interface-criteria/src/types/TestDataShape.d.ts index 3edd4039f4..d35a8960fa 100644 --- a/packages/test-interface-criteria/src/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/src/types/TestDataShape.d.ts @@ -154,6 +154,11 @@ export type TestDataShape = { 'oa:validFromBeforeStartDate'?: DateRangeNodeConstraint; 'oa:openBookingInAdvance'?: OptionNodeConstraint; 'oa:openBookingFlowRequirement'?: ArrayConstraint; + /** + * Refers to the date calculated as `startDate - latestCancellationBeforeStartDate`. + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * can be null. + */ 'oa:latestCancellationBeforeStartDate'?: NullNodeConstraint | DateRangeNodeConstraint; 'oa:allowCustomerCancellationFullRefund'?: BooleanNodeConstraint; }; From ee540eff36ad4469d56c1d8209da56eb17200e21 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:43:31 +0000 Subject: [PATCH 12/27] fix TestOpportunityBookableOutsideValidFromBeforeStartDate --- .../src/criteria/TestOpportunityBookable.test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 9428497ec2..99c315ad29 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -10,7 +10,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai // test ('hi', () => {}); // TODO3 // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableCancellableOutsideWindow']; + const allCriteriaNames = ['TestOpportunityBookableOutsideValidFromBeforeStartDate']; const allOpportunityTypes = /** @type {const} */([ // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' 'IndividualFacilityUseSlot', @@ -269,6 +269,13 @@ function generateForShapeDataExpressions(shapeExpressions, { startDate ); } + // Same situation as for validFromBeforeStartDate + if (result.validThroughBeforeStartDate) { + result.validThroughBeforeStartDate = deriveDurationForDateBeforeStart( + result.validThroughBeforeStartDate, + startDate + ); + } return result; } From 3b6027956057e9615dd09f8e92e9513816096d4f Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:54:07 +0000 Subject: [PATCH 13/27] fix(criteria): disallow >1 spaces for TestOpportunityBookableOneSpace ShEx --- .../src/criteria/TestOpportunityBookable.test.js | 12 ++++++++++-- .../src/criteria/TestOpportunityBookableOneSpace.js | 11 +++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 99c315ad29..44e6c80d76 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -2,7 +2,6 @@ const fc = require('fast-check'); const _ = require('lodash'); const { DateTime } = require('luxon'); const util = require('util'); -const { TestOpportunityBookable } = require('./TestOpportunityBookable'); const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); // TODO many samples @@ -10,7 +9,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai // test ('hi', () => {}); // TODO3 // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableOutsideValidFromBeforeStartDate']; + const allCriteriaNames = ['TestOpportunityBookableOneSpace']; const allOpportunityTypes = /** @type {const} */([ // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' 'IndividualFacilityUseSlot', @@ -22,6 +21,14 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { for (const criteriaName of allCriteriaNames) { + if ( + opportunityType === 'IndividualFacilityUseSlot' + && criteriaName === 'TestOpportunityBookableFiveSpaces' + ) { + // It's not possible to generate a valid IFU Slot for this criteria + // as IFU slots can only have a capacity of 0 or 1 + continue; + } test(`For opportunityType: ${opportunityType}; bookingFlow: ${bookingFlow}; criteria: ${criteriaName}`, () => { const harvestStartTime = DateTime.now().toUTC().toISO(); const shapeExpressions = getTestDataShapeExpressions( @@ -99,6 +106,7 @@ const generatorsByType = { NumericNodeConstraint(constraint) { const min = constraint.mininclusive ?? undefined; const max = constraint.maxinclusive ?? undefined; + console.log('NumericNodeConstraint', { constraint, min, max, eq: min === max }) // TODO2 address // return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); if (min === max) { diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOneSpace.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOneSpace.js index 0a392a1879..3a9a4d1c54 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOneSpace.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOneSpace.js @@ -6,7 +6,7 @@ const { sellerMustAllowOpenBooking, } = require('./criteriaUtils'); const { - shapeConstraintRecipes, + shapeConstraintRecipes, quantitativeValue, } = require('../testDataShape'); const { InternalCriteriaFutureScheduledAndDoesNotRequireDetails } = require('./internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails'); @@ -48,7 +48,14 @@ const TestOpportunityBookableOneSpace = createCriteria({ ], testDataShape: (options) => ({ opportunityConstraints: { - ...shapeConstraintRecipes.remainingCapacityMustBeAtLeast(1), + 'placeholder:remainingCapacity': quantitativeValue({ + mininclusive: 1, + maxinclusive: 1, + }), + 'placeholder:remainingCapacityIfuSlot': quantitativeValue({ + mininclusive: 1, + maxinclusive: 1, + }), ...shapeConstraintRecipes.sellerMustAllowOpenBooking(), }, offerConstraints: { From 85f128396304ecbd590eb157a8ac02fe335038ea Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 16:57:37 +0000 Subject: [PATCH 14/27] fix(criteria): include IFU Slot ShEx for TestOpportunityBookableNoSpaces --- .../src/criteria/TestOpportunityBookable.test.js | 2 +- .../src/criteria/TestOpportunityBookableNoSpaces.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 44e6c80d76..8c92342c96 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -9,7 +9,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai // test ('hi', () => {}); // TODO3 // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableOneSpace']; + const allCriteriaNames = ['TestOpportunityBookableNoSpaces']; const allOpportunityTypes = /** @type {const} */([ // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' 'IndividualFacilityUseSlot', diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNoSpaces.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNoSpaces.js index 9fcf5eb213..7fdbf58a2f 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNoSpaces.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNoSpaces.js @@ -39,6 +39,11 @@ const TestOpportunityBookableNoSpaces = createCriteria({ // remainingCapacityMustBeZero 'placeholder:remainingCapacity': quantitativeValue({ maxinclusive: 0, + mininclusive: 0, + }), + 'placeholder:remainingCapacityIfuSlot': quantitativeValue({ + maxinclusive: 0, + mininclusive: 0, }), }, offerConstraints: { From e57e327e700f4acb66af0ba12bff40d02b780f6e Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 18:21:01 +0000 Subject: [PATCH 15/27] fix(criteria): Fix testDataShape merging logic to prefer extension props for numeric constraints --- .vscode/launch.json | 18 ++++++++ packages/test-interface-criteria/package.json | 3 +- .../criteria/TestOpportunityBookable.test.js | 6 +-- .../src/criteria/criteriaUtils.js | 46 +++++++++++++------ 4 files changed, 54 insertions(+), 19 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f03785966f..1487e5e81f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -98,6 +98,24 @@ "NODE_APP_INSTANCE": "dev" }, }, + { + "name": "test-interface-criteria - unit tests", + "type": "node", + "request": "launch", + // "env": { "CI": "true" }, + "cwd": "${workspaceFolder}/packages/test-interface-criteria/", + "runtimeArgs": [ + "--inspect-brk", + "node_modules/.bin/jest", + "--runInBand" + ], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen" + // "runtimeExecutable": "npm", + // "runtimeVersion": "18.17.1", + // "runtimeArgs": ["run-script", "run-tests", "--", "--runInBand"], + // "port": 9229, + }, { "name": "validate-feeds", "type": "node", diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index 227f092154..e042436ea9 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -8,7 +8,8 @@ "gen-types-clean": "rimraf \"built-types/*\"", "gen-types-copy-d-ts-files": "copyfiles --up 1 \"src/**/*.d.ts\" built-types/", "gen-types": "npm run gen-types-clean && tsc && npm run gen-types-copy-d-ts-files", - "test": "npm run lint && tsc && jest", + "run-tests": "jest", + "test": "npm run lint && tsc && npm run run-tests", "lint": "eslint \"src/**/*.js\"", "lint-fix": "npm run lint -- --fix" }, diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index 8c92342c96..ec72907220 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -8,11 +8,11 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableNoSpaces']; + const allCriteriaNames = [...criteriaMap.keys()]; + // const allCriteriaNames = ['TestOpportunityBookableFiveSpaces']; const allOpportunityTypes = /** @type {const} */([ // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - 'IndividualFacilityUseSlot', + 'FacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' diff --git a/packages/test-interface-criteria/src/criteria/criteriaUtils.js b/packages/test-interface-criteria/src/criteria/criteriaUtils.js index 796c6fa305..4c1385f406 100644 --- a/packages/test-interface-criteria/src/criteria/criteriaUtils.js +++ b/packages/test-interface-criteria/src/criteria/criteriaUtils.js @@ -3,7 +3,6 @@ const { isObject, cloneDeep } = require('lodash'); const { DateTime, Duration } = require('luxon'); /** - * @typedef {import('luxon').DateTime} DateTime * @typedef {import('../types/Opportunity').Opportunity} Opportunity * @typedef {import('../types/Offer').Offer} Offer * @typedef {import('../types/Options').Options} Options @@ -36,25 +35,30 @@ function assertNodeConstraintType(expectedType, requirement, criteriaName) { * @template {TestDataNodeConstraint} TNodeConstraint * @template {keyof TNodeConstraint} TFieldName * @param {TFieldName} fieldName - * @param {TNodeConstraint} reqA - * @param {TNodeConstraint} reqB + * @param {TNodeConstraint} baseConstraint + * @param {TNodeConstraint} extensionConstraint * @param {(reqAField: TNodeConstraint[TFieldName], reqBField: TNodeConstraint[TFieldName]) => TNodeConstraint[TFieldName] | null} getValueIfBothExist * @returns {{} | Pick} This format makes it easy to merge this data into an object literal. * The result will look like e.g. `{ mininclusive: 3 }`. * It can also be an empty object to cater for instances in which neither of the requirements have the field * and therefore this field should not be added to the merged requirement. */ -function mergeTestDataNodeConstraintField(fieldName, reqA, reqB, getValueIfBothExist) { - if (reqA[fieldName] == null && reqB[fieldName] == null) { +function mergeTestDataNodeConstraintField( + fieldName, + baseConstraint, + extensionConstraint, + getValueIfBothExist +) { + if (baseConstraint[fieldName] == null && extensionConstraint[fieldName] == null) { return {}; } - if (reqA[fieldName] != null) { - return { [fieldName]: reqA[fieldName] }; + if (extensionConstraint[fieldName] != null && baseConstraint[fieldName] == null) { + return { [fieldName]: extensionConstraint[fieldName] }; } - if (reqB[fieldName] != null) { - return { [fieldName]: reqB[fieldName] }; + if (baseConstraint[fieldName] != null && extensionConstraint[fieldName] == null) { + return { [fieldName]: baseConstraint[fieldName] }; } - const mergedValue = getValueIfBothExist(reqA[fieldName], reqB[fieldName]); + const mergedValue = getValueIfBothExist(baseConstraint[fieldName], extensionConstraint[fieldName]); if (mergedValue == null) { return {}; } return { [fieldName]: mergedValue }; } @@ -77,15 +81,27 @@ function mergeDateRangeNodeConstraints(reqA, reqB) { } /** - * @param {NumericNodeConstraint} reqA - * @param {NumericNodeConstraint} reqB + * @param {NumericNodeConstraint} baseConstraint + * @param {NumericNodeConstraint} extensionConstraint * @returns {NumericNodeConstraint} */ -function mergeNumericNodeConstraints(reqA, reqB) { +function mergeNumericNodeConstraints(baseConstraint, extensionConstraint) { return { '@type': 'NumericNodeConstraint', - ...mergeTestDataNodeConstraintField('mininclusive', reqA, reqB, Math.max), - ...mergeTestDataNodeConstraintField('maxinclusive', reqA, reqB, Math.min), + ...mergeTestDataNodeConstraintField( + 'mininclusive', + baseConstraint, + extensionConstraint, + // The extension should overwrite the base if they both exist + (base, extension) => extension, + ), + ...mergeTestDataNodeConstraintField( + 'maxinclusive', + baseConstraint, + extensionConstraint, + // The extension should overwrite the base if they both exist + (base, extension) => extension, + ), }; } From 3b9e60480e28c7bf184356a3e6bbfda67130abb5 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 18:34:02 +0000 Subject: [PATCH 16/27] fix some >=/> issues --- .../src/criteria/TestOpportunityBookable.test.js | 15 ++++++++++----- ...rtunityBookableNonFreePrepaymentUnavailable.js | 6 +++--- ...unityBookableWithinValidFromBeforeStartDate.js | 6 ++++-- .../src/criteria/criteriaUtils.js | 4 ++-- .../InternalCriteriaFutureScheduledOpportunity.js | 6 +++--- .../test-interface-criteria/src/testDataShape.js | 3 ++- 6 files changed, 24 insertions(+), 16 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index ec72907220..ff67a7c40a 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -8,11 +8,11 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - const allCriteriaNames = [...criteriaMap.keys()]; - // const allCriteriaNames = ['TestOpportunityBookableFiveSpaces']; + // const allCriteriaNames = [...criteriaMap.keys()]; + const allCriteriaNames = ['TestOpportunityBookableWithinValidFromBeforeStartDate']; const allOpportunityTypes = /** @type {const} */([ // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - 'FacilityUseSlot', + 'ScheduledSession', ]); const allBookingFlows = /** @type {const} */([ // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' @@ -40,6 +40,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai } ); console.log('shapeExpressions:', util.inspect(shapeExpressions, false, null, true)); + for (let i = 0; i < 100; i++) { const generatedOpportunityPart = generateForShapeDataExpressions( shapeExpressions['test:testOpportunityDataShapeExpression'], { opportunityType }, @@ -58,12 +59,17 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai harvestStartTime, }); console.log('result:', result); + if (!result.matchesCriteria && result.unmetCriteriaDetails[0].startsWith('startDate')) { + console.log('generatedOpportunity.startDate:', generatedOpportunity.startDate); + console.log('harvestStartTime:', harvestStartTime); + } // expect(result.matchesCriteria).toEqual(tr) // expect(result).toHaveProperty('matchesCriteria', true); expect(result).toEqual({ matchesCriteria: true, unmetCriteriaDetails: [], }); + } // expect(result).to.deep.equal({ // matchesCriteria: true, // unmetCriteriaDetails: [], @@ -106,14 +112,13 @@ const generatorsByType = { NumericNodeConstraint(constraint) { const min = constraint.mininclusive ?? undefined; const max = constraint.maxinclusive ?? undefined; - console.log('NumericNodeConstraint', { constraint, min, max, eq: min === max }) // TODO2 address // return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); if (min === max) { // fast-check otherwise produces NaN return fc.constant(min); } - return fc.double({ min, max }); + return fc.double({ min, max, noNaN: true, noDefaultInfinity: true }); }, /** * @param {import('../types/TestDataShape').BooleanNodeConstraint} constraint diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js index c98ceaf727..c93c5a5a9a 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.js @@ -7,7 +7,7 @@ const { sellerMustAllowOpenBooking, mustNotRequireAttendeeDetails, mustNotRequireAdditionalDetails, - startDateMustBe2HrsInAdvance, + startDateMustBeOver2HrsInAdvance, eventStatusMustNotBeCancelledOrPostponed, } = require('./criteriaUtils'); @@ -37,8 +37,8 @@ const TestOpportunityBookableNonFreePrepaymentUnavailable = createCriteria({ sellerMustAllowOpenBooking, ], [ - 'startDate must be 2hrs in advance for random tests to use', - startDateMustBe2HrsInAdvance, + 'startDate must be over 2hrs in advance for random tests to use', + startDateMustBeOver2HrsInAdvance, ], [ 'eventStatus must not be Cancelled or Postponed', diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.js index 294af0b0a5..5340f2fbbe 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.js @@ -36,11 +36,13 @@ const TestOpportunityBookableWithinValidFromBeforeStartDate = createCriteria({ offerConstraints: { // mustHaveBookingWindowAndBeWithinIt 'oa:validFromBeforeStartDate': dateRange({ - maxDate: options.harvestStartTime.toISO(), + // -1s to match the non-equaling comparison in the non-ShEx constraint + maxDate: options.harvestStartTime.minus({ seconds: 1 }).toISO(), // This differs from TestOpportunityBookable as it does not allow null values }), 'oa:validThroughBeforeStartDate': dateRange({ - minDate: options.harvestStartTimeTwoHoursLater.toISO(), + // +1s to match the non-equaling comparison in the non-ShEx constraint + minDate: options.harvestStartTimeTwoHoursLater.plus({ seconds: 1 }).toISO(), // This differs from TestOpportunityBookable as it does not allow null values }), }, diff --git a/packages/test-interface-criteria/src/criteria/criteriaUtils.js b/packages/test-interface-criteria/src/criteria/criteriaUtils.js index 4c1385f406..4ea5924891 100644 --- a/packages/test-interface-criteria/src/criteria/criteriaUtils.js +++ b/packages/test-interface-criteria/src/criteria/criteriaUtils.js @@ -378,7 +378,7 @@ function remainingCapacityMustBeAtLeastTwo(opportunity) { /** * @type {OpportunityConstraint} */ -function startDateMustBe2HrsInAdvance(opportunity, options) { +function startDateMustBeOver2HrsInAdvance(opportunity, options) { return options.harvestStartTimeTwoHoursLater < DateTime.fromISO(opportunity.startDate); } @@ -519,7 +519,7 @@ module.exports = { mustRequireAttendeeDetails, mustNotRequireAttendeeDetails, mustAllowProposalAmendment, - startDateMustBe2HrsInAdvance, + startDateMustBeOver2HrsInAdvance, endDateMustBeInThePast, eventStatusMustNotBeCancelledOrPostponed, mustNotBeOpenBookingInAdvanceUnavailable, diff --git a/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js b/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js index 0cdb4c908c..090075d99f 100644 --- a/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js +++ b/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js @@ -11,7 +11,7 @@ const { const { createCriteria, - startDateMustBe2HrsInAdvance, + startDateMustBeOver2HrsInAdvance, eventStatusMustNotBeCancelledOrPostponed, excludePaidBookableOffersWithPrepaymentUnavailable, } = require('../criteriaUtils'); @@ -26,8 +26,8 @@ const InternalCriteriaFutureScheduledOpportunity = createCriteria({ name: '_InternalCriteriaFutureScheduledOpportunity', opportunityConstraints: [ [ - 'startDate must be 2hrs in advance for random tests to use', - startDateMustBe2HrsInAdvance, + 'startDate must be over 2hrs in advance for random tests to use', + startDateMustBeOver2HrsInAdvance, ], [ 'eventStatus must not be Cancelled or Postponed', diff --git a/packages/test-interface-criteria/src/testDataShape.js b/packages/test-interface-criteria/src/testDataShape.js index fd6b543f3a..02e263190a 100644 --- a/packages/test-interface-criteria/src/testDataShape.js +++ b/packages/test-interface-criteria/src/testDataShape.js @@ -261,7 +261,8 @@ const shapeConstraintRecipes = { */ startDateMustBe2HrsInAdvance: (options) => ({ 'schema:startDate': dateRange({ - minDate: options.harvestStartTimeTwoHoursLater.toISO(), + // Add a second to match the fact that the non-ShEx criteria uses a non-equaling comparison + minDate: options.harvestStartTimeTwoHoursLater.plus({ seconds: 1 }).toISO(), }), }), eventStatusMustNotBeCancelledOrPostponed: () => ({ From 040077261a6581d344aa2d391eb94ad6b5b3d5f9 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 18:45:30 +0000 Subject: [PATCH 17/27] fix remainingUses not being properly checked against IFUness --- .../criteria/TestOpportunityBookable.test.js | 27 ++++++++----------- .../src/testDataShape.js | 3 ++- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index ff67a7c40a..b99136764d 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -9,10 +9,10 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai // test ('hi', () => {}); // TODO3 // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityBookableWithinValidFromBeforeStartDate']; + const allCriteriaNames = ['TestOpportunityOfflineBookable']; const allOpportunityTypes = /** @type {const} */([ // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - 'ScheduledSession', + 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' @@ -40,41 +40,36 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai } ); console.log('shapeExpressions:', util.inspect(shapeExpressions, false, null, true)); - for (let i = 0; i < 100; i++) { + // Run test 10 times each as it involves randomly generated data + for (let i = 0; i < 10; i++) { const generatedOpportunityPart = generateForShapeDataExpressions( shapeExpressions['test:testOpportunityDataShapeExpression'], { opportunityType }, ); - console.log('generatedOpportunityPart:', generatedOpportunityPart); const generatedOffer = generateForShapeDataExpressions( shapeExpressions['test:testOfferDataShapeExpression'], { startDate: generatedOpportunityPart.startDate }, ); - console.log('generatedOffer:', generatedOffer); const generatedOpportunity = { ...generatedOpportunityPart, offers: [generatedOffer], }; + if (opportunityType === 'IndividualFacilityUseSlot') { + _.set(generatedOpportunity, ['facilityUse', '@type'], 'IndividualFacilityUse'); + } + console.log('generatedOpportunity:', util.inspect(generatedOpportunity, false, null, true)); const result = testMatch(criteriaMap.get(criteriaName), generatedOpportunity, { harvestStartTime, }); - console.log('result:', result); - if (!result.matchesCriteria && result.unmetCriteriaDetails[0].startsWith('startDate')) { - console.log('generatedOpportunity.startDate:', generatedOpportunity.startDate); - console.log('harvestStartTime:', harvestStartTime); + if (!result.matchesCriteria) { + console.log('whaaa'); } - // expect(result.matchesCriteria).toEqual(tr) - // expect(result).toHaveProperty('matchesCriteria', true); + console.log('result:', result); expect(result).toEqual({ matchesCriteria: true, unmetCriteriaDetails: [], }); } - // expect(result).to.deep.equal({ - // matchesCriteria: true, - // unmetCriteriaDetails: [], - // }); - // shape.opportunityConstraints. }); } } diff --git a/packages/test-interface-criteria/src/testDataShape.js b/packages/test-interface-criteria/src/testDataShape.js index 02e263190a..07a4e3fd0d 100644 --- a/packages/test-interface-criteria/src/testDataShape.js +++ b/packages/test-interface-criteria/src/testDataShape.js @@ -230,7 +230,8 @@ const shapeConstraintRecipes = { */ mustHaveBookableOffer: (options) => ({ 'oa:validFromBeforeStartDate': dateRange({ - maxDate: options.harvestStartTime.toISO(), + // -1s to match the non-equaling comparison in the non-ShEx constraint + maxDate: options.harvestStartTime.minus({ seconds: 1 }).toISO(), allowNull: true, }), 'oa:openBookingInAdvance': advanceBookingOptionNodeConstraint({ From 007eac248a325b8f9774fb155ab944de5cd547c2 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 19 Feb 2024 18:46:46 +0000 Subject: [PATCH 18/27] tests all consistently pass! --- .../src/criteria/TestOpportunityBookable.test.js | 12 ++++++------ ...TestOpportunityBookableCancellableWithinWindow.js | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js index b99136764d..d0f7d3e883 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js @@ -8,15 +8,15 @@ const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { // test ('hi', () => {}); // TODO3 - // const allCriteriaNames = [...criteriaMap.keys()]; - const allCriteriaNames = ['TestOpportunityOfflineBookable']; + const allCriteriaNames = [...criteriaMap.keys()]; + // const allCriteriaNames = ['TestOpportunityOfflineBookable']; const allOpportunityTypes = /** @type {const} */([ - // 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - 'IndividualFacilityUseSlot', + 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + // 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - // 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - 'OpenBookingSimpleFlow', + 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + // 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableWithinWindow.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableWithinWindow.js index 49a4bed6ce..5d2eb1fa81 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableWithinWindow.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableWithinWindow.js @@ -38,7 +38,8 @@ const TestOpportunityBookableCancellableWithinWindow = createCriteria({ ...shapeConstraintRecipes.mustAllowFullRefund(), // mustBeWithinCancellationWindow 'oa:latestCancellationBeforeStartDate': dateRange({ - minDate: options.harvestStartTimeTwoHoursLater.toISO(), + // +1s to match the non-equaling comparison in the non-ShEx constraint + minDate: options.harvestStartTimeTwoHoursLater.plus({ seconds: 1 }).toISO(), }), }, }), From 352135a9c5adef676d03bcac7b1500a9e7e0065b Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 09:46:26 +0000 Subject: [PATCH 19/27] complete --- .../src/criteria/TestOpportunityBookable.d.ts | 4 + ...tOpportunityBookableAdditionalDetails.d.ts | 1 + ...estOpportunityBookableAttendeeDetails.d.ts | 1 + .../TestOpportunityBookableCancellable.d.ts | 6 + ...pportunityBookableCancellableNoWindow.d.ts | 5 + ...unityBookableCancellableOutsideWindow.d.ts | 8 ++ ...tunityBookableCancellableWithinWindow.d.ts | 8 ++ .../TestOpportunityBookableFiveSpaces.d.ts | 5 + .../criteria/TestOpportunityBookableFree.d.ts | 6 + ...estOpportunityBookableFreeCancellable.d.ts | 4 + ...rtunityBookableFreePrepaymentOptional.d.ts | 5 + ...rtunityBookableFreePrepaymentRequired.d.ts | 5 + .../TestOpportunityBookableInPast.d.ts | 8 ++ .../TestOpportunityBookableNoSpaces.d.ts | 5 + .../TestOpportunityBookableNonFree.d.ts | 6 + ...OpportunityBookableNonFreeCancellable.d.ts | 4 + ...nityBookableNonFreePrepaymentOptional.d.ts | 5 + ...nityBookableNonFreePrepaymentRequired.d.ts | 5 + ...yBookableNonFreePrepaymentUnavailable.d.ts | 5 + ...estOpportunityBookableNonFreeTaxGross.d.ts | 5 + .../TestOpportunityBookableNonFreeTaxNet.d.ts | 5 + ...TestOpportunityBookableNotCancellable.d.ts | 4 + .../TestOpportunityBookableOneSpace.d.ts | 5 + ...okableOutsideValidFromBeforeStartDate.d.ts | 5 + ...portunityBookableSellerTermsOfService.d.ts | 5 + .../TestOpportunityBookableUsingPayment.d.ts | 5 + ...estOpportunityBookableWithNegotiation.d.ts | 1 + ...ookableWithinValidFromBeforeStartDate.d.ts | 2 + .../TestOpportunityOfflineBookable.d.ts | 1 + .../TestOpportunityOnlineBookable.d.ts | 1 + .../src/criteria/criteriaUtils.d.ts | 114 +++++++++++++++ .../built-types/src/criteria/index.d.ts | 1 + ...tureScheduledAndDoesNotRequireDetails.d.ts | 7 + ...nalCriteriaFutureScheduledOpportunity.d.ts | 9 ++ .../src/criteria/sharedConstraints.d.ts | 2 + .../built-types/src/index.d.ts | 88 ++++++++++++ .../built-types/src/testDataShape.d.ts | 130 ++++++++++++++++++ .../test/testShapeDataMatchesConstraints.d.ts | 1 + .../built-types/types/TestDataShape.d.ts | 22 ++- .../test-interface-criteria/jest.config.js | 5 + packages/test-interface-criteria/package.json | 2 +- .../testShapeDataMatchesConstraints.js} | 102 +++++++------- .../test-interface-criteria/tsconfig.json | 3 +- 43 files changed, 564 insertions(+), 57 deletions(-) create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAdditionalDetails.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAttendeeDetails.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableNoWindow.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFiveSpaces.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFree.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreeCancellable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableInPast.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNoSpaces.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFree.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeCancellable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNotCancellable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOneSpace.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableSellerTermsOfService.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableUsingPayment.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithNegotiation.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOfflineBookable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOnlineBookable.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/criteriaUtils.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/index.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/criteria/sharedConstraints.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/index.d.ts create mode 100644 packages/test-interface-criteria/built-types/src/testDataShape.d.ts create mode 100644 packages/test-interface-criteria/built-types/test/testShapeDataMatchesConstraints.d.ts create mode 100644 packages/test-interface-criteria/jest.config.js rename packages/test-interface-criteria/{src/criteria/TestOpportunityBookable.test.js => test/testShapeDataMatchesConstraints.js} (79%) diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookable.d.ts new file mode 100644 index 0000000000..992cbea8b9 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookable.d.ts @@ -0,0 +1,4 @@ +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookable. + */ +export const TestOpportunityBookable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAdditionalDetails.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAdditionalDetails.d.ts new file mode 100644 index 0000000000..143f7bc241 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAdditionalDetails.d.ts @@ -0,0 +1 @@ +export const TestOpportunityBookableAdditionalDetails: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAttendeeDetails.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAttendeeDetails.d.ts new file mode 100644 index 0000000000..9efddac1c9 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableAttendeeDetails.d.ts @@ -0,0 +1 @@ +export const TestOpportunityBookableAttendeeDetails: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellable.d.ts new file mode 100644 index 0000000000..9c2a1b2620 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellable.d.ts @@ -0,0 +1,6 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellable + */ +export const TestOpportunityBookableCancellable: import("../types/Criteria").Criteria; +export const mustBeWithinCancellationWindowOrHaveNoWindowOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableNoWindow.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableNoWindow.d.ts new file mode 100644 index 0000000000..5e915cbb61 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableNoWindow.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellableNoWindow + */ +export const TestOpportunityBookableCancellableNoWindow: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts new file mode 100644 index 0000000000..4d7ea59f9a --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts @@ -0,0 +1,8 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * @typedef {import('../types/Criteria').OfferConstraint} OfferConstraint + */ +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellableOutsideWindow + */ +export const TestOpportunityBookableCancellableOutsideWindow: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts new file mode 100644 index 0000000000..574de94644 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts @@ -0,0 +1,8 @@ +/** + * Note that this criteria will ALWAYS reject any event whose latestCancellationBeforeStartDate + * duration is less than 2 hours. This is because this will conflict with the + * `startDateMustBe2HrsInAdvance` constraint (from `InternalCriteriaFutureScheduledOpportunity`). + * + * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellableWithinWindow + */ +export const TestOpportunityBookableCancellableWithinWindow: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFiveSpaces.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFiveSpaces.d.ts new file mode 100644 index 0000000000..34d649f851 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFiveSpaces.d.ts @@ -0,0 +1,5 @@ +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableFiveSpaces + */ +export const TestOpportunityBookableFiveSpaces: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFree.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFree.d.ts new file mode 100644 index 0000000000..17bc8218bc --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFree.d.ts @@ -0,0 +1,6 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableFree + */ +export const TestOpportunityBookableFree: import("../types/Criteria").Criteria; +export const onlyFreeBookableOffersWithUnavailablePrepaymentOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreeCancellable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreeCancellable.d.ts new file mode 100644 index 0000000000..0d5a5d07ef --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreeCancellable.d.ts @@ -0,0 +1,4 @@ +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableFreeCancellable + */ +export const TestOpportunityBookableFreeCancellable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts new file mode 100644 index 0000000000..e2b043eed3 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableFreePrepaymentOptional + */ +export const TestOpportunityBookableFreePrepaymentOptional: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts new file mode 100644 index 0000000000..23f086def6 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableFreePrepaymentRequired + */ +export const TestOpportunityBookableFreePrepaymentRequired: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableInPast.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableInPast.d.ts new file mode 100644 index 0000000000..2044965d9d --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableInPast.d.ts @@ -0,0 +1,8 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * @typedef {import('../types/Criteria').OfferConstraint} OfferConstraint + */ +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableInPast + */ +export const TestOpportunityBookableInPast: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNoSpaces.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNoSpaces.d.ts new file mode 100644 index 0000000000..0ebd43e573 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNoSpaces.d.ts @@ -0,0 +1,5 @@ +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNoSpaces + */ +export const TestOpportunityBookableNoSpaces: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFree.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFree.d.ts new file mode 100644 index 0000000000..5f9785b6d2 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFree.d.ts @@ -0,0 +1,6 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFree + */ +export const TestOpportunityBookableNonFree: import("../types/Criteria").Criteria; +export const onlyNonFreeBookableOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeCancellable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeCancellable.d.ts new file mode 100644 index 0000000000..8bd0583ac5 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeCancellable.d.ts @@ -0,0 +1,4 @@ +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreeCancellable + */ +export const TestOpportunityBookableNonFreeCancellable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts new file mode 100644 index 0000000000..61c2810c12 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreePrepaymentOptional + */ +export const TestOpportunityBookableNonFreePrepaymentOptional: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts new file mode 100644 index 0000000000..9735f14e0f --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreePrepaymentRequired + */ +export const TestOpportunityBookableNonFreePrepaymentRequired: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts new file mode 100644 index 0000000000..36372387f2 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreePrepaymentUnavailable + */ +export const TestOpportunityBookableNonFreePrepaymentUnavailable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts new file mode 100644 index 0000000000..5830e1777d --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts @@ -0,0 +1,5 @@ +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreeTaxGross. + */ +export const TestOpportunityBookableNonFreeTaxGross: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts new file mode 100644 index 0000000000..fb9c62e07d --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts @@ -0,0 +1,5 @@ +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreeTaxNet. + */ +export const TestOpportunityBookableNonFreeTaxNet: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNotCancellable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNotCancellable.d.ts new file mode 100644 index 0000000000..4badedde74 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableNotCancellable.d.ts @@ -0,0 +1,4 @@ +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableNotCancellable + */ +export const TestOpportunityBookableNotCancellable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOneSpace.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOneSpace.d.ts new file mode 100644 index 0000000000..5c414b0d5d --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOneSpace.d.ts @@ -0,0 +1,5 @@ +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableOneSpace + */ +export const TestOpportunityBookableOneSpace: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts new file mode 100644 index 0000000000..c42316a92f --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableOutsideValidFromBeforeStartDate + */ +export const TestOpportunityBookableOutsideValidFromBeforeStartDate: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableSellerTermsOfService.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableSellerTermsOfService.d.ts new file mode 100644 index 0000000000..ab8b5464b8 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableSellerTermsOfService.d.ts @@ -0,0 +1,5 @@ +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableSellerTermsOfService + */ +export const TestOpportunityBookableSellerTermsOfService: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableUsingPayment.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableUsingPayment.d.ts new file mode 100644 index 0000000000..79568c1bde --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableUsingPayment.d.ts @@ -0,0 +1,5 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +/** + * Implements https://openactive.io/test-interface#TestOpportunityBookableUsingPayment + */ +export const TestOpportunityBookableUsingPayment: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithNegotiation.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithNegotiation.d.ts new file mode 100644 index 0000000000..928c3bdade --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithNegotiation.d.ts @@ -0,0 +1 @@ +export const TestOpportunityBookableWithNegotiation: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts new file mode 100644 index 0000000000..6b62699cd8 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts @@ -0,0 +1,2 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +export const TestOpportunityBookableWithinValidFromBeforeStartDate: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOfflineBookable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOfflineBookable.d.ts new file mode 100644 index 0000000000..a01efae2ff --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOfflineBookable.d.ts @@ -0,0 +1 @@ +export const TestOpportunityOfflineBookable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOnlineBookable.d.ts b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOnlineBookable.d.ts new file mode 100644 index 0000000000..f0628b8678 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/TestOpportunityOnlineBookable.d.ts @@ -0,0 +1 @@ +export const TestOpportunityOnlineBookable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/criteriaUtils.d.ts b/packages/test-interface-criteria/built-types/src/criteria/criteriaUtils.d.ts new file mode 100644 index 0000000000..a8bf87b6b6 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/criteriaUtils.d.ts @@ -0,0 +1,114 @@ +export type Opportunity = import('../types/Opportunity').Opportunity; +export type Offer = import('../types/Offer').Offer; +export type Options = import('../types/Options').Options; +export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +export type Criteria = import('../types/Criteria').Criteria; +export type TestDataShapeFactory = import('../types/Criteria').TestDataShapeFactory; +export type TestDataShape = import('../types/TestDataShape').TestDataShape; +export type TestDataNodeConstraint = import('../types/TestDataShape').TestDataNodeConstraint; +export type DateRangeNodeConstraint = import('../types/TestDataShape').DateRangeNodeConstraint; +export type NumericNodeConstraint = import('../types/TestDataShape').NumericNodeConstraint; +export type ArrayConstraint = import("../types/TestDataShape").ArrayConstraint; +/** + * @param {object} args + * @param {string} args.name + * @param {Criteria['opportunityConstraints']} args.opportunityConstraints + * @param {Criteria['offerConstraints']} args.offerConstraints + * @param {Criteria['testDataShape']} args.testDataShape + * @param {Criteria | null} [args.includeConstraintsFromCriteria] If provided, + * opportunity and offer constraints will be included from this criteria. + * @returns {Criteria} + */ +export function createCriteria({ name, opportunityConstraints, offerConstraints, testDataShape: testDataShapeFactory, includeConstraintsFromCriteria, }: { + name: string; + opportunityConstraints: Criteria['opportunityConstraints']; + offerConstraints: Criteria['offerConstraints']; + testDataShape: Criteria['testDataShape']; + includeConstraintsFromCriteria?: Criteria | null; +}): Criteria; +/** +* @param {Opportunity} opportunity +* @returns {string} +*/ +export function getId(opportunity: Opportunity): string; +/** +* @param {Opportunity} opportunity +* @returns {string} +*/ +export function getType(opportunity: Opportunity): string; +/** +* @param {Opportunity} opportunity +* @returns {number | null | undefined} Not all opportunities have +* remainingAttendeeCapacity (which is optional in ScheduledSessions) or +* remainingUses, therefore the return value may be null-ish. +*/ +export function getRemainingCapacity(opportunity: Opportunity): number | null | undefined; +/** + * Get the date that the startDate - validFromBeforeStartDate window starts + * + * @param {Offer} offer + * @param {Opportunity} opportunity + * @returns {DateTime | null} null if there is no booking window lower limit defined. + */ +export function getDateAfterWhichBookingsCanBeMade(offer: Offer, opportunity: Opportunity): DateTime | null; +/** + * Get the date that the startDate - validThroughBeforeStartDate window starts + * + * @param {Offer} offer + * @param {Opportunity} opportunity + * @returns {DateTime | null} null if there is no booking window upper limit defined. + */ +export function getDateBeforeWhichBookingsCanBeMade(offer: Offer, opportunity: Opportunity): DateTime | null; +/** + * @param {Offer} offer + * @param {Opportunity} opportunity + * @returns {DateTime | null} null if there is no cancellation window defined. + */ +export function getDateBeforeWhichCancellationsCanBeMade(offer: Offer, opportunity: Opportunity): DateTime | null; +/** +* @param {Opportunity} opportunity +* @returns {boolean} +*/ +export function hasCapacityLimitOfOne(opportunity: Opportunity): boolean; +export function remainingCapacityMustBeAtLeastTwo(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustRequireAttendeeDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustNotRequireAttendeeDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustAllowProposalAmendment(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function startDateMustBeOver2HrsInAdvance(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function endDateMustBeInThePast(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function eventStatusMustNotBeCancelledOrPostponed(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustNotBeOpenBookingInAdvanceUnavailable(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustBeInsideBookingWindowIfOneExists(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +/** +* For a session, get `organizer`. For a facility, get `provider`. +* These can be used interchangeably as `organizer` is either a Person or an Organization +* and `provider` is an Organization. +* +* @param {Opportunity} opportunity +*/ +export function getOrganizerOrProvider(opportunity: Opportunity): any; +export function mustBeOutsideCancellationWindow(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustNotAllowFullRefund(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustAllowFullRefund(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export const mustAllowFullRefundOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; +export function mustRequireAdditionalDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function mustNotRequireAdditionalDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function sellerMustAllowOpenBooking(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +export function excludePaidBookableOffersWithPrepaymentUnavailable(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; +/** + * Merge constraints so that the result has the simplest representation of the combination of all constraints. + * + * @param {TestDataShape} baseTestDataShape + * @param {TestDataShape} extraTestDataShape + * @param {string} criteriaName + * @return {TestDataShape} + */ +export function extendTestDataShape(baseTestDataShape: TestDataShape, extraTestDataShape: TestDataShape, criteriaName: string): TestDataShape; +/** + * @param {string} name + * @param {OfferConstraint} constraint + * @returns {Criteria['offerConstraints'][number]} + */ +export function createCriteriaOfferConstraint(name: string, constraint: OfferConstraint): Criteria['offerConstraints'][number]; +import { DateTime } from "luxon/src/datetime"; diff --git a/packages/test-interface-criteria/built-types/src/criteria/index.d.ts b/packages/test-interface-criteria/built-types/src/criteria/index.d.ts new file mode 100644 index 0000000000..a3e2da868b --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/index.d.ts @@ -0,0 +1 @@ +export let allCriteria: import("../types/Criteria").Criteria[]; diff --git a/packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts b/packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts new file mode 100644 index 0000000000..dd5df76247 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts @@ -0,0 +1,7 @@ +/** + * An opportunity which occurs in the future and does not require additional/attendee details + * + * This shouldn't be used for any tests, as it is not an [official criteria](https://openactive.io/test-interface/). + * It's just a useful basis for other criteria to include constraints from. + */ +export const InternalCriteriaFutureScheduledAndDoesNotRequireDetails: import("../../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts b/packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts new file mode 100644 index 0000000000..c62165b665 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts @@ -0,0 +1,9 @@ +export type Criteria = import('../../types/Criteria').Criteria; +export type OpportunityConstraint = import('../../types/Criteria').OpportunityConstraint; +/** + * Useful base constraints for future opportunities. + * + * This shouldn't be used for any tests, as it is not an [official criteria](https://openactive.io/test-interface/). + * It's just a useful basis for other criteria to include constraints from. + */ +export const InternalCriteriaFutureScheduledOpportunity: import("../../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/src/criteria/sharedConstraints.d.ts b/packages/test-interface-criteria/built-types/src/criteria/sharedConstraints.d.ts new file mode 100644 index 0000000000..a4ec5e4be4 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/criteria/sharedConstraints.d.ts @@ -0,0 +1,2 @@ +export type OfferConstraint = import('../types/Criteria').OfferConstraint; +export function supportsMinimalProposalFlow(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; diff --git a/packages/test-interface-criteria/built-types/src/index.d.ts b/packages/test-interface-criteria/built-types/src/index.d.ts new file mode 100644 index 0000000000..d9eb5aa4f9 --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/index.d.ts @@ -0,0 +1,88 @@ +/** + * Check if an opportunity matches some criteria + */ +export type TestMatchResult = { + /** + * Does the opportunity match the criteria? + */ + matchesCriteria: boolean; + /** + * Names of constraints which were + * not met by the opportunity. + */ + unmetCriteriaDetails: string[]; +}; +export type Criteria = import('./types/Criteria').Criteria; +export type Opportunity = import('./types/Opportunity').Opportunity; +export type Offer = import('./types/Offer').Offer; +export type Options = import('./types/Options').Options; +export type TestDataShape = import('./types/TestDataShape').TestDataShape; +export type TestDataShapeOpportunityConstraints = import('./types/TestDataShape').TestDataShapeOpportunityConstraints; +/** + * Options object as supplied to the test-interface-criteria library API. + */ +export type LibOptions = { + harvestStartTime: string; +}; +import { allCriteria } from "./criteria"; +/** + * @typedef {import('./types/Criteria').Criteria} Criteria + * @typedef {import('./types/Opportunity').Opportunity} Opportunity + * @typedef {import('./types/Offer').Offer} Offer + * @typedef {import('./types/Options').Options} Options + * @typedef {import('./types/TestDataShape').TestDataShape} TestDataShape + * @typedef {import('./types/TestDataShape').TestDataShapeOpportunityConstraints} TestDataShapeOpportunityConstraints + */ +/** + * @typedef {{ + * harvestStartTime: string; + * }} LibOptions Options object as supplied to the test-interface-criteria library API. + */ +export const criteriaMap: Map; +/** + * Check if an opportunity matches some criteria + * + * @typedef {object} TestMatchResult + * @property {boolean} matchesCriteria Does the opportunity match the criteria? + * @property {string[]} unmetCriteriaDetails Names of constraints which were + * not met by the opportunity. + * + * @param {Criteria} criteria + * @param {Opportunity} opportunity + * @param {LibOptions} libOptions + */ +export function testMatch(criteria: Criteria, opportunity: Opportunity, libOptions: LibOptions): { + matchesCriteria: boolean; + unmetCriteriaDetails: string[]; +}; +/** + * @param {string} criteriaName + * @param {Opportunity} opportunity + * @param {LibOptions} libOptions + */ +export function getRelevantOffers(criteriaName: string, opportunity: Opportunity, libOptions: LibOptions): import("./types/Offer").Offer[]; +/** + * @param {string} criteriaName + * @param {'OpenBookingSimpleFlow' | 'OpenBookingApprovalFlow'} bookingFlow + * @param {string} opportunityType + * @param {LibOptions} libOptions + */ +export function getTestDataShapeExpressions(criteriaName: string, bookingFlow: 'OpenBookingSimpleFlow' | 'OpenBookingApprovalFlow', opportunityType: string, libOptions: LibOptions): { + 'test:testOpportunityDataShapeExpression': { + '@type': string; + predicate: string; + valueExpr: import("./types/TestDataShape").TestDataNodeConstraint; + }[]; + 'test:testOfferDataShapeExpression': { + '@type': string; + predicate: string; + valueExpr: import("./types/TestDataShape").TestDataNodeConstraint; + }[]; +}; +import { getOrganizerOrProvider } from "./criteria/criteriaUtils"; +import { getRemainingCapacity } from "./criteria/criteriaUtils"; +export declare namespace utils { + export { getOrganizerOrProvider }; + export { getRemainingCapacity }; +} +export { allCriteria as criteria }; diff --git a/packages/test-interface-criteria/built-types/src/testDataShape.d.ts b/packages/test-interface-criteria/built-types/src/testDataShape.d.ts new file mode 100644 index 0000000000..6c8613887f --- /dev/null +++ b/packages/test-interface-criteria/built-types/src/testDataShape.d.ts @@ -0,0 +1,130 @@ +export type EventStatusType = import('./types/TestDataShape').EventStatusType; +export type TaxMode = import('./types/TestDataShape').TaxMode; +export type RequiredStatusType = import('./types/TestDataShape').RequiredStatusType; +export type OpenBookingFlowRequirement = import('./types/TestDataShape').OpenBookingFlowRequirement; +export type DateRangeNodeConstraint = import('./types/TestDataShape').DateRangeNodeConstraint; +export type NumericNodeConstraint = import('./types/TestDataShape').NumericNodeConstraint; +export type BooleanNodeConstraint = import('./types/TestDataShape').BooleanNodeConstraint; +export type NullNodeConstraint = import('./types/TestDataShape').NullNodeConstraint; +export type TestDataShapeOpportunityConstraints = import('./types/TestDataShape').TestDataShapeOpportunityConstraints; +export type TestDataShape = import('./types/TestDataShape').TestDataShape; +export type ValueType = import('./types/TestDataShape').ValueType; +export type Options = import('./types/Options').Options; +/** + * @typedef {import('./types/TestDataShape').EventStatusType} EventStatusType + * @typedef {import('./types/TestDataShape').TaxMode} TaxMode + * @typedef {import('./types/TestDataShape').RequiredStatusType} RequiredStatusType + * @typedef {import('./types/TestDataShape').OpenBookingFlowRequirement} OpenBookingFlowRequirement + * @typedef {import('./types/TestDataShape').DateRangeNodeConstraint} DateRangeNodeConstraint + * @typedef {import('./types/TestDataShape').NumericNodeConstraint} NumericNodeConstraint + * @typedef {import('./types/TestDataShape').BooleanNodeConstraint} BooleanNodeConstraint + * @typedef {import('./types/TestDataShape').NullNodeConstraint} NullNodeConstraint + * @typedef {import('./types/TestDataShape').TestDataShapeOpportunityConstraints} TestDataShapeOpportunityConstraints + * @typedef {import('./types/TestDataShape').TestDataShape} TestDataShape + * @typedef {import('./types/TestDataShape').ValueType} ValueType + * @typedef {import('./types/Options').Options} Options + */ +/** + * @param {Omit} requirements + * @returns {TestDataShape['opportunityConstraints']} + */ +export function testOpportunityDataShapeExpression(requirements: Omit): TestDataShape['opportunityConstraints']; +/** + * @param {Omit} requirements + * @returns {TestDataShape['offerConstraints']} + */ +export function testOfferDataShapeExpression(requirements: Omit): TestDataShape['offerConstraints']; +/** + * @param {Omit} requirements + * @returns {DateRangeNodeConstraint} + */ +export function dateRange(requirements: Omit): DateRangeNodeConstraint; +/** + * @param {Omit} requirements + * @returns {NumericNodeConstraint} + */ +export function quantitativeValue(requirements: Omit): NumericNodeConstraint; +export const FREE_PRICE_QUANTITATIVE_VALUE: import("./types/TestDataShape").NumericNodeConstraint; +export const NON_FREE_PRICE_QUANTITATIVE_VALUE: import("./types/TestDataShape").NumericNodeConstraint; +/** + * @template TOptionType + * @template {ValueType} TValueType + * @param {Omit, '@type'>} requirements + * @returns {import('./types/TestDataShape').OptionNodeConstraint} + */ +export function optionNodeConstraint(requirements: Omit, "@type">): import("./types/TestDataShape").OptionNodeConstraint; +/** + * @template TArrayOf + * @template {ValueType} TValueType + * @param {Omit, '@type'>} requirements + * @returns {import('./types/TestDataShape').ArrayConstraint} + */ +export function arrayConstraint(requirements: Omit, "@type">): import("./types/TestDataShape").ArrayConstraint; +/** @type {NullNodeConstraint} */ +export const BLOCKED_FIELD: NullNodeConstraint; +/** + * @param {Omit, '@type' | 'datatype'>} requirements + * @returns {import('./types/TestDataShape').OptionNodeConstraint} + */ +export function eventStatusOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; +/** + * @param {Omit} requirements + * @returns {import('./types/TestDataShape').TestDataShape['opportunityConstraints']['schema:eventAttendanceMode']} + */ +export function eventAttendanceModeOptionNodeConstraint(requirements: Omit): import('./types/TestDataShape').TestDataShape['opportunityConstraints']['schema:eventAttendanceMode']; +/** + * @param {Omit, '@type' | 'datatype'>} requirements + * @returns {import('./types/TestDataShape').OptionNodeConstraint} + */ +export function advanceBookingOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; +/** + * @param {Omit, '@type' | 'datatype'>} requirements + * @returns {import('./types/TestDataShape').OptionNodeConstraint} + */ +export function prepaymentOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; +/** + * @param {Omit, '@type' | 'datatype'>} requirements + * @returns {import('./types/TestDataShape').OptionNodeConstraint} + */ +export function taxModeOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; +/** + * @param {Omit, '@type' | 'datatype'>} requirements + * @returns {import('./types/TestDataShape').ArrayConstraint} + */ +export function openBookingFlowRequirementArrayConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').ArrayConstraint; +/** + * @param {number} minLength + * @returns {import('./types/TestDataShape').ArrayConstraint} + */ +export function termsOfServiceArrayConstraint(minLength: number): import('./types/TestDataShape').ArrayConstraint; +export const TRUE_BOOLEAN_CONSTRAINT: import("./types/TestDataShape").BooleanNodeConstraint; +export const FALSE_BOOLEAN_CONSTRAINT: import("./types/TestDataShape").BooleanNodeConstraint; +export namespace shapeConstraintRecipes { + function remainingCapacityMustBeAtLeast(mininclusive: number, mininclusiveIfuSlot?: number): Pick, "placeholder:remainingCapacity" | "placeholder:remainingCapacityIfuSlot">; + function mustHaveBookableOffer(options: import("./types/Options").Options): { + 'oa:validFromBeforeStartDate': import("./types/TestDataShape").DateRangeNodeConstraint; + 'oa:openBookingInAdvance': import("./types/TestDataShape").OptionNodeConstraint; + }; + function sellerMustAllowOpenBooking(): { + 'oa:isOpenBookingAllowed': import("./types/TestDataShape").BooleanNodeConstraint; + }; + function mustAllowFullRefund(): { + 'oa:allowCustomerCancellationFullRefund': import("./types/TestDataShape").BooleanNodeConstraint; + }; + function mustBeWithinCancellationWindowOrHaveNoWindow(): { + 'oa:latestCancellationBeforeStartDate': import("./types/TestDataShape").NullNodeConstraint; + }; + function onlyNonFreeBookableOffers(): { + 'schema:price': import("./types/TestDataShape").NumericNodeConstraint; + }; + function onlyFreeBookableOffersWithUnavailablePrepayment(): { + 'schema:price': import("./types/TestDataShape").NumericNodeConstraint; + 'oa:openBookingPrepayment': import("./types/TestDataShape").OptionNodeConstraint; + }; + function startDateMustBe2HrsInAdvance(options: import("./types/Options").Options): { + 'schema:startDate': import("./types/TestDataShape").DateRangeNodeConstraint; + }; + function eventStatusMustNotBeCancelledOrPostponed(): { + 'schema:eventStatus': import("./types/TestDataShape").OptionNodeConstraint; + }; +} diff --git a/packages/test-interface-criteria/built-types/test/testShapeDataMatchesConstraints.d.ts b/packages/test-interface-criteria/built-types/test/testShapeDataMatchesConstraints.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/packages/test-interface-criteria/built-types/test/testShapeDataMatchesConstraints.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts b/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts index f46d94e37d..d35a8960fa 100644 --- a/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts @@ -45,6 +45,12 @@ export type ValueType = | 'schema:EventStatusType' | 'schema:EventAttendanceModeEnumeration'; +/** + * Specifies a value that must be one of a set of options. + * For example, an `eventStatus` field would be set up to only have + * one of the `schema:EventStatusType` options (e.g. + * `https://schema.org/EventCancelled`, etc) + */ export interface OptionNodeConstraint< /** TypeScript union of the types that this option can take */ TOptionType, @@ -70,6 +76,10 @@ export interface OptionNodeConstraint< allowNull?: true; } +/** + * Similar to OptionNodeConstraint, but where the value must be an + * array. Each item in the array must be from the same set of options. + */ export interface ArrayConstraint< TArrayOf, TValueType extends ValueType @@ -106,6 +116,7 @@ export type TestDataNodeConstraint = export type TestDataShapeOpportunityConstraints = { 'schema:startDate'?: DateRangeNodeConstraint; + 'schema:endDate'?: DateRangeNodeConstraint; /** * "placeholder:remainingCapacity" is a stand-in for either remainingAttendeeCapacity (sessions) * or remainingUses (facilities) @@ -120,6 +131,9 @@ export type TestDataShapeOpportunityConstraints = { 'oa:taxMode'?: OptionNodeConstraint; 'oa:isOpenBookingAllowed'?: BooleanNodeConstraint; 'schema:eventAttendanceMode'?: OptionNodeConstraint; + // note that the type isn't specified yet (it's a '@type': 'Terms' object) as + // we don't use includes/excludes rules for this field, so it's irrelevant. + 'schema:termsOfService'?: ArrayConstraint; }; /** @@ -140,10 +154,12 @@ export type TestDataShape = { 'oa:validFromBeforeStartDate'?: DateRangeNodeConstraint; 'oa:openBookingInAdvance'?: OptionNodeConstraint; 'oa:openBookingFlowRequirement'?: ArrayConstraint; + /** + * Refers to the date calculated as `startDate - latestCancellationBeforeStartDate`. + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * can be null. + */ 'oa:latestCancellationBeforeStartDate'?: NullNodeConstraint | DateRangeNodeConstraint; 'oa:allowCustomerCancellationFullRefund'?: BooleanNodeConstraint; - // note that the type isn't specified yet (it's a '@type': 'Terms' object) as - // we don't use includes/excludes rules for this field, so it's irrelevant. - 'schema:termsOfService'?: ArrayConstraint; }; } diff --git a/packages/test-interface-criteria/jest.config.js b/packages/test-interface-criteria/jest.config.js new file mode 100644 index 0000000000..4699c35cc9 --- /dev/null +++ b/packages/test-interface-criteria/jest.config.js @@ -0,0 +1,5 @@ +module.exports = { + testMatch: [ + "**/test/**/*.js" + ] +}; \ No newline at end of file diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index e042436ea9..1b4723bb9e 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -10,7 +10,7 @@ "gen-types": "npm run gen-types-clean && tsc && npm run gen-types-copy-d-ts-files", "run-tests": "jest", "test": "npm run lint && tsc && npm run run-tests", - "lint": "eslint \"src/**/*.js\"", + "lint": "eslint \"src/**/*.js\" \"test/**/*.js\"", "lint-fix": "npm run lint -- --fix" }, "author": "OpenActive Community ", diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js b/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js similarity index 79% rename from packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js rename to packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js index d0f7d3e883..dd957b274d 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookable.test.js +++ b/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js @@ -4,19 +4,20 @@ const { DateTime } = require('luxon'); const util = require('util'); const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); -// TODO many samples -describe('Data generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { - // test ('hi', () => {}); - // TODO3 +/** + * Since each test uses random data, we run each test multiple times to increase + * the likelihood of catching any issues. A higher value for NUM_SAMPLES leads to + * more reliability, but increases the time taken to run tests. + */ +const NUM_SAMPLES = 10; + +describe('Data randomly generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { const allCriteriaNames = [...criteriaMap.keys()]; - // const allCriteriaNames = ['TestOpportunityOfflineBookable']; const allOpportunityTypes = /** @type {const} */([ 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' - // 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' - // 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { @@ -39,37 +40,38 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai harvestStartTime, } ); - console.log('shapeExpressions:', util.inspect(shapeExpressions, false, null, true)); // Run test 10 times each as it involves randomly generated data - for (let i = 0; i < 10; i++) { - const generatedOpportunityPart = generateForShapeDataExpressions( - shapeExpressions['test:testOpportunityDataShapeExpression'], - { opportunityType }, - ); - const generatedOffer = generateForShapeDataExpressions( - shapeExpressions['test:testOfferDataShapeExpression'], - { startDate: generatedOpportunityPart.startDate }, - ); - const generatedOpportunity = { - ...generatedOpportunityPart, - offers: [generatedOffer], - }; - if (opportunityType === 'IndividualFacilityUseSlot') { - _.set(generatedOpportunity, ['facilityUse', '@type'], 'IndividualFacilityUse'); - } - console.log('generatedOpportunity:', util.inspect(generatedOpportunity, false, null, true)); - const result = testMatch(criteriaMap.get(criteriaName), generatedOpportunity, { - harvestStartTime, - }); - if (!result.matchesCriteria) { - console.log('whaaa'); + for (let i = 0; i < NUM_SAMPLES; i++) { + const generatedOpportunityPart = generateForShapeDataExpressions( + shapeExpressions['test:testOpportunityDataShapeExpression'], + { opportunityType }, + ); + const generatedOffer = generateForShapeDataExpressions( + shapeExpressions['test:testOfferDataShapeExpression'], + { startDate: generatedOpportunityPart.startDate }, + ); + const generatedOpportunity = { + ...generatedOpportunityPart, + offers: [generatedOffer], + }; + if (opportunityType === 'IndividualFacilityUseSlot') { + _.set(generatedOpportunity, ['facilityUse', '@type'], 'IndividualFacilityUse'); + } + const result = testMatch(criteriaMap.get(criteriaName), generatedOpportunity, { + harvestStartTime, + }); + if (!result.matchesCriteria) { + console.error('ERROR: generated opportunity does not match criteria', util.inspect({ + shapeExpressions, + generatedOpportunity, + result, + }, false, null, true)); + } + expect(result).toEqual({ + matchesCriteria: true, + unmetCriteriaDetails: [], + }); } - console.log('result:', result); - expect(result).toEqual({ - matchesCriteria: true, - unmetCriteriaDetails: [], - }); - } }); } } @@ -78,7 +80,7 @@ describe('Data generated via the testDataShape satisfies the opportunityConstrai const generatorsByType = { /** - * @param {import('../types/TestDataShape').DateRangeNodeConstraint} constraint + * @param {import('../src/types/TestDataShape').DateRangeNodeConstraint} constraint * @returns {fc.Arbitrary} */ 'test:DateRangeNodeConstraint'(constraint) { @@ -94,36 +96,38 @@ const generatorsByType = { max: maxDate, min: minDate, }).map(date => date.toISOString()); - // console.log('test:DateRangeNodeConstraint', { constraint, minDate, maxDate }); if (constraint.allowNull) { return fc.oneof(dateArbitrary, fc.constantFrom(null, undefined)); } return dateArbitrary; }, /** - * @param {import('../types/TestDataShape').NumericNodeConstraint} constraint + * @param {import('../src/types/TestDataShape').NumericNodeConstraint} constraint * @returns {fc.Arbitrary} */ NumericNodeConstraint(constraint) { const min = constraint.mininclusive ?? undefined; const max = constraint.maxinclusive ?? undefined; - // TODO2 address - // return fc.oneof(fc.integer({ min, max }), fc.float({ min, max })); if (min === max) { // fast-check otherwise produces NaN return fc.constant(min); } + /* NOTE: This does not presently only produce integers. For the time being, + this is fine as the opportunity/offerConstraints don't check that e.g. + remainingUses is an integer. + In that case, we may want to add a new property to the NumericNodeConstraint, + or add a new kind of shape constraint for ints. */ return fc.double({ min, max, noNaN: true, noDefaultInfinity: true }); }, /** - * @param {import('../types/TestDataShape').BooleanNodeConstraint} constraint + * @param {import('../src/types/TestDataShape').BooleanNodeConstraint} constraint * @returns {fc.Arbitrary} */ 'test:BooleanNodeConstraint'(constraint) { return fc.constant(constraint.value); }, /** - * @param {import('../types/TestDataShape').OptionNodeConstraint} constraint + * @param {import('../src/types/TestDataShape').OptionNodeConstraint} constraint */ 'test:OptionNodeConstraint'(constraint) { if (constraint.allowlist) { @@ -145,12 +149,11 @@ const generatorsByType = { return fc.constantFrom(...optionsPool); }, /** - * @param {import('../types/TestDataShape').ArrayConstraint} constraint + * @param {import('../src/types/TestDataShape').ArrayConstraint} constraint */ 'test:ArrayConstraint'(constraint) { if (constraint.includesAll) { return fc.constant(constraint.includesAll); - // return fc.array(fc.constantFrom(...constraint.includesAll), { minLength: constraint.minLength ?? 0 }); } if (constraint.datatype === 'oa:Terms') { // special handling because oa:Terms is not an enum constraint @@ -173,11 +176,11 @@ const generatorsByType = { optionsPool.delete(excluded); } } - // TODO this might need to have no duplicates + // Note: this currently produces duplicates, but this is not yet a problem return fc.array(fc.constantFrom(...optionsPool), { minLength: constraint.minLength ?? 0 }); }, /** - * @param {import('../testDataShape').NullNodeConstraint} constraint + * @param {import('../src/testDataShape').NullNodeConstraint} constraint */ 'test:NullNodeConstraint'(constraint) { return fc.oneof(fc.constant(null), fc.constant(undefined)); @@ -260,7 +263,6 @@ function generateForShapeDataExpressions(shapeExpressions, { const arbitrary = generator(/** @type {any} */(constraint)); const [generated] = fc.sample(/** @type {any} */(arbitrary), 1); _.set(result, fieldPath, generated); - // result[fieldName] = generated; } /* This is a special case in which the generated value is supposed to be a derived value i.e. startDate - validFromBeforeStartDate */ @@ -338,10 +340,6 @@ function getDataTypeOptions(datatype) { 'https://openactive.io/OpenBookingNegotiation', 'https://openactive.io/OpenBookingMessageExchange', ]; - // case 'oa:Terms': - // return [ - - // ]; default: throw new Error(`Unexpected datatype ${datatype}`); } diff --git a/packages/test-interface-criteria/tsconfig.json b/packages/test-interface-criteria/tsconfig.json index 7f82203448..857dc07425 100644 --- a/packages/test-interface-criteria/tsconfig.json +++ b/packages/test-interface-criteria/tsconfig.json @@ -12,6 +12,7 @@ }, "include": [ "src/**/*.d.ts", - "src/**/*.js" + "src/**/*.js", + "test/**/*.js" ] } \ No newline at end of file From 0449916889ef3a4140487899db6211e3f5ba55de Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 10:41:42 +0000 Subject: [PATCH 20/27] remove faker-js --- .vscode/launch.json | 5 ----- .../test-interface-criteria/package-lock.json | 17 ----------------- packages/test-interface-criteria/package.json | 1 - 3 files changed, 23 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1487e5e81f..790c7b3ab5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -102,7 +102,6 @@ "name": "test-interface-criteria - unit tests", "type": "node", "request": "launch", - // "env": { "CI": "true" }, "cwd": "${workspaceFolder}/packages/test-interface-criteria/", "runtimeArgs": [ "--inspect-brk", @@ -111,10 +110,6 @@ ], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen" - // "runtimeExecutable": "npm", - // "runtimeVersion": "18.17.1", - // "runtimeArgs": ["run-script", "run-tests", "--", "--runInBand"], - // "port": 9229, }, { "name": "validate-feeds", diff --git a/packages/test-interface-criteria/package-lock.json b/packages/test-interface-criteria/package-lock.json index 301134b4d2..46244dca05 100644 --- a/packages/test-interface-criteria/package-lock.json +++ b/packages/test-interface-criteria/package-lock.json @@ -15,7 +15,6 @@ "ramda": "^0.27.1" }, "devDependencies": { - "@faker-js/faker": "^8.4.1", "@types/jest": "^29.5.12", "@types/lodash": "^4.14.202", "@types/luxon": "^3.4.2", @@ -904,22 +903,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/@faker-js/faker": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.4.1.tgz", - "integrity": "sha512-XQ3cU+Q8Uqmrbf2e0cIC/QN43sTBSC8KF12u29Mb47tWrt2hAgBXSgpZMj4Ao8Uk0iJcU99QsOCaIL8934obCg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/fakerjs" - } - ], - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0", - "npm": ">=6.14.13" - } - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index 1b4723bb9e..34de363cf7 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -25,7 +25,6 @@ "node": "18.17.1" }, "devDependencies": { - "@faker-js/faker": "^8.4.1", "@types/jest": "^29.5.12", "@types/lodash": "^4.14.202", "@types/luxon": "^3.4.2", From ff057ab275188b20cbe59b5e56e6bf4e5b0dd5dc Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 10:43:22 +0000 Subject: [PATCH 21/27] minor fixes --- .../src/criteria/TestOpportunityBookableAttendeeDetails.js | 1 - .../src/criteria/TestOpportunityBookableInPast.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js index 5341ee95eb..6d1d50ada4 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableAttendeeDetails.js @@ -51,7 +51,6 @@ const TestOpportunityBookableAttendeeDetails = createCriteria({ 'oa:openBookingFlowRequirement': openBookingFlowRequirementArrayConstraint({ includesAll: ['https://openactive.io/OpenBookingAttendeeDetails'], excludesAll: ['https://openactive.io/OpenBookingIntakeForm'], - // minLength: 1, }), }, }), diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js index 3a7357613d..7b4716590e 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableInPast.js @@ -60,9 +60,9 @@ const TestOpportunityBookableInPast = createCriteria({ opportunityConstraints: { ...shapeConstraintRecipes.remainingCapacityMustBeAtLeast(2), ...shapeConstraintRecipes.sellerMustAllowOpenBooking(), - // TODO endDateMustBeInThePast + // endDateMustBeInThePast 'schema:endDate': dateRange({ - maxDate: options.harvestStartTime.toISO(), + maxDate: options.harvestStartTime.minus({ seconds: 1 }).toISO(), }), ...shapeConstraintRecipes.eventStatusMustNotBeCancelledOrPostponed(), }, From 8d680bf7abd4d7b745b0b965152ba3bff14d550c Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 10:59:30 +0000 Subject: [PATCH 22/27] move TODO into an issue --- .../src/testDataShape.js | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/packages/test-interface-criteria/src/testDataShape.js b/packages/test-interface-criteria/src/testDataShape.js index 07a4e3fd0d..4eafd7c23d 100644 --- a/packages/test-interface-criteria/src/testDataShape.js +++ b/packages/test-interface-criteria/src/testDataShape.js @@ -176,28 +176,8 @@ function openBookingFlowRequirementArrayConstraint(requirements) { } /* TODO this is not a good match for an ArrayConstraint as they presently -are defined and used. Currently, ArrayConstraint is used for things like -oa:OpenBookingFlowRequirement, where the constrained value is an array of -items from the oa:OpenBookingFlowRequirement enum. - -`oa:Terms`, on the other hand, is a data structure, not an enum. - -This means that, presently, any implementation which uses these Shape -Expressions must have custom handling for `oa:Terms` ArrayConstraints. - -One possible solution: - -- Make ArrayConstraint a meta-constraint which takes a constraint, applies - it to items within an array, and adds special array-specific constraints - like minLength. - In this way, the `oa:OpenBookingFlowRequirement` constraint would be - something like: `ArrayConstraint(OptionNodeConstraint(datatype='oa:OpenBookingFlowRequirement'))`. - And then, the terms constraint would apply `ArrayConstraint(..)` to a - single-oa:Term constraint. (possibly a RecordConstraint meta-constraint?). - - One consideration here would be that we don't presently have any - meta-constraints. -*/ +are defined and used. See +https://github.com/openactive/openactive-test-suite/issues/629. */ /** * @param {number} minLength * @returns {import('./types/TestDataShape').ArrayConstraint} From 43783315b8cfa7e4207b61fada4562044d52492a Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 11:04:04 +0000 Subject: [PATCH 23/27] add validThroughBeforeStartDate to type and apply +/-1s corrections to ALL dateRange shapes --- .../built-types/types/TestDataShape.d.ts | 6 ++++++ .../TestOpportunityBookableCancellableOutsideWindow.js | 3 ++- ...estOpportunityBookableOutsideValidFromBeforeStartDate.js | 6 ++++-- .../test-interface-criteria/src/types/TestDataShape.d.ts | 6 ++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts b/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts index d35a8960fa..463bc1c28c 100644 --- a/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts @@ -152,6 +152,12 @@ export type TestDataShape = { * can be null. */ 'oa:validFromBeforeStartDate'?: DateRangeNodeConstraint; + /** + * Refers to the date calculated as `startDate - validThroughBeforeStartDate`. + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * can be null. + */ + 'oa:validThroughBeforeStartDate'?: DateRangeNodeConstraint; 'oa:openBookingInAdvance'?: OptionNodeConstraint; 'oa:openBookingFlowRequirement'?: ArrayConstraint; /** diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableOutsideWindow.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableOutsideWindow.js index a34aa5ee86..4f9a8915d4 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableOutsideWindow.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableCancellableOutsideWindow.js @@ -22,7 +22,8 @@ const TestOpportunityBookableCancellableOutsideWindow = createCriteria({ offerConstraints: { // mustBeOutsideCancellationWindow 'oa:latestCancellationBeforeStartDate': dateRange({ - maxDate: options.harvestStartTime.toISO(), + // -1s to match the non-equaling comparison in the non-ShEx constraint + maxDate: options.harvestStartTime.minus({ seconds: 1 }).toISO(), }), }, }), diff --git a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.js b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.js index 95aea04377..9565bf76f3 100644 --- a/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.js +++ b/packages/test-interface-criteria/src/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.js @@ -48,10 +48,12 @@ const TestOpportunityBookableOutsideValidFromBeforeStartDate = createCriteria({ offerConstraints: { // mustHaveBookingWindowAndBeOutsideOfIt 'oa:validFromBeforeStartDate': dateRange({ - minDate: options.harvestStartTimeTwoHoursLater.toISO(), + // +1s to match the non-equaling comparison in the non-ShEx constraint + minDate: options.harvestStartTimeTwoHoursLater.plus({ seconds: 1 }).toISO(), }), 'oa:validThroughBeforeStartDate': dateRange({ - maxDate: options.harvestStartTime.toISO(), + // -1s to match the non-equaling comparison in the non-ShEx constraint + maxDate: options.harvestStartTime.minus({ seconds: 1 }).toISO(), }), }, }), diff --git a/packages/test-interface-criteria/src/types/TestDataShape.d.ts b/packages/test-interface-criteria/src/types/TestDataShape.d.ts index d35a8960fa..463bc1c28c 100644 --- a/packages/test-interface-criteria/src/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/src/types/TestDataShape.d.ts @@ -152,6 +152,12 @@ export type TestDataShape = { * can be null. */ 'oa:validFromBeforeStartDate'?: DateRangeNodeConstraint; + /** + * Refers to the date calculated as `startDate - validThroughBeforeStartDate`. + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * can be null. + */ + 'oa:validThroughBeforeStartDate'?: DateRangeNodeConstraint; 'oa:openBookingInAdvance'?: OptionNodeConstraint; 'oa:openBookingFlowRequirement'?: ArrayConstraint; /** From 5a3d0b35ed06428455fd2b8877ea8f7130c67131 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 11:14:27 +0000 Subject: [PATCH 24/27] fix lint issues --- .../package-lock.json | 5 + .../package-lock.json | 5 + packages/test-interface-criteria/.eslintrc.js | 1 + .../test-interface-criteria/package-lock.json | 379 ++++++++++++++++++ packages/test-interface-criteria/package.json | 1 + .../src/criteria/criteriaUtils.js | 2 +- ...ernalCriteriaFutureScheduledOpportunity.js | 2 - .../test/testShapeDataMatchesConstraints.js | 60 +-- 8 files changed, 422 insertions(+), 33 deletions(-) diff --git a/packages/openactive-broker-microservice/package-lock.json b/packages/openactive-broker-microservice/package-lock.json index 57c5534efb..79cfa90d8f 100644 --- a/packages/openactive-broker-microservice/package-lock.json +++ b/packages/openactive-broker-microservice/package-lock.json @@ -114,10 +114,15 @@ "ramda": "^0.27.1" }, "devDependencies": { + "@types/jest": "^29.5.12", + "@types/lodash": "^4.14.202", + "@types/luxon": "^3.4.2", "copyfiles": "^2.3.0", "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "fast-check": "^3.15.1", + "jest": "^29.7.0", "rimraf": "^5.0.5", "typescript": "^5.1.6" }, diff --git a/packages/openactive-integration-tests/package-lock.json b/packages/openactive-integration-tests/package-lock.json index e79bfacd76..4f7a9d92e7 100644 --- a/packages/openactive-integration-tests/package-lock.json +++ b/packages/openactive-integration-tests/package-lock.json @@ -104,10 +104,15 @@ "ramda": "^0.27.1" }, "devDependencies": { + "@types/jest": "^29.5.12", + "@types/lodash": "^4.14.202", + "@types/luxon": "^3.4.2", "copyfiles": "^2.3.0", "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "fast-check": "^3.15.1", + "jest": "^29.7.0", "rimraf": "^5.0.5", "typescript": "^5.1.6" }, diff --git a/packages/test-interface-criteria/.eslintrc.js b/packages/test-interface-criteria/.eslintrc.js index 229245ef29..64e397ea83 100644 --- a/packages/test-interface-criteria/.eslintrc.js +++ b/packages/test-interface-criteria/.eslintrc.js @@ -1,5 +1,6 @@ module.exports = { extends: 'airbnb-base', + plugins: ['jest'], env: { node: true, 'jest/globals': true, diff --git a/packages/test-interface-criteria/package-lock.json b/packages/test-interface-criteria/package-lock.json index 46244dca05..91ede524fc 100644 --- a/packages/test-interface-criteria/package-lock.json +++ b/packages/test-interface-criteria/package-lock.json @@ -22,6 +22,7 @@ "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jest": "^27.9.0", "fast-check": "^3.15.1", "jest": "^29.7.0", "rimraf": "^5.0.5", @@ -883,6 +884,33 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@eslint/eslintrc": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", @@ -1353,6 +1381,41 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -1471,6 +1534,12 @@ "pretty-format": "^29.0.0" } }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -1498,6 +1567,12 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/semver": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.7.tgz", + "integrity": "sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==", + "dev": true + }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", @@ -1519,6 +1594,118 @@ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/acorn": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", @@ -1680,6 +1867,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/array.prototype.findlastindex": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.2.tgz", @@ -2325,6 +2521,18 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -2701,6 +2909,31 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-jest": { + "version": "27.9.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.9.0.tgz", + "integrity": "sha512-QIT7FH7fNmd9n4se7FFKHbsLKGQiw885Ds6Y/sxKgCZ6natwCsXdgPOADnYVxN2QrRweF0FZWbJ6S7Rsn7llug==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^5.10.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^5.0.0 || ^6.0.0 || ^7.0.0", + "eslint": "^7.0.0 || ^8.0.0", + "jest": "*" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } + } + }, "node_modules/eslint-plugin-jsx-a11y": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", @@ -3041,6 +3274,22 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -3053,6 +3302,15 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", @@ -3349,6 +3607,35 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", @@ -4798,6 +5085,15 @@ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", @@ -5225,6 +5521,15 @@ "node": "14 || >=16.14" } }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -5370,6 +5675,26 @@ } ] }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "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" + } + ] + }, "node_modules/ramda": { "version": "0.27.2", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.2.tgz", @@ -5504,6 +5829,16 @@ "node": ">=10" } }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "5.0.5", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", @@ -5568,6 +5903,29 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "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": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/safe-array-concat": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", @@ -6093,6 +6451,27 @@ "strip-bom": "^3.0.0" } }, + "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/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/packages/test-interface-criteria/package.json b/packages/test-interface-criteria/package.json index 34de363cf7..ec7bceb9be 100644 --- a/packages/test-interface-criteria/package.json +++ b/packages/test-interface-criteria/package.json @@ -32,6 +32,7 @@ "eslint": "7.24.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jest": "^27.9.0", "fast-check": "^3.15.1", "jest": "^29.7.0", "rimraf": "^5.0.5", diff --git a/packages/test-interface-criteria/src/criteria/criteriaUtils.js b/packages/test-interface-criteria/src/criteria/criteriaUtils.js index 4ea5924891..986c3f8a17 100644 --- a/packages/test-interface-criteria/src/criteria/criteriaUtils.js +++ b/packages/test-interface-criteria/src/criteria/criteriaUtils.js @@ -47,7 +47,7 @@ function mergeTestDataNodeConstraintField( fieldName, baseConstraint, extensionConstraint, - getValueIfBothExist + getValueIfBothExist, ) { if (baseConstraint[fieldName] == null && extensionConstraint[fieldName] == null) { return {}; diff --git a/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js b/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js index 090075d99f..cb35f35bba 100644 --- a/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js +++ b/packages/test-interface-criteria/src/criteria/internal/InternalCriteriaFutureScheduledOpportunity.js @@ -1,6 +1,4 @@ const { - dateRange, - eventStatusOptionNodeConstraint, shapeConstraintRecipes, } = require('../../testDataShape'); diff --git a/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js b/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js index dd957b274d..c07d89af26 100644 --- a/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js +++ b/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js @@ -1,7 +1,7 @@ +const util = require('util'); const fc = require('fast-check'); const _ = require('lodash'); const { DateTime } = require('luxon'); -const util = require('util'); const { getTestDataShapeExpressions, testMatch, criteriaMap } = require('..'); /** @@ -14,10 +14,10 @@ const NUM_SAMPLES = 10; describe('Data randomly generated via the testDataShape satisfies the opportunityConstraints and offerConstraints', () => { const allCriteriaNames = [...criteriaMap.keys()]; const allOpportunityTypes = /** @type {const} */([ - 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot' + 'ScheduledSession', 'FacilityUseSlot', 'IndividualFacilityUseSlot', ]); const allBookingFlows = /** @type {const} */([ - 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow' + 'OpenBookingApprovalFlow', 'OpenBookingSimpleFlow', ]); for (const opportunityType of allOpportunityTypes) { for (const bookingFlow of allBookingFlows) { @@ -38,10 +38,10 @@ describe('Data randomly generated via the testDataShape satisfies the opportunit opportunityType, { harvestStartTime, - } + }, ); // Run test 10 times each as it involves randomly generated data - for (let i = 0; i < NUM_SAMPLES; i++) { + for (let i = 0; i < NUM_SAMPLES; i += 1) { const generatedOpportunityPart = generateForShapeDataExpressions( shapeExpressions['test:testOpportunityDataShapeExpression'], { opportunityType }, @@ -61,6 +61,7 @@ describe('Data randomly generated via the testDataShape satisfies the opportunit harvestStartTime, }); if (!result.matchesCriteria) { + // eslint-disable-next-line no-console console.error('ERROR: generated opportunity does not match criteria', util.inspect({ shapeExpressions, generatedOpportunity, @@ -83,7 +84,7 @@ const generatorsByType = { * @param {import('../src/types/TestDataShape').DateRangeNodeConstraint} constraint * @returns {fc.Arbitrary} */ - 'test:DateRangeNodeConstraint'(constraint) { + 'test:DateRangeNodeConstraint': (constraint) => { const minDate = constraint.minDate ? DateTime.fromISO(constraint.minDate).toJSDate() // Reasonable min date so that we don't need to worry about like 10,000 BCE, etc @@ -95,7 +96,7 @@ const generatorsByType = { const dateArbitrary = fc.date({ max: maxDate, min: minDate, - }).map(date => date.toISOString()); + }).map((date) => date.toISOString()); if (constraint.allowNull) { return fc.oneof(dateArbitrary, fc.constantFrom(null, undefined)); } @@ -117,19 +118,19 @@ const generatorsByType = { remainingUses is an integer. In that case, we may want to add a new property to the NumericNodeConstraint, or add a new kind of shape constraint for ints. */ - return fc.double({ min, max, noNaN: true, noDefaultInfinity: true }); + return fc.double({ + min, max, noNaN: true, noDefaultInfinity: true, + }); }, /** * @param {import('../src/types/TestDataShape').BooleanNodeConstraint} constraint * @returns {fc.Arbitrary} */ - 'test:BooleanNodeConstraint'(constraint) { - return fc.constant(constraint.value); - }, + 'test:BooleanNodeConstraint': (constraint) => fc.constant(constraint.value), /** - * @param {import('../src/types/TestDataShape').OptionNodeConstraint} constraint + * @param {import('../src/types/TestDataShape').OptionNodeConstraint} constraint */ - 'test:OptionNodeConstraint'(constraint) { + 'test:OptionNodeConstraint': (constraint) => { if (constraint.allowlist) { if (constraint.allowNull) { return fc.constantFrom(...constraint.allowlist, null, undefined); @@ -149,9 +150,9 @@ const generatorsByType = { return fc.constantFrom(...optionsPool); }, /** - * @param {import('../src/types/TestDataShape').ArrayConstraint} constraint + * @param {import('../src/types/TestDataShape').ArrayConstraint} constraint */ - 'test:ArrayConstraint'(constraint) { + 'test:ArrayConstraint': (constraint) => { if (constraint.includesAll) { return fc.constant(constraint.includesAll); } @@ -163,12 +164,12 @@ const generatorsByType = { name: fc.string({ minLength: 1 }), url: fc.webUrl(), requiresExplicitConsent: fc.boolean(), - dateModified: fc.date().map(date => date.toISOString()), + dateModified: fc.date().map((date) => date.toISOString()), }, { requiredKeys: ['@type', 'name', 'url', 'requiresExplicitConsent'], }), - { minLength: constraint.minLength ?? 0 } - ) + { minLength: constraint.minLength ?? 0 }, + ); } const optionsPool = new Set(getDataTypeOptions(constraint.datatype)); if (constraint.excludesAll) { @@ -182,9 +183,8 @@ const generatorsByType = { /** * @param {import('../src/testDataShape').NullNodeConstraint} constraint */ - 'test:NullNodeConstraint'(constraint) { - return fc.oneof(fc.constant(null), fc.constant(undefined)); - } + // eslint-disable-next-line no-unused-vars + 'test:NullNodeConstraint': (constraint) => fc.oneof(fc.constant(null), fc.constant(undefined)), }; const fieldParentPathSpecHelpers = { @@ -208,7 +208,7 @@ const fieldParentPathSpecs = { taxMode: fieldParentPathSpecHelpers.organizerOrProvider, isOpenBookingAllowed: fieldParentPathSpecHelpers.organizerOrProvider, termsOfService: fieldParentPathSpecHelpers.organizerOrProvider, -} +}; /** * @param {ReturnType['test:testOpportunityDataShapeExpression']} shapeExpressions @@ -238,19 +238,19 @@ function generateForShapeDataExpressions(shapeExpressions, { if (fieldParentPathSpec.byType) { if (!opportunityType) { throw new Error( - `opportunityType must be specified when generating data for field: ${tripleConstraint.predicate}` + `opportunityType must be specified when generating data for field: ${tripleConstraint.predicate}`, ); } const byType = fieldParentPathSpec.byType[opportunityType]; if (!byType) { throw new Error( - `fieldParentPathSpecs[${fieldName}].byType[${opportunityType}] not found` + `fieldParentPathSpecs[${fieldName}].byType[${opportunityType}] not found`, ); } return [...byType, fieldName]; } throw new Error( - `No known parent path strategy found for fieldParentPathSpecs[${fieldName}]` + `No known parent path strategy found for fieldParentPathSpecs[${fieldName}]`, ); } return [fieldName]; @@ -269,21 +269,21 @@ function generateForShapeDataExpressions(shapeExpressions, { if (result.validFromBeforeStartDate) { result.validFromBeforeStartDate = deriveDurationForDateBeforeStart( result.validFromBeforeStartDate, - startDate + startDate, ); } // Same situation as for validFromBeforeStartDate if (result.latestCancellationBeforeStartDate) { result.latestCancellationBeforeStartDate = deriveDurationForDateBeforeStart( result.latestCancellationBeforeStartDate, - startDate + startDate, ); } // Same situation as for validFromBeforeStartDate if (result.validThroughBeforeStartDate) { result.validThroughBeforeStartDate = deriveDurationForDateBeforeStart( result.validThroughBeforeStartDate, - startDate + startDate, ); } return result; @@ -313,7 +313,7 @@ function getDataTypeOptions(datatype) { return [ 'https://schema.org/EventCancelled', 'https://schema.org/EventPostponed', - 'https://schema.org/EventScheduled' + 'https://schema.org/EventScheduled', ]; case 'schema:EventAttendanceModeEnumeration': return [ @@ -331,7 +331,7 @@ function getDataTypeOptions(datatype) { return [ 'https://openactive.io/TaxGross', 'https://openactive.io/TaxNet', - ] + ]; case 'oa:OpenBookingFlowRequirement': return [ 'https://openactive.io/OpenBookingIntakeForm', From a7f6efe1323f28c37fd8b02569724f46d62d2eeb Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 11:18:18 +0000 Subject: [PATCH 25/27] minor fix --- packages/test-interface-criteria/src/types/TestDataShape.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/test-interface-criteria/src/types/TestDataShape.d.ts b/packages/test-interface-criteria/src/types/TestDataShape.d.ts index 463bc1c28c..9f4a4e7482 100644 --- a/packages/test-interface-criteria/src/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/src/types/TestDataShape.d.ts @@ -154,7 +154,7 @@ export type TestDataShape = { 'oa:validFromBeforeStartDate'?: DateRangeNodeConstraint; /** * Refers to the date calculated as `startDate - validThroughBeforeStartDate`. - * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validThroughBeforeStartDate` * can be null. */ 'oa:validThroughBeforeStartDate'?: DateRangeNodeConstraint; @@ -162,7 +162,7 @@ export type TestDataShape = { 'oa:openBookingFlowRequirement'?: ArrayConstraint; /** * Refers to the date calculated as `startDate - latestCancellationBeforeStartDate`. - * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `latestCancellationBeforeStartDate` * can be null. */ 'oa:latestCancellationBeforeStartDate'?: NullNodeConstraint | DateRangeNodeConstraint; From 6ac3eee6ef8cf68c188cc168447a597007be523d Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 11:22:02 +0000 Subject: [PATCH 26/27] minor fix --- .../test/testShapeDataMatchesConstraints.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js b/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js index c07d89af26..ccaaa6e6fd 100644 --- a/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js +++ b/packages/test-interface-criteria/test/testShapeDataMatchesConstraints.js @@ -116,8 +116,8 @@ const generatorsByType = { /* NOTE: This does not presently only produce integers. For the time being, this is fine as the opportunity/offerConstraints don't check that e.g. remainingUses is an integer. - In that case, we may want to add a new property to the NumericNodeConstraint, - or add a new kind of shape constraint for ints. */ + If that were to happen, we may want to add a new property to the + NumericNodeConstraint, or add a new kind of shape constraint for ints. */ return fc.double({ min, max, noNaN: true, noDefaultInfinity: true, }); From 0acc3857ed8e982d82d71d652402d26a0ed92241 Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Tue, 20 Feb 2024 11:23:10 +0000 Subject: [PATCH 27/27] remove obsolete built types --- .../criteria/TestOpportunityBookable.d.ts | 4 - ...tOpportunityBookableAdditionalDetails.d.ts | 1 - ...estOpportunityBookableAttendeeDetails.d.ts | 1 - .../TestOpportunityBookableCancellable.d.ts | 6 - ...pportunityBookableCancellableNoWindow.d.ts | 5 - ...unityBookableCancellableOutsideWindow.d.ts | 8 -- ...tunityBookableCancellableWithinWindow.d.ts | 8 -- .../TestOpportunityBookableFiveSpaces.d.ts | 5 - .../criteria/TestOpportunityBookableFree.d.ts | 6 - ...estOpportunityBookableFreeCancellable.d.ts | 4 - ...rtunityBookableFreePrepaymentOptional.d.ts | 5 - ...rtunityBookableFreePrepaymentRequired.d.ts | 5 - .../TestOpportunityBookableInPast.d.ts | 8 -- .../TestOpportunityBookableNoSpaces.d.ts | 5 - .../TestOpportunityBookableNonFree.d.ts | 6 - ...OpportunityBookableNonFreeCancellable.d.ts | 4 - ...nityBookableNonFreePrepaymentOptional.d.ts | 5 - ...nityBookableNonFreePrepaymentRequired.d.ts | 5 - ...yBookableNonFreePrepaymentUnavailable.d.ts | 5 - ...estOpportunityBookableNonFreeTaxGross.d.ts | 5 - .../TestOpportunityBookableNonFreeTaxNet.d.ts | 5 - ...TestOpportunityBookableNotCancellable.d.ts | 4 - .../TestOpportunityBookableOneSpace.d.ts | 5 - ...okableOutsideValidFromBeforeStartDate.d.ts | 5 - ...portunityBookableSellerTermsOfService.d.ts | 5 - .../TestOpportunityBookableUsingPayment.d.ts | 5 - ...estOpportunityBookableWithNegotiation.d.ts | 1 - ...ookableWithinValidFromBeforeStartDate.d.ts | 2 - .../TestOpportunityOfflineBookable.d.ts | 1 - .../TestOpportunityOnlineBookable.d.ts | 1 - .../built-types/criteria/criteriaUtils.d.ts | 114 ---------------- .../built-types/criteria/index.d.ts | 1 - ...tureScheduledAndDoesNotRequireDetails.d.ts | 7 - ...nalCriteriaFutureScheduledOpportunity.d.ts | 9 -- .../criteria/sharedConstraints.d.ts | 2 - .../built-types/index.d.ts | 88 ------------- .../built-types/testDataShape.d.ts | 124 ------------------ .../built-types/types/TestDataShape.d.ts | 4 +- .../built-types/utils/objUtils.d.ts | 10 -- 39 files changed, 2 insertions(+), 492 deletions(-) delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAdditionalDetails.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAttendeeDetails.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableNoWindow.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFiveSpaces.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFree.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreeCancellable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableInPast.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNoSpaces.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFree.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeCancellable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNotCancellable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOneSpace.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableSellerTermsOfService.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableUsingPayment.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithNegotiation.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityOfflineBookable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/TestOpportunityOnlineBookable.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/criteriaUtils.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/index.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts delete mode 100644 packages/test-interface-criteria/built-types/criteria/sharedConstraints.d.ts delete mode 100644 packages/test-interface-criteria/built-types/index.d.ts delete mode 100644 packages/test-interface-criteria/built-types/testDataShape.d.ts delete mode 100644 packages/test-interface-criteria/built-types/utils/objUtils.d.ts diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookable.d.ts deleted file mode 100644 index 992cbea8b9..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookable. - */ -export const TestOpportunityBookable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAdditionalDetails.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAdditionalDetails.d.ts deleted file mode 100644 index 143f7bc241..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAdditionalDetails.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const TestOpportunityBookableAdditionalDetails: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAttendeeDetails.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAttendeeDetails.d.ts deleted file mode 100644 index 9efddac1c9..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableAttendeeDetails.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const TestOpportunityBookableAttendeeDetails: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellable.d.ts deleted file mode 100644 index 9c2a1b2620..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellable.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellable - */ -export const TestOpportunityBookableCancellable: import("../types/Criteria").Criteria; -export const mustBeWithinCancellationWindowOrHaveNoWindowOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableNoWindow.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableNoWindow.d.ts deleted file mode 100644 index 5e915cbb61..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableNoWindow.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellableNoWindow - */ -export const TestOpportunityBookableCancellableNoWindow: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts deleted file mode 100644 index 4d7ea59f9a..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableOutsideWindow.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * @typedef {import('../types/Criteria').OfferConstraint} OfferConstraint - */ -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellableOutsideWindow - */ -export const TestOpportunityBookableCancellableOutsideWindow: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts deleted file mode 100644 index 574de94644..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableCancellableWithinWindow.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Note that this criteria will ALWAYS reject any event whose latestCancellationBeforeStartDate - * duration is less than 2 hours. This is because this will conflict with the - * `startDateMustBe2HrsInAdvance` constraint (from `InternalCriteriaFutureScheduledOpportunity`). - * - * Implements https://openactive.io/test-interface#TestOpportunityBookableCancellableWithinWindow - */ -export const TestOpportunityBookableCancellableWithinWindow: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFiveSpaces.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFiveSpaces.d.ts deleted file mode 100644 index 34d649f851..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFiveSpaces.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableFiveSpaces - */ -export const TestOpportunityBookableFiveSpaces: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFree.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFree.d.ts deleted file mode 100644 index 17bc8218bc..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFree.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableFree - */ -export const TestOpportunityBookableFree: import("../types/Criteria").Criteria; -export const onlyFreeBookableOffersWithUnavailablePrepaymentOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreeCancellable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreeCancellable.d.ts deleted file mode 100644 index 0d5a5d07ef..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreeCancellable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableFreeCancellable - */ -export const TestOpportunityBookableFreeCancellable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts deleted file mode 100644 index e2b043eed3..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentOptional.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableFreePrepaymentOptional - */ -export const TestOpportunityBookableFreePrepaymentOptional: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts deleted file mode 100644 index 23f086def6..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableFreePrepaymentRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableFreePrepaymentRequired - */ -export const TestOpportunityBookableFreePrepaymentRequired: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableInPast.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableInPast.d.ts deleted file mode 100644 index 2044965d9d..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableInPast.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * @typedef {import('../types/Criteria').OfferConstraint} OfferConstraint - */ -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableInPast - */ -export const TestOpportunityBookableInPast: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNoSpaces.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNoSpaces.d.ts deleted file mode 100644 index 0ebd43e573..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNoSpaces.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNoSpaces - */ -export const TestOpportunityBookableNoSpaces: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFree.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFree.d.ts deleted file mode 100644 index 5f9785b6d2..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFree.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFree - */ -export const TestOpportunityBookableNonFree: import("../types/Criteria").Criteria; -export const onlyNonFreeBookableOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeCancellable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeCancellable.d.ts deleted file mode 100644 index 8bd0583ac5..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeCancellable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreeCancellable - */ -export const TestOpportunityBookableNonFreeCancellable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts deleted file mode 100644 index 61c2810c12..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentOptional.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreePrepaymentOptional - */ -export const TestOpportunityBookableNonFreePrepaymentOptional: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts deleted file mode 100644 index 9735f14e0f..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentRequired.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreePrepaymentRequired - */ -export const TestOpportunityBookableNonFreePrepaymentRequired: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts deleted file mode 100644 index 36372387f2..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreePrepaymentUnavailable.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreePrepaymentUnavailable - */ -export const TestOpportunityBookableNonFreePrepaymentUnavailable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts deleted file mode 100644 index 5830e1777d..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxGross.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreeTaxGross. - */ -export const TestOpportunityBookableNonFreeTaxGross: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts deleted file mode 100644 index fb9c62e07d..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNonFreeTaxNet.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNonFreeTaxNet. - */ -export const TestOpportunityBookableNonFreeTaxNet: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNotCancellable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNotCancellable.d.ts deleted file mode 100644 index 4badedde74..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableNotCancellable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableNotCancellable - */ -export const TestOpportunityBookableNotCancellable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOneSpace.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOneSpace.d.ts deleted file mode 100644 index 5c414b0d5d..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOneSpace.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableOneSpace - */ -export const TestOpportunityBookableOneSpace: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts deleted file mode 100644 index c42316a92f..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableOutsideValidFromBeforeStartDate.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableOutsideValidFromBeforeStartDate - */ -export const TestOpportunityBookableOutsideValidFromBeforeStartDate: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableSellerTermsOfService.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableSellerTermsOfService.d.ts deleted file mode 100644 index ab8b5464b8..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableSellerTermsOfService.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableSellerTermsOfService - */ -export const TestOpportunityBookableSellerTermsOfService: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableUsingPayment.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableUsingPayment.d.ts deleted file mode 100644 index 79568c1bde..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableUsingPayment.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -/** - * Implements https://openactive.io/test-interface#TestOpportunityBookableUsingPayment - */ -export const TestOpportunityBookableUsingPayment: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithNegotiation.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithNegotiation.d.ts deleted file mode 100644 index 928c3bdade..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithNegotiation.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const TestOpportunityBookableWithNegotiation: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts deleted file mode 100644 index 6b62699cd8..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityBookableWithinValidFromBeforeStartDate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -export const TestOpportunityBookableWithinValidFromBeforeStartDate: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityOfflineBookable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityOfflineBookable.d.ts deleted file mode 100644 index a01efae2ff..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityOfflineBookable.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const TestOpportunityOfflineBookable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/TestOpportunityOnlineBookable.d.ts b/packages/test-interface-criteria/built-types/criteria/TestOpportunityOnlineBookable.d.ts deleted file mode 100644 index f0628b8678..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/TestOpportunityOnlineBookable.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const TestOpportunityOnlineBookable: import("../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/criteriaUtils.d.ts b/packages/test-interface-criteria/built-types/criteria/criteriaUtils.d.ts deleted file mode 100644 index 34440343a5..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/criteriaUtils.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -export type DateTime = any; -export type Opportunity = import('../types/Opportunity').Opportunity; -export type Offer = import('../types/Offer').Offer; -export type Options = import('../types/Options').Options; -export type OpportunityConstraint = import('../types/Criteria').OpportunityConstraint; -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -export type Criteria = import('../types/Criteria').Criteria; -export type TestDataShapeFactory = import('../types/Criteria').TestDataShapeFactory; -export type TestDataShape = import('../types/TestDataShape').TestDataShape; -export type TestDataNodeConstraint = import('../types/TestDataShape').TestDataNodeConstraint; -export type DateRangeNodeConstraint = import('../types/TestDataShape').DateRangeNodeConstraint; -export type NumericNodeConstraint = import('../types/TestDataShape').NumericNodeConstraint; -export type ArrayConstraint = import("../types/TestDataShape").ArrayConstraint; -/** - * @param {object} args - * @param {string} args.name - * @param {Criteria['opportunityConstraints']} args.opportunityConstraints - * @param {Criteria['offerConstraints']} args.offerConstraints - * @param {Criteria['testDataShape']} args.testDataShape - * @param {Criteria | null} [args.includeConstraintsFromCriteria] If provided, - * opportunity and offer constraints will be included from this criteria. - * @returns {Criteria} - */ -export function createCriteria({ name, opportunityConstraints, offerConstraints, testDataShape: testDataShapeFactory, includeConstraintsFromCriteria, }: { - name: string; - opportunityConstraints: Criteria['opportunityConstraints']; - offerConstraints: Criteria['offerConstraints']; - testDataShape: Criteria['testDataShape']; - includeConstraintsFromCriteria?: Criteria | null; -}): Criteria; -/** -* @param {Opportunity} opportunity -* @returns {string} -*/ -export function getId(opportunity: Opportunity): string; -/** -* @param {Opportunity} opportunity -* @returns {string} -*/ -export function getType(opportunity: Opportunity): string; -/** -* @param {Opportunity} opportunity -* @returns {number | null | undefined} Not all opportunities have -* remainingAttendeeCapacity (which is optional in ScheduledSessions) or -* remainingUses, therefore the return value may be null-ish. -*/ -export function getRemainingCapacity(opportunity: Opportunity): number | null | undefined; -/** - * Get the date that the startDate - validFromBeforeStartDate window starts - * - * @param {Offer} offer - * @param {Opportunity} opportunity - * @returns {DateTime | null} null if there is no booking window lower limit defined. - */ -export function getDateAfterWhichBookingsCanBeMade(offer: Offer, opportunity: Opportunity): DateTime | null; -/** - * Get the date that the startDate - validThroughBeforeStartDate window starts - * - * @param {Offer} offer - * @param {Opportunity} opportunity - * @returns {DateTime | null} null if there is no booking window upper limit defined. - */ -export function getDateBeforeWhichBookingsCanBeMade(offer: Offer, opportunity: Opportunity): DateTime | null; -/** - * @param {Offer} offer - * @param {Opportunity} opportunity - * @returns {DateTime | null} null if there is no cancellation window defined. - */ -export function getDateBeforeWhichCancellationsCanBeMade(offer: Offer, opportunity: Opportunity): DateTime | null; -/** -* @param {Opportunity} opportunity -* @returns {boolean} -*/ -export function hasCapacityLimitOfOne(opportunity: Opportunity): boolean; -export function remainingCapacityMustBeAtLeastTwo(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustRequireAttendeeDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustNotRequireAttendeeDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustAllowProposalAmendment(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function startDateMustBe2HrsInAdvance(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function endDateMustBeInThePast(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function eventStatusMustNotBeCancelledOrPostponed(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustNotBeOpenBookingInAdvanceUnavailable(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustBeInsideBookingWindowIfOneExists(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -/** -* For a session, get `organizer`. For a facility, get `provider`. -* These can be used interchangeably as `organizer` is either a Person or an Organization -* and `provider` is an Organization. -* -* @param {Opportunity} opportunity -*/ -export function getOrganizerOrProvider(opportunity: Opportunity): any; -export function mustBeOutsideCancellationWindow(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustNotAllowFullRefund(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustAllowFullRefund(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export const mustAllowFullRefundOfferConstraint: [string, import("../types/Criteria").OfferConstraint]; -export function mustRequireAdditionalDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function mustNotRequireAdditionalDetails(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function sellerMustAllowOpenBooking(opportunity: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -export function excludePaidBookableOffersWithPrepaymentUnavailable(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; -/** - * Merge constraints so that the result has the simplest representation of the combination of all constraints. - * - * @param {TestDataShape} baseTestDataShape - * @param {TestDataShape} extraTestDataShape - * @param {string} criteriaName - * @return {TestDataShape} - */ -export function extendTestDataShape(baseTestDataShape: TestDataShape, extraTestDataShape: TestDataShape, criteriaName: string): TestDataShape; -/** - * @param {string} name - * @param {OfferConstraint} constraint - * @returns {Criteria['offerConstraints'][number]} - */ -export function createCriteriaOfferConstraint(name: string, constraint: OfferConstraint): Criteria['offerConstraints'][number]; diff --git a/packages/test-interface-criteria/built-types/criteria/index.d.ts b/packages/test-interface-criteria/built-types/criteria/index.d.ts deleted file mode 100644 index a3e2da868b..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export let allCriteria: import("../types/Criteria").Criteria[]; diff --git a/packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts b/packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts deleted file mode 100644 index dd5df76247..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledAndDoesNotRequireDetails.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * An opportunity which occurs in the future and does not require additional/attendee details - * - * This shouldn't be used for any tests, as it is not an [official criteria](https://openactive.io/test-interface/). - * It's just a useful basis for other criteria to include constraints from. - */ -export const InternalCriteriaFutureScheduledAndDoesNotRequireDetails: import("../../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts b/packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts deleted file mode 100644 index c62165b665..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/internal/InternalCriteriaFutureScheduledOpportunity.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export type Criteria = import('../../types/Criteria').Criteria; -export type OpportunityConstraint = import('../../types/Criteria').OpportunityConstraint; -/** - * Useful base constraints for future opportunities. - * - * This shouldn't be used for any tests, as it is not an [official criteria](https://openactive.io/test-interface/). - * It's just a useful basis for other criteria to include constraints from. - */ -export const InternalCriteriaFutureScheduledOpportunity: import("../../types/Criteria").Criteria; diff --git a/packages/test-interface-criteria/built-types/criteria/sharedConstraints.d.ts b/packages/test-interface-criteria/built-types/criteria/sharedConstraints.d.ts deleted file mode 100644 index a4ec5e4be4..0000000000 --- a/packages/test-interface-criteria/built-types/criteria/sharedConstraints.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type OfferConstraint = import('../types/Criteria').OfferConstraint; -export function supportsMinimalProposalFlow(offer: import("../types/Offer").Offer, opportunity?: import("../types/Opportunity").Opportunity, options?: import("../types/Options").Options): boolean; diff --git a/packages/test-interface-criteria/built-types/index.d.ts b/packages/test-interface-criteria/built-types/index.d.ts deleted file mode 100644 index d9eb5aa4f9..0000000000 --- a/packages/test-interface-criteria/built-types/index.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Check if an opportunity matches some criteria - */ -export type TestMatchResult = { - /** - * Does the opportunity match the criteria? - */ - matchesCriteria: boolean; - /** - * Names of constraints which were - * not met by the opportunity. - */ - unmetCriteriaDetails: string[]; -}; -export type Criteria = import('./types/Criteria').Criteria; -export type Opportunity = import('./types/Opportunity').Opportunity; -export type Offer = import('./types/Offer').Offer; -export type Options = import('./types/Options').Options; -export type TestDataShape = import('./types/TestDataShape').TestDataShape; -export type TestDataShapeOpportunityConstraints = import('./types/TestDataShape').TestDataShapeOpportunityConstraints; -/** - * Options object as supplied to the test-interface-criteria library API. - */ -export type LibOptions = { - harvestStartTime: string; -}; -import { allCriteria } from "./criteria"; -/** - * @typedef {import('./types/Criteria').Criteria} Criteria - * @typedef {import('./types/Opportunity').Opportunity} Opportunity - * @typedef {import('./types/Offer').Offer} Offer - * @typedef {import('./types/Options').Options} Options - * @typedef {import('./types/TestDataShape').TestDataShape} TestDataShape - * @typedef {import('./types/TestDataShape').TestDataShapeOpportunityConstraints} TestDataShapeOpportunityConstraints - */ -/** - * @typedef {{ - * harvestStartTime: string; - * }} LibOptions Options object as supplied to the test-interface-criteria library API. - */ -export const criteriaMap: Map; -/** - * Check if an opportunity matches some criteria - * - * @typedef {object} TestMatchResult - * @property {boolean} matchesCriteria Does the opportunity match the criteria? - * @property {string[]} unmetCriteriaDetails Names of constraints which were - * not met by the opportunity. - * - * @param {Criteria} criteria - * @param {Opportunity} opportunity - * @param {LibOptions} libOptions - */ -export function testMatch(criteria: Criteria, opportunity: Opportunity, libOptions: LibOptions): { - matchesCriteria: boolean; - unmetCriteriaDetails: string[]; -}; -/** - * @param {string} criteriaName - * @param {Opportunity} opportunity - * @param {LibOptions} libOptions - */ -export function getRelevantOffers(criteriaName: string, opportunity: Opportunity, libOptions: LibOptions): import("./types/Offer").Offer[]; -/** - * @param {string} criteriaName - * @param {'OpenBookingSimpleFlow' | 'OpenBookingApprovalFlow'} bookingFlow - * @param {string} opportunityType - * @param {LibOptions} libOptions - */ -export function getTestDataShapeExpressions(criteriaName: string, bookingFlow: 'OpenBookingSimpleFlow' | 'OpenBookingApprovalFlow', opportunityType: string, libOptions: LibOptions): { - 'test:testOpportunityDataShapeExpression': { - '@type': string; - predicate: string; - valueExpr: import("./types/TestDataShape").TestDataNodeConstraint; - }[]; - 'test:testOfferDataShapeExpression': { - '@type': string; - predicate: string; - valueExpr: import("./types/TestDataShape").TestDataNodeConstraint; - }[]; -}; -import { getOrganizerOrProvider } from "./criteria/criteriaUtils"; -import { getRemainingCapacity } from "./criteria/criteriaUtils"; -export declare namespace utils { - export { getOrganizerOrProvider }; - export { getRemainingCapacity }; -} -export { allCriteria as criteria }; diff --git a/packages/test-interface-criteria/built-types/testDataShape.d.ts b/packages/test-interface-criteria/built-types/testDataShape.d.ts deleted file mode 100644 index 2111a9323b..0000000000 --- a/packages/test-interface-criteria/built-types/testDataShape.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -export type EventStatusType = import('./types/TestDataShape').EventStatusType; -export type TaxMode = import('./types/TestDataShape').TaxMode; -export type RequiredStatusType = import('./types/TestDataShape').RequiredStatusType; -export type OpenBookingFlowRequirement = import('./types/TestDataShape').OpenBookingFlowRequirement; -export type DateRangeNodeConstraint = import('./types/TestDataShape').DateRangeNodeConstraint; -export type NumericNodeConstraint = import('./types/TestDataShape').NumericNodeConstraint; -export type BooleanNodeConstraint = import('./types/TestDataShape').BooleanNodeConstraint; -export type NullNodeConstraint = import('./types/TestDataShape').NullNodeConstraint; -export type TestDataShapeOpportunityConstraints = import('./types/TestDataShape').TestDataShapeOpportunityConstraints; -export type TestDataShape = import('./types/TestDataShape').TestDataShape; -export type ValueType = import('./types/TestDataShape').ValueType; -export type Options = import('./types/Options').Options; -/** - * @typedef {import('./types/TestDataShape').EventStatusType} EventStatusType - * @typedef {import('./types/TestDataShape').TaxMode} TaxMode - * @typedef {import('./types/TestDataShape').RequiredStatusType} RequiredStatusType - * @typedef {import('./types/TestDataShape').OpenBookingFlowRequirement} OpenBookingFlowRequirement - * @typedef {import('./types/TestDataShape').DateRangeNodeConstraint} DateRangeNodeConstraint - * @typedef {import('./types/TestDataShape').NumericNodeConstraint} NumericNodeConstraint - * @typedef {import('./types/TestDataShape').BooleanNodeConstraint} BooleanNodeConstraint - * @typedef {import('./types/TestDataShape').NullNodeConstraint} NullNodeConstraint - * @typedef {import('./types/TestDataShape').TestDataShapeOpportunityConstraints} TestDataShapeOpportunityConstraints - * @typedef {import('./types/TestDataShape').TestDataShape} TestDataShape - * @typedef {import('./types/TestDataShape').ValueType} ValueType - * @typedef {import('./types/Options').Options} Options - */ -/** - * @param {Omit} requirements - * @returns {TestDataShape['opportunityConstraints']} - */ -export function testOpportunityDataShapeExpression(requirements: Omit): TestDataShape['opportunityConstraints']; -/** - * @param {Omit} requirements - * @returns {TestDataShape['offerConstraints']} - */ -export function testOfferDataShapeExpression(requirements: Omit): TestDataShape['offerConstraints']; -/** - * @param {Omit} requirements - * @returns {DateRangeNodeConstraint} - */ -export function dateRange(requirements: Omit): DateRangeNodeConstraint; -/** - * @param {Omit} requirements - * @returns {NumericNodeConstraint} - */ -export function quantitativeValue(requirements: Omit): NumericNodeConstraint; -export const FREE_PRICE_QUANTITATIVE_VALUE: import("./types/TestDataShape").NumericNodeConstraint; -export const NON_FREE_PRICE_QUANTITATIVE_VALUE: import("./types/TestDataShape").NumericNodeConstraint; -/** - * @template TOptionType - * @template {ValueType} TValueType - * @param {Omit, '@type'>} requirements - * @returns {import('./types/TestDataShape').OptionNodeConstraint} - */ -export function optionNodeConstraint(requirements: Omit, "@type">): import("./types/TestDataShape").OptionNodeConstraint; -/** - * @template TArrayOf - * @template {ValueType} TValueType - * @param {Omit, '@type'>} requirements - * @returns {import('./types/TestDataShape').ArrayConstraint} - */ -export function arrayConstraint(requirements: Omit, "@type">): import("./types/TestDataShape").ArrayConstraint; -/** @type {NullNodeConstraint} */ -export const BLOCKED_FIELD: NullNodeConstraint; -/** - * @param {Omit, '@type' | 'datatype'>} requirements - * @returns {import('./types/TestDataShape').OptionNodeConstraint} - */ -export function eventStatusOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; -/** - * @param {Omit} requirements - * @returns {import('./types/TestDataShape').TestDataShape['opportunityConstraints']['schema:eventAttendanceMode']} - */ -export function eventAttendanceModeOptionNodeConstraint(requirements: Omit): import('./types/TestDataShape').TestDataShape['opportunityConstraints']['schema:eventAttendanceMode']; -/** - * @param {Omit, '@type' | 'datatype'>} requirements - * @returns {import('./types/TestDataShape').OptionNodeConstraint} - */ -export function advanceBookingOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; -/** - * @param {Omit, '@type' | 'datatype'>} requirements - * @returns {import('./types/TestDataShape').OptionNodeConstraint} - */ -export function prepaymentOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; -/** - * @param {Omit, '@type' | 'datatype'>} requirements - * @returns {import('./types/TestDataShape').OptionNodeConstraint} - */ -export function taxModeOptionNodeConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').OptionNodeConstraint; -/** - * @param {Omit, '@type' | 'datatype'>} requirements - * @returns {import('./types/TestDataShape').ArrayConstraint} - */ -export function openBookingFlowRequirementArrayConstraint(requirements: Omit, '@type' | 'datatype'>): import('./types/TestDataShape').ArrayConstraint; -/** - * @param {number} minLength - * @returns {import('./types/TestDataShape').ArrayConstraint} - */ -export function termsOfServiceArrayConstraint(minLength: number): import('./types/TestDataShape').ArrayConstraint; -export const TRUE_BOOLEAN_CONSTRAINT: import("./types/TestDataShape").BooleanNodeConstraint; -export const FALSE_BOOLEAN_CONSTRAINT: import("./types/TestDataShape").BooleanNodeConstraint; -export namespace shapeConstraintRecipes { - function remainingCapacityMustBeAtLeast(mininclusive: number, mininclusiveIfuSlot?: number): Pick, "placeholder:remainingCapacity" | "placeholder:remainingCapacityIfuSlot">; - function mustHaveBookableOffer(options: import("./types/Options").Options): { - 'oa:validFromBeforeStartDate': import("./types/TestDataShape").DateRangeNodeConstraint; - 'oa:openBookingInAdvance': import("./types/TestDataShape").OptionNodeConstraint; - }; - function sellerMustAllowOpenBooking(): { - 'oa:isOpenBookingAllowed': import("./types/TestDataShape").BooleanNodeConstraint; - }; - function mustAllowFullRefund(): { - 'oa:allowCustomerCancellationFullRefund': import("./types/TestDataShape").BooleanNodeConstraint; - }; - function mustBeWithinCancellationWindowOrHaveNoWindow(): { - 'oa:latestCancellationBeforeStartDate': import("./types/TestDataShape").NullNodeConstraint; - }; - function onlyNonFreeBookableOffers(): { - 'schema:price': import("./types/TestDataShape").NumericNodeConstraint; - }; - function onlyFreeBookableOffersWithUnavailablePrepayment(): { - 'schema:price': import("./types/TestDataShape").NumericNodeConstraint; - 'oa:openBookingPrepayment': import("./types/TestDataShape").OptionNodeConstraint; - }; -} diff --git a/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts b/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts index 463bc1c28c..9f4a4e7482 100644 --- a/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts +++ b/packages/test-interface-criteria/built-types/types/TestDataShape.d.ts @@ -154,7 +154,7 @@ export type TestDataShape = { 'oa:validFromBeforeStartDate'?: DateRangeNodeConstraint; /** * Refers to the date calculated as `startDate - validThroughBeforeStartDate`. - * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validThroughBeforeStartDate` * can be null. */ 'oa:validThroughBeforeStartDate'?: DateRangeNodeConstraint; @@ -162,7 +162,7 @@ export type TestDataShape = { 'oa:openBookingFlowRequirement'?: ArrayConstraint; /** * Refers to the date calculated as `startDate - latestCancellationBeforeStartDate`. - * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `validFromBeforeStartDate` + * For this particular DateRangeNodeConstraint, `allowNull` refers to whether `latestCancellationBeforeStartDate` * can be null. */ 'oa:latestCancellationBeforeStartDate'?: NullNodeConstraint | DateRangeNodeConstraint; diff --git a/packages/test-interface-criteria/built-types/utils/objUtils.d.ts b/packages/test-interface-criteria/built-types/utils/objUtils.d.ts deleted file mode 100644 index 27e1320dae..0000000000 --- a/packages/test-interface-criteria/built-types/utils/objUtils.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * TODO document - * - * @template {Record} TObj - * @template {keyof TObj} TKey - * @param {TKey[]} keys - * @param {TObj} obj - * @returns {[picked: Pick, rest: Omit]} - */ -export function pickPartition, TKey extends keyof TObj>(keys: TKey[], obj: TObj): [picked: Pick, rest: Omit];