diff --git a/.cdsrc-private.json b/.cdsrc-private.json new file mode 100644 index 0000000..aec671e --- /dev/null +++ b/.cdsrc-private.json @@ -0,0 +1,36 @@ +{ + "requires": { + "[hybrid]": { + "auth": { + "binding": { + "type": "cf", + "apiEndpoint": "https://api.cf.us10-001.hana.ondemand.com", + "org": "HR Crowd Pty Ltd_demo-5ld47ydi", + "space": "dev", + "instance": "my-xsuaa", + "key": "default", + "resolved": false + }, + "kind": "xsuaa-auth", + "vcap": { + "name": "auth" + } + }, + "destinations": { + "binding": { + "type": "cf", + "apiEndpoint": "https://api.cf.us10-001.hana.ondemand.com", + "org": "HR Crowd Pty Ltd_demo-5ld47ydi", + "space": "dev", + "instance": "my-destination", + "key": "destination", + "resolved": false + }, + "kind": "destinations", + "vcap": { + "name": "destinations" + } + } + } + } +} \ No newline at end of file diff --git a/mta.oldyaml b/mta.oldyaml new file mode 100644 index 0000000..00dcf2a --- /dev/null +++ b/mta.oldyaml @@ -0,0 +1,47 @@ +_schema-version: '3.1' +ID: sv-demo +version: 1.0.0 +description: "Team Calender app using the SAP Cloud SDK and CAP" +parameters: + enable-parallel-deployments: true +build-parameters: + before-all: + - builder: custom + commands: + - node dist/index.js +modules: + - name: sv-demo + type: nodejs + path: deployment/ + parameters: + memory: 256M + start-command: node dist/index.js + buildpack: nodejs_buildpack + routes: + -route: sv-demo.cfapps.us10-001.hana.ondemand.com + build-parameters: + builder: npm-ci + provides: + - name: sv-demo_api # required by consumers of CAP services (e.g. approuter) + properties: + srv-url: ${default-url} + requires: + - name: my-xsuaa + - name: my-destination + +resources: + - name: my-xsuaa + type: org.cloudfoundry.managed-service + parameters: + service: xsuaa + service-plan: application + path: ./xs-security.json + config: + xsappname: my-xsuaa + tenant-mode: dedicated + - name: my-destination + type: org.cloudfoundry.managed-service + parameters: + service: destination + service-plan: lite + service-name: my-destination \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1624575..6ff6a8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,10 @@ "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { + "@sap-cloud-sdk/http-client": "^3.24.0", "@sap-cloud-sdk/odata-v2": "^2.9.0", "@sap-cloud-sdk/util": "^2.9.0", + "@sap/approuter": "^18.0.0", "@sap/cds": "^6.2.1", "@sap/cds-dk": "^6.2.1", "@sap/cds-services": "^1.27.2", @@ -475,6 +477,11 @@ "deprecated": "Use @eslint/object-schema instead", "dev": true }, + "node_modules/@ioredis/commands": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz", + "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" + }, "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", @@ -804,14 +811,76 @@ } }, "node_modules/@sap-cloud-sdk/http-client": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/http-client/-/http-client-2.15.0.tgz", - "integrity": "sha512-X8fIERO1hGNwIRIUXZCa0e4qOL+t4uasHJOoCpfHWAgQNa5mUSqkS4m4GCuOypm6CPey4kFf1MBLOXG0T6srpQ==", - "deprecated": "Version 2 of the SAP Cloud SDK is no longer maintained. Check the upgrade guide for switching to version 3: https://sap.github.io/cloud-sdk/docs/js/guides/upgrade-to-version-3.", + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/http-client/-/http-client-3.24.0.tgz", + "integrity": "sha512-Zx9sqwNTe77eztVXBGhIPMlB/39zir42wSYX95G4NNQNljnzNeEp3bA7bF4hF2zKS6Z8byG/j5p6b30UJ2goiw==", "dependencies": { - "@sap-cloud-sdk/connectivity": "^2.15.0", - "@sap-cloud-sdk/util": "^2.15.0", - "axios": "^0.27.1" + "@sap-cloud-sdk/connectivity": "^3.24.0", + "@sap-cloud-sdk/resilience": "^3.24.0", + "@sap-cloud-sdk/util": "^3.24.0", + "axios": "^1.7.8" + } + }, + "node_modules/@sap-cloud-sdk/http-client/node_modules/@sap-cloud-sdk/connectivity": { + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/connectivity/-/connectivity-3.24.0.tgz", + "integrity": "sha512-yi9JxZEOzwqIOwwhcVnE7PUk7gvU6fY952SaGv0x12E1MVwGIw+A/mg4qp74GPt9mvn/36y75XSajlIVu4IReA==", + "dependencies": { + "@sap-cloud-sdk/resilience": "^3.24.0", + "@sap-cloud-sdk/util": "^3.24.0", + "@sap/xsenv": "^5.4.0", + "@sap/xssec": "^4.2.7", + "async-retry": "^1.3.3", + "axios": "^1.7.8", + "jsonwebtoken": "^9.0.2" + } + }, + "node_modules/@sap-cloud-sdk/http-client/node_modules/@sap-cloud-sdk/util": { + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/util/-/util-3.24.0.tgz", + "integrity": "sha512-PXjOR/tkmaNmnHif5l39ei4iLb/fCssMRj92HmFigTGuQMIWfZtShKRHGOqmb6dOdp7JO7j2kngg3m2wmIe7Sg==", + "dependencies": { + "axios": "^1.7.8", + "chalk": "^4.1.0", + "logform": "^2.7.0", + "voca": "^1.4.1", + "winston": "^3.17.0", + "winston-transport": "^4.9.0" + } + }, + "node_modules/@sap-cloud-sdk/http-client/node_modules/@sap/xsenv": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@sap/xsenv/-/xsenv-5.4.0.tgz", + "integrity": "sha512-O9G71v7S1ZHorDHwNGAbZXmvRvALbeN8Q/j1UgQdKfUcf18re+5CZxKCVUezs2OTBR2KB/tvDFLnlXwHYuwC7A==", + "dependencies": { + "debug": "4.3.7", + "node-cache": "^5.1.2", + "verror": "1.10.1" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || ^22.0.0" + } + }, + "node_modules/@sap-cloud-sdk/http-client/node_modules/@sap/xssec": { + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/@sap/xssec/-/xssec-4.2.7.tgz", + "integrity": "sha512-RCBFma3jiLIJ1naAPFNLQWMIkKwQENiwSsdEtffs2Q+RhH+AnLiaXAqxtXGlO/N+Lg53WANEIcLThYRkttQ00w==", + "dependencies": { + "debug": "^4.3.4", + "jwt-decode": "^4" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sap-cloud-sdk/http-client/node_modules/axios": { + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "node_modules/@sap-cloud-sdk/odata-common": { @@ -829,6 +898,17 @@ "voca": "^1.4.0" } }, + "node_modules/@sap-cloud-sdk/odata-common/node_modules/@sap-cloud-sdk/http-client": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/http-client/-/http-client-2.15.0.tgz", + "integrity": "sha512-X8fIERO1hGNwIRIUXZCa0e4qOL+t4uasHJOoCpfHWAgQNa5mUSqkS4m4GCuOypm6CPey4kFf1MBLOXG0T6srpQ==", + "deprecated": "Version 2 of the SAP Cloud SDK is no longer maintained. Check the upgrade guide for switching to version 3: https://sap.github.io/cloud-sdk/docs/js/guides/upgrade-to-version-3.", + "dependencies": { + "@sap-cloud-sdk/connectivity": "^2.15.0", + "@sap-cloud-sdk/util": "^2.15.0", + "axios": "^0.27.1" + } + }, "node_modules/@sap-cloud-sdk/odata-v2": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/odata-v2/-/odata-v2-2.15.0.tgz", @@ -844,6 +924,17 @@ "uuid": "^9.0.0" } }, + "node_modules/@sap-cloud-sdk/odata-v2/node_modules/@sap-cloud-sdk/http-client": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/http-client/-/http-client-2.15.0.tgz", + "integrity": "sha512-X8fIERO1hGNwIRIUXZCa0e4qOL+t4uasHJOoCpfHWAgQNa5mUSqkS4m4GCuOypm6CPey4kFf1MBLOXG0T6srpQ==", + "deprecated": "Version 2 of the SAP Cloud SDK is no longer maintained. Check the upgrade guide for switching to version 3: https://sap.github.io/cloud-sdk/docs/js/guides/upgrade-to-version-3.", + "dependencies": { + "@sap-cloud-sdk/connectivity": "^2.15.0", + "@sap-cloud-sdk/util": "^2.15.0", + "axios": "^0.27.1" + } + }, "node_modules/@sap-cloud-sdk/odata-v4": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/odata-v4/-/odata-v4-2.15.0.tgz", @@ -860,6 +951,60 @@ "uuid": "^9.0.0" } }, + "node_modules/@sap-cloud-sdk/odata-v4/node_modules/@sap-cloud-sdk/http-client": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/http-client/-/http-client-2.15.0.tgz", + "integrity": "sha512-X8fIERO1hGNwIRIUXZCa0e4qOL+t4uasHJOoCpfHWAgQNa5mUSqkS4m4GCuOypm6CPey4kFf1MBLOXG0T6srpQ==", + "deprecated": "Version 2 of the SAP Cloud SDK is no longer maintained. Check the upgrade guide for switching to version 3: https://sap.github.io/cloud-sdk/docs/js/guides/upgrade-to-version-3.", + "dev": true, + "dependencies": { + "@sap-cloud-sdk/connectivity": "^2.15.0", + "@sap-cloud-sdk/util": "^2.15.0", + "axios": "^0.27.1" + } + }, + "node_modules/@sap-cloud-sdk/resilience": { + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/resilience/-/resilience-3.24.0.tgz", + "integrity": "sha512-n8JbVoy2PIDyIiTDIJfgfhK6Cn/HegoUSXhksbc6tM111TKvgCz8pw/A3cXrcMSVSa0KP4gI4sxiklV2GPw/uA==", + "dependencies": { + "@sap-cloud-sdk/util": "^3.24.0", + "async-retry": "^1.3.3", + "axios": "^1.7.8", + "opossum": "^8.3.1" + } + }, + "node_modules/@sap-cloud-sdk/resilience/node_modules/@sap-cloud-sdk/util": { + "version": "3.24.0", + "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/util/-/util-3.24.0.tgz", + "integrity": "sha512-PXjOR/tkmaNmnHif5l39ei4iLb/fCssMRj92HmFigTGuQMIWfZtShKRHGOqmb6dOdp7JO7j2kngg3m2wmIe7Sg==", + "dependencies": { + "axios": "^1.7.8", + "chalk": "^4.1.0", + "logform": "^2.7.0", + "voca": "^1.4.1", + "winston": "^3.17.0", + "winston-transport": "^4.9.0" + } + }, + "node_modules/@sap-cloud-sdk/resilience/node_modules/axios": { + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/@sap-cloud-sdk/resilience/node_modules/opossum": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/opossum/-/opossum-8.4.0.tgz", + "integrity": "sha512-YYamqKu48bZCSTJKSWLLO4SSk8tKN2Gg2z1sJZVzHJYVObMO/xQpIzAh6re9HCMHRdB1dJvBjJH18DW7xYOicg==", + "engines": { + "node": "^22 || ^21 || ^20 || ^18 || ^16" + } + }, "node_modules/@sap-cloud-sdk/util": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/@sap-cloud-sdk/util/-/util-2.15.0.tgz", @@ -875,6 +1020,320 @@ "winston-transport": "^4.5.0" } }, + "node_modules/@sap/approuter": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@sap/approuter/-/approuter-18.0.0.tgz", + "integrity": "sha512-NtjbfxVrsBKOzW1JHnfqjdYrFAjxr5ESPldd88KXFsF5pF0DmQi1ZkZ4EVfUVgvryAz9QRnL3XXmCfmV4gGK0g==", + "dependencies": { + "@sap/audit-logging": "6.1.0", + "@sap/e2e-trace": "4.1.0", + "@sap/logging": "^7.1.0", + "@sap/xsenv": "^4.0.0", + "@sap/xssec": "3.6.1", + "agentkeepalive": "4.5.0", + "axios": "1.7.4", + "axios-cookiejar-support": "2.0.3", + "base64-url": "2.3.3", + "basic-auth": "1.0.3", + "body-parser": "1.20.3", + "cf-nodejs-logging-support": "^7.2.0", + "commander": "2.9.0", + "compressible": "2.0.18", + "compression": "1.7.4", + "connect": "3.6.5", + "cookie": "1.0.2", + "cookie-parser": "1.4.7", + "cookie-signature": "1.1.0", + "debug": "4.3.2", + "deepmerge": "2.1.1", + "encodeurl": "1.0.2", + "express-session": "1.18.1", + "http-proxy-agent": "4.0.1", + "https-proxy-agent": "5.0.0", + "ioredis": "5.4.1", + "jwt-decode": "2.0.1", + "lodash": "4.17.21", + "lru-cache": "4.0.0", + "mime": "1.4.1", + "ms": "2.1.1", + "mustache": "2.2.1", + "node-cache": "5.1.2", + "node-forge": "^1.3.0", + "passport": "^0.7.0", + "query-string": "7.1.2", + "request-stats": "2.0.1", + "safe-regex": "1.1.0", + "send": "0.19.0", + "serve-static": "1.16.2", + "tough-cookie": "4.1.3", + "tv4": "1.2.7", + "uid-safe": "2.1.5", + "urijs": "^1.19.11", + "uuid": "8.3.2", + "validator": "13.7.0", + "verror": "1.10.0", + "ws": "7.5.10", + "wtfnode": "0.9.1" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0" + } + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@sap/xsenv/-/xsenv-4.2.0.tgz", + "integrity": "sha512-Hu74ezPEKVgzz1XLi4/Ttlv+n2w9CTuLBlR6Vw4y9FK7btLm1wnCViDPufTG7yxniEADw8EQbqRv+krmcFmGLA==", + "hasShrinkwrap": true, + "dependencies": { + "debug": "4.3.3", + "node-cache": "^5.1.0", + "verror": "1.10.0" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0" + } + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/assert-plus": { + "version": "1.0.0" + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/clone": { + "version": "2.1.2" + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/core-util-is": { + "version": "1.0.2" + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/debug": { + "version": "4.3.3", + "dependencies": { + "ms": "2.1.2" + } + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/extsprintf": { + "version": "1.4.1" + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/ms": { + "version": "2.1.2" + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/node-cache": { + "version": "5.1.2", + "dependencies": { + "clone": "2.x" + } + }, + "node_modules/@sap/approuter/node_modules/@sap/xsenv/node_modules/verror": { + "version": "1.10.0", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/@sap/approuter/node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@sap/approuter/node_modules/axios": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/@sap/approuter/node_modules/cookie": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz", + "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@sap/approuter/node_modules/cookie-signature": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.1.0.tgz", + "integrity": "sha512-Alvs19Vgq07eunykd3Xy2jF0/qSNv2u7KDbAek9H5liV1UMijbqFs5cycZvv5dVsvseT/U4H8/7/w8Koh35C4A==", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/@sap/approuter/node_modules/debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@sap/approuter/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/@sap/approuter/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@sap/approuter/node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@sap/approuter/node_modules/https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@sap/approuter/node_modules/jwt-decode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.0.1.tgz", + "integrity": "sha512-/KEXk2wGfWoSM2SHQk8mq9n/Rd6ahB0XIZt0jEcNy4tQXeDHU4oNOGK1shSVstIQm97qowy6dFgUAHB3zbOD8g==" + }, + "node_modules/@sap/approuter/node_modules/lru-cache": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.0.tgz", + "integrity": "sha512-WKhDkjlLwzE8jAQdQlsxLUQTPXLCKX/4cJk6s5AlRtJkDBk0IKH5O51bVDH61K9N4bhbbyvLM6EiOuE8ovApPA==", + "dependencies": { + "pseudomap": "^1.0.1", + "yallist": "^2.0.0" + } + }, + "node_modules/@sap/approuter/node_modules/mime": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", + "bin": { + "mime": "cli.js" + } + }, + "node_modules/@sap/approuter/node_modules/ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "node_modules/@sap/approuter/node_modules/mustache": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-2.2.1.tgz", + "integrity": "sha512-azYRexmi9y6h2lk2JqfBLh1htlDMjKYyEYOkxoGKa0FRdr5aY4f5q8bH4JIecM181DtUEYLSz8PcRO46mgzMNQ==", + "bin": { + "mustache": "bin/mustache" + }, + "engines": { + "npm": ">=1.4.0" + } + }, + "node_modules/@sap/approuter/node_modules/passport": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz", + "integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==", + "dependencies": { + "passport-strategy": "1.x.x", + "pause": "0.0.1", + "utils-merge": "^1.0.1" + }, + "engines": { + "node": ">= 0.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jaredhanson" + } + }, + "node_modules/@sap/approuter/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@sap/approuter/node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/@sap/approuter/node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" + }, + "node_modules/@sap/audit-logging": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@sap/audit-logging/-/audit-logging-6.1.0.tgz", + "integrity": "sha512-NmKBjWTawJW0GjUnt0SNnQ9h+yj15fYrZ66SI1lE5lwR0ard8AgzbMwTnoq6jHrTSKvTHeOEhPYeUHAdb8llYA==", + "dependencies": { + "@sap/xssec": "^3.6.1", + "debug": "4.3.4", + "fetch-retry": "4.1.0", + "lodash": "4.17.21", + "node-cache": "5.1.2", + "node-fetch": "2.7.0" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0" + } + }, + "node_modules/@sap/audit-logging/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@sap/audit-logging/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, "node_modules/@sap/cds": { "version": "6.8.4", "resolved": "https://registry.npmjs.org/@sap/cds/-/cds-6.8.4.tgz", @@ -4081,6 +4540,43 @@ "node": ">= 8.9.0" } }, + "node_modules/@sap/e2e-trace": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@sap/e2e-trace/-/e2e-trace-4.1.0.tgz", + "integrity": "sha512-HSOIPHQjdC2coWFVxB04DztApRUgYiMIV781FfyYpmvnJy7/BUCv5fdLyJjisoIUqBpDE3KbkJ/Ko1GdoryHlw==", + "hasShrinkwrap": true, + "dependencies": { + "request-stats": "3.0.0" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0" + } + }, + "node_modules/@sap/e2e-trace/node_modules/http-headers": { + "version": "3.0.2", + "dependencies": { + "next-line": "^1.1.0" + } + }, + "node_modules/@sap/e2e-trace/node_modules/next-line": { + "version": "1.1.0" + }, + "node_modules/@sap/e2e-trace/node_modules/once": { + "version": "1.4.0", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/@sap/e2e-trace/node_modules/request-stats": { + "version": "3.0.0", + "dependencies": { + "http-headers": "^3.0.1", + "once": "^1.4.0" + } + }, + "node_modules/@sap/e2e-trace/node_modules/wrappy": { + "version": "1.0.2" + }, "node_modules/@sap/edm-converters": { "version": "1.0.43", "resolved": "https://registry.npmjs.org/@sap/edm-converters/-/edm-converters-1.0.43.tgz", @@ -4479,6 +4975,57 @@ "version": "2.0.0", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, + "node_modules/@sap/logging": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@sap/logging/-/logging-7.1.0.tgz", + "integrity": "sha512-pMYHJg23099j/nW90md0X8Ach0mfkdFy8235LOWXBlcH7eNPuIb5ES6slisqinQ6PHsj1Cip5C2emyGlkd/liw==", + "hasShrinkwrap": true, + "dependencies": { + "@sap/e2e-trace": "^4.1.0", + "lodash": "4.17.21", + "moment": "2.29.4" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0" + } + }, + "node_modules/@sap/logging/node_modules/@sap/e2e-trace": { + "version": "4.1.0", + "dependencies": { + "request-stats": "3.0.0" + } + }, + "node_modules/@sap/logging/node_modules/@sap/e2e-trace/node_modules/http-headers": { + "version": "3.0.2", + "dependencies": { + "next-line": "^1.1.0" + } + }, + "node_modules/@sap/logging/node_modules/@sap/e2e-trace/node_modules/next-line": { + "version": "1.1.0" + }, + "node_modules/@sap/logging/node_modules/@sap/e2e-trace/node_modules/once": { + "version": "1.4.0", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/@sap/logging/node_modules/@sap/e2e-trace/node_modules/request-stats": { + "version": "3.0.0", + "dependencies": { + "http-headers": "^3.0.1", + "once": "^1.4.0" + } + }, + "node_modules/@sap/logging/node_modules/@sap/e2e-trace/node_modules/wrappy": { + "version": "1.0.2" + }, + "node_modules/@sap/logging/node_modules/lodash": { + "version": "4.17.21" + }, + "node_modules/@sap/logging/node_modules/moment": { + "version": "2.29.4" + }, "node_modules/@sap/odata-server": { "version": "1.8.3", "resolved": "https://registry.npmjs.org/@sap/odata-server/-/odata-server-1.8.3.tgz", @@ -5157,7 +5704,6 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", - "optional": true, "dependencies": { "humanize-ms": "^1.2.1" }, @@ -5455,6 +6001,14 @@ "safer-buffer": "~2.1.0" } }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "engines": { + "node": ">=0.8" + } + }, "node_modules/assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -5469,6 +6023,22 @@ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" }, + "node_modules/async-retry": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", + "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", + "dependencies": { + "retry": "0.13.1" + } + }, + "node_modules/async-retry/node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "engines": { + "node": ">= 4" + } + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -5497,6 +6067,21 @@ "form-data": "^4.0.0" } }, + "node_modules/axios-cookiejar-support": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/axios-cookiejar-support/-/axios-cookiejar-support-2.0.3.tgz", + "integrity": "sha512-tvMB+0JhxXLjjvePsXzqXhBI4DMlW4ImR4pKKNl+xclwF0IviNV+CkuhubQCCFjPzOXv7PIzOq3z7WFiF9pMpw==", + "dependencies": { + "http-cookie-agent": "^1.0.2" + }, + "engines": { + "node": ">=12.19.0 <13.0.0 || >=14.5.0" + }, + "peerDependencies": { + "axios": ">=0.20.0", + "tough-cookie": ">=4.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -5522,6 +6107,22 @@ } ] }, + "node_modules/base64-url": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/base64-url/-/base64-url-2.3.3.tgz", + "integrity": "sha512-dLMhIsK7OplcDauDH/tZLvK7JmUZK3A7KiQpjNzsBrM6Etw7hzNI1tLEywqJk9NnwkgWuFKSlx/IUO7vF6Mo8Q==", + "engines": { + "node": ">=6" + } + }, + "node_modules/basic-auth": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.3.tgz", + "integrity": "sha512-fkXSqXkCTgBy5HVNQ2wP1Fnc/JZjnREwM3hfU8h5RyUN8X9WMQBJem6ZmlsSs7Y4f3fQ7z09vcARgOa0iaPaZA==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/big.js": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.2.2.tgz", @@ -5884,6 +6485,42 @@ } ] }, + "node_modules/cf-nodejs-logging-support": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/cf-nodejs-logging-support/-/cf-nodejs-logging-support-7.4.0.tgz", + "integrity": "sha512-s4rf4+JFUEumraAI842TBor6K/n5w3bmmZkpmROK5Fl7XJmx27M6XrjYxw8VAzRHVWdQmK9AVKfBBzt2wUtxZg==", + "dependencies": { + "ajv": "^8.11.0", + "json-stringify-safe": "^5.0.1", + "jsonwebtoken": "^9.0.0", + "triple-beam": "^1.3.0", + "uuid": "^9.0.0", + "winston-transport": "^4.5.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/cf-nodejs-logging-support/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/cf-nodejs-logging-support/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, "node_modules/chai": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", @@ -6033,6 +6670,22 @@ "node": ">=12" } }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/code-block-writer": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-11.0.3.tgz", @@ -6115,6 +6768,17 @@ "node": ">= 0.8" } }, + "node_modules/commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==", + "dependencies": { + "graceful-readlink": ">= 1.0.0" + }, + "engines": { + "node": ">= 0.6.x" + } + }, "node_modules/comment-parser": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", @@ -6139,12 +6803,137 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "devOptional": true }, + "node_modules/connect": { + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.5.tgz", + "integrity": "sha512-B+WTJ0bDgjQugnbNF7fWGvwEgTj9Isdk3Y7yTZlgCuVe+hpl/do8frEMeimx7sRMPW3oZA+EsC9uDZL8MaaAwQ==", + "dependencies": { + "debug": "2.6.9", + "finalhandler": "1.0.6", + "parseurl": "~1.3.2", + "utils-merge": "1.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/connect/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/connect/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/finalhandler": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.6.tgz", + "integrity": "sha512-immlyyYCPWG2tajlYBhZ6cjLAv1QAclU8tKS0d27ZtPqm/+iddy16GT3xLExg+V4lIETLpPwaYQAlZHNE//dPA==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.2", + "statuses": "~1.3.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/connect/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/statuses": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", + "integrity": "sha512-wuTCPGlJONk/a1kqZ4fQM2+908lC7fa7nPYpTC1EhnvqLX/IICbeP1OZGDtA374trpSq68YubKUMo8oRhN46yg==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", @@ -6184,6 +6973,26 @@ "node": ">= 0.6" } }, + "node_modules/cookie-parser": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz", + "integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==", + "dependencies": { + "cookie": "0.7.2", + "cookie-signature": "1.0.6" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cookie-parser/node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", @@ -6195,6 +7004,11 @@ "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", "dev": true }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -6296,6 +7110,14 @@ "node": ">=0.10.0" } }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "engines": { + "node": ">=0.10" + } + }, "node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -6336,6 +7158,14 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/deepmerge": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.1.1.tgz", + "integrity": "sha512-urQxA1smbLZ2cBbXbaYObM1dJ82aJ2H57A1C/Kklfh/ZN1bgH4G/n5KWhdNfOK11W98gqZfyYj7W4frJJRwA2w==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/default-require-extensions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.1.tgz", @@ -6397,6 +7227,14 @@ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "optional": true }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "engines": { + "node": ">=0.10" + } + }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -7209,6 +8047,50 @@ "node": ">= 0.10.0" } }, + "node_modules/express-session": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.1.tgz", + "integrity": "sha512-a5mtTqEaZvBCL9A9aqkrtfz+3SMDhOVUnjafjo+s7A9Txkq+SVX2DLvSp1Zrv4uCXa3lMSK3viWnh9Gg07PBUA==", + "dependencies": { + "cookie": "0.7.2", + "cookie-signature": "1.0.7", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-headers": "~1.0.2", + "parseurl": "~1.3.3", + "safe-buffer": "5.2.1", + "uid-safe": "~2.1.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/express-session/node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express-session/node_modules/cookie-signature": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==" + }, + "node_modules/express-session/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express-session/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, "node_modules/express/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -7236,11 +8118,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/extsprintf": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", + "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", + "engines": [ + "node >=0.6.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 + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-diff": { "version": "1.3.0", @@ -7297,6 +8186,11 @@ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", "dev": true }, + "node_modules/fast-uri": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==" + }, "node_modules/fast-xml-parser": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz", @@ -7342,6 +8236,11 @@ "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" }, + "node_modules/fetch-retry": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/fetch-retry/-/fetch-retry-4.1.0.tgz", + "integrity": "sha512-FUc9XZuhyE3ka3m53lec29PXVhdRf59QG01nE+OZdfl0M/R0E7Pk6k6qeWzHhX1pHl/f2JPA97sjjbHRgSg/9A==" + }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -7371,6 +8270,14 @@ "node": ">=8" } }, + "node_modules/filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/finalhandler": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", @@ -7878,6 +8785,11 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "devOptional": true }, + "node_modules/graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==" + }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", @@ -8022,6 +8934,20 @@ "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "optional": true }, + "node_modules/http-cookie-agent": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/http-cookie-agent/-/http-cookie-agent-1.0.6.tgz", + "integrity": "sha512-Ei0BDjMfy6MSXATmCZ5nWr935NLYl6eD/BTxVGOIrKAlg4xDtMdk+8a+caq6Qwa4FACn+vACj89pFKlXmHOnkQ==", + "dependencies": { + "agent-base": "^6.0.2" + }, + "engines": { + "node": ">=12.19.0 <13.0.0 || >=14.5.0" + }, + "peerDependencies": { + "tough-cookie": "^4.0.0" + } + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -8037,6 +8963,14 @@ "node": ">= 0.8" } }, + "node_modules/http-headers": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/http-headers/-/http-headers-3.0.2.tgz", + "integrity": "sha512-87E1I+2Wg4dxxz4rcxElo3dxO/w1ZtgL1yA0Sb6vH3qU16vRKq1NjWQv9SCY3ly2OQROcoxHZOUpmelS+k6wOw==", + "dependencies": { + "next-line": "^1.1.0" + } + }, "node_modules/http-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", @@ -8066,7 +9000,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", - "optional": true, "dependencies": { "ms": "^2.0.0" } @@ -8190,6 +9123,29 @@ "node": ">= 0.4" } }, + "node_modules/ioredis": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.4.1.tgz", + "integrity": "sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==", + "dependencies": { + "@ioredis/commands": "^1.1.1", + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.4", + "denque": "^2.1.0", + "lodash.defaults": "^4.2.0", + "lodash.isarguments": "^3.1.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" + } + }, "node_modules/ip-address": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", @@ -8893,6 +9849,11 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -8963,6 +9924,14 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/jwt-decode": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz", + "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==", + "engines": { + "node": ">=18" + } + }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", @@ -9005,6 +9974,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" + }, "node_modules/lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", @@ -9022,6 +10001,11 @@ "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" }, + "node_modules/lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" + }, "node_modules/lodash.isboolean": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", @@ -9603,6 +10587,11 @@ "node": ">= 0.6" } }, + "node_modules/next-line": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-line/-/next-line-1.1.0.tgz", + "integrity": "sha512-+I10J3wKNoKddNxn0CNpoZ3eTZuqxjNM3b1GImVx22+ePI+Y15P8g/j3WsbP0fhzzrFzrtjOAoq5NCCucswXOQ==" + }, "node_modules/nise": { "version": "5.1.9", "resolved": "https://registry.npmjs.org/nise/-/nise-5.1.9.tgz", @@ -9665,6 +10654,44 @@ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==" }, + "node_modules/node-cache": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-5.1.2.tgz", + "integrity": "sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==", + "dependencies": { + "clone": "2.x" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } + }, "node_modules/node-gyp": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", @@ -10170,6 +11197,14 @@ "node": ">= 0.8" } }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -10613,6 +11648,22 @@ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, + "node_modules/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==" + }, + "node_modules/psl": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } + }, "node_modules/pstree.remy": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", @@ -10632,7 +11683,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, "engines": { "node": ">=6" } @@ -10652,6 +11702,28 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/query-string": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.2.tgz", + "integrity": "sha512-KPbFzz/8pmtYOMH6zlYZgqTYJKQ18FxwfW3RLHIBwHWQ0iQG18X16XtIOk68ddfaM6j3grjYSnMPMrqQEjwR4w==", + "dependencies": { + "decode-uri-component": "^0.2.1", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -10672,6 +11744,14 @@ } ] }, + "node_modules/random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -10750,6 +11830,25 @@ "node": ">=8.10.0" } }, + "node_modules/redis-errors": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", + "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/redis-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", + "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", + "dependencies": { + "redis-errors": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/reflect.getprototypeof": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.7.tgz", @@ -10799,6 +11898,15 @@ "node": ">=4" } }, + "node_modules/request-stats": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/request-stats/-/request-stats-2.0.1.tgz", + "integrity": "sha512-GZQvTZqbUx9gXrRfj1c9pMcFzyLeJEpV2P5qXxGwf1I2ZRswRsCNYPsuwnFLNRZQamlsrinzKQnExXBGgFzFCw==", + "dependencies": { + "http-headers": "^3.0.1", + "once": "^1.4.0" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -10808,12 +11916,25 @@ "node": ">=0.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, "node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", @@ -10840,6 +11961,14 @@ "node": ">=4" } }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "engines": { + "node": ">=0.12" + } + }, "node_modules/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", @@ -10955,6 +12084,14 @@ } ] }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dependencies": { + "ret": "~0.1.10" + } + }, "node_modules/safe-regex-test": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", @@ -11343,6 +12480,14 @@ "integrity": "sha512-jg25NiDV/1fLtSgEgyvVyDunvaNHbuwF9lfNV17gSmPFAlYzdfNBlLtLzXTevwkPj7DhGbmN9VnmJIgLnhvaBw==", "dev": true }, + "node_modules/split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", + "engines": { + "node": ">=6" + } + }, "node_modules/sprintf-js": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", @@ -11392,6 +12537,11 @@ "node": "*" } }, + "node_modules/standard-as-callback": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", + "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" + }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -11411,6 +12561,14 @@ "node": ">= 0.4" } }, + "node_modules/strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==", + "engines": { + "node": ">=4" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -11721,6 +12879,33 @@ "nodetouch": "bin/nodetouch.js" } }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, "node_modules/triple-beam": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", @@ -11854,6 +13039,14 @@ "node": "*" } }, + "node_modules/tv4": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/tv4/-/tv4-1.2.7.tgz", + "integrity": "sha512-7W00xKKK9ccSXbN8E1FUKe+PJKlQc3HcPRM1y9WnplFVucoWFBpTNCGJNMHG04+yf5lQKUKx71yt0mluqnbCzw==", + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -11990,6 +13183,17 @@ "node": ">=4.2.0" } }, + "node_modules/uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "dependencies": { + "random-bytes": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -12089,6 +13293,20 @@ "punycode": "^2.1.0" } }, + "node_modules/urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -12119,6 +13337,14 @@ "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" }, + "node_modules/validator": { + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.7.0.tgz", + "integrity": "sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==", + "engines": { + "node": ">= 0.10" + } + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -12127,11 +13353,38 @@ "node": ">= 0.8" } }, + "node_modules/verror": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", + "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, "node_modules/voca": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/voca/-/voca-1.4.1.tgz", "integrity": "sha512-NJC/BzESaHT1p4B5k4JykxedeltmNbau4cummStd4RjFojgq/kLew5TzYge9N2geeWyI2w8T30wUET5v+F7ZHA==" }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -12324,6 +13577,34 @@ "typedarray-to-buffer": "^3.1.5" } }, + "node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/wtfnode": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/wtfnode/-/wtfnode-0.9.1.tgz", + "integrity": "sha512-Ip6C2KeQPl/F3aP1EfOnPoQk14Udd9lffpoqWDNH3Xt78svxPbv53ngtmtfI0q2Te3oTq79XKTnRNXVIn/GsPA==", + "bin": { + "wtfnode": "proxy.js" + } + }, "node_modules/xml": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", diff --git a/package.json b/package.json index 7fb2a4b..b0221a8 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "ci-backend-unit-test": "nyc --extension .ts --report-dir ./s4hana_pipeline/reports/coverage-reports/backend-unit/ --reporter cobertura mocha -r ts-node/register -r dotenv/config test/unit-tests/**/*.spec.ts test/unit-tests/*.spec.ts --reporter mocha-junit-reporter --reporter-options mochaFile=./s4hana_pipeline/reports/backend-unit/results.xml", "ci-it-backend": "npm run cds-deploy && nyc --extension .ts --report-dir ./s4hana_pipeline/reports/coverage-reports/backend-integration/ --reporter cobertura mocha -r ts-node/register -r dotenv/config test/integration-tests/**/*.spec.ts --reporter mocha-junit-reporter --reporter-options mochaFile=./s4hana_pipeline/reports/backend-integration/results.xml", "ci-lint": "npm run lint", - "start": "cds-serve" + "start": "node node_modules/@sap/approuter/approuter.js && node dist/index.js" }, "author": "", "license": "Apache-2.0", @@ -60,8 +60,10 @@ "sinon-chai": "^3.7.0" }, "dependencies": { + "@sap-cloud-sdk/http-client": "^3.24.0", "@sap-cloud-sdk/odata-v2": "^2.9.0", "@sap-cloud-sdk/util": "^2.9.0", + "@sap/approuter": "^18.0.0", "@sap/cds": "^6.2.1", "@sap/cds-dk": "^6.2.1", "@sap/cds-services": "^1.27.2", @@ -114,7 +116,7 @@ } }, "auth": { - "kind": "dummy-auth" + "kind": "xsuaa" } } } diff --git a/src/app/controller/Main.controller.js b/src/app/controller/Main.controller.js index 0400646..df76257 100644 --- a/src/app/controller/Main.controller.js +++ b/src/app/controller/Main.controller.js @@ -139,7 +139,7 @@ sap.ui.define([ return jQuery.when( this.initPersons(model), - this.onFetchImages(model), + //this.onFetchImages(model), this.initAppointments(model) /* this.initphotos(model) */ ); @@ -178,7 +178,7 @@ sap.ui.define([ }); }, - onFetchImages: function (model) { +/* onFetchImages: function (model) { timeSheetService.getImages().then( (images) => { // Bind images to a model or directly to a control @@ -190,7 +190,7 @@ sap.ui.define([ } ); }, - + */ initAppointments: function (model) { return timeSheetService.getAppointments().then(function (appointments) { //1. group for person diff --git a/src/app/service/http.js b/src/app/service/http.js index 393f697..171654e 100644 --- a/src/app/service/http.js +++ b/src/app/service/http.js @@ -1,22 +1,22 @@ sap.ui.define(["jquery.sap.global"], function (jQuery) { "use strict"; - // function setCSRFPrefilter(baseUrl) { - // return jQuery.ajax({ - // url: baseUrl + "/csrf", - // method: "GET", - // headers: { "X-CSRF-Token": "Fetch" } - // }).then(function (data, sStatus, jqXHR) { - // var csrfToken = jqXHR.getResponseHeader("X-CSRF-Token"); - // jQuery.ajaxPrefilter(function (options, originalOptions, _jqXHR) { - // if (typeof csrfToken === "string") { - // if (["POST", "PUT", "DELETE", "PATCH"].indexOf(options.type) !== -1) { - // _jqXHR.setRequestHeader("X-CSRF-Token", csrfToken); - // } - // } - // }); - // }); - // } + function setCSRFPrefilter(baseUrl) { + return jQuery.ajax({ + url: baseUrl + "/csrf", + method: "GET", + headers: { "X-CSRF-Token": "Fetch" } + }).then(function (data, sStatus, jqXHR) { + var csrfToken = jqXHR.getResponseHeader("X-CSRF-Token"); + jQuery.ajaxPrefilter(function (options, originalOptions, _jqXHR) { + if (typeof csrfToken === "string") { + if (["POST", "PUT", "DELETE", "PATCH"].indexOf(options.type) !== -1) { + _jqXHR.setRequestHeader("X-CSRF-Token", csrfToken); + } + } + }); + }); + } return { get: function (url, data) { diff --git a/src/app/service/time-sheet.service.js b/src/app/service/time-sheet.service.js index e756ef8..8120103 100644 --- a/src/app/service/time-sheet.service.js +++ b/src/app/service/time-sheet.service.js @@ -6,9 +6,7 @@ sap.ui.define([ var host = ""; var servicePath = "/odata/v2/TimesheetService"; - var servicePath2 = "/odata/v2"; var baseUrl = host + servicePath; - var baseUrl2 = host + servicePath2; // http.setCSRFPrefilter(baseUrl); @@ -21,13 +19,13 @@ sap.ui.define([ }); }, - getImages: function () { +/* getImages: function () { return http.get(baseUrl + "/Photo").then(function (response) { return response.hasOwnProperty("d") ? converter.getResults(converter.getD(response)) : response.images; }); - }, + }, */ getAppointments: function () { return http diff --git a/src/app/xs-app.json b/src/app/xs-app.json new file mode 100644 index 0000000..34c8ff7 --- /dev/null +++ b/src/app/xs-app.json @@ -0,0 +1,16 @@ +{ + "authenticationMethod": "route", + "routes": [ + { + "source": "^/timesheet/(.*)", + "destination": "srv-api", + "csrfProtection": true, + "authenticationType": "xsuaa" + }, + { + "source": "/(.*)", + "localDir": "src", + "authenticationType": "xsuaa" + } + ] + } \ No newline at end of file diff --git a/src/read-appointments.ts b/src/read-appointments.ts index 6795c1b..058e9e8 100644 --- a/src/read-appointments.ts +++ b/src/read-appointments.ts @@ -68,7 +68,6 @@ export async function readSfsfAppointmentsByPerson( employeeTimeApi.schema.END_DATE.lessOrEqual(to) ) .execute({ destinationName: 'SFSF' }); - } export async function readLocalAppointments(srv: any): Promise { @@ -101,4 +100,4 @@ function readRemoteAppointments( [] ) ); -} \ No newline at end of file +} diff --git a/src/read-persons.ts b/src/read-persons.ts index 1fa350b..5f49518 100644 --- a/src/read-persons.ts +++ b/src/read-persons.ts @@ -2,10 +2,10 @@ import { Person } from './model/person'; export async function readPersons(srv: any): Promise { // Create a query object - restrict persons before fetching appointments - let query = srv.read('Person'); - //query = query.where({ hlevel: { '>': 1 } }); + // let query = srv.read('Person'); + // query = query.where({ hlevel: { '>': 1 } }); // Execute the query - return query; + // return query; - //return srv.read('Person'); + return srv.read('Person'); } diff --git a/src/team-calendar-service.ts b/src/team-calendar-service.ts index 52bb17c..4b5586d 100644 --- a/src/team-calendar-service.ts +++ b/src/team-calendar-service.ts @@ -2,8 +2,8 @@ /* eslint-disable import/order */ import { Appointment } from './model/appointment'; import { readAppointments } from './read-appointments'; -import { readPhotos } from './read-photos'; -import { getDirectReports, getIndirectReports } from './read-reports'; +//import { readPhotos } from './read-photos'; +//import { getDirectReports, getIndirectReports } from './read-reports'; import { splitAppointmentIntoDays } from './util/time-util'; import { buildTimeSheetEntry, writeTimeSheetEntry } from './write-appointments'; //useful for the backend unit test @@ -33,7 +33,7 @@ export function serviceHandler(srv: any): void { } }); - srv.on('READ', 'Photo', async req => { +/* srv.on('READ', 'Photo', async req => { try { const data = await readPhotos(srv); return req.reply(data); @@ -43,16 +43,16 @@ export function serviceHandler(srv: any): void { 'An error occurred while trying to read images: ' + error.message ); } - }); + }); */ - srv.on("READ", "LoggedUser", req => { + srv.on('READ', 'LoggedUser', req => { const user = req.user; // Extract logged-in user from the request return { id: '', - name: '', - email: '', + name: user.name, + email: user.email, role: '' //user.roles.join(", "), // Combine roles into a string if needed - } + }; }); /* // Event handler for READ requests on the 'Person' entity diff --git a/srv/timesheet-service.cds b/srv/timesheet-service.cds index a57d44a..dae51ae 100644 --- a/srv/timesheet-service.cds +++ b/srv/timesheet-service.cds @@ -1,9 +1,8 @@ using my.timesheet as timesheet from '../db/data-model'; -service TimesheetService{ - //@(requries : 'authenticated-user') +service TimesheetService @(requries : 'authenticated-user'){ entity Appointment as projection on timesheet.Appointment; - //annotate Appointment with @(requires: 'TC_Admin'); + annotate Appointment with @(requires: 'TC_Admin'); entity Person @readonly as projection on timesheet.Person; entity TeamCalendar @readonly as projection on timesheet.TeamCalendar; entity Sanity { diff --git a/xs-security.json b/xs-security.json index 24f572e..963f947 100644 --- a/xs-security.json +++ b/xs-security.json @@ -4,29 +4,31 @@ "scopes": [ { "name": "$XSAPPNAME.User", - "description": "Default user scope", - "grant-as-authority-to-apps": ["$XSAPPNAME"] - } - ], - "attributes": [ - { - "name": "email", - "description": "User Email Address" + "description": "Default user scope" }, { - "name": "given_name", - "description": "User First Name" + "name": "uaa.user", + "description": "UAA" }, { - "name": "family_name", - "description": "User Last Name" + "name": "$XSAPPNAME.TC_Admin", + "description": "TC_Admin" } ], + "attributes": [], "role-templates": [ { "name": "User", "description": "Default User Role", - "scope-references": ["$XSAPPNAME.User"] + "scope-references": ["$XSAPPNAME.User", "uaa.user"] + }, + { + "name": "TC_Admin", + "description": "generated", + "scope-references": [ + "$XSAPPNAME.TC_Admin" + ], + "attribute-references": [] } ] }